diff --git a/fallctf.com/src/components/FallCTFLogo.tsx b/fallctf.com/src/components/FallCTFLogo.tsx index 9decb59d8..8f50ff292 100644 --- a/fallctf.com/src/components/FallCTFLogo.tsx +++ b/fallctf.com/src/components/FallCTFLogo.tsx @@ -1,3 +1,5 @@ +import { motion } from 'framer-motion'; + interface Props { year?: string; color?: string; @@ -5,11 +7,13 @@ interface Props { export default function FallCTFLogo({ year, color }: Props) { return ( - <> + Fall CTF {year ? {year} : null} - > + ) } \ No newline at end of file diff --git a/fallctf.com/src/components/TabNav.tsx b/fallctf.com/src/components/TabNav.tsx index be5ee11d0..9e6b75932 100644 --- a/fallctf.com/src/components/TabNav.tsx +++ b/fallctf.com/src/components/TabNav.tsx @@ -12,7 +12,7 @@ interface Props { export default function TabNav({ id, links }: Props) { return ( - + {links.map((link) => ( {link.active ? ( b.data.time_start.valueOf() - a.data.time_start.valueOf() -// ); - -// type MeetingType = typeof rawMeetings[0]; - -// const meetingsBySemester = rawMeetings.reduce( -// (acc, meeting) => { -// const semester = meeting.data.semester; -// if (acc[semester]) { -// acc[semester].push(meeting); -// } else { -// acc[semester] = [meeting]; -// } -// return acc; -// }, {} as {[semester: string]: MeetingType[]} -// ); - -// const meetingSidebarItems = Object.keys(meetingsBySemester).map((semester) => ({ -// name: formatSemester(semester), -// items: meetingsBySemester[semester].map((meeting) => ({ -// name: meeting.data.week_number != null ? `Week ${weekNumber(meeting.data.week_number)}: ${meeting.data.title}` : meeting.data.title, -// url: meeting.slug, -// active: meeting.slug === Astro.url.pathname, -// })), -// active: false -// })); - -// // If a meeting is set as active, we also want to set the parent semester as active -// meetingSidebarItems.forEach((semester) => { -// semester.active = semester.items.some((meeting) => meeting.active); -// }); --- - - + {/* Default hero element */} - + {event.links.map((link) => ( event.data.year === '2024'); @@ -13,6 +15,21 @@ const event = events[0].data; title={event.title} description={event.description} > + + + + + {event.links.map((link) => ( + + {link.name} + + ))} + + +
Fall CTF {year ? {year} : null}