Skip to content

Commit

Permalink
fun placeholder titles
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed May 28, 2024
1 parent bd3eb65 commit bc81138
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
20 changes: 19 additions & 1 deletion src/components/SpeakerPlaceholder.astro
Original file line number Diff line number Diff line change
@@ -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";
---

<li class="speaker">
<div class="speaker-image"></div>
<div class="name">To Be Announced</div>
<div class="name">{name}</div>
</li>

<style>
Expand All @@ -9,6 +25,8 @@
flex-direction: column;
align-items: center;
gap: 0.75rem;
flex-basis: 0;
flex-grow: 2;
}

.speaker-image {
Expand Down
10 changes: 7 additions & 3 deletions src/components/Speakers.astro
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ const speakers: Omit<SpeakerProps, "size">[] = [
</SquiggleFlanked>

<BodyText size="large" width="lean">
Meet the developers around the TypeScript, Rust, and Go tools that make the
squiggles you depend on every day.
Meet the developers around the Go, TypeScript, Rust, and Zig tools that make
the squiggles you depend on every day.
</BodyText>

<div class="speakers-area">
Expand All @@ -60,7 +60,11 @@ const speakers: Omit<SpeakerProps, "size">[] = [
</ul>

<ul class="speakers">
{new Array(10).fill(null).map(() => <SpeakerPlaceholder />)}
{
new Array(10)
.fill(null)
.map((_, index) => <SpeakerPlaceholder index={index} />)
}
</ul>
</div>

Expand Down

0 comments on commit bc81138

Please sign in to comment.