Skip to content

Commit 728d12f

Browse files
committed
docs(#5): navbar, footer 파일 위치 변경
1 parent ab3aa41 commit 728d12f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/app/layout.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import type { Metadata } from "next";
22
import "./globals.css";
33
import { Noto_Sans_KR } from "@next/font/google";
4+
import Footer from "@/components/footer/Footer";
5+
import Navbar from "@/components/navbar/Navbar";
46

57
const notoSansKR = Noto_Sans_KR({
68
weight: ["400", "500", "700"],
@@ -19,7 +21,11 @@ export default function RootLayout({
1921
}>) {
2022
return (
2123
<html lang="en">
22-
<body className={notoSansKR.className}>{children}</body>
24+
<body className={notoSansKR.className}>
25+
<Navbar />
26+
{children}
27+
<Footer />
28+
</body>
2329
</html>
2430
);
2531
}

src/app/main/page.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import Footer from "@/components/footer/Footer";
21
import ContentBlock from "@/components/main/ContentBlock";
32
import CopyBlock from "@/components/main/CopyBlock";
43
import Intro from "@/components/main/Intro";
54
import StoryBlock from "@/components/main/StoryBlock";
6-
import Navbar from "@/components/navbar/Navbar";
75
import { mainPageData } from "@/lib/data";
86
import { Metadata } from "next";
97

@@ -15,7 +13,6 @@ export const metadata: Metadata = {
1513
const MainPage = async () => {
1614
return (
1715
<>
18-
<Navbar />
1916
<Intro />
2017
<ContentBlock
2118
title={mainPageData[0].title}
@@ -29,7 +26,6 @@ const MainPage = async () => {
2926
/>
3027
<CopyBlock />
3128
<StoryBlock />
32-
<Footer />
3329
</>
3430
);
3531
};

0 commit comments

Comments
 (0)