File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ export default function Home() {
77 < div className = 'flex flex-col items-center justify-center min-h-screen py-2 bg-gray-50' >
88 < main className = 'flex flex-col items-center justify-center w-full flex-1 px-4 sm:px-20 text-center' >
99 < Header onClick = { ( ) => { } } className = '' title = { '글다' } />
10- < ControlBar isLoggedIn = { false } />
10+ < ControlBar isLoggedIn = { false } onLogin = { ( ) => { } } />
1111 < ControlBar isLoggedIn = { true } userName = '홍길동' />
1212 < h1 className = 'text-4xl sm:text-6xl font-extrabold text-gray-900 mb-4' >
1313 초기 세팅 완료
Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import { cn } from '@/shared/lib';
33import { cva } from 'class-variance-authority' ;
44
55interface ControlBarProps {
6- onLogin ?: ( ) => void ;
76 isLoggedIn : boolean ;
7+ onLogin ?: ( ) => void ;
88 userName ?: string ;
99 className ?: string ;
1010}
@@ -22,24 +22,21 @@ const rightStyle = cva('flex items-center gap-[0.6rem] transition w-[7.8rem]', {
2222const ControlBar = ( {
2323 onLogin,
2424 isLoggedIn = false ,
25- userName = '홍길동 ' ,
25+ userName = '글다 ' ,
2626 className,
2727} : ControlBarProps ) => {
2828 const rightState = isLoggedIn ? 'loggedIn' : ( 'guest' as const ) ;
2929 const iconColor = isLoggedIn ? 'mint-600' : ( 'gray-400' as const ) ;
3030
3131 return (
32- < section
33- className = { cn ( 'bg-none w-full h-[5.4rem]' , className ) }
34- role = 'group'
35- >
32+ < header className = { cn ( 'bg-none w-full h-[5.4rem]' , className ) } role = 'group' >
3633 < div className = 'h-full grid grid-cols-[auto_1fr_auto] items-center gap-[1.2rem]' >
3734 < div
3835 className = 'w-[7.8rem] h-[5.4rem] rounded-[0.6rem] bg-gray-200'
3936 aria-hidden
4037 />
4138
42- < h1 className = 'justify-self-center text-title-md font-[600 ] leading-[2.4rem] tracking-[0.015rem] text-gray-900' >
39+ < h1 className = 'justify-self-center text-headline-sm-serif font-[400 ] leading-[2.4rem] tracking-[0.015rem] text-gray-900' >
4340 글다
4441 </ h1 >
4542 { isLoggedIn ? (
@@ -67,7 +64,7 @@ const ControlBar = ({
6764 </ button >
6865 ) }
6966 </ div >
70- </ section >
67+ </ header >
7168 ) ;
7269} ;
7370
You can’t perform that action at this time.
0 commit comments