-
Notifications
You must be signed in to change notification settings - Fork 124
/
success.js
74 lines (70 loc) 路 1.72 KB
/
success.js
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
74
import { useEffect } from 'react'
import { Container, Text, Link, Image } from 'theme-ui'
import JSConfetti from 'js-confetti'
import { Balancer } from 'react-wrap-balancer'
function fireConfetti() {
const jsConfetti = new JSConfetti()
jsConfetti.addConfetti({
confettiColors: [
// Hack Club colours!
'#ec3750',
'#ff8c37',
'#f1c40f',
'#33d6a6',
'#5bc0de',
'#338eda',
'#a633d6'
]
})
}
export default function ApplicationSuccess() {
useEffect(() => {
fireConfetti()
}, [])
return (
<Container
variant="narrow"
sx={{
height: '100svb',
textAlign: 'center',
alignItems: 'center',
display: 'flex',
flexDirection: 'column',
justifyContent: 'space-between',
py: 5,
pt: [null, null, 6],
gap: 4
}}
>
<header>
<Image
src="/fiscal-sponsorship/apply/party-orpheus.svg"
alt="Dinosaur partying"
onClick={fireConfetti}
sx={{ width: '40%' }}
/>
<Text as="h1" variant="title" mt={4}>
Thanks for applying!
</Text>
<Text as="p" variant="lead">
<Balancer>
We鈥檒l review your application and get back to you within two
business days.
</Balancer>
</Text>
</header>
<footer>
<Text as="h2" variant="subheadline">
Questions about your application?
</Text>
<Text as="p" fontSize={2} color="muted">
You can always email us at{' '}
<Link href="mailto:hcb@hackclub.com" color="blue">
hcb@hackclub.com
</Link>
.
</Text>
</footer>
</Container>
)
}