Skip to content

Commit 02a692e

Browse files
authored
Merge pull request #1472 from phthallo/congressional-app-challenge
final (hopefully) updates to congressional app challenge page
2 parents dd2cf6e + a4e013b commit 02a692e

File tree

1 file changed

+52
-12
lines changed

1 file changed

+52
-12
lines changed

pages/congressional-app-challenge.js

+52-12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { useState } from 'react'
66
import Head from 'next/head'
77
import Nav from '../components/nav'
88
import Footer from '../components/footer'
9+
import Announcement from '../components/announcement'
910
import Screen from '../components/congressional-app-challenge/screen'
1011
import CustomButton from '../components/congressional-app-challenge/customButton'
1112
import Polaroid from '../components/congressional-app-challenge/polaroid'
@@ -164,11 +165,17 @@ function Page({ carouselCards }) {
164165
justifyContent: 'flex-end'
165166
}}
166167
>
168+
<Announcement
169+
copy="Build stupid s#!t. Get stupid prizes."
170+
caption="Join Scrapyard, a hackathon running in 60+ cities worldwide."
171+
href="https://scrapyard.hackclub.com/"
172+
imgSrc="https://cloud-a1rsaev4v-hack-club-bot.vercel.app/0favicon.png"
173+
/>
167174
<Box
168175
sx={{
169176
display: 'flex',
170177
flexDirection: 'row',
171-
alignContent: 'space-between'
178+
alignContent: 'space-between',
172179
}}
173180
>
174181
<Image
@@ -235,12 +242,12 @@ function Page({ carouselCards }) {
235242
</Box>
236243
</Box>
237244
</Box>
238-
<Box sx= {{width: "100vw", display: "flex", justifyContent: "center", alignItems: "center"}}>
245+
<Box sx= {{width: "100vw", display: "flex", flexGrow: 1, height: "100%", justifyContent: "center", alignItems: "center"}}>
239246
<a href = "#start">
240247
<Image
241248
src="/congressional-app-challenge/chevron.svg"
242249
alt="A chevron"
243-
sx={{ height: 40, marginTop: 60}}
250+
sx={{ height: 40, marginTop: 40, display: ["none", null, null, "inline"]}}
244251
/>
245252
</a>
246253
</Box>
@@ -287,19 +294,13 @@ function Page({ carouselCards }) {
287294
<Text variant="subtitle" sx={{ width: ['100%'] }}>
288295

289296
Hack Club has <Link as="a" href="https://hackclub.com/arcade">given away</Link> $100,000s of Framework Laptops, 3D printers, and Raspberry Pis in the past year.
290-
291-
<br /><br />
292-
297+
<br />
293298
We host dozens of really cool, unique hackathons on <Link as="a" href="https://zephyr.hackclub.com">trains</Link> and in <Link as="a" href="https://outernet.hackclub.com">forests</Link> for free.
294299

295300
<br /><br />
296301

297302
Hack Clubbers provide <Link as="a" href="https://hackclub.app">free website and Discord bot hosting</Link> with SSH access and send tens of thousands of messages every day helping each other on their projects in the Hack Club Slack.
298-
299-
<br /><br />
300-
301-
Join us as you work on your Congressional App Challenge project.
302-
<br /> <br />
303+
<br/><br/>
303304
<Text
304305
sx={{
305306
textDecoration: 'underline',
@@ -370,7 +371,7 @@ function Page({ carouselCards }) {
370371
</Text>
371372
<Box
372373
sx={{
373-
width: ['100%', null, '45%', '45%'],
374+
width: ['100%', null, '35%', '35%'],
374375
marginX: 'auto',
375376
paddingY: [0, null, null, 3]
376377
}}
@@ -384,6 +385,45 @@ function Page({ carouselCards }) {
384385
/>
385386
</Box>
386387
</Box>
388+
389+
<Heading
390+
as="h1"
391+
variant="title"
392+
id="start"
393+
sx={{
394+
paddingY: 3,
395+
textAlign: "right",
396+
textShadow: '2px 2px #413cf2, 4px 4px #facb2d, 6px 6px #e15ba6'
397+
}}
398+
>
399+
The Congressional App Challenge
400+
</Heading>
401+
<Box sx = {{textAlign: "right", display: "flex", flexDirection: ["column", null, null, "row"], rowGap: 3, columnGap: 5}}>
402+
<Box
403+
sx={{
404+
width: ['100%', null, '35%', '35%'],
405+
paddingY: [0, null, null, 3],
406+
marginX: "auto"
407+
}}
408+
>
409+
<Photo
410+
showAlt
411+
height="150px"
412+
width="150px"
413+
alt="The Congressional App Challenge"
414+
src="https://cloud-9e2cjx37b-hack-club-bot.vercel.app/0laptop.png"
415+
/>
416+
</Box>
417+
<Text variant="subtitle" sx={{width: ["100%"]}}>
418+
The <Link as="a" href = "https://congressionalappchallenge.us">Congressional App Challenge</Link> (CAC) is a nationwide coding competition for middle and high school students in the United States.
419+
<br/><br/>
420+
Winners from each congressional district are invited to Capitol Hill in Washington, D.C., for the annual <Link as="a" href="https://www.congressionalappchallenge.us/students/houseofcode/">#HouseOfCode</Link> event, where they showcase their apps to lawmakers and the tech community.
421+
<br/><br/>
422+
The competition is open to students of all skill levels and encourages creativity and innovation from participants.
423+
<br/><br/>
424+
Join us as you work on your Congressional App Challenge project.
425+
</Text>
426+
</Box>
387427
</Box>
388428
</Box>
389429
</Box>

0 commit comments

Comments
 (0)