-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.tsx
More file actions
52 lines (48 loc) · 1.34 KB
/
index.tsx
File metadata and controls
52 lines (48 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import { cn } from '@/shared/lib';
import StampBoard from './components/stampBoard/StampBoard';
import { ControlBar } from '@/shared/components';
import Image from 'next/image';
import router from 'next/router';
import { BottomNav } from '@/shared/components/tab/BottomNav';
export default function MainPage() {
return (
<div
className={cn(
'px-[2.4rem] bg-white flex flex-col gap-[1rem] h-full pt-[1.3rem] pb-[12rem]',
)}
>
<ControlBar
isLoggedIn={false}
onLogin={() => {}}
userName='글다'
className='fixed top-[1rem] left-0 right-0 z-50 px-[2rem]'
/>
<main className='w-full pt-[6.3rem] flex flex-col gap-4 overflow-auto'>
<section>
<Image
src='/assets/bannerMain.svg'
alt='...'
width={354}
height={79}
className='w-full h-auto object-cover block'
/>
</section>
<section
onClick={() => {
router.push('/main/Board');
}}
>
<Image
src='/assets/board.svg'
alt='보드판'
width={354}
height={426.36}
className='w-full h-auto object-cover block'
/>
</section>
<StampBoard count={3} total={10} />
</main>
<BottomNav />
</div>
);
}