-
Notifications
You must be signed in to change notification settings - Fork 178
/
Copy pathcounterspell.js
161 lines (140 loc) · 4.28 KB
/
counterspell.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
import CardModel from './card-model'
import { Box, Flex, Grid, Image, Text } from 'theme-ui'
import Buttons from './button'
import { Global } from '@emotion/react'
/** @jsxImportSource theme-ui */
export default function Counterspell() {
return (
<CardModel
color="white"
sx={{
backgroundSize: 'cover',
backgroundColor: '#90A8E1',
fontFamily: "Fraunces",
objectFit: "contain"
}}
position={[null, 'bottom', 'bottom']}
>
<Global
styles={`
@font-face {
font-family: 'NeueBit';
src: url('https://counterspell.hackclub.com/_next/static/media/retro.1fb39db6.woff') format('woff');
font-weight: normal;
font-style: normal;
}
`}
/>
<Grid columns={[1, 1, 1]} sx={{ position: 'relative', zIndex: 2 }}>
<Flex
sx={{
flexDirection: 'column',
justifyContent: 'space-between',
position: 'relative',
alignItems: 'center',
}}
>
<Image
src="https://counterspell.hackclub.com/title.png"
sx={{
width: ['200px', '300px', '350px'],
mt: ['30px', '40px', '45px'],
mb: ['30px', '30px', '30px'],
position: 'relative',
zIndex: 3,
ml: '0px',
mr: '30px',
fontSize: ['36px', 4, 5],
color: 'white',
// mx: 'auto'
}}
alt="Counterspell"
/>
<Image
src="https://counterspell.hackclub.com/billboard.png"
sx={{
width: ['400px', '500px', '600px'],
position: 'absolute',
zIndex: 2,
fontSize: ['36px', 4, 5],
color: 'white',
mx: 'auto'
}}
alt="Counterspell"
/>
<Flex
sx={{
flexDirection: ['row', 'row', 'column'],
justifyContent: 'space-between'
}}
>
<Text
as="p"
variant="subheadline"
sx={{
ml: ['-8px', '0px', '-15px'],
mt: ['-30px', '0px', '-10px'],
mb: ['0px', '0px', '20px'],
zIndex: 2,
textAlign: 'center',
fontFamily: 'NeueBit, sans-serif', // Apply the custom font
color: '#FFFFFFF',
fontSize: ['10px !important','10px !important','16px !important'],
}}
>
HACK CLUB'S BEGINNER FRIENDLY GAME JAM
<br />
100+ CITIES NOV 23-24
</Text>
</Flex>
</Flex>
<Buttons
href="https://counterspell.hackclub.com/"
target="_blank"
rel="noopener"
primary="#24479C"
icon = "door-enter"
id="43"
zIndex={999}
sx = {{zIndex: 9999999, left: ["50%", "50%", "0%"]}}
>
Learn More
</Buttons>
</Grid>
<Image
src="https://counterspell.hackclub.com/hero/bg1.png"
sx={{
width: ['100%', '100%', '100%'],
mb: ['0px', '0px', '0px'],
mr: ['0px', '0px', '0px'],
ml: ['0px', '0px', '0px'],
position: 'absolute',
zIndex: 1,
left: 0,
bottom: 0,
fontSize: ['36px', 4, 5],
color: 'white',
mx: 0
}}
alt="Buildings"
/>
<Image
src="https://counterspell.hackclub.com/hero/bg2.png"
sx={{
width: ['100%', '100%', '100%'],
mb: ['0px', '0px', '0px'],
mr: ['0px', '0px', '0px'],
ml: ['0px', '0px', '0px'],
position: 'absolute',
zIndex: 0,
left: 0,
bottom: 0,
fontSize: ['36px', 4, 5],
color: 'white',
mx: 0
}}
alt="Buildings"
/>
</CardModel>
)
}