Skip to content

Commit 9ebf731

Browse files
authored
Merge pull request #48 from prgrms-web-devcourse-final-project/feat/layout#46
[feat] layout 구현
2 parents 0b3e3f5 + b77caed commit 9ebf731

File tree

23 files changed

+115
-61
lines changed

23 files changed

+115
-61
lines changed

src/app/layout.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import type { Metadata } from 'next';
22
import '@/shared/styles/global.css';
33
import { Toaster } from 'react-hot-toast';
44
import ScrollTopBtn from '@/shared/components/scrollTop/ScrollTopBtn';
5-
import Header from '@/components/header/Header';
6-
import Footer from '@/components/footer/Footer';
5+
import Header from '@/shared/components/header/Header';
6+
import Footer from '@/shared/components/footer/Footer';
77
export const metadata: Metadata = {
88
title: 'SSOUL',
99
description: '칵테일을 좋아하는 사람들을 위한 서비스',
@@ -18,10 +18,12 @@ export default function RootLayout({
1818
<html lang="ko-KR">
1919
<body className="relative flex flex-col min-h-screen">
2020
<Header />
21-
<main className="flex-1 mt-[60px]">
21+
<main className="flex flex-1 pt-[2.75rem] md:pt-[3.75rem]">
2222
<div id="observer-target" className="h-[0.5px]"></div>
2323
{children}
2424
</main>
25+
<Footer />
26+
2527
<div id="modal-root"></div>
2628
<Toaster
2729
position="top-center"
@@ -35,7 +37,6 @@ export default function RootLayout({
3537
/>
3638

3739
<ScrollTopBtn />
38-
<Footer />
3940
</body>
4041
</html>
4142
);

src/app/login/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const metadata: Metadata = {
1010

1111
function Page() {
1212
return (
13-
<div className="relative flex flex-1 flex-col items-center justify-center gap-4 min-h-screen">
13+
<div className="page-layout max-w-824 relative flex-center flex-col gap-4">
1414
<div
1515
className="absolute bottom-0 left-1/2 -translate-x-1/2 w-full max-w-[75rem] h-full -z-10"
1616
aria-hidden

src/app/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
export default function Home() {
22
return (
3-
<div className="flex-center">
4-
<h1> 이게 기본</h1>
5-
<h1 className="font-serif">this is Serif</h1>
6-
<h1>테스트입니다</h1>
3+
<div className="page-layout max-w-full">
4+
<h1>메인페이지</h1>
75
</div>
86
);
97
}

src/components/header/HeaderLogo.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 4 additions & 4 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 2 additions & 2 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading
Lines changed: 4 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)