From 29468d2fd703dbf6866dbeeb49bafc34f45d603b Mon Sep 17 00:00:00 2001 From: ahmad1368 Date: Tue, 24 Mar 2026 19:23:49 -0700 Subject: [PATCH] Refactor navigation and hero to use dynamic city-based CTAs (Issue #3) - Added dynamic "Get Your Ticket" CTA in Hero based on selected city - Updated Navigation to use ticketUrl from citySpecificContent - Kept sharedHeroContent CTAs for volunteer link usage - Implemented updateContent logic to update CTA href/text on city change - Removed old Hero CTAs from UI while preserving data structure --- src/components/Hero.astro | 22 ++++++++-- src/components/Navigation.astro | 74 +++++++++++++++++++++++---------- src/lib/content.ts | 52 +++++++++++++++++------ 3 files changed, 109 insertions(+), 39 deletions(-) diff --git a/src/components/Hero.astro b/src/components/Hero.astro index 8f5e44f..8800062 100644 --- a/src/components/Hero.astro +++ b/src/components/Hero.astro @@ -7,6 +7,8 @@ interface Props { } const { content, splineUrl = '' } = Astro.props; + + ---
@@ -27,8 +29,10 @@ const { content, splineUrl = '' } = Astro.props;

{content.time}

@@ -36,6 +40,7 @@ const { content, splineUrl = '' } = Astro.props;