-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPostCard.tsx
More file actions
61 lines (54 loc) · 1.78 KB
/
PostCard.tsx
File metadata and controls
61 lines (54 loc) · 1.78 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
import { Icon } from '@/shared/icons';
import { BottomNav, FlipCard, LocationCard } from '@/shared/components';
import { handleSave, handleShare } from '@/shared/utils/postcardActions';
const PostCard = () => {
const label = '가톨릭대'; // 임시
return (
<div
role="main"
aria-label="엽서 획득 페이지"
className='
relative w-full h-[100vh] px-[2.4rem]
bg-gradient-to-b from-pink-100 to-white
flex flex-col justify-start items-center
overflow-x-auto overflow-y-hidden mb-[7rem]
'
>
<h1 className='text-headline-md-serif mt-[8rem] mb-[8rem] text-center'>
{label}의 엽서 획득!
</h1>
<FlipCard
frontSrc='/assets/card.png'
backSrc='/assets/card2.png'
width={354}
height={220}
/>
{/* 아이콘 버튼 (저장 / 공유) */}
<div className='w-full flex justify-end mb-[7rem]'>
<button
className='flex items-center justify-center w-[4.8rem] h-[4.8rem]'
onClick={handleSave}
aria-label="엽서 이미지 저장"
>
<Icon name='Save' color='gray-400' size={28} aria-hidden="true" />
</button>
<button
className='flex items-center justify-center w-[4.8rem] h-[4.8rem]'
onClick={handleShare}
aria-label="엽서 공유하기"
>
<Icon name='Export' color='gray-400' size={28} aria-hidden="true" />
</button>
</div>
<LocationCard
name={label}
address='경기도 부천시 가톨릭대길 43'
description='가톨릭대학교의 캠퍼스에서 얻을 수 있는 특별한 엽서입니다.'
variant='gray'
size='large'
/>
<BottomNav />
</div>
);
};
export default PostCard;