-
Notifications
You must be signed in to change notification settings - Fork 192
/
Copy pathfirst.js
204 lines (193 loc) · 6.39 KB
/
first.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
import { Box, Heading, Container, Text, Button, Badge } from 'theme-ui'
import Meta from '@hackclub/meta'
import Head from 'next/head'
import ForceTheme from '../../components/force-theme'
import Nav from '../../components/nav'
import Footer from '../../components/footer'
import Icon from '../../components/icon'
import Features from '../../components/fiscal-sponsorship/first/features'
import Testimonials from '../../components/fiscal-sponsorship/first/testimonials'
import Start from '../../components/fiscal-sponsorship/first/start'
import theme from '@hackclub/theme'
import { Balancer } from 'react-wrap-balancer'
export default function First({ stats }) {
return (
<>
<style>
{`*{
scroll-behavior: smooth;
}`}
</style>
<Meta
as={Head}
title="Financial Toolkit for FIRST Teams"
description="HCB is the ultimate financial tool for FRC, FTC, and FLL teams to receive grants, fundraise, make purchases, and so much more."
image="/fiscal-sponsorship/first/og-image.png"
>
<title>Financial Toolkit for FIRST Teams | HCB</title>
</Meta>
<Box as="main" key="main" sx={{ mb: 6 }}>
<Nav dark />
<ForceTheme theme="dark" />
<Box
sx={{
pt: [5, null, null, null, 6],
pb: [3, 4, 5, null, 6],
minHeight: ['70vh', 'none'],
textAlign: 'center',
backgroundImage:
"linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), url('https://cloud-7chjcfuyw-hack-club-bot.vercel.app/0image.png')",
backgroundSize: 'cover',
backgroundPosition: 'center center',
display: 'flex',
justifyContent: 'center',
alignItems: 'center'
}}
>
<Container
sx={{
width: '100%',
mx: 'auto',
px: 3,
backdropFilter: 'blur(1.5px)'
}}
>
<Heading
as="h1"
variant="ultratitle"
sx={{
textAlign: 'center',
mt: [5, null, 6],
textShadow: '0 0 16px rgba(0, 0, 0, 1)',
maxWidth: 'container'
}}
>
<Balancer>
The ultimate financial tool for{' '}
<Text
as="span"
sx={{
WebkitTextStroke: theme => theme.colors.blue,
WebkitTextStrokeWidth: '1px',
WebkitTextFillColor: theme => theme.colors.white,
textShadow: theme => `0 0 12px ${theme.colors.blue}`
}}
>
FRC, FTC, and FLL teams
</Text>
.
</Balancer>
</Heading>
<Badge
variant="pill"
sx={{
bg: 'rgba(132,146,166, 0.5)',
color: 'white',
fontWeight: 'normal',
fontSize: 2,
mt: 3,
mx: 'auto',
borderRadius: ['default', null, 'extra']
}}
>
<Box
as="div"
sx={{
display: ['grid', 'grid', 'flex'],
flexDirection: [null, 'row', 'row'],
gridTemplateColumns: ['1fr', '1fr 1fr']
}}
>
<Box
as="span"
sx={{ display: 'flex', flexDirection: 'row', mr: 4 }}
>
<Icon glyph="checkmark" size={28} color="#33d6A6" />
<Text sx={{ ml: 1 }}>Nonprofit status</Text>
</Box>
<Box
as="span"
sx={{ display: 'flex', flexDirection: 'row', mr: 4 }}
>
<Icon glyph="checkmark" size={28} color="#33d6A6" />
<Text sx={{ ml: 1 }}>Receive grants</Text>
</Box>
<Box as="span" sx={{ display: 'flex', flexDirection: 'row' }}>
<Icon glyph="checkmark" size={28} color="#33d6A6" />
<Text sx={{ ml: 1 }}>Debit cards</Text>
</Box>
</Box>
</Badge>
<Container
as="p"
sx={{
fontSize: [2, 3, 3],
textAlign: 'center',
my: 4
}}
variant="copy"
>
Built by <i>FIRST</i> alumni for <i>FIRST</i> teams, HCB is a
comprehensive financial platform used by hundreds of clubs, teams
and hackathons.
</Container>
<Box
sx={{
display: 'flex',
flexDirection: ['column', null, 'row'],
justifyContent: 'center',
alignItems: 'center'
}}
>
<Button variant="ctaLg" as="a" href="#demo">
Open an account
</Button>
<Button
sx={{
backgroundImage: theme.util.gx('cyan', 'blue'),
ml: 2,
display: ['none', null, 'inline-block'] // hide on mobile because viewing pdfs on mobile is a pain anyways
}}
variant="ctaLg"
as="a"
href="/fiscal-sponsorship/first/Hack_Club_Bank_for_FIRST_Teams.pdf"
// @exu3: to edit this PDF, use this Figma file https://www.figma.com/file/LgadOH1lHUBOejA3vaNGgm/Hack-Club-Bank-for-FIRST-Teams-One-Pager?node-id=0%3A1&t=ZtkN2a3aw2IojFvi-1
// message me on Slack if you need edit access
target="_blank"
>
Download this page
</Button>
</Box>
</Container>
</Box>
<Features />
<Box id="testimonials">
<Testimonials />
</Box>
<Box id="demo">
<Start stats={stats} />
</Box>
</Box>
<Footer dark />
</>
)
}
export async function getStaticProps(context) {
const res = await fetch(`https://hcb.hackclub.com/stats`)
try {
const stats = await res.json()
return {
props: {
stats
},
revalidate: 10
}
} catch (e) {
return {
props: {
stats: {}
},
revalidate: 10
}
}
}