Run Prettier!

This commit is contained in:
Sam Poder 2023-08-10 15:29:03 -04:00
parent 5c51745b1e
commit 671ae4368f
10 changed files with 39 additions and 28 deletions

View file

@ -115,7 +115,14 @@ export default function Landing({ showButton, eventsCount }) {
</Box> </Box>
<ScrollHint /> <ScrollHint />
</Box> </Box>
<Box sx={{ position: 'absolute', bottom: 3, right: 2, display: ["none", "block"] }}> <Box
sx={{
position: 'absolute',
bottom: 3,
right: 2,
display: ['none', 'block']
}}
>
<Badge <Badge
variant="pill" variant="pill"
sx={{ sx={{

View file

@ -27,7 +27,7 @@ export default function Buttons({
data-effect="solid" data-effect="solid"
data-tip data-tip
sx={{ sx={{
background: primary || (overrideColor || 'rgb(255, 255, 255, 0.3)'), background: primary || overrideColor || 'rgb(255, 255, 255, 0.3)',
borderRadius: '100px', borderRadius: '100px',
border: 'none', border: 'none',
display: 'flex', display: 'flex',

View file

@ -20,20 +20,20 @@ export default function Haxidraw() {
highlight="#271932" highlight="#271932"
filter="brightness(0.8)" filter="brightness(0.8)"
> >
<Text variant="title" as="h3" sx={{ fontSize: ['36px', 4, 5] }}> <Text variant="title" as="h3" sx={{ fontSize: ['36px', 4, 5] }}>
Haxidraw Haxidraw
</Text> </Text>
<Grid columns={[1, 2]}> <Grid columns={[1, 2]}>
<Box> <Box>
<Text <Text
as="p" as="p"
variant="subtitle" variant="subtitle"
sx={{ zIndex: 2, position: 'relative' }} sx={{ zIndex: 2, position: 'relative' }}
> >
Haxidraw is a W.I.P. open source drawing machine and online editor, Haxidraw is a W.I.P. open source drawing machine and online editor,
designed to be a fun and beginner friendly designed to be a fun and beginner friendly introduction to digital
introduction to digital fabrication and generative art. fabrication and generative art.
</Text> </Text>
</Box> </Box>
<Box> <Box>
<Flex sx={{ flexDirection: 'column', mt: [3, 3, 4] }}> <Flex sx={{ flexDirection: 'column', mt: [3, 3, 4] }}>
@ -69,4 +69,4 @@ export default function Haxidraw() {
</Grid> </Grid>
</CardModel> </CardModel>
) )
} }

View file

@ -113,7 +113,12 @@ export default function Slack({ data, slackKey, events }) {
<Buttons id="13" link="/slack" icon="slack" primary="purple"> <Buttons id="13" link="/slack" icon="slack" primary="purple">
Join our Slack Join our Slack
</Buttons> </Buttons>
<Grid sx={{ zIndex: 2, display: data?.chats_channels_count_1d > 0 ? 'block' : 'none' }}> <Grid
sx={{
zIndex: 2,
display: data?.chats_channels_count_1d > 0 ? 'block' : 'none'
}}
>
<Box <Box
sx={{ sx={{
background: 'rgb(0,0,0,0.6)', background: 'rgb(0,0,0,0.6)',

View file

@ -74,7 +74,7 @@ const hoverColor = name =>
slate: 'black', slate: 'black',
black: 'slate', black: 'slate',
primary: 'error' primary: 'error'
}[name] || 'black') })[name] || 'black'
const slide = keyframes({ const slide = keyframes({
from: { transform: 'translateY(-25%)', opacity: 0 }, from: { transform: 'translateY(-25%)', opacity: 0 },

View file

@ -19,7 +19,11 @@ const JoinForm = ({ sx = {} }) => {
clearOnSubmit: 5000, clearOnSubmit: 5000,
method: 'POST', method: 'POST',
initData: router.query.continent initData: router.query.continent
? { continent: router.query.continent, reason: router.query.reason, event: router.query.event } ? {
continent: router.query.continent,
reason: router.query.reason,
event: router.query.event
}
: { reason: router.query.reason, event: router.query.event } : { reason: router.query.reason, event: router.query.event }
}) })
@ -28,7 +32,6 @@ const JoinForm = ({ sx = {} }) => {
const useWaitlist = process.env.NEXT_PUBLIC_OPEN !== 'true' const useWaitlist = process.env.NEXT_PUBLIC_OPEN !== 'true'
return ( return (
<Card sx={{ maxWidth: 'narrow', mx: 'auto', label: { mb: 3 }, ...sx }}> <Card sx={{ maxWidth: 'narrow', mx: 'auto', label: { mb: 3 }, ...sx }}>
<form {...formProps}> <form {...formProps}>
{eventReferrer && ( {eventReferrer && (
@ -42,21 +45,17 @@ const JoinForm = ({ sx = {} }) => {
textAlign: 'center' textAlign: 'center'
}} }}
> >
<Text variant='headline' sx={{ fontSize: 3 }}> <Text variant="headline" sx={{ fontSize: 3 }}>
{eventReferrer === "onboard" ? ( {eventReferrer === 'onboard'
"We can't wait to see your PCB!" ? "We can't wait to see your PCB!"
): ( : `We can't wait to see you at ${eventReferrer}!`}
`We can't wait to see you at ${eventReferrer}!`
)}
</Text> </Text>
<br /> <br />
<Text variant='subtitle' sx={{ fontSize: 2 }}> <Text variant="subtitle" sx={{ fontSize: 2 }}>
<i> In the meantime, we'll be hanging around in the Slack </i> <i> In the meantime, we'll be hanging around in the Slack </i>
</Text> </Text>
</Box> </Box>
)} )}
<Grid columns={[1, 2]} gap={1} sx={{ columnGap: 2 }}> <Grid columns={[1, 2]} gap={1} sx={{ columnGap: 2 }}>
<Label> <Label>
@ -112,7 +111,6 @@ const JoinForm = ({ sx = {} }) => {
<option value="tertiary">Tertiary Education (18+)</option> <option value="tertiary">Tertiary Education (18+)</option>
</Select> </Select>
</Label> </Label>
</Grid> </Grid>
<Label> <Label>
Why do you want to join the Hack Club Slack? Why do you want to join the Hack Club Slack?

View file

@ -79,7 +79,7 @@
"description": "Join 1k teens designing PCBs, learning hardware, and building electronics", "description": "Join 1k teens designing PCBs, learning hardware, and building electronics",
"img": "https://cloud-jrox24mrn.vercel.app/orpheus_leap_micro_final.png", "img": "https://cloud-jrox24mrn.vercel.app/orpheus_leap_micro_final.png",
"link": "/onboard" "link": "/onboard"
}, },
{ {
"background": "dark", "background": "dark",
"titleColor": "blue", "titleColor": "blue",

View file

@ -57,7 +57,9 @@ export default async function handler(req, res) {
}) })
.catch(error => { .catch(error => {
console.log(error) console.log(error)
res.writeHead(500, { Location: `/bank/apply?step=3&airtable-error=${error}`}) res.writeHead(500, {
Location: `/bank/apply?step=3&airtable-error=${error}`
})
}) })
} else { } else {
res.status(405).json({ status: 'error', error: 'Must send POST request' }) res.status(405).json({ status: 'error', error: 'Must send POST request' })

View file

@ -753,7 +753,7 @@ function Page({
gameImage={gameImage} gameImage={gameImage}
gameImage1={gameImage1} gameImage1={gameImage1}
/> />
<Haxidraw/> <Haxidraw />
<Sinerider delay={200} stars={stars.sinerider.stargazerCount} /> <Sinerider delay={200} stars={stars.sinerider.stargazerCount} />
<Box as="section" id="sprig"> <Box as="section" id="sprig">
<SprigConsole <SprigConsole

View file

@ -93,7 +93,6 @@ export default function Team() {
name="Christina Asquith" name="Christina Asquith"
teamRole="Co-founder and COO" teamRole="Co-founder and COO"
text="With more than a decade of experience in starting and leading organizations, Christina has built global teams and raised millions of dollars. She has 20 years experience as a journalist, including reporting for The New York Times from Iraq. She has an MA in education, and taught as a public school teacher in 2000, which inspired her book “The Emergency Teacher.”" text="With more than a decade of experience in starting and leading organizations, Christina has built global teams and raised millions of dollars. She has 20 years experience as a journalist, including reporting for The New York Times from Iraq. She has an MA in education, and taught as a public school teacher in 2000, which inspired her book “The Emergency Teacher.”"
/> />
</Grid> </Grid>
<Grid columns={[1, null, 3]} gap={2}> <Grid columns={[1, null, 3]} gap={2}>