Skip to content

Commit

Permalink
Merge pull request #5 from ianng1/main
Browse files Browse the repository at this point in the history
main page announcement change
  • Loading branch information
Scott-Hickmann authored Oct 22, 2023
2 parents 7d2b4b0 + d427e6f commit 3298649
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 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,47 @@ 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

1 comment on commit 3298649

@vercel
Copy link

@vercel vercel bot commented on 3298649 Oct 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.