-
Notifications
You must be signed in to change notification settings - Fork 172
/
hcb.js
143 lines (141 loc) · 4.18 KB
/
hcb.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
import CardModel from './card-model'
import { Box, Grid, Heading, Text } from 'theme-ui'
import { Fade } from 'react-reveal'
import Buttons from './button'
/** @jsxImportSource theme-ui */
export default function Bank({ data }) {
return (
<Box sx={{ position: 'relative' }}>
<CardModel
color="white"
sx={{
backgroundColor: 'dark',
minHeight: ['300px', '400px', '380px'],
backgroundColor: 'darkless',
backgroundImage: `linear-gradient(to bottom,rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('/home/hackathons-bg.webp')`,
backgroundSize: 'cover',
backgroundPosition: '40%',
color: 'snow'
}}
badge
text={data[0]}
>
<Heading
variant="title"
sx={{ color: 'red', fontSize: ['36px', 4, 5], mt: [0, 3] }}
>
HCB
</Heading>
<Grid columns={[1, '1.3fr 1fr', 2]}>
<Box>
<Text as="p" variant="subtitle">
Become a 501(c)3 nonprofit and join 700+ teams using HCB to run
world-class events.
</Text>
<Text as="p" variant="subtitle">
This platform is built and maintained by the Hack Club team.
</Text>
<Buttons
id="27"
icon="bank-account"
link="/hcb"
primary="red"
sx={{ mt: [0, 2, 3] }}
>
Start fundraising!
</Buttons>
<Box
sx={{
position: 'relative',
width: '100%',
display: [null, 'none', 'none'],
mb: '-50px',
mt: 3
}}
>
<Box
sx={{
width: '100%',
height: '250px',
position: 'relative',
display: 'block',
textAlign: 'center',
'&:before': {
content: '""',
backgroundImage: 'url(/home/hcb-mobile.webp)', // image doesn't exist
backgroundSize: '100%',
backgroundRepeat: 'no-repeat',
width: '100%',
height: '100%',
marginX: 'auto',
display: 'block'
}
}}
>
{/* <Box
sx={{
backgroundImage: 'url(/home/hcb-screen.webp)',
zIndex: 2,
position: 'absolute',
margin: 'auto',
top: '8px',
left: '35px',
width: '75%',
height: '70%',
backgroundSize: '100%',
backgroundRepeat: 'no-repeat'
}}
></Box> */}
</Box>
</Box>
</Box>
</Grid>
</CardModel>
<Box
sx={{
position: 'absolute',
right: [0, '-120px', '-30px'],
bottom: [0, '-30px', '-50px'],
display: ['none', 'block', 'block'],
zIndex: 3
}}
>
{' '}
<Box
sx={{
width: ['250px', '500px'],
height: ['180px', '360px'],
position: 'relative',
display: 'block',
textAlign: 'center',
'&:before': {
content: '""',
backgroundImage: 'url(/home/hcb.webp)',
backgroundSize: '100%',
backgroundRepeat: 'no-repeat',
width: '100%',
height: '100%',
marginX: 'auto',
display: 'block'
}
}}
>
{/* <Box
sx={{
backgroundImage: 'url(/home/hcb-screen.webp)',
zIndex: 2,
position: 'absolute',
margin: 'auto',
top: '13px',
left: '70px',
width: '75%',
height: '80%',
backgroundSize: '100%',
backgroundRepeat: 'no-repeat'
}}
></Box> */}
</Box>
</Box>
</Box>
)
}