diff --git a/public/images/events/2026-08-08-ice-cream-social-1.jpg b/public/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-1.jpg similarity index 100% rename from public/images/events/2026-08-08-ice-cream-social-1.jpg rename to public/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-1.jpg diff --git a/public/images/events/2026-08-08-ice-cream-social-2.jpg b/public/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-2.jpg similarity index 100% rename from public/images/events/2026-08-08-ice-cream-social-2.jpg rename to public/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-2.jpg diff --git a/public/images/events/2026-08-08-ice-cream-social-3.jpg b/public/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-3.jpg similarity index 100% rename from public/images/events/2026-08-08-ice-cream-social-3.jpg rename to public/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-3.jpg diff --git a/public/images/events/mid-autumn-lantern-contest-2026/photo-1.png b/public/images/events/mid-autumn-lantern-contest-2026/photo-1.png new file mode 100644 index 0000000..8ea74eb Binary files /dev/null and b/public/images/events/mid-autumn-lantern-contest-2026/photo-1.png differ diff --git a/public/images/events/mid-autumn-lantern-contest-2026/photo-2.png b/public/images/events/mid-autumn-lantern-contest-2026/photo-2.png new file mode 100644 index 0000000..e4fa04a Binary files /dev/null and b/public/images/events/mid-autumn-lantern-contest-2026/photo-2.png differ diff --git a/public/images/events/mid-autumn-staff-treats-2026/photo-1.jpg b/public/images/events/mid-autumn-staff-treats-2026/photo-1.jpg new file mode 100644 index 0000000..2196272 Binary files /dev/null and b/public/images/events/mid-autumn-staff-treats-2026/photo-1.jpg differ diff --git a/public/images/events/welcome-back-picnic-2026/photo-1.jpg b/public/images/events/welcome-back-picnic-2026/photo-1.jpg new file mode 100644 index 0000000..f5f372e Binary files /dev/null and b/public/images/events/welcome-back-picnic-2026/photo-1.jpg differ diff --git a/public/images/events/welcome-back-picnic-2026/photo-2.jpg b/public/images/events/welcome-back-picnic-2026/photo-2.jpg new file mode 100644 index 0000000..c259928 Binary files /dev/null and b/public/images/events/welcome-back-picnic-2026/photo-2.jpg differ diff --git a/public/images/events/welcome-back-picnic-2026/photo-3.jpg b/public/images/events/welcome-back-picnic-2026/photo-3.jpg new file mode 100644 index 0000000..18f687d Binary files /dev/null and b/public/images/events/welcome-back-picnic-2026/photo-3.jpg differ diff --git a/public/images/events/welcome-back-picnic-2026/photo-4.jpg b/public/images/events/welcome-back-picnic-2026/photo-4.jpg new file mode 100644 index 0000000..12fbea3 Binary files /dev/null and b/public/images/events/welcome-back-picnic-2026/photo-4.jpg differ diff --git a/src/components/EventCard.astro b/src/components/EventCard.astro index 592599c..43bed9c 100644 --- a/src/components/EventCard.astro +++ b/src/components/EventCard.astro @@ -9,7 +9,7 @@ interface Image { interface Props { title: string; date: string; - time: string; + time?: string; location?: string; images?: Image[]; } @@ -17,7 +17,7 @@ interface Props { const { title, date, time, location, images = [] } = Astro.props; const formattedDate = formatDate(date); -const formattedTime = formatTime(time); +const formattedTime = time ? formatTime(time) : null; const carouselId = `event-carousel-${date}-${title}` .toLowerCase() @@ -86,8 +86,8 @@ const carouselId = `event-carousel-${date}-${title}` }
-
diff --git a/src/content.config.ts b/src/content.config.ts index c74357f..bbe7707 100644 --- a/src/content.config.ts +++ b/src/content.config.ts @@ -9,7 +9,7 @@ const events = defineCollection({ schema: z.object({ title: z.string(), date: z.string(), - time: z.string(), + time: z.string().optional(), location: z.string().optional(), images: z.array( z.object({ diff --git a/src/data/events/community-event-past.md b/src/data/events/community-event-past.md deleted file mode 100644 index ee0c4cf..0000000 --- a/src/data/events/community-event-past.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -title: "BMDIB Community Event" -date: "2026-05-16" -time: "17:00" -location: "Location TBD" -images: - - src: "/images/events/2026-08-08-ice-cream-social-1.jpg" - alt: "Alt1" - - src: "/images/events/2026-08-08-ice-cream-social-2.jpg" - alt: "Alt2" - - src: "/images/events/2026-08-08-ice-cream-social-3.jpg" - alt: "Alt3" ---- - -Placeholder description for a past BMDIB community event. \ No newline at end of file diff --git a/src/data/events/community-event-upcoming.md b/src/data/events/community-event-upcoming.md deleted file mode 100644 index ce0f540..0000000 --- a/src/data/events/community-event-upcoming.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -title: "BMDIB Community Event" -date: "2026-11-14" -time: "17:00" -location: "Location TBD" ---- - -Placeholder description for an upcoming BMDIB community event. \ No newline at end of file diff --git a/src/data/events/cultural-event-past.md b/src/data/events/cultural-event-past.md deleted file mode 100644 index 284d5c3..0000000 --- a/src/data/events/cultural-event-past.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: "Mandarin Cultural Event" -date: "2026-03-21" -time: "17:00" -location: "Location TBD" -images: - - src: "/images/events/2026-08-08-ice-cream-social-1.jpg" - alt: "Alt1" ---- - -Placeholder description for a past Mandarin cultural event. \ No newline at end of file diff --git a/src/data/events/kinder-popsicle-playdate-2026.md b/src/data/events/kinder-popsicle-playdate-2026.md new file mode 100644 index 0000000..0a7ff23 --- /dev/null +++ b/src/data/events/kinder-popsicle-playdate-2026.md @@ -0,0 +1,22 @@ +--- +title: "Kinder Popsicle Playdate" +date: "2026-08-08" +location: "Ruskin Elementary School" +images: + - src: "/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-1.jpg" + alt: "Alt1" + - src: "/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-2.jpg" + alt: "Alt2" + - src: "/images/events/kinder-popsicle-playdate-2026/2026-08-08-ice-cream-social-3.jpg" + alt: "Alt3" +--- + +A big welcome to another wonderful generation of kindergarteners! 🎉 + +It was so much fun seeing our newest students and families come together for a day of popsicles, smiles, and new friendships. + +As our little ones begin this exciting journey, we wish them a fantastic year filled with learning, growing, making friends, and creating wonderful memories. + +A special thank you to Mandarin Immersion Boosters and the PTA for hosting this event and helping bring our school community together. + +Here's to a great school year ahead! Welcome, kindergarteners! \ No newline at end of file diff --git a/src/data/events/mid-autumn-lantern-contest-2026.md b/src/data/events/mid-autumn-lantern-contest-2026.md new file mode 100644 index 0000000..0b0ad57 --- /dev/null +++ b/src/data/events/mid-autumn-lantern-contest-2026.md @@ -0,0 +1,18 @@ +--- +title: "Mid-Autumn Lantern Decorating Contest" +date: "2026-10-06" +location: "Ruskin Elementary School & Sierramont Middle School" +images: + - src: "/images/events/mid-autumn-lantern-contest-2026/photo-1.png" + alt: "Alt1" + - src: "/images/events/mid-autumn-lantern-contest-2026/photo-2.png" + alt: "Alt2" +--- + +Our lantern decorating contest was a huge success! + +More than 200 lanterns were submitted by students from Ruskin and Sierramont, filling the Ruskin multipurpose room with colorful lanterns throughout October. + +Congratulations to the winners in each age group, who received a $10 Tastea gift card! + +Thank you to all the students and families who participated and helped make this celebration so special. \ No newline at end of file diff --git a/src/data/events/mid-autumn-staff-treats-2026.md b/src/data/events/mid-autumn-staff-treats-2026.md new file mode 100644 index 0000000..53ef897 --- /dev/null +++ b/src/data/events/mid-autumn-staff-treats-2026.md @@ -0,0 +1,14 @@ +--- +title: "Mid-Autumn Staff Treats" +date: "2026-09-27" +location: "Ruskin Elementary School" +images: + - src: "/images/events/mid-autumn-staff-treats-2026/photo-1.jpg" + alt: "Alt1" +--- + +Our wonderful volunteers prepared delicious dim sum treats—including dumplings, buns, and mooncakes—for Ruskin staff in celebration of the Mid-Autumn Festival. + +It was a wonderful way to show our appreciation for the teachers and staff before Fall Break. + +Thank you to everyone who helped prepare and share these special treats! \ No newline at end of file diff --git a/src/data/events/welcome-back-picnic-2026.md b/src/data/events/welcome-back-picnic-2026.md new file mode 100644 index 0000000..950c365 --- /dev/null +++ b/src/data/events/welcome-back-picnic-2026.md @@ -0,0 +1,20 @@ +--- +title: "Welcome Back Picnic" +date: "2026-08-28" +location: "Ruskin Elementary School" +images: + - src: "/images/events/welcome-back-picnic-2026/photo-1.jpg" + alt: "Alt1" + - src: "/images/events/welcome-back-picnic-2026/photo-2.jpg" + alt: "Alt2" + - src: "/images/events/welcome-back-picnic-2026/photo-3.jpg" + alt: "Alt3" + - src: "/images/events/welcome-back-picnic-2026/photo-4.jpg" + alt: "Alt3" +--- + +It was great to see familiar faces at our first family night event at Ruskin this year! + +BMDIB hosted a booth with information about our organization and flyers promoting our giving campaign, while sharing treats and snacks. + +Thank you to everyone who stopped by to say hello! \ No newline at end of file diff --git a/src/pages/events.astro b/src/pages/events.astro index e671e3c..d0854dc 100644 --- a/src/pages/events.astro +++ b/src/pages/events.astro @@ -24,7 +24,7 @@ const upcomingEvents = events return dateComparison; } - return a.data.time.localeCompare(b.data.time); + return (a.data.time ?? "").localeCompare(b.data.time ?? ""); }); // Past events are sorted from most recent to oldest.