Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add quicklinks as hinted in #118 #124

Merged
merged 2 commits into from
Oct 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,11 @@ declare module 'astro:content' {
collection: "social";
data: any
};
"quicklinks": {
id: "quicklinks";
collection: "social";
data: any
};
};

};
Expand Down
14 changes: 14 additions & 0 deletions src/content/social/quicklinks.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
7 changes: 7 additions & 0 deletions src/pages/linktree/index.astro
Original file line number Diff line number Diff line change
@@ -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';
---

Expand All @@ -10,6 +11,12 @@ import Button from '~/components/Button.astro';
description: "Link up with Dyne's cyber playground<br/>Dive into our network of connections and resources",
}}
>
<div class="py-8 md:py-20 justify-start items-start gap-2.5 inline-flex">
<div class="text-saccent text-4xl font-semibold font-['Syne'] leading-10">Dive in</div>
</div>
<div class="grid md:grid-cols-3 gap-8">
{quicklinks.map((ql) => <Button text={ql.cta} href={ql.link} cls="no-underline" />)}
</div>
<div class="grid grid-cols-1">
{
links.map((l) => (
Expand Down