From 0315e9d511b622944c3ccc0fd6ac3ab9340826ca Mon Sep 17 00:00:00 2001 From: Lukas Kurz Date: Sat, 16 Dec 2023 20:52:09 +0100 Subject: [PATCH] Better download page --- src/components/widgets/Button.astro | 21 +++++++++++++++++++ src/pages/docs/download.astro | 31 ++++++++++------------------- 2 files changed, 32 insertions(+), 20 deletions(-) create mode 100644 src/components/widgets/Button.astro diff --git a/src/components/widgets/Button.astro b/src/components/widgets/Button.astro new file mode 100644 index 0000000..b92bfef --- /dev/null +++ b/src/components/widgets/Button.astro @@ -0,0 +1,21 @@ +--- +import Icon from 'astro-icon'; + +export interface Props { + text: string; + href: string; + icon?: string; +} + +const { href, icon, text } = Astro.props; +--- + + + {icon && } + {text} + diff --git a/src/pages/docs/download.astro b/src/pages/docs/download.astro index 2faad71..4329e61 100644 --- a/src/pages/docs/download.astro +++ b/src/pages/docs/download.astro @@ -1,30 +1,21 @@ --- import Layout from "~/layouts/PageLayout.astro"; import CallToAction from "~/components/widgets/CallToAction.astro"; +import Button from "~/components/widgets/Button.astro"; const meta = { - title: "FAQs", + title: "FAQs", }; --- - - - + +
+
+
+
+