diff --git a/.astro/types.d.ts b/.astro/types.d.ts index d0eb8d8..f9b6077 100644 --- a/.astro/types.d.ts +++ b/.astro/types.d.ts @@ -535,6 +535,11 @@ declare module 'astro:content' { collection: "social"; data: any }; +"quicklinks": { + id: "quicklinks"; + collection: "social"; + data: any +}; }; }; diff --git a/src/content/social/quicklinks.json b/src/content/social/quicklinks.json new file mode 100644 index 0000000..2a53f26 --- /dev/null +++ b/src/content/social/quicklinks.json @@ -0,0 +1,14 @@ +[ + { + "link": "https://socials.dyne.org/telegram", + "cta": "Telegram" + }, + { + "link": "https://socials.dyne.org/discord", + "cta": "Discord" + }, + { + "link": "https://socials.dyne.org/matrix", + "cta": "Matrix" + } +] diff --git a/src/pages/linktree/index.astro b/src/pages/linktree/index.astro index 924984b..14f19e7 100644 --- a/src/pages/linktree/index.astro +++ b/src/pages/linktree/index.astro @@ -1,6 +1,7 @@ --- import Layout from '~/layouts/Layout.astro'; import links from '../../content/social/linktree.json'; +import quicklinks from '../../content/social/quicklinks.json'; import Button from '~/components/Button.astro'; --- @@ -10,6 +11,12 @@ import Button from '~/components/Button.astro'; description: "Link up with Dyne's cyber playground
Dive into our network of connections and resources", }} > +
+
Dive in
+
+
+ {quicklinks.map((ql) =>
{ links.map((l) => (