From 53ed699ac0b4b2ffcad22e9996a2794421e98407 Mon Sep 17 00:00:00 2001 From: Rithish-2914 Date: Fri, 25 Sep 2026 18:45:50 +0530 Subject: [PATCH] chore: Remove completed Gravitas event banners and footer links --- src/components/Footer.tsx | 2 -- src/config/events.ts | 34 +++------------------------------- 2 files changed, 3 insertions(+), 33 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index 945b094..618ed90 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -93,8 +93,6 @@ export default function Footer() {

Events

DevSOC - CookOff - Clueminati
{/* Projects */}
diff --git a/src/config/events.ts b/src/config/events.ts index 6c29bab..d1eee56 100644 --- a/src/config/events.ts +++ b/src/config/events.ts @@ -13,41 +13,13 @@ export interface EventData { logoType: "clueminati" | "cookoff"; } -export const EVENTS: EventData[] = [ - { - id: "clueminati-2026", - title: "Clueminati 4.0", - tagline: "The Ultimate Tech Treasure Hunt & Gaming Mystery", - description: "Hunt for hidden clues, outsmart tricky puzzles, and level up your way to the top in CodeChef-VIT's gaming mystery event at Gravitas !", - badge: "CLUEMINATI 4.0", - accent: "purple", - registrationUrl: "https://gravitas.vit.ac.in/events/0615fb4d-78b0-4a7c-bc52-ba4cccee2ee6", - landingPageUrl: "https://gravitas.codechefvit.com/", - dates: "Gravitas '26", - location: "VIT Vellore", - logoType: "clueminati", - imageUrl: "/events/clueminati.png", - }, - { - id: "cookoff-2026", - title: "CookOff 11", - tagline: "Largest Competitive Coding Contest", - description: "Test your algorithmic problem solving skills against top coders. Win prizes, certificates, and glory at Gravitas !", - badge: "CookOff 11", - accent: "purple", - registrationUrl: "https://gravitas.vit.ac.in/events/0629102b-cc5f-4992-8921-2e55df1cb2f8", - landingPageUrl: "https://gravitas.codechefvit.com/", - dates: "Gravitas '26", - location: "VIT Vellore", - logoType: "cookoff", - imageUrl: "/events/cookoff.jpg", - }, -]; +export const EVENTS: EventData[] = []; /** * Always pick 100% randomly between available events on every load. */ -export function getSubjectEvent(_subjectKey?: string | null): EventData { +export function getSubjectEvent(_subjectKey?: string | null): EventData | null { + if (EVENTS.length === 0) return null; const randomIndex = Math.floor(Math.random() * EVENTS.length); return EVENTS[randomIndex]!; }