File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ import Link from 'next/link' ;
2+ import Image from 'next/image' ;
3+
4+ const Header = ( ) => {
5+ return (
6+ < header className = "border-gray-1 sticky top-0 right-0 left-0 flex h-15 items-center justify-center border-b bg-white" >
7+ < div className = "mx-5 my-2.5 flex w-300 items-center justify-between sm:mx-12.5 lg:mx-42.5" >
8+ < Link href = "/" className = "shrink-0" >
9+ < Image src = "/logo.svg" alt = "Mingling Logo" width = { 112 } height = { 40 } priority />
10+ </ Link >
11+ < nav className = "hidden items-center gap-2.5 sm:flex" >
12+ < Link href = "/login" className = "text-gray-5 p-2 text-[16px]" >
13+ 문의하기
14+ </ Link >
15+ < Link href = "/login" className = "text-gray-5 p-2 text-[16px]" >
16+ 피드백남기기
17+ </ Link >
18+ </ nav >
19+ </ div >
20+ </ header >
21+ ) ;
22+ } ;
23+
24+ export default Header ;
Original file line number Diff line number Diff line change 11import type { Metadata } from 'next' ;
22import localFont from 'next/font/local' ;
33import './globals.css' ;
4+ import Header from './components/header' ;
45
56const pretendard = localFont ( {
67 src : [
@@ -30,7 +31,10 @@ export default function RootLayout({
3031} > ) {
3132 return (
3233 < html lang = "ko" className = { pretendard . variable } >
33- < body > { children } </ body >
34+ < body >
35+ < Header />
36+ { children }
37+ </ body >
3438 </ html >
3539 ) ;
3640}
Original file line number Diff line number Diff line change 11export default function Home ( ) {
22 return (
3- < div className = "flex h-screen w-screen justify-center gap-10 bg-slate-950" >
3+ < div className = "flex h-screen justify-center gap-10 bg-slate-950" >
44 < div className = "flex flex-col gap-5 text-white" >
55 < h1 className = "py-4 text-3xl font-bold text-white" > 타이포그래피 세팅</ h1 >
66 < h3 className = "text-2xl font-thin" > 안녕, 세계!!</ h3 >
You can’t perform that action at this time.
0 commit comments