-
Notifications
You must be signed in to change notification settings - Fork 170
/
index.js
1251 lines (1218 loc) · 40.8 KB
/
index.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
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
import {Badge, Box, Button, Card, Flex, Grid, Heading, Link, Text} from 'theme-ui'
import React, {useEffect, useRef, useState} from 'react'
import Head from 'next/head'
import {useRouter} from 'next/router'
import Meta from '@hackclub/meta'
import Nav from '../components/nav'
import BGImg from '../components/background-image'
import ForceTheme from '../components/force-theme'
import Footer from '../components/footer'
import Stage from '../components/stage'
import Carousel from '../components/index/carousel'
import Pizza from '../components/index/cards/pizza'
import Sprig from '../components/index/cards/sprig'
import Sinerider from '../components/index/cards/sinerider'
import SprigConsole from '../components/index/cards/sprig-console'
import Clubs from '../components/index/cards/clubs'
import Workshops from '../components/index/cards/workshops'
import HCB from '../components/index/cards/hcb'
import Hackathons from '../components/index/cards/hackathons'
import OuternetImgFile from '../public/home/outernet-110.jpg'
import Announcement from '../components/announcement'
import Konami from 'react-konami-code'
import JSConfetti from 'js-confetti'
import Secret from '../components/secret'
import MailingList from '../components/index/cards/mailing-list'
import Slack from '../components/index/cards/slack'
import Icon from '../components/icon'
import GitHub from '../components/index/github'
import Photo from '../components/photo'
import Comma from '../components/comma'
import Haxidraw from '../components/index/cards/haxidraw'
import Onboard from '../components/index/cards/onboard'
/** @jsxImportSource theme-ui */
function Page({
hackathonsData,
bankData,
slackData,
gitHubData,
gitHubDataLength,
consoleCount,
stars,
// githubData2,
dataPieces,
game,
gameTitle,
events,
carouselCards,
context
}) {
let [gameImage, setGameImage] = useState('')
let [gameImage1, setGameImage1] = useState('')
let [reveal, setReveal] = useState(false)
const [hover, setHover] = useState(true)
let [github, setGithub] = useState(0)
let [slackKey, setSlackKey] = useState(0)
let [key, setKey] = useState(0)
const { asPath } = useRouter()
let jsConfetti = useRef()
useEffect(() => {
jsConfetti.current = new JSConfetti()
window.kc = `In the days of old, when gaming was young \nA mysterious code was found among \nA sequence of buttons, pressed in a row \nIt unlocked something special, we all know \n\nUp, up, down, down, left, right, left, right \nB, A, Start, we all have heard it's plight \nIn the 8-bit days, it was all the rage \nAnd it still lives on, with time, it will never age \n\nKonami Code, it's a legend of days gone by \nIt's a reminder of the classics we still try \nNo matter the game, no matter the system \nThe code will live on, and still be with them \n\nSo the next time you play, take a moment to pause \nAnd remember the code, and the Konami cause \nIt's a part of gaming's history, and a part of our lives \nLet's keep it alive, and let the Konami Code thrive!\n`
window.paper = `Welcome, intrepid hacker! We'd love to have you in our community. Get your invite at hack.af/slack. Under "Why do you want to join the Hack Club Slack?" add a 🦄 and we'll ship you some exclusive stickers! `
}, [])
const easterEgg = () => {
alert('Hey, you typed the Konami Code!')
jsConfetti.current.addConfetti({
confettiColors: [
// Hack Club colours!
'#ec3750',
'#ff8c37',
'#f1c40f',
'#33d6a6',
'#5bc0de',
'#338eda',
'#a633d6'
]
})
}
useEffect(() => {
if (reveal && !hover) {
setTimeout(() => {
setReveal(false)
}, 2000)
}
}, [reveal, hover])
const [count, setCount] = useState(0)
let images = [
{ alt: 'Map of Hack Clubs around the world', src: '/home/map.png' },
{
alt: 'Hack Clubbers at SpaceX HQ in LA',
src: '/home/zephyr-spacex.jpeg'
},
{
alt: 'MA Hacks, Hack Clubber organized hackathon',
src: '/hackathons/mahacks.jpeg'
},
{ alt: 'AMA with Sal Khan', src: '/home/ama.png' },
{ alt: 'Hack Clubbers at Flagship, 2019', src: '/home/flagship_4.jpg' }
]
// janky right now and does not show last image
useEffect(() => {
console.log(
`White sheets of paper\nWaiting to be printed on\nA blank console waits`
)
if (count === images.length - 1) {
setCount(0)
}
}, [count, images.length])
return (
<>
<Meta
as={Head}
title="A Home for High School Hackers"
description="Hack Club is a global nonprofit network of high school makers & student-led coding clubs where young people build the agency, the network, & the technical talent to think big & do big things in the world."
image="https://cloud-lgl7kg862-hack-club-bot.vercel.app/0start__1_.png"
/>
<Head>
<meta
property="og:logo"
content="https://assets.hackclub.com/icon-rounded.png"
size="512x512"
/>
</Head>
<ForceTheme theme="light" />
<Nav />
<Box
as="main"
sx={{
overflowX: 'hidden',
position: 'relative'
}}
>
<Secret
reveal={reveal}
onMouseEnter={() => {
setHover(true)
}}
onMouseOut={() => {
setHover(false)
}}
/>
<Konami action={easterEgg}>
{"Hey, I'm an Easter Egg! Look at me!"}
</Konami>
<Box
as="header"
sx={{
bg: 'dark',
pt: [5, 6],
pb: [2, 3],
textAlign: 'left',
position: 'relative',
overflowX: 'hidden'
}}
>
<BGImg
src={OuternetImgFile}
alt="Hack Clubbers gather in the great outdoors of Cabot, VT, for an experience unlike any other: Outernet. 📸 Photo by Matt Gleich, Hack Clubber in NH!"
priority
gradient="linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.45))"
/>
<Announcement
copy="Hop OnBoard and create your first PCB"
caption="Join 1,000 others to create your first circuit board."
href="https://hackclub.com/onboard/"
iconLeft="idea"
color="primary"
/>
<Box
sx={{
width: '90vw',
maxWidth: [null, 'layout'],
position: 'relative',
mx: 'auto',
py: [4, 4, 4],
textShadow: 'text'
}}
>
<Text
variant="eyebrow"
sx={{
color: 'sunken',
pb: 2,
position: 'relative',
display: 'block'
}}
as="h4"
>
Welcome to Hack Club
</Text>
<Heading>
<Text
as="h1"
variant="title"
sx={{
color: 'white',
mb: [3, 4],
zIndex: 1,
textAlign: 'left',
fontSize: ['42px', '52px', '64px'],
lineHeight: 1.2,
width: '100%'
}}
>
We are <Comma>{slackData.total_members_count}</Comma>{' '}
<Text
sx={{
color: 'transparent',
ml: 2,
mr: 3,
whiteSpace: 'nowrap'
}}
>
<Text
onClick={() => {
setHover(false)
!reveal ? setReveal(true) : setReveal(false)
}}
sx={{
// lineHeight: 0.875,
px: 2,
backgroundColor: 'red',
position: 'absolute',
borderRadius: 10,
transform: 'rotate(-3deg) translateY(-5px)',
color: 'white',
whiteSpace: 'nowrap',
textDecoration: 'none',
'&:hover': {
cursor: 'pointer'
}
}}
aria-hidden="true"
>
teen hackers
</Text>
teen hackers
</Text>
<br sx={{ display: ['inline', 'none', 'none'] }} /> from around
the world who code together
</Text>
<Button
variant="ctaLg"
as="a"
href="/slack"
mt={[3, 0, 0]}
sx={{ transformOrigin: 'center left' }}
>
Join our community
</Button>
</Heading>
</Box>
<Box
sx={{
display: 'flex',
justifyContent: ['flex-start', 'flex-start', 'flex-end'],
marginRight: 2,
mt: [4, 3, 1]
}}
>
<Badge
as="a"
href="https://outernet.hackclub.com/"
target="_blank"
rel="noopener"
variant="pill"
sx={{
zIndex: '1',
bg: 'black',
color: 'white',
opacity: 1,
textDecoration: 'none',
fontWeight: 'normal',
':hover': { opacity: 1 },
transition: '0.3s ease'
// mixBlendMode: 'multiply'
}}
title="📸 Photo by Matt Gleich, Hack Clubber in NH!"
>
Hackers at Outernet in Vermont
</Badge>
</Box>
</Box>
<Box as="section" sx={{ py: [4, 5, '82px'], color: 'black' }}>
<Box
sx={{
position: 'relative',
width: '90vw',
maxWidth: 'layout',
margin: 'auto'
}}
>
<Text
variant="title"
as="h1"
sx={{ fontSize: ['36px', '48px', '56px'] }}
>
Discover the{' '}
<Text
as="span"
sx={{
borderRadius: 'default',
px: 1,
mx: 0,
whiteSpace: ['wrap', 'nowrap', 'nowrap'],
color: 'white',
background: theme => theme.util.gx('red', 'orange'),
'-webkit-background-clip': 'text',
'-webkit-text-fill-color': 'transparent'
}}
>
joy of code
</Text>
, together.
</Text>
<Text
variant="subtitle"
as="p"
sx={{
fontSize: ['18px', '20px', '22px'],
pb: [3, 3, 4],
maxWidth: '62ch'
}}
>
Every day, thousands of Hack Clubbers gather online and
in-person to make things with code. Whether you’re a beginner
programmer or have years of experience, there’s a place for you at
Hack Club. Read about our{' '}
<Link href="/philosophy" target="_blank" rel="noopener">
hacker ethic
</Link>
.
</Text>
<Grid columns={[1, 1, 1, '2.5fr 3fr']} gap={[0, 3, 4]} pt={[3, 4]}>
<Box
sx={{
position: 'relative',
height: ['300px', '300px', '300px', '100%'],
py: [3, 3, 3, 0]
}}
onClick={() => {
setCount(count + 1)
}}
>
<Box
sx={{ position: 'absolute', width: '100%', height: '100%' }}
>
<Box
sx={{
position: 'relative',
height: ['300px', '300px', '100%'],
figure: {
position: 'absolute',
transform:
count % 2 === 0 ? 'rotate(3deg)' : 'rotate(-3deg)',
height: '85%',
width: ['80%', '80%', '70%', '100%'],
marginLeft: ['10%', '10%', '15%', '0']
},
zIndex: 3,
'&:hover': {
cursor: 'pointer'
}
}}
>
<Photo
src={
count === images.length - 2
? images[0].src
: images.length - 1
? images[1].src
: images[count + 2].src
}
alt={
count === images.length - 2
? images[0].alt
: images.length - 1
? images[1].alt
: images[count + 2].alt
}
width={3000}
height={2550}
showAlt
/>
</Box>
</Box>
<Box
sx={{ position: 'absolute', width: '100%', height: '100%' }}
>
<Box
sx={{
position: 'relative',
height: ['300px', '300px', '100%'],
figure: {
position: 'absolute',
transform:
count % 2 === 0 ? 'rotate(-3deg)' : 'rotate(3deg)',
height: '85%',
width: ['80%', '80%', '70%', '100%'],
marginLeft: ['10%', '10%', '15%', '0']
},
zIndex: 3,
'&:hover': {
cursor: 'pointer'
}
}}
>
<Photo
src={
count === images.length - 1
? images[0].src
: images[count + 1].src
}
alt={
count === images.length - 1
? images[0].alt
: images[count + 1].alt
}
width={3000}
height={2550}
showAlt
/>
</Box>
</Box>
<Box
sx={{ position: 'absolute', width: '100%', height: '100%' }}
>
<Box
sx={{
position: 'relative',
height: ['300px', '300px', '100%'],
figure: {
position: 'absolute',
transform:
count % 2 === 0 ? 'rotate(3deg)' : 'rotate(-3deg)',
height: '85%',
width: ['80%', '80%', '70%', '100%'],
marginLeft: ['10%', '10%', '15%', '0']
},
zIndex: 3,
'&:hover': {
cursor: 'pointer'
}
}}
>
<Photo
src={images[count].src}
alt={images[count].alt}
width={3000}
height={2550}
showAlt
/>
</Box>
</Box>
</Box>
<Grid
columns="1fr"
sx={{
gridColumnGap: 3,
span: {
width: 36,
height: 36,
borderRadius: 24,
display: 'inline-block',
fontSize: 2,
lineHeight: '30px',
textAlign: 'center',
fontWeight: 'bold',
border: '3px solid currentColor'
},
p: { my: 0, fontSize: ['18px', '20px', '22px'] },
strong: { display: 'block', fontSize: ['22px', 2, 3] }
}}
as="ul"
>
<Grid
columns="auto 1fr"
sx={{
transitionDuration: '0.52s',
py: 2,
px: 2,
color: 'inherit',
position: 'relative',
textDecoration: 'none',
borderRadius: 'extra'
}}
as="li"
>
<Text as="span" color="red" aria-hidden="true">
1
</Text>
<Text as="p" variant="subtitle">
<strong sx={{ mb: 1 }}>
Connect with other teenage coders
</strong>
Have a coding question? Looking for project feedback? You’ll
find hundreds of fabulous people to talk to in our global{' '}
<Link href="/slack" target="_blank" rel="noopener">
Slack{' '}
</Link>
(like Discord), active at all hours.
</Text>
</Grid>
<Grid
columns="auto 1fr"
sx={{
transitionDuration: '0.52s',
py: 2,
px: 2,
color: 'inherit',
position: 'relative',
textDecoration: 'none',
borderRadius: 'extra'
}}
as="li"
>
<Text as="span" color="orange" aria-hidden="true">
2
</Text>
<Text
as="p"
variant="subtitle"
sx={{
mt: 0
}}
>
<strong sx={{ mb: 1 }}>
Build open source learning tools
</strong>
We build large open source projects together (
<Link href="https://github.com/hackclub" target="_blank">
3k+ PRs a year
</Link>
) like this website, a game engine, daily streak system, and
more!
</Text>
</Grid>
<Grid
columns="auto 1fr"
sx={{
transitionDuration: '0.52s',
py: 2,
px: 2,
color: 'inherit',
position: 'relative',
textDecoration: 'none',
borderRadius: 'extra'
}}
as="li"
>
<Text as="span" color="yellow" aria-hidden="true">
3
</Text>
<Text as="p" variant="subtitle">
<strong sx={{ mb: 1 }}>Gather IRL with other makers</strong>
Meet other Hack Clubbers in your community to build
together at one of the 400+{' '}
<Link href="/clubs" target="_blank" rel="noopener">
Hack Clubs
</Link>{' '}
and{' '}
<Link href="/hackathons" target="_blank" rel="noopener">
high school hackathons
</Link>
.
</Text>
</Grid>
</Grid>
</Grid>
</Box>
</Box>
<Carousel cards={carouselCards} />
<Box
as="section"
sx={{
background: 'snow',
backgroundImage: `url('https://icons.hackclub.com/api/icons/0xF4F7FB/glyph:rep.svg')`,
backgroundSize: '40px 40px',
backgroundRepeat: 'repeat',
backgroundPosition: '10% 10%'
}}
>
<Box
sx={{
position: 'relative',
width: '90vw',
maxWidth: 'layout',
margin: 'auto'
}}
py={[4, 4, 5]}
>
<Box>
<Text variant="title" sx={{ fontSize: ['36px', 4, 5] }}>
Connect with{' '}
<Text
as="span"
sx={{
borderRadius: 'default',
px: 2,
mx: 0,
whiteSpace: 'nowrap',
color: 'white',
bg: 'red'
}}
>
builders
</Text>{' '}
from around the world
</Text>
<Text
variant="subtitle"
as="p"
sx={{ fontSize: ['18px', '20px', '22px'], pb: [3, 0, 0] }}
>
We gather both online and in-person to share our love of code
and make things together!
</Text>
</Box>
<Pizza />
<Slack slackKey={slackKey} data={slackData} events={events} />
</Box>
</Box>
<Box>
<Box py={[4, 5, '82px']}>
<Box
sx={{
width: '90vw',
maxWidth: 'layout',
margin: 'auto',
position: 'relative'
}}
>
<Flex
sx={{
flexDirection: ['column', 'column', 'column', 'row'],
justifyContent: gitHubData ? 'center' : 'flex-start',
alignItems: [
'flex-start',
'flex-start',
'flex-start',
'center'
],
gap: '10px'
}}
>
<Box sx={{ mb: [3, 0, 0] }}>
<Text
variant="title"
as="h2"
sx={{
fontSize: ['36px', '48px', '56px'],
maxWidth: '20ch'
}}
>
We build{' '}
<Text
as="span"
sx={{
borderRadius: 'default',
mx: 0,
whiteSpace: 'nowrap',
color: 'orange'
}}
>
open source
</Text>{' '}
games and tools together
</Text>
<Text
variant="subtitle"
as="p"
sx={{
fontSize: ['18px', '20px', '22px'],
pb: [3, 0, 0],
maxWidth: '60ch'
}}
>
In collaboration with engineers on the Hack Club team,
Hack Clubbers build learning tools for each other. Get
involved with these projects by building something with our
tools or contribute to the tools themselves.
</Text>
</Box>
{gitHubData && (
<Flex
sx={{
flexDirection: ['row', null, null, 'column'],
gap: [1, 2, 2],
alignItems: ['center', 'center', 'center', 'flex-start'],
flexWrap: 'wrap',
width: ['100%', null, null, 'fit-content'],
'& > a:nth-child(n+4)': {
display: ['none', null, null, 'flex']
}
}}
>
<Text
sx={{
fontSize: ['11px', '11px', '14px'],
textAlign: 'left',
lineHeight: '90%',
fontStyle: 'italic',
width: 'fit-content'
}}
>
Live from GitHub
</Text>
{gitHubData
.filter(data => !data.user.endsWith('[bot]'))
.slice(0, 4)
.map((data, key) => {
return (
<GitHub
type={data.type}
img={data.userImage}
user={data.user}
time={data.time}
url={data.url}
message={data.message}
key={key}
/>
)
})}
</Flex>
)}
</Flex>
<Sprig
delay={100}
stars={stars.sprig.stargazerCount}
game={game}
gameImage={gameImage}
gameImage1={gameImage1}
/>
<Onboard stars={stars.onboard.stargazerCount} delay={100} />
<Haxidraw stars={stars.blot.stargazerCount} delay={100} />
<Sinerider delay={200} stars={stars.sinerider.stargazerCount} />
<Box as="section" id="sprig">
<SprigConsole
delay={300}
stars={stars.sprig.stargazerCount}
consoleCount={consoleCount}
/>
</Box>
<Workshops delay={400} stars={stars.hackclub.stargazerCount} />
</Box>
</Box>
<Box
sx={{
position: 'relative',
background: 'snow',
backgroundImage: `url('https://icons.hackclub.com/api/icons/0xF4F7FB/glyph:rep.svg')`,
backgroundSize: '40px 40px',
backgroundRepeat: 'repeat',
backgroundPosition: '10% 10%'
// '&:hover': {
// backgroundImage: `url('https://icons.hackclub.com/api/icons/0x000000/glyph:rep.svg')`
// }
}}
>
<Box
sx={{
position: 'absolute',
width: '100%',
height: '100%',
top: 0,
left: 0
}}
>
{}
</Box>
<Box
py={[4, 5, '82px']}
sx={{
width: '90vw',
maxWidth: 'layout',
margin: 'auto',
position: 'relative'
}}
>
<Box>
<Text
variant="title"
as="h2"
sx={{
fontSize: ['36px', '48px', '72px'],
width: '18ch',
textAlign: 'center',
margin: 'auto'
}}
>
Find your{' '}
<Text
as="span"
sx={{
borderRadius: 'default',
mx: 0,
whiteSpace: 'nowrap',
color: 'orange'
}}
>
IRL community.
</Text>
</Text>
<Text
variant="subtitle"
as="p"
sx={{
fontSize: ['18px', '24px', '32px'],
margin: 'auto',
pt: 2,
textAlign: 'center'
}}
>
Thousands of Hack Clubbers organize and participate in
hackathons and after school coding clubs.
</Text>
</Box>
<Clubs />
<Hackathons
delay={400}
data={hackathonsData}
stars={stars.hackathons.stargazerCount}
/>
{/* <Events events={events} /> */}
<HCB data={bankData} />
</Box>
</Box>
</Box>
<Box py={[4, 5, '82px']}>
<Box
sx={{
width: '90vw',
maxWidth: 'layout',
margin: 'auto'
}}
>
<Box>
<Text
as="p"
variant="eyebrow"
sx={{ fontSize: ['22px', 2, 3], textAlign: 'center' }}
>
We've got a lot going on - Let’s recap
</Text>
<Text
variant="title"
as="h2"
sx={{
fontSize: ['36px', '48px', '72px'],
width: '16ch',
textAlign: 'center',
margin: 'auto'
}}
>
Find your second home at{' '}
<Text
as="span"
sx={{
borderRadius: 'default',
ml: 0,
whiteSpace: ['wrap', 'nowrap'],
background: theme => theme.util.gx('red', 'orange'),
'-webkit-background-clip': 'text',
'-webkit-text-fill-color': 'transparent'
}}
>
Hack Club
</Text>
</Text>
</Box>
<Grid
pt={[3, 4]}
pb={[4, 5]}
gap={3}
columns={[1, 2, 3]}
sx={{
textAlign: 'left',
'> a, > div': {
borderRadius: 'extra',
boxShadow: 'elevated',
p: [3, null, 4]
},
span: {
boxShadow:
'-2px -2px 6px rgba(255,255,255,0.125), inset 2px 2px 6px rgba(0,0,0,0.1), 2px 2px 8px rgba(0,0,0,0.0625)'
},
svg: { fill: 'currentColor' }
}}
>
<Card
as="a"
href="/slack"
target="_blank"
rel="noopener"
variant="interactive"
sx={{
background:
'linear-gradient(32deg, rgba(51, 142, 218, 0.9) 0%, rgba(51, 214, 166, 0.9) 100%)',
color: 'white',
svg: { color: 'rgb(51, 142, 218)' },
position: 'relative',
'.icon': {
transition:
'transform 0.25s ease-in-out, opacity 0.25s ease-in-out'
},
':hover,:focus': {
'.icon': {
transform: 'translateX(28px) translateY(-28px)',
opacity: 0
}
}
}}
>
<Icon
glyph="external"
size={32}
className="icon"
sx={{
position: 'absolute',
top: 2,
right: 2,
opacity: 0.3,
fontSize: ['18px', '20px', '22px'],
zIndex: 3,
color: 'white !important'
}}
/>
<Stage
icon="slack"
color="white"
name="Join Our Slack"
desc="Connect with other technical teenagers on Slack and hack on things together."
sx={{
p: {
fontSize: ['18px', '20px', '22px']
},
h3: {
fontSize: ['22px', 2, 3]
}
}}
/>
</Card>
<Card
sx={{
background:
'linear-gradient(-32deg, #6f31b7 14%, #fb558e 82%)',
color: 'white',
svg: { color: '#fb558e' },
textDecoration: 'none',
position: 'relative',
'.icon': {
transition:
'transform 0.25s ease-in-out, opacity 0.25s ease-in-out'
},
':hover,:focus': {
'.icon': {
transform: 'translateX(28px) translateY(-28px)',
opacity: 0
}
}
}}
as="a"
href="https://github.com/hackclub"
variant="interactive"
target="_blank"
rel="noopener"
>
<Icon
glyph="external"
size={32}
className="icon"
sx={{
position: 'absolute',
top: 2,
right: 2,
opacity: 0.3,
fontSize: [1, '16px', '20px'],
zIndex: 3,
color: 'white !important'
}}
/>
<Stage
icon="github"