Skip to content

Commit

Permalink
Remove redundant info on home page
Browse files Browse the repository at this point in the history
  • Loading branch information
ky28059 committed Aug 24, 2024
1 parent efe4593 commit b96cd25
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 245 deletions.
21 changes: 6 additions & 15 deletions app/(home)/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Timer from '@/app/(home)/Timer';
import { BsChevronCompactDown } from 'react-icons/bs';
import { getConfig } from '@/util/config';

Expand All @@ -10,24 +9,16 @@ export default async function Header() {
<header className="container flex flex-col items-center justify-center h-screen">
<img
src="/assets/logo-uwu.png"
className="-mb-7 max-h-96"
/>
<Timer
startTime={config.data.startTime}
endTime={config.data.endTime}
className="max-h-96"
/>
<p className="mb-2 max-w-3xl text-center text-pretty">
b01lers CTF is the public competitive CTF hosted by the b01lers CTF team at Purdue University.
Join our discord at <a href="https://discord.gg/tBMqujE" target="_blank" rel="noopener noreferrer" className="text-theme-bright hover:underline">discord.gg/tBMqujE</a>{' '}
and look out for further info soon!
Welcome to b01lers internal CTF! B01lers internal CTF is both a training camp to sharpen your CTF
skills, and a look at past b01lers CTF challenges. Check out the{' '}
<a href="https://discord.gg/tBMqujE" target="_blank" rel="noopener noreferrer" className="text-theme-bright hover:underline">Discord</a>{' '}
and enjoy!
</p>
<div className="flex divide-x divide-primary text-sm">
<a href="#rules" className="px-4 py-2 uppercase hover:underline">Rules</a>
<a href="#prizes" className="px-4 py-2 uppercase hover:underline">Prizes</a>
<a href="#sponsors" className="px-4 py-2 uppercase hover:underline">Sponsors</a>
</div>

<a href="#rules" className="text-inherit text-4xl mt-6 sm:mt-12 sm:mb-8 text-primary">
<a href="#rules" className="text-inherit text-4xl mt-6 sm:mb-8 text-primary">
<BsChevronCompactDown className="animate-bounce" />
<span className="sr-only">Jump to Rules</span>
</a>
Expand Down
62 changes: 0 additions & 62 deletions app/(home)/Prizes.tsx

This file was deleted.

14 changes: 1 addition & 13 deletions app/(home)/Rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,11 @@ export default function Rules() {
<SectionHeader id="rules">
Rules
</SectionHeader>
<ol className="list-decimal list-outside pl-6 space-y-2 mb-16">
<ol className="list-decimal list-outside pl-6 space-y-2">
<li>
During the competition, each person may only be a part of one team total, and only members of a
given team may assist in solving a challenge for that team.
</li>
<li>
Each team must have a valid email address that should serve as the point of contact.
</li>
<li>
For the <strong>Open</strong> division: there is no limit on team size, and teams can be from
anywhere.
</li>
<li>
For the <strong>Purdue</strong> division: teams must be composed of current Purdue students to be
eligible for prizes, and there is a maximum team size of 4. Sign up with a @purdue.edu email to
gain access to the Purdue division.
</li>
<li>
Flags are of the format{' '}
<code className="bg-black/40 px-2 py-1 text-primary rounded">{'bctf{[ -~]+}'}</code>{' '}
Expand Down
32 changes: 0 additions & 32 deletions app/(home)/Sponsor.tsx

This file was deleted.

54 changes: 0 additions & 54 deletions app/(home)/Sponsors.tsx

This file was deleted.

64 changes: 0 additions & 64 deletions app/(home)/Timer.tsx

This file was deleted.

5 changes: 0 additions & 5 deletions app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import Header from '@/app/(home)/Header';
import Sponsors from '@/app/(home)/Sponsors';
import Rules from '@/app/(home)/Rules';
import Prizes from '@/app/(home)/Prizes';


export default async function Home() {
Expand All @@ -12,11 +10,8 @@ export default async function Home() {
<div className="bg-black/40 py-16 mb-12 backdrop-blur-sm border-t border-tertiary">
<div className="px-6 sm:container">
<Rules />
<Prizes />
</div>
</div>

<Sponsors />
</main>
)
}

0 comments on commit b96cd25

Please sign in to comment.