diff --git a/apps/web/components/CTA.tsx b/apps/web/components/CTA.tsx index 903b93c..90ef528 100644 --- a/apps/web/components/CTA.tsx +++ b/apps/web/components/CTA.tsx @@ -1,7 +1,9 @@ 'use client' -import Image from 'next/image' -import { motion } from 'framer-motion' +import Image from 'next/image' +import { motion } from 'framer-motion' +import { Play } from 'lucide-react' + export default function CTA() { return ( @@ -39,20 +41,30 @@ export default function CTA() { Download now and start exploring together.

-
- - - - - Download for iOS - - Coming soon to Android -
+
+ + + + + Download for iOS + + + + + Download for Android + +
+ diff --git a/apps/web/components/Hero.tsx b/apps/web/components/Hero.tsx index c45c06e..7f4ab10 100644 --- a/apps/web/components/Hero.tsx +++ b/apps/web/components/Hero.tsx @@ -3,7 +3,8 @@ import { useEffect, useState } from 'react' import Image from 'next/image' import { motion } from 'framer-motion' -import { Sparkles } from 'lucide-react' +import { Sparkles, Play } from 'lucide-react' + export default function Hero() { const [hasScrolled, setHasScrolled] = useState(false) @@ -53,7 +54,8 @@ export default function Hero() { it's a match. Start conversations you've always wanted to have.

-
+
+ {/* Official App Store Badge */} - - - - See How It Works - + + + + + + + GET IT ON + Google Play + + + + + See How It Works + +
diff --git a/apps/web/components/Navbar.tsx b/apps/web/components/Navbar.tsx index 8c2bbd7..2d8553a 100644 --- a/apps/web/components/Navbar.tsx +++ b/apps/web/components/Navbar.tsx @@ -4,19 +4,33 @@ import { useState, useEffect } from 'react' import Link from 'next/link' import Image from 'next/image' import { motion, AnimatePresence } from 'framer-motion' -import { Menu, X } from 'lucide-react' +import { Menu, X } from 'lucide-react' + +const APP_STORE_URL = 'https://apps.apple.com/app/sauci' +const PLAY_STORE_URL = 'https://play.google.com/store/apps/details?id=com.sauci.app' + +export default function Navbar() { + + const [isScrolled, setIsScrolled] = useState(false) + const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false) + const [downloadUrl, setDownloadUrl] = useState(APP_STORE_URL) + -export default function Navbar() { - const [isScrolled, setIsScrolled] = useState(false) - const [isMobileMenuOpen, setIsMobileMenuOpen] = useState(false) - - useEffect(() => { - const handleScroll = () => { - setIsScrolled(window.scrollY > 20) - } - window.addEventListener('scroll', handleScroll) - return () => window.removeEventListener('scroll', handleScroll) - }, []) + useEffect(() => { + const handleScroll = () => { + setIsScrolled(window.scrollY > 20) + } + window.addEventListener('scroll', handleScroll) + return () => window.removeEventListener('scroll', handleScroll) + }, []) + + useEffect(() => { + const userAgent = navigator.userAgent || '' + if (/Android/i.test(userAgent)) { + setDownloadUrl(PLAY_STORE_URL) + } + }, []) + return ( FAQ - - Download App - + + Download App + +
{/* Mobile Menu Button */} @@ -110,14 +125,15 @@ export default function Navbar() { > FAQ - - Download App - + + Download App + + )} diff --git a/apps/web/components/Pricing.tsx b/apps/web/components/Pricing.tsx index cce0b1c..ce6691e 100644 --- a/apps/web/components/Pricing.tsx +++ b/apps/web/components/Pricing.tsx @@ -1,9 +1,14 @@ -'use client' - -import { motion } from 'framer-motion' -import { Check, Crown, Heart, Sparkles, Infinity } from 'lucide-react' - -const features = [ +'use client' + +import { useEffect, useState } from 'react' +import { motion } from 'framer-motion' +import { Check, Crown, Heart, Sparkles, Infinity } from 'lucide-react' + +const APP_STORE_URL = 'https://apps.apple.com/app/sauci' +const PLAY_STORE_URL = 'https://play.google.com/store/apps/details?id=com.sauci.app' + +const features = [ + 'Unlock all question packs', 'Access exclusive premium content', 'New packs added regularly', @@ -11,8 +16,18 @@ const features = [ 'One-time setup, shared benefits', ] -export default function Pricing() { - return ( +export default function Pricing() { + const [downloadUrl, setDownloadUrl] = useState(APP_STORE_URL) + + useEffect(() => { + const userAgent = navigator.userAgent || '' + if (/Android/i.test(userAgent)) { + setDownloadUrl(PLAY_STORE_URL) + } + }, []) + + return ( +
{/* Background */}
@@ -113,15 +128,16 @@ export default function Pricing() { {/* CTA */}
- - - Get Sauci Pro - + + + Get Sauci Pro + +

Upgrade anytime from within the app