Skip to content

Commit

Permalink
Add speaker slides page
Browse files Browse the repository at this point in the history
  • Loading branch information
irsooti committed Dec 3, 2023
1 parent b193d9e commit 34f5fee
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/pages/speaker-slides.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
import { getCollection } from "astro:content";
import { changeLanguage, t } from "i18next";
import Heading from "../components/Heading.astro";
import Section from "../components/Section.astro";
import Layout from "../layouts/Layout.astro";
changeLanguage("en");
const speakers = await getCollection("speakers");
---

<Layout title="Devfest Pescara 2023 - Location">
<Section additionalClass="dots pt-32 pb-16 md:py-32 xl:py-64">
<div class="max-w-screen-lg m-auto text-center">
<Heading level="h2" text={t("location:title")} />
</div>
</Section>
<div class="max-w-screen-xl m-auto px-6 prose py-16 lg:py-32">
{
speakers.map((speaker) =>
speaker.data.slides ? (
<div>
<h2>{speaker.data.name}</h2>
<ul>
{speaker.data.slides.map((slide: any) => (
<li>
<a href={slide.url}>{slide.title}</a>
</li>
))}
</ul>
</div>
) : null,
)
}
</div>
</Layout>

0 comments on commit 34f5fee

Please sign in to comment.