site/pages/night.js
2024-01-26 17:26:17 +01:00

148 lines
4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {
Box,
Button,
Card,
Container,
Grid,
Heading,
Image,
Link,
Text
} from 'theme-ui'
import Meta from '@hackclub/meta'
import Head from 'next/head'
import NextLink from 'next/link'
import Nav from '../components/nav'
import SlideDown from '../components/slide-down'
import FadeIn from '../components/fade-in'
import Icon from '../components/icon'
import Footer from '../components/footer'
import { keyframes } from '@emotion/react'
const floating = keyframes`
from {
transform: translateY(20px);
}
to {
transform: translateY(-20px);
}
`
// (msw) Credit for this totally goes to https://codepen.io/WebSonick/pen/vjmgu
const twinkling = keyframes`
from { background-position: 0 0; }
to { background-position: -10000px 5000px; }
`
const color = '#50E3C2'
const Page = () => (
<>
<Meta
as={Head}
title="Hack Night"
description="The Hack Club community regularly gathers on Slack Huddles and Zoom calls to show off what were working on & hang out."
image="https://cloud-r4rrjh2z8-hack-club-bot.vercel.app/52020-07-25_52g0nw40p2b00dh39mt93xq5ubku6yaj.jpeg"
/>
<Nav color={color} dark />
<Box
as="main"
sx={{
pt: [5, 6],
pb: 5,
bg: 'dark',
color: 'muted',
textAlign: 'center',
backgroundImage:
'url(https://cloud-r4rrjh2z8-hack-club-bot.vercel.app/62020-07-24_stars.svg)',
backgroundSize: '512px auto'
}}
>
<Box
sx={{
position: 'absolute',
top: 0,
left: 0,
right: 0,
bottom: 0,
width: '100%',
height: '100%',
display: 'block',
background:
'transparent url(https://cloud-r4rrjh2z8-hack-club-bot.vercel.app/72020-07-24_afnkcwju2hfkbrkc1ee0h5a5y72a2r5f.png) repeat top center',
animation: `${twinkling} 200s linear infinite`
}}
></Box>
<SlideDown
variant="layout.narrow"
duration={768}
sx={{ position: 'relative' }}
>
<Heading
as="h1"
variant="ultratitle"
mt={3}
sx={{
color,
textTransform: 'uppercase',
WebkitTextStroke: 'white',
WebkitTextStrokeWidth: '2px',
WebkitTextFillColor: 'transparent',
filter: `drop-shadow(0 0 1px ${color}) drop-shadow(0 0 2px ${color}) drop-shadow(0 0 6px ${color})`
}}
>
Hack Night
</Heading>
<Text as="p" variant="subtitle">
The Hack Club community regularly gathers on Zoom or Huddles. Its a
chance to meet new friends, livestream what youre hacking on, or just
hang out on a chill call.
</Text>
<Text as="p" variant="subtitle">
Hack nights are hosted regularly by Hack Clubbers. Come join or start
an impromptu Hack session on{' '}
<NextLink href="/slack" passHref>
<Link sx={{ color, opacity: 0.75 }}>#hack-night</Link>
</NextLink>
!
</Text>
</SlideDown>
<Container
variant="narrow"
sx={{
position: 'relative',
width: '100%',
maxWidth: 512,
minHeight: 512,
mx: 'auto',
mt: [4, 5],
img: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
maxWidth: '100%'
}
}}
>
<Image
src="https://cloud-r4rrjh2z8-hack-club-bot.vercel.app/82020-07-24_gbetd0kafcxjp2e5hkv4w9u3m40pmmmt.png"
alt="Moon background"
width={512}
/>
<Image
src="https://cloud-r4rrjh2z8-hack-club-bot.vercel.app/92020-07-24_zdd8ycnkp9q0bbf1fj8a1amjv3zndufz.png"
alt="Illustration of Orpheus with a moon"
width={512}
sx={{
zIndex: 1,
animation: `${floating} cubic-bezier(.55,.03,.43,.98) 8s infinite alternate`
}}
/>
</Container>
</Box>
<Footer dark />
</>
)
export default Page