Skip to content
Merged
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
29 changes: 22 additions & 7 deletions frontend/src/pages/lectures/Lectures.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ interface InPersonEvent {
interface Competition {
title: string;
startDate: string;
endDate: string;
endDate?: string;
location: string;
lumaUrl: string;
description?: string;
Expand Down Expand Up @@ -131,7 +131,15 @@ const inPersonEvents: InPersonEvent[] = [
},
];

const kernelCompetitions: EventItem[] = [
const kernelCompetitions: Competition[] = [
{
title: "Linear Algebra Kernels For The Age Of Research",
startDate: "2026-06-12",
location: "Online",
lumaUrl: "/news/linear-algebra-kernels-age-of-research",
description:
"Open competition on classical linear algebra kernels, starting with QR and eigh on B200.",
},
{
title: "The $1.1M AMD x GPU MODE - E2E Model Speedrun",
startDate: "2026-03-06",
Expand Down Expand Up @@ -237,8 +245,12 @@ function InPersonEventCard({ event }: { event: InPersonEvent }) {
}

function CompetitionCard({ event }: { event: Competition }) {
const ongoing = isOngoing(event.startDate, event.endDate);
const duration = getDurationDays(event.startDate, event.endDate);
const ongoing = event.endDate
? isOngoing(event.startDate, event.endDate)
: parseLocalDate(event.startDate) <= new Date();
const duration = event.endDate
? getDurationDays(event.startDate, event.endDate)
: null;

return (
<Box sx={styles.card}>
Expand All @@ -251,8 +263,11 @@ function CompetitionCard({ event }: { event: Competition }) {
</Box>
<Typography sx={styles.cardTitle}>{event.title}</Typography>
<Typography sx={styles.cardMeta}>
{formatDate(event.startDate)} - {formatDate(event.endDate)} ({duration}{" "}
days) · {event.location}
{event.endDate
? `${formatDate(event.startDate)} - ${formatDate(
event.endDate,
)} (${duration} days) · ${event.location}`
: `Open now · ${event.location}`}
</Typography>
{event.description && (
<Typography sx={styles.cardDescription}>
Expand Down Expand Up @@ -318,7 +333,7 @@ export default function Lectures() {
(e) => parseLocalDate(e.date) >= now,
);
const activeCompetitions = kernelCompetitions.filter(
(e) => parseLocalDate(e.endDate) >= now,
(e) => !e.endDate || parseLocalDate(e.endDate) >= now,
);

return (
Expand Down
Loading