-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHiddenReward.tsx
More file actions
64 lines (56 loc) · 1.73 KB
/
HiddenReward.tsx
File metadata and controls
64 lines (56 loc) · 1.73 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
import Lottie from 'lottie-react';
import Logo_sliver from '../../../public/lottie/Logo_sliver.json';
import Confetti_revised from '../../../public/lottie/Confetti_revised.json';
import { useRouter } from 'next/router';
const HiddenReward = () => {
const router = useRouter();
return (
<div
className='
relative w-full h-[100vh]
bg-gradient-to-b from-mint-500 to-white
flex flex-col justify-center items-center text-center
overflow-hidden
cursor-pointer
'
role="main"
aria-label="히든 리워드 획득 페이지"
onClick={() =>
router.push({
pathname: '/main/PostCard',
})
}
>
<div className='absolute inset-0 z-0 pointer-events-none mt-0'>
<Lottie
animationData={Confetti_revised}
loop
autoplay
className='w-full h-full object-cover'
/>
</div>
<div className='relative z-10 flex flex-col items-center justify-center'>
<h1 className='text-black mb-[4.5rem] text-headline-lg-serif'>
Congrats!
</h1>
<p className='text-title-sm text-black mb-[6rem]'>
축하합니다! <br />
히든 리워드를 획득하셨습니다.
</p>
<Lottie
animationData={Logo_sliver}
loop
autoplay
className='w-[18rem] h-[18rem] mb-[6rem]'
/>
<p className='text-label-md text-black mb-[7rem]'>
가톨릭대 전설의 포켓몬 <br />
‘나무를 수호하는 종철씨’를 <br />
획득하셨습니다!
</p>
<p className='text-label-serif text-mint-500'>click!</p>
</div>
</div>
);
};
export default HiddenReward;