diff --git a/src/components/accordion/accordion.astro b/src/components/accordion/accordion.astro new file mode 100644 index 000000000..9de73ebce --- /dev/null +++ b/src/components/accordion/accordion.astro @@ -0,0 +1,24 @@ +--- +export interface Props { + title: string; + id: string; +} + +const { title, id } = Astro.props; +--- + +
+ + +
+ +
+
diff --git a/src/content/pages/test.mdx b/src/content/pages/test.mdx index 8a6fcc845..3b8b959fc 100644 --- a/src/content/pages/test.mdx +++ b/src/content/pages/test.mdx @@ -270,3 +270,22 @@ Barking up the right tree ## YouTube + +## Accordion +#### What do the dogs say? + + + **Guau guau!** + + + + *Bau bau!* + + + + ワンワン + + + + ***Hau hau!*** + diff --git a/src/pages/[...slug].astro b/src/pages/[...slug].astro index 299962141..2e7e91ed8 100644 --- a/src/pages/[...slug].astro +++ b/src/pages/[...slug].astro @@ -12,6 +12,7 @@ import BenefitsList from "../components/benefits-list/benefits-list.astro"; import BenefitItem from "../components/benefits-list/benefit-item.astro"; import { Note } from "../components/note"; import { SponsorTiers } from "../components/sponsor-tiers"; +import Accordion from "../components/accordion/accordion.astro"; export async function getStaticPaths() { const posts = await getCollection("pages"); @@ -44,6 +45,7 @@ const description = post.data.subtitle; Note, SponsorTiers, hr: Separator, + Accordion }} />