mirror of
https://github.com/System-End/site.git
synced 2026-04-19 22:05:11 +00:00
Move AMA pages into AMAs folder (#608)
This commit is contained in:
parent
731fd525c8
commit
45ec92d592
5 changed files with 80 additions and 93 deletions
|
|
@ -78,6 +78,9 @@ const nextConfig = {
|
|||
{ source: '/hack_camp/', destination: '/camp/', permanent: true },
|
||||
{ source: '/branding/', destination: '/brand/', permanent: true },
|
||||
{ source: '/ama/', destination: '/amas/', permanent: false },
|
||||
{ source: '/geohot', destination: '/amas/geohot/', permanent: false },
|
||||
{ source: '/sal', destination: '/amas/sal/', permanent: false },
|
||||
{ source: '/vitalik', destination: '/amas/vitalik/', permanent: false },
|
||||
{
|
||||
source: '/open-source/',
|
||||
destination: '/opensource/',
|
||||
|
|
|
|||
|
|
@ -3,20 +3,19 @@ import Head from 'next/head'
|
|||
import Meta from '@hackclub/meta'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import tt from 'tinytime'
|
||||
import Particle from '../components/particles'
|
||||
import { thousands } from '../lib/members'
|
||||
import { thousands } from '../../lib/members'
|
||||
|
||||
export default function Geohot() {
|
||||
let minutes = 1
|
||||
let milliseconds = minutes * 60000
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
setTimeout(function () {
|
||||
window.location.reload()
|
||||
console.log('hi')
|
||||
}, milliseconds);
|
||||
}, milliseconds)
|
||||
}
|
||||
|
||||
|
||||
const calculateTimeLeft = () => {
|
||||
const difference = +new Date(`2022-11-11T23:00:00.000Z`) - +new Date()
|
||||
|
||||
|
|
@ -150,7 +149,7 @@ export default function Geohot() {
|
|||
bg: '#0f0f0f',
|
||||
position: 'relative',
|
||||
zIndex: '0',
|
||||
overflow: 'hidden',
|
||||
overflow: 'hidden'
|
||||
}}
|
||||
>
|
||||
<Link href="https://hackclub.com" target="_blank" color="inherit">
|
||||
|
|
@ -257,8 +256,8 @@ export default function Geohot() {
|
|||
fontWeight: 'bold'
|
||||
})}
|
||||
>
|
||||
The AMA has ended. Thank you to George Hotz and everyone for joining
|
||||
us!
|
||||
The AMA has ended. Thank you to George Hotz and everyone for
|
||||
joining us!
|
||||
</Text>
|
||||
<Box>
|
||||
<Button
|
||||
|
|
@ -301,9 +300,9 @@ export default function Geohot() {
|
|||
Hack Club
|
||||
</Link>{' '}
|
||||
is a global community of high school makers & student-led coding
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+ teenagers
|
||||
learning to code & building amazing projects, & you’ll fit right
|
||||
in.
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+
|
||||
teenagers learning to code & building amazing projects, & you’ll
|
||||
fit right in.
|
||||
</Text>
|
||||
</Box>
|
||||
) : (
|
||||
|
|
@ -330,9 +329,9 @@ export default function Geohot() {
|
|||
Hack Club
|
||||
</Link>{' '}
|
||||
is a global community of high school makers & student-led coding
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+ teenagers
|
||||
learning to code & building amazing projects, & you’ll fit right
|
||||
in.
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+
|
||||
teenagers learning to code & building amazing projects, & you’ll
|
||||
fit right in.
|
||||
</Text>
|
||||
</Box>
|
||||
)}
|
||||
|
|
@ -344,10 +343,9 @@ export default function Geohot() {
|
|||
right: '0',
|
||||
marginRight: ['-100px', '-50px', '-50px'],
|
||||
width: ['100vw', '70vw', '40vw'],
|
||||
zIndex: '-30',
|
||||
zIndex: '-30'
|
||||
}}
|
||||
>
|
||||
|
||||
{timer.length ? (
|
||||
<>
|
||||
<Image
|
||||
|
|
@ -377,16 +375,17 @@ export default function Geohot() {
|
|||
)}
|
||||
</Box>
|
||||
<Image
|
||||
src={`/ama/geohotBg.svg`}
|
||||
width={1500}
|
||||
height={750}
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
bottom: '5vw',
|
||||
left: ['10vw', '20vw'],
|
||||
zIndex: '-2000'
|
||||
}}
|
||||
/>
|
||||
src={`/ama/geohotBg.svg`}
|
||||
alt="Grid pattern"
|
||||
width={1500}
|
||||
height={750}
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
bottom: '5vw',
|
||||
left: ['10vw', '20vw'],
|
||||
zIndex: '-2000'
|
||||
}}
|
||||
/>
|
||||
</Box>
|
||||
</>
|
||||
)
|
||||
|
|
@ -1,27 +1,14 @@
|
|||
import {
|
||||
Avatar,
|
||||
Box,
|
||||
Button,
|
||||
Card,
|
||||
Container,
|
||||
Flex,
|
||||
Grid,
|
||||
Heading,
|
||||
Link,
|
||||
Text
|
||||
} from 'theme-ui'
|
||||
import { Box, Button, Card, Flex, Grid, Heading, Link, Text } from 'theme-ui'
|
||||
import Meta from '@hackclub/meta'
|
||||
import Head from 'next/head'
|
||||
import ForceTheme from '../components/force-theme'
|
||||
import BGImg from '../components/background-image'
|
||||
import ForceTheme from '../../components/force-theme'
|
||||
import BGImg from '../../components/background-image'
|
||||
import NextLink from 'next/link'
|
||||
import Image from 'next/image'
|
||||
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 { dt } from '../lib/dates'
|
||||
import Nav from '../../components/nav'
|
||||
import SlideDown from '../../components/slide-down'
|
||||
import Footer from '../../components/footer'
|
||||
import { dt } from '../../lib/dates'
|
||||
|
||||
const Page = ({ upcoming, past }) => (
|
||||
<>
|
||||
|
|
@ -3,19 +3,19 @@ import Head from 'next/head'
|
|||
import Meta from '@hackclub/meta'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import tt from 'tinytime'
|
||||
import { thousands } from '../lib/members'
|
||||
import { thousands } from '../../lib/members'
|
||||
|
||||
export default function Sal() {
|
||||
let minutes = 1
|
||||
let milliseconds = minutes * 60000
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
setTimeout(function(){
|
||||
window.location.reload();
|
||||
setTimeout(function () {
|
||||
window.location.reload()
|
||||
console.log('hi')
|
||||
}, milliseconds);
|
||||
}, milliseconds)
|
||||
}
|
||||
|
||||
|
||||
const calculateTimeLeft = () => {
|
||||
const difference = +new Date(`2022-10-28T23:00:00.000Z`) - +new Date()
|
||||
|
||||
|
|
@ -146,7 +146,8 @@ export default function Sal() {
|
|||
sx={{
|
||||
minHeight: '100vh',
|
||||
width: '100vw',
|
||||
backgroundImage: 'url(https://cloud-72izs50b1-hack-club-bot.vercel.app/0sal_ama__4_.png)',
|
||||
backgroundImage:
|
||||
'url(https://cloud-72izs50b1-hack-club-bot.vercel.app/0sal_ama__4_.png)',
|
||||
position: 'relative',
|
||||
zIndex: '0',
|
||||
overflow: 'hidden',
|
||||
|
|
@ -156,7 +157,9 @@ export default function Sal() {
|
|||
>
|
||||
<Link href="https://hackclub.com" target="_blank" color="inherit">
|
||||
<Image
|
||||
src={'https://cloud-2pnucywiu-hack-club-bot.vercel.app/0group__8_.png'}
|
||||
src={
|
||||
'https://cloud-2pnucywiu-hack-club-bot.vercel.app/0group__8_.png'
|
||||
}
|
||||
width={150}
|
||||
height={75}
|
||||
sx={{
|
||||
|
|
@ -232,7 +235,7 @@ export default function Sal() {
|
|||
'1fr 1fr 1fr 1fr',
|
||||
'1fr 1fr 1fr',
|
||||
'1fr 1fr 1fr',
|
||||
'1fr 1fr 1fr 1fr 1fr',
|
||||
'1fr 1fr 1fr 1fr 1fr'
|
||||
]}
|
||||
sx={{
|
||||
width: ['100%', '100%']
|
||||
|
|
@ -278,41 +281,36 @@ export default function Sal() {
|
|||
</Box>
|
||||
</Box>
|
||||
)}
|
||||
<Box
|
||||
sx={{
|
||||
color: '#ffffff',
|
||||
width: ['70vw', '60vw', '60vw'],
|
||||
py: ['20px', '100px', '120px'],
|
||||
zIndex: '2',
|
||||
fontSize: ['12px', 1, 2],
|
||||
'@media screen and (min-width: 768px) and (max-width: 1200px)':
|
||||
{
|
||||
fontSize: '15px'
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Text>
|
||||
<strong>Teenager? New here? Welcome!</strong>{' '}
|
||||
<Link
|
||||
href="https://hackclub.com"
|
||||
target="_blank"
|
||||
color="inherit"
|
||||
>
|
||||
Hack Club
|
||||
</Link>{' '}
|
||||
is a global community of high school makers & student-led coding
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+ teenagers
|
||||
learning to code & building amazing projects, & you’ll fit right
|
||||
in.
|
||||
</Text>
|
||||
</Box>
|
||||
<Box
|
||||
sx={{
|
||||
color: '#ffffff',
|
||||
width: ['70vw', '60vw', '60vw'],
|
||||
py: ['20px', '100px', '120px'],
|
||||
zIndex: '2',
|
||||
fontSize: ['12px', 1, 2],
|
||||
'@media screen and (min-width: 768px) and (max-width: 1200px)': {
|
||||
fontSize: '15px'
|
||||
}
|
||||
}}
|
||||
>
|
||||
<Text>
|
||||
<strong>Teenager? New here? Welcome!</strong>{' '}
|
||||
<Link href="https://hackclub.com" target="_blank" color="inherit">
|
||||
Hack Club
|
||||
</Link>{' '}
|
||||
is a global community of high school makers & student-led coding
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+ teenagers
|
||||
learning to code & building amazing projects, & you’ll fit right
|
||||
in.
|
||||
</Text>
|
||||
</Box>
|
||||
</Box>
|
||||
<Box
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
bottom: '0',
|
||||
right: '0',
|
||||
width: ['100vw', '80vw', '70vw','60vw']
|
||||
width: ['100vw', '80vw', '70vw', '60vw']
|
||||
}}
|
||||
>
|
||||
{timer.length ? (
|
||||
|
|
@ -321,7 +319,7 @@ export default function Sal() {
|
|||
src={`https://cloud-oik8els6y-hack-club-bot.vercel.app/0frame_54__1_.png`}
|
||||
alt="Image of Sal Khan"
|
||||
fill="object-positon"
|
||||
sx={{position: 'absolute', bottom: 0}}
|
||||
sx={{ position: 'absolute', bottom: 0 }}
|
||||
/>
|
||||
</>
|
||||
) : (
|
||||
|
|
@ -3,8 +3,8 @@ import Head from 'next/head'
|
|||
import Meta from '@hackclub/meta'
|
||||
import React, { useEffect, useState } from 'react'
|
||||
import tt from 'tinytime'
|
||||
import Particle from '../components/particles'
|
||||
import { thousands } from '../lib/members'
|
||||
import Particle from '../../components/particles'
|
||||
import { thousands } from '../../lib/members'
|
||||
|
||||
export default function Vitalik() {
|
||||
const calculateTimeLeft = () => {
|
||||
|
|
@ -292,9 +292,9 @@ export default function Vitalik() {
|
|||
Hack Club
|
||||
</Link>{' '}
|
||||
is a global community of high school makers & student-led coding
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+ teenagers
|
||||
learning to code & building amazing projects, & you’ll fit right
|
||||
in.
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+
|
||||
teenagers learning to code & building amazing projects, & you’ll
|
||||
fit right in.
|
||||
</Text>
|
||||
</Box>
|
||||
) : (
|
||||
|
|
@ -321,9 +321,9 @@ export default function Vitalik() {
|
|||
Hack Club
|
||||
</Link>{' '}
|
||||
is a global community of high school makers & student-led coding
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+ teenagers
|
||||
learning to code & building amazing projects, & you’ll fit right
|
||||
in.
|
||||
clubs. We’ve got a 24/7 Slack chatroom of {thousands}k+
|
||||
teenagers learning to code & building amazing projects, & you’ll
|
||||
fit right in.
|
||||
</Text>
|
||||
</Box>
|
||||
)}
|
||||
Loading…
Add table
Reference in a new issue