From bc8113809d3bf760e31b82ae74f92caaaf6ecd67 Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Tue, 28 May 2024 12:50:09 -0400 Subject: [PATCH] fun placeholder titles --- src/components/SpeakerPlaceholder.astro | 20 +++++++++++++++++++- src/components/Speakers.astro | 10 +++++++--- 2 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/components/SpeakerPlaceholder.astro b/src/components/SpeakerPlaceholder.astro index 94d06d2..f9c08c3 100644 --- a/src/components/SpeakerPlaceholder.astro +++ b/src/components/SpeakerPlaceholder.astro @@ -1,6 +1,22 @@ +--- +interface Props { + index: number; +} + +const indexNames = new Map([ + [0, "Static Analysis Superstar"], + [1, "Language Afficianado"], + [2, "Build Systems Champion"], + [3, "TypeScript Wizard"], + [4, "Interpersonnal Advocate"], +]); + +const name = indexNames.get(Astro.props.index) ?? "To Be Announced"; +--- +
  • -
    To Be Announced
    +
    {name}