From a9e8d6fe2de901f2e40816c9cc81dbe2e540acf1 Mon Sep 17 00:00:00 2001 From: Desktop Date: Thu, 13 Nov 2025 18:42:53 +0500 Subject: [PATCH] fixes for site --- frontend/package.json | 1 + .../src/marketing/components/HeroSection.tsx | 43 +++++++++++------ frontend/src/marketing/pages/Tour.tsx | 6 +-- frontend/vite.config.ts | 46 ++++++++++--------- 4 files changed, 59 insertions(+), 37 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 396522d8..9eaab3e1 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -6,6 +6,7 @@ "scripts": { "dev": "vite", "build": "vite build", + "build:marketing": "vite build --mode marketing", "build:check": "tsc -b && vite build", "type-check": "tsc -b --noEmit", "lint": "eslint .", diff --git a/frontend/src/marketing/components/HeroSection.tsx b/frontend/src/marketing/components/HeroSection.tsx index 335f5414..16d3fc5a 100644 --- a/frontend/src/marketing/components/HeroSection.tsx +++ b/frontend/src/marketing/components/HeroSection.tsx @@ -16,6 +16,29 @@ const HeroSection: React.FC = ({ primaryCta, secondaryCta, }) => { + const renderCta = (cta: { label: string; href: string }, className: string) => { + const isExternal = cta.href.startsWith("http"); + + if (isExternal) { + return ( + + {cta.label} + + ); + } + + return ( + + {cta.label} + + ); + }; + return ( @@ -31,19 +54,13 @@ const HeroSection: React.FC = ({ {subheadline}
{step.description}