Skip to content

Commit

Permalink
Add announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Zhou authored and Grace Zhou committed Oct 22, 2023
1 parent 7d2b4b0 commit 2ee44cd
Showing 1 changed file with 40 additions and 7 deletions.
47 changes: 40 additions & 7 deletions pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import Link from 'next/link';
import Layout from '../components/layout';
import {
LinkComponent,
Paragraph,
Section,
Title
} from '../components/section';
import { Center, SignUpButton } from './puzzleHunt/2023';

import {SignUpButton, Center} from './puzzleHunt/2023';
import styled from 'styled-components';

function SectionTitle({
href,
Expand All @@ -18,15 +21,43 @@ function SectionTitle({
);
}

const Announcement = styled.div`
text-align: center;
border-radius: 8px;
margin: 0 auto;
text-align: center;
padding: 0.8em 1em 0.1em 1em;
font-family: 'Special Elite';
font-weight: 400;
font-size: 28px;
background-color: #FF7377;
cursor: pointer;
color: white;
`;

const AnnounceLinkComponent = styled.a`
color: black;
&:hover {
color: ${({ theme }) => theme.colors.grayLight};
}
`;

export default function About() {
return (
<Layout title="About" pageName="about">
<Section id="puzzlehunt">
<Center>
<Title>Puzzle Hunt 2023: Mystery in History</Title>
<Paragraph>Puzzle Hunt is on October XX</Paragraph>
<SignUpButton>Sign Up</SignUpButton>
</Center>
<Section>
<Announcement>
⚠️{' '}
<AnnounceLinkComponent href="https://forms.gle/eqca6sPu56yc6RB96" target="_blank">
ANNOUNCEMENT: PUZZLE HUNT 2023 SIGN-UPS NOW OPEN
</AnnounceLinkComponent>{' '}⚠️
<Paragraph>
<AnnounceLinkComponent href="/puzzleHunt/2023" target="_blank">
Click <u>here</u> for more information.
</AnnounceLinkComponent>
</Paragraph>
</Announcement>
</Section>
<Section id="about">
<Title>About</Title>
Expand Down Expand Up @@ -74,3 +105,5 @@ export default function About() {
</Layout>
);
}


0 comments on commit 2ee44cd

Please sign in to comment.