From ee1eb969b324fb65f942c2a68343abab68d7370d Mon Sep 17 00:00:00 2001 From: myeongheonhong Date: Fri, 2 Feb 2024 12:14:44 +0900 Subject: [PATCH] =?UTF-8?q?[=20feat=20]=20=ED=91=B8=ED=84=B0=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EB=B0=8F=20=EC=8A=A4=ED=83=80=EC=9D=BC=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Layout/EmptyLayout.tsx | 2 +- components/Layout/HeaderLayout.tsx | 2 +- components/Layout/index.tsx | 8 ++- components/footer.tsx | 101 +++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+), 3 deletions(-) create mode 100644 components/footer.tsx diff --git a/components/Layout/EmptyLayout.tsx b/components/Layout/EmptyLayout.tsx index c1d11a63..562bc0d1 100644 --- a/components/Layout/EmptyLayout.tsx +++ b/components/Layout/EmptyLayout.tsx @@ -8,7 +8,7 @@ export default function EmptyLayout(props: PropsWithChildren) { const Container = styled.main` width: 37.5rem; - height: 100%; + height: 100svh; padding: 2.2rem 2.2rem 0 2.2rem; `; diff --git a/components/Layout/HeaderLayout.tsx b/components/Layout/HeaderLayout.tsx index 54e840d6..981aee73 100644 --- a/components/Layout/HeaderLayout.tsx +++ b/components/Layout/HeaderLayout.tsx @@ -17,7 +17,7 @@ export default function HeaderLayout(props: PropsWithChildren) { const Container = styled.main<{ width: string }>` width: ${(props) => props.width}; - height: 100%; + height: 100svh; padding: 0 2.2rem; `; diff --git a/components/Layout/index.tsx b/components/Layout/index.tsx index 7c5523b3..9781f907 100644 --- a/components/Layout/index.tsx +++ b/components/Layout/index.tsx @@ -1,6 +1,7 @@ import { PropsWithChildren } from 'react'; import EmptyLayout from './EmptyLayout'; import HeaderLayout from './HeaderLayout'; +import Footer from '../footer'; const layouts = { header: HeaderLayout, @@ -16,5 +17,10 @@ export default function Layout(props: PropsWithChildren) { const LayoutContainer = layouts[layoutKey]; - return {children}; + return ( + <> + {children} +