-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.tsx
More file actions
73 lines (66 loc) · 2.31 KB
/
index.tsx
File metadata and controls
73 lines (66 loc) · 2.31 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
'use client';
import React, { useState } from 'react';
import ProfilePhoto from '@/pages/mypage/components/ProfilePhoto';
import PostcardContainer from '@/pages/mypage/components/PostcardContainer';
import { EventCard, BottomNav, PopupSet } from '@/shared/components';
export default function MyPage() {
const [showLogoutPopup, setShowLogoutPopup] = useState(false);
const handleLogout = () => {
setShowLogoutPopup(true);
};
return (
<main className='w-full min-h-screen bg-white flex flex-col items-center'>
<div className='w-full flex flex-col items-center px-[2.3rem] pb-[2rem]'>
{/* 프로필 */}
<section className='w-full flex flex-col items-center mt-[2.4rem] gap-[1.0rem]'>
<ProfilePhoto/>
<p className='text-title-md'>이름</p>
</section>
{/* 저장한 행사 */}
<section className='w-full mt-[1.6rem]'>
<p className='text-label-lg mb-[1rem] pl-[1rem]'>저장한 행사</p>
<div className='max-h-[18rem] overflow-y-auto no-scrollbar space-y-[1rem]'>
<EventCard
name='골반 통신 이상 감지'
address='우리집'
description='내 골반이 멈추지 않아서 일까?'
variant='gray'
size='large'
imageSrc=''
/>
<EventCard
name='이혼 숙려 캠프'
address='우리집'
description='앙 이라는 감정'
variant='gray'
size='large'
imageSrc=''
/>
</div>
</section>
{/* 저장한 엽서 */}
<section className='w-full mt-[1.8rem]'>
<p className='text-label-lg mb-[0.6rem] pl-[1rem]'>저장한 엽서</p>
<PostcardContainer postcards={[]} />
</section>
{/* 로그아웃 */}
<button
type='button'
onClick={handleLogout}
className='mt-[2.1em] text-label-md text-gray-400 cursor-pointer underline underline-offset-[0.25rem]'
>
로그아웃
</button>
</div>
<BottomNav />
{showLogoutPopup && (
<PopupSet
text="로그아웃 하시겠습니까?"
onClose={() => {
setShowLogoutPopup(false);
}}
/>
)}
</main>
);
}