From b96cd2554b1489b6d5552a7ae5201dee5ba13be7 Mon Sep 17 00:00:00 2001 From: Kevin Yu Date: Sat, 24 Aug 2024 19:24:36 -0400 Subject: [PATCH] Remove redundant info on home page --- app/(home)/Header.tsx | 21 ++++---------- app/(home)/Prizes.tsx | 62 --------------------------------------- app/(home)/Rules.tsx | 14 +-------- app/(home)/Sponsor.tsx | 32 --------------------- app/(home)/Sponsors.tsx | 54 ---------------------------------- app/(home)/Timer.tsx | 64 ----------------------------------------- app/(home)/page.tsx | 5 ---- 7 files changed, 7 insertions(+), 245 deletions(-) delete mode 100644 app/(home)/Prizes.tsx delete mode 100644 app/(home)/Sponsor.tsx delete mode 100644 app/(home)/Sponsors.tsx delete mode 100644 app/(home)/Timer.tsx diff --git a/app/(home)/Header.tsx b/app/(home)/Header.tsx index 73a29d0..44994da 100644 --- a/app/(home)/Header.tsx +++ b/app/(home)/Header.tsx @@ -1,4 +1,3 @@ -import Timer from '@/app/(home)/Timer'; import { BsChevronCompactDown } from 'react-icons/bs'; import { getConfig } from '@/util/config'; @@ -10,24 +9,16 @@ export default async function Header() {
-

- b01lers CTF is the public competitive CTF hosted by the b01lers CTF team at Purdue University. - Join our discord at discord.gg/tBMqujE{' '} - 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{' '} + Discord{' '} + and enjoy!

-
- Rules - Prizes - Sponsors -
- + Jump to Rules diff --git a/app/(home)/Prizes.tsx b/app/(home)/Prizes.tsx deleted file mode 100644 index a1746fb..0000000 --- a/app/(home)/Prizes.tsx +++ /dev/null @@ -1,62 +0,0 @@ -import type { ReactNode } from 'react'; -import SectionHeader from '@/components/SectionHeader'; - - -export default function Prizes() { - const openDivisionPrizes = ['$400', '$200', '$100']; - const purdueDivisionPrizes = [ - '4x Three Month Tryhackme Premium Vouchers', - '4x Two Month Tryhackme Premium Vouchers', - '4x One month Tryhackme Premium Vouchers' - ]; - - return ( - <> - - Prizes - - -
- - {openDivisionPrizes.map((p, i) => ( -
-
{i + 1}.
-
{p}
-
- ))} -
- - - {purdueDivisionPrizes.map((p, i) => ( -
-
{i + 1}.
-
{p}
-
- ))} -
-
- -

- Prize transfers will be arranged with Venmo or Cashapp and can only be transferred to an entity in - the United States. -

- - ) -} - -function PrizeTable(props: { children: ReactNode, division: string }) { - return ( -
-
-
-
#
-
- {props.division} division prizes -
-
-
- - {props.children} -
- ) -} diff --git a/app/(home)/Rules.tsx b/app/(home)/Rules.tsx index c1be98d..84a32cd 100644 --- a/app/(home)/Rules.tsx +++ b/app/(home)/Rules.tsx @@ -7,23 +7,11 @@ export default function Rules() { Rules -
    +
    1. 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.
    2. -
    3. - Each team must have a valid email address that should serve as the point of contact. -
    4. -
    5. - For the Open division: there is no limit on team size, and teams can be from - anywhere. -
    6. -
    7. - For the Purdue 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. -
    8. Flags are of the format{' '} {'bctf{[ -~]+}'}{' '} diff --git a/app/(home)/Sponsor.tsx b/app/(home)/Sponsor.tsx deleted file mode 100644 index 8bdd509..0000000 --- a/app/(home)/Sponsor.tsx +++ /dev/null @@ -1,32 +0,0 @@ -import type { ReactNode } from 'react'; - - -type SponsorProps = { - href: string, - src: string, - name: string, - children: ReactNode -} -export default function Sponsor(props: SponsorProps) { - return ( - - ) -} diff --git a/app/(home)/Sponsors.tsx b/app/(home)/Sponsors.tsx deleted file mode 100644 index 2d04970..0000000 --- a/app/(home)/Sponsors.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import Sponsor from '@/app/(home)/Sponsor'; -import SectionHeader from '@/components/SectionHeader'; - - -export default function Sponsors() { - return ( -
      - - Sponsors - - - - Zellic is a security research firm. We hire top CTF talent to solve the world's most critical security problems. We specialize in ZKPs, cryptography, web app security, smart contracts, and blockchain L1/L2s. Before Zellic, we previously founded perfect blue, the #1 CTF team in 2020 and 2021. You're a good fit for Zellic if you have extensive real-world experience in vulnerability research (VR) / binary exploitation, reverse engineering (RE), cryptography, or web application security. We hire internationally and offer competitive salaries and a comprehensive benefits package. -
      -
      - To learn more about Zellic, check out our blog:
      https://www.zellic.io/blog/the-auditooor-grindset -
      - Work at Zellic: jobs@zellic.io | @gf_256 - - - - Caesar Creek Software works with various government agencies to perform cyber research into major operating - system platforms, software security products, personal computers, cell phones, networking equipment, and - IoT devices. We specialize in offensive information operations, reverse engineering, vulnerability analysis, - and exploit development. We have a robust Internal Research and Development program that lets us do cool - stuff on our own. If it has a processor, we love taking it apart to see what makes it tick. We offer a - highly competitive compensation package including one of the best benefit packages in Ohio and starting - in 2019 we are an employee-owned company. U.S. citizenship is required for all positions, as well as the - ability to obtain a high-level security clearance. - - - - The Center for Education and Research in Information Assurance and Security (CERIAS), a cross-cutting - institute at Purdue University, is the world’s foremost interdisciplinary academic center for cyber and - cyber-physical systems; more than a hundred researchers addressing issues of security, privacy, resiliency, - trusted electronics, autonomy and explainable artificial intelligence. CERIAS brings together world-class - faculty, students and industry partners to design, build and maintain trusted cyber/cyber-physical systems. - CERIAS serves as an unbiased resource to the worldwide community. - -
      - ) -} diff --git a/app/(home)/Timer.tsx b/app/(home)/Timer.tsx deleted file mode 100644 index 0a69d81..0000000 --- a/app/(home)/Timer.tsx +++ /dev/null @@ -1,64 +0,0 @@ -'use client' - -import { useContext } from 'react'; -import { DateTime } from 'luxon'; -import { useIsMounted } from '@/hooks/useIsMounted'; -import CurrentTimeContext from '@/contexts/CurrentTimeContext'; - - -type TimerProps = { - startTime: number, - endTime: number -} -export default function Timer(props: TimerProps) { - const time = useContext(CurrentTimeContext); - - const ctfStart = DateTime.fromMillis(props.startTime); - const ctfEnd = DateTime.fromMillis(props.endTime); - - // To prevent hydration errors - const mounted = useIsMounted(); - - // If the CTF is over - if (time > ctfEnd) return ( -
      -
      - 00 - : - 00 - : - 00 - : - 00 -
      -

      - b01lers CTF is over! -

      -
      - ); - - const diff = time > ctfStart - ? ctfEnd.diff(time, ['days', 'hours', 'minutes', 'seconds']) - : ctfStart.diff(time, ['days', 'hours', 'minutes', 'seconds']); - - return ( -
      -
      - {!mounted ? '00' : diff.days.toString().padStart(2, '0')} - : - {!mounted ? '00' : diff.hours.toString().padStart(2, '0')} - : - {!mounted ? '00' : diff.minutes.toString().padStart(2, '0')} - : - {!mounted ? '00' : Math.floor(diff.seconds).toString().padStart(2, '0')} -
      -

      - {time > ctfStart ? ( - 'left until b01lers CTF ends.' - ) : ( - 'days until b01lers CTF.' - )} -

      -
      - ) -} diff --git a/app/(home)/page.tsx b/app/(home)/page.tsx index 1a290d4..3936746 100644 --- a/app/(home)/page.tsx +++ b/app/(home)/page.tsx @@ -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() { @@ -12,11 +10,8 @@ export default async function Home() {
      -
      - - ) }