Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/app/(no-layout)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
function NoLayout({ children }: { children: React.ReactNode }) {
return <main className="flex flex-1">{children}</main>;
}
export default NoLayout;
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions src/app/(with-layout)/layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import ClientInitHook from '@/domains/login/components/ClientInitHook';
import FooterWrapper from '@/shared/components/footer/FooterWrapper';
import Header from '@/shared/components/header/Header';

function LayoutWithHeaderFooter({ children }: { children: React.ReactNode }) {
return (
<>
<Header />
<ClientInitHook />
<main className="flex flex-1 pt-[2.75rem] md:pt-[3.75rem]">{children}</main>
<FooterWrapper />
</>
);
}
export default LayoutWithHeaderFooter;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ export default function RootLayout({
<html lang="ko-KR">
<body className="relative flex flex-col min-h-full-screen">
<Provider>
<Header />
<ClientInitHook />
<main className="flex flex-1 pt-[2.75rem] md:pt-[3.75rem]">{children}</main>
<FooterWrapper />

{children}

<div id="modal-root"></div>

<Toaster
position="top-center"
toastOptions={{
Expand Down
3 changes: 2 additions & 1 deletion src/domains/not-found/components/NotFoundCont.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ function NotFoundCont() {
<Image
src={CrySsury}
alt=""
aria-hidden
width={128}
height={128}
className="w-25 h-25 sm:w-32 sm:h-32"
aria-hidden
priority
/>
<h1 className="text-center">페이지를 찾을 수 없어요🥲</h1>
<Button
Expand Down