From d87e464ab810414b1bb92adac8e6dc207cdec55a Mon Sep 17 00:00:00 2001 From: Neeldhara Misra Date: Fri, 5 Jun 2026 14:08:48 +0530 Subject: [PATCH] Add Theory Day updates and recent service items --- src/components/sections/hero.tsx | 9 ++ src/components/sections/recent-wins.tsx | 33 ++++-- src/data/events.ts | 15 +++ src/data/news.ts | 21 +++- src/pages/updates/deadlines.astro | 57 ++++++++++ src/pages/updates/events.astro | 14 ++- src/pages/updates/theory-day-2026.astro | 139 ++++++++++++++++++++++++ 7 files changed, 271 insertions(+), 17 deletions(-) create mode 100644 src/pages/updates/theory-day-2026.astro diff --git a/src/components/sections/hero.tsx b/src/components/sections/hero.tsx index f4ffda6..5b5c4c9 100644 --- a/src/components/sections/hero.tsx +++ b/src/components/sections/hero.tsx @@ -8,6 +8,15 @@ import { ArrowRight } from 'lucide-react'; import { Button } from '@/components/ui/button'; const slides = [ + { + src: '/images/course-resources/theory-of-computing.png', + alt: 'Foundations of computer science visual with automata, stacks, and computation diagrams', + title: 'Theory Day 2026', + description: + 'Foundations of Computer Science. 17 June 2026; registration is open.', + ctaLabel: 'View Details', + ctaHref: '/updates/theory-day-2026', + }, { src: '/images/jee-open-house-2026-landscape.jpg', alt: 'JEE Open House 2026 at IIT Gandhinagar', diff --git a/src/components/sections/recent-wins.tsx b/src/components/sections/recent-wins.tsx index 4f53c00..8701a9f 100644 --- a/src/components/sections/recent-wins.tsx +++ b/src/components/sections/recent-wins.tsx @@ -30,19 +30,32 @@ export default function RecentWins() { {homepageAwardItems.map((award, index) => (
- - - {award.title} - + + + {award.featured && ( + + Featured + + )} + + {award.title} + +
diff --git a/src/data/events.ts b/src/data/events.ts index c99cb04..55b4cec 100644 --- a/src/data/events.ts +++ b/src/data/events.ts @@ -39,6 +39,21 @@ export const EVENT_CATEGORY_STYLES: Record = { }; export const departmentEvents: DepartmentEvent[] = [ + { + id: "theory-day-foundations-cs-2026", + title: "Theory Day: Foundations of Computer Science", + category: "symposium", + year: 2026, + displayDate: "17 Jun 2026", + startDate: "2026-06-17", + organizer: "Department of Computer Science & Engineering, IIT Gandhinagar", + description: + "A one-day Theory Day focused on foundations of computer science. The schedule, talk titles, and abstracts will be announced soon.", + source: "CSE archive", + sourceLabel: "Event page", + sourceUrl: "/updates/theory-day-2026", + featured: true, + }, { id: "ai-day-2026", title: "AI Day", diff --git a/src/data/news.ts b/src/data/news.ts index 2b11b40..0d83d88 100644 --- a/src/data/news.ts +++ b/src/data/news.ts @@ -20,6 +20,7 @@ export interface DepartmentNewsItem { sourceLabel: string; sourceUrl: string; homepage?: boolean; + featured?: boolean; } export const CATEGORY_LABELS: Record = { @@ -409,6 +410,22 @@ export const departmentNews: DepartmentNewsItem[] = [ sourceLabel: "IITGN Technical Council", sourceUrl: "https://technical-council.iitgn.tech/achievements", }, + { + id: "anirban-stoc-test-of-time-2024", + title: "Anirban Dasgupta receives ACM STOC 10-year Test of Time Award", + summary: + "The STOC 2024 award recognizes the lasting impact of the paper “A Sparse Johnson-Lindenstrauss Transform,” co-authored with Ravi Kumar and Tamás Sarlós.", + people: "Anirban Dasgupta, Ravi Kumar, and Tamás Sarlós", + displayDate: "2024", + date: "2024-06-21", + category: "award", + status: "confirmed", + sourceLabel: "Cornell Bowers CIS", + sourceUrl: + "https://bowers.cornell.edu/news-stories/faculty-and-alumni-receive-test-time-awards-stoc-2024", + homepage: true, + featured: true, + }, { id: "chitrabhasha-anrf", title: "Chitrabhasha receives ANRF Advanced Research Grant support", @@ -604,4 +621,6 @@ export const homepageNewsItems = sortByDateDesc( export const homepageAwardItems = sortByDateDesc( departmentNews.filter((item) => item.homepage && item.category === "award"), -).slice(0, 4); +) + .sort((a, b) => Number(Boolean(b.featured)) - Number(Boolean(a.featured))) + .slice(0, 5); diff --git a/src/pages/updates/deadlines.astro b/src/pages/updates/deadlines.astro index 8fc8ad0..8e9152b 100644 --- a/src/pages/updates/deadlines.astro +++ b/src/pages/updates/deadlines.astro @@ -1,6 +1,9 @@ --- import JeeOpenHousePromo from '@/components/sections/jee-open-house-promo.astro'; import DefaultLayout from '@/layouts/DefaultLayout.astro'; +import { ArrowRight, CalendarDays } from 'lucide-react'; + +const theoryDayRegistrationLink = 'https://forms.gle/sqqoh4JftBfKYA1b8'; --- +
+
+
+

Upcoming

+

+ Registration deadlines +

+
+ +
+
+
+ + +
+

Deadline

+

15 Jun 2026

+
+
+ +
+

+ Theory Day: Foundations of Computer Science +

+

+ Register for the 17 June 2026 Theory Day. Schedule, talk titles, + and abstracts will be posted on the event page soon. +

+
+ + +
+
+
+
+
diff --git a/src/pages/updates/events.astro b/src/pages/updates/events.astro index 2e9fe32..3ad0f43 100644 --- a/src/pages/updates/events.astro +++ b/src/pages/updates/events.astro @@ -33,6 +33,8 @@ const groupedPastEvents = Object.entries( return groups; }, {}), ).sort(([a], [b]) => Number(b) - Number(a)); + +const isExternalUrl = (url: string) => /^https?:\/\//.test(url); --- {event.sourceLabel ?? "Event website"} {event.sourceLabel ?? "Event website"} {event.sourceLabel ?? "Event website"} +
+
+
+
+

+ Department Event +

+

+ Theory Day: Foundations of Computer Science +

+

+ A CSE department event focused on the foundations of computer + science, with talks and discussions for students, researchers, and + faculty interested in theoretical computer science. +

+ +
+ + +
+
+
+ +
+
+
+
+

Foundations of CS

+

+ A department day for theory +

+

+ Theory Day is planned as a focused gathering around the foundations + of computer science. The event will highlight ideas, methods, and + research conversations from theoretical computer science. +

+
+
+
+
+
+
+
+
+ +
+
+
+
+

Registration

+

+ Register by {registrationDeadline} +

+

+ Registration is open through the shared IITGN form. +

+
+ + Open registration form + +
+
+
+