Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,6 @@ export default function Footer() {
<div className="flex w-full flex-col gap-2 text-black dark:text-white lg:w-[15%]">
<h3 className="font-jost text-xl font-semibold">Events</h3>
<Link href="https://devsoc26.codechefvit.com" target="_blank">DevSOC</Link>
<Link href="https://gravitas.codechefvit.com" target="_blank">CookOff</Link>
<Link href="https://gravitas.codechefvit.com" target="_blank">Clueminati</Link>
</div>
{/* Projects */}
<div className="flex w-full flex-col gap-2 text-black dark:text-white lg:w-[20%]">
Expand Down
34 changes: 3 additions & 31 deletions src/config/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]!;
}
Loading