diff --git a/next.config.js b/next.config.js index 3aefd7b3..50025100 100755 --- a/next.config.js +++ b/next.config.js @@ -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/', diff --git a/pages/geohot.js b/pages/amas/geohot.js similarity index 92% rename from pages/geohot.js rename to pages/amas/geohot.js index f3aa036a..5ab240e4 100644 --- a/pages/geohot.js +++ b/pages/amas/geohot.js @@ -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' }} > @@ -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!