From 3c0efdc2260b95a98c99e7e6f37bc6572c144c6b Mon Sep 17 00:00:00 2001 From: Josh Goldberg Date: Sat, 30 Nov 2024 18:32:32 -0500 Subject: [PATCH] feat: ticket links and more link things --- .astro/settings.json | 5 ---- src/components/AdNewsletterRich.astro | 2 +- src/components/AdNewsletterThin.astro | 2 +- src/components/AdRegistration.astro | 5 +++- src/components/AdTicketsThin.astro | 9 +++++-- src/components/Button.astro | 22 +++++++++++----- src/components/Footer.astro | 2 +- src/components/Header.astro | 36 +++++++++++++++++++-------- src/data/links.ts | 3 +++ src/layouts/BaseLayout.astro | 16 ++++++++++++ src/layouts/PageLayout.astro | 14 +++-------- src/pages/ad.astro | 32 ++++++++++++++++++++++++ src/pages/code-of-conduct.astro | 2 +- 13 files changed, 111 insertions(+), 39 deletions(-) delete mode 100644 .astro/settings.json create mode 100644 src/data/links.ts create mode 100644 src/layouts/BaseLayout.astro create mode 100644 src/pages/ad.astro diff --git a/.astro/settings.json b/.astro/settings.json deleted file mode 100644 index 9701803..0000000 --- a/.astro/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "_variables": { - "lastUpdateCheck": 1732906326898 - } -} diff --git a/src/components/AdNewsletterRich.astro b/src/components/AdNewsletterRich.astro index 7152c68..58a41d5 100644 --- a/src/components/AdNewsletterRich.astro +++ b/src/components/AdNewsletterRich.astro @@ -17,7 +17,7 @@ import Heading from "./Heading.astro"; Email Address - + - + diff --git a/src/components/AdRegistration.astro b/src/components/AdRegistration.astro index 49dc7e3..50a766b 100644 --- a/src/components/AdRegistration.astro +++ b/src/components/AdRegistration.astro @@ -1,4 +1,5 @@ --- +import { links } from "~/data/links"; import Button from "./Button.astro"; import ContentArea from "./ContentArea.astro"; import Heading from "./Heading.astro"; @@ -6,5 +7,7 @@ import Heading from "./Heading.astro"; Registration is open! - + diff --git a/src/components/AdTicketsThin.astro b/src/components/AdTicketsThin.astro index 2ea2a1b..e7899f2 100644 --- a/src/components/AdTicketsThin.astro +++ b/src/components/AdTicketsThin.astro @@ -3,6 +3,7 @@ import tripleSquiggly from "~/assets/design/triple-squiggly.svg"; import Button from "./Button.astro"; import ContentArea from "./ContentArea.astro"; +import { links } from "~/data/links"; ---
@@ -12,8 +13,12 @@ import ContentArea from "./ContentArea.astro"; > - Get extra early bird tickets now!
diff --git a/src/components/Button.astro b/src/components/Button.astro index 8a3585b..4ac54fa 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -1,14 +1,23 @@ --- -interface Props { +import { HTMLTag, Polymorphic } from "astro/types"; + +type Props = Polymorphic<{ + as: Tag; class?: string; size?: "normal" | "large"; variant: "accent" | "light"; -} +}>; -const { class: className, size = "normal", variant, ...rest } = Astro.props; +const { + as: As, + class: className, + size = "normal", + variant, + ...rest +} = Astro.props; --- - + diff --git a/src/pages/code-of-conduct.astro b/src/pages/code-of-conduct.astro index 1d4bdc9..0cb0f42 100644 --- a/src/pages/code-of-conduct.astro +++ b/src/pages/code-of-conduct.astro @@ -55,8 +55,8 @@ import PageLayout from "~/layouts/PageLayout.astro"; This Code of Conduct adapted from plone.org/foundation/materials/foundation-resolutions/code-of-conduct.