-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
layout/#31
- Loading branch information
Showing
8 changed files
with
122 additions
and
2 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,10 @@ | ||
import ContentContainer from '../../ui/view/atom/content-container'; | ||
|
||
export default function Page() { | ||
return ( | ||
<ContentContainer className="flex flex-col items-center gap-8"> | ||
<div>요소1</div> | ||
<div>요소2</div> | ||
</ContentContainer> | ||
); | ||
} |
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,17 @@ | ||
import Image from 'next/image'; | ||
import background from '../../public/assets/background.png'; | ||
import NavigationBar from '../ui/view/molecule/navigation-bar'; | ||
interface LayoutProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
function Layout({ children }: LayoutProps) { | ||
return ( | ||
<> | ||
<Image src={background} width={800} height={288} className="w-full bg-white h-[18rem]" alt="background" /> | ||
<div className="flex justify-center">{children}</div> | ||
</> | ||
); | ||
} | ||
|
||
export default Layout; |
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
import type { Metadata } from 'next'; | ||
import './globals.css'; | ||
import NavigationBar from './ui/view/molecule/navigation-bar'; | ||
|
||
export const metadata: Metadata = { | ||
title: 'Create Next App', | ||
|
@@ -12,14 +13,19 @@ export default function RootLayout({ | |
children: React.ReactNode; | ||
}>) { | ||
return ( | ||
<html lang="en"> | ||
<html lang="ko"> | ||
<head> | ||
<link | ||
href="https://cdn.jsdelivr.net/gh/orioncactus/[email protected]/dist/web/static/pretendard.css" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
<body>{children}</body> | ||
<body> | ||
<div className="bg-white w-[100vw] h-[100vh]"> | ||
<NavigationBar /> | ||
{children} | ||
</div> | ||
</body> | ||
</html> | ||
); | ||
} |
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,21 @@ | ||
import { twMerge } from 'tailwind-merge'; | ||
|
||
interface ContentContainerProps { | ||
children: React.ReactNode; | ||
size?: 'md' | 'lg'; | ||
className?: string; | ||
} | ||
|
||
export default function ContentContainer({ children, size = 'md', className }: ContentContainerProps) { | ||
return ( | ||
<div | ||
className={twMerge( | ||
'absolute bg-white top-[7rem] zIndex-1 rounded-xl p-[1.5rem] shadow-lg max-md:w-full', | ||
size === 'md' ? 'md:w-[70%]' : 'md:w-[80%]', | ||
className, | ||
)} | ||
> | ||
{children} | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Image from 'next/image'; | ||
import logo from '../../../../public/assets/logo.svg'; | ||
|
||
export default function NavigationBar() { | ||
return ( | ||
<div className="absolute p-4 border-b-[1px] w-full"> | ||
<Image className="md:h-10 h-7 w-[110px] md:w-[150px]" width={150} height={100} src={logo} alt="main-logo" /> | ||
</div> | ||
); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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