-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
πλ€λΉλ° λμμΈ λ°μ (#121)
* πλ€λΉλ° λμμΈ λ°μ * fix: λ€λΉλ° μ λ€ μ€μ μ λ ¬ * design: λμμΈ λ¦¬λ·° λ°μ
- Loading branch information
Showing
7 changed files
with
79 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
'use client'; | ||
|
||
import { PropsWithChildren, Suspense } from 'react'; | ||
|
||
import Footer from '@/components/layout/footer/Footer'; | ||
import Header from '@/components/layout/header/Header'; | ||
|
||
import useCurrentSegmentNode from '@/hooks/useCurrentSegmentNode'; | ||
|
||
import { main } from '@/types/page'; | ||
|
||
export default function Content({ children }: PropsWithChildren) { | ||
const node = useCurrentSegmentNode(); | ||
const ml = node === main ? `ml-[11rem]` : 'ml-[6.25rem]'; | ||
|
||
return ( | ||
<div className={`flex flex-col flex-1 font-noto-demi ${ml}`}> | ||
<Suspense> | ||
<Header /> | ||
</Suspense> | ||
<main className="flex flex-col flex-1 overflow-scroll overflow-x-hidden"> | ||
<div className="flex-1">{children}</div> | ||
<Footer /> | ||
</main> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters