/** * FAQPage — now powered by The Sasquatch 🦧 * Instead of a static wall of text, we surface the AI guide * with FAQ context pre-loaded so users can ask anything. */ import { useEffect } from 'react'; import { useSeoMeta } from '@unhead/react'; import { Layout } from '@/components/Layout'; import { Button } from '@/components/ui/button'; import { Card, CardContent } from '@/components/ui/card'; import { HelpCircle, MessageCircle, MapPin, Zap, Shield, Package } from 'lucide-react'; // Quick FAQ chips — prime the conversation const FAQ_CHIPS = [ { label: 'What is SkateSpots?', q: 'What is SkateSpots and how does it work?' }, { label: 'How do I add a spot?', q: 'How do I add a skate spot to the map?' }, { label: 'What are zaps?', q: 'What are zaps?' }, { label: 'Is it free?', q: 'Is SkateSpots free to use?' }, { label: 'What is My Stash?', q: 'What is My Stash?' }, { label: 'How do I login?', q: 'How do I log in or create an account?' }, { label: 'What is Nostr?', q: 'What is Nostr?' }, { label: 'Privacy & Data', q: 'What data is public and what data is private on SkateSpots?' }, { label: 'How to sell gear?', q: 'How do I sell gear on SkateSpots?' }, { label: 'What is The Lab?', q: 'What is The Lab?' }, ]; const QUICK_FACTS = [ { icon: MapPin, color: '#ff0040', label: 'Skate spots worldwide', value: 'Discover & add' }, { icon: Zap, color: '#f97316', label: 'Bitcoin Lightning zaps', value: '100% free' }, { icon: Shield, color: '#22c55e', label: 'Decentralized on Nostr', value: 'You own your data' }, { icon: Package, color: '#a855f7', label: 'Private gear inventory', value: 'Encrypted Stash' }, ]; export default function FAQPage() { useSeoMeta({ title: 'FAQ - SkateSpots', description: 'Ask The Sasquatch anything about SkateSpots.', }); // Open Sasquatch with FAQ context when this page loads useEffect(() => { // Dispatch a custom event that SasquatchGuide listens for const event = new CustomEvent('sasquatch:open', { detail: { context: 'faq', greeting: "Hey! I'm The Sasquatch 🦧 — ask me anything about SkateSpots. Spots, events, gear, wallets, privacy, Nostr — I've got you. What do you want to know?", }, }); window.dispatchEvent(event); }, []); const askSasquatch = (question: string) => { const event = new CustomEvent('sasquatch:ask', { detail: { question } }); window.dispatchEvent(event); }; return (
{/* Hero */}
🦧

Got Questions?

Ask The Sasquatch — he knows everything about SkateSpots, Nostr, Bitcoin, and skateboarding.

{/* CTA Card */}

Ask The Sasquatch

The Sasquatch is open in the bottom-left corner of your screen — just click it and type your question. He has live access to spots, events, coaches, and weather.

{/* Quick question chips */}

Common questions — tap to ask

{FAQ_CHIPS.map((chip) => ( ))}
{/* Quick facts grid */}
{QUICK_FACTS.map(({ icon: Icon, color, label, value }) => (

{label}

{value}

))}
{/* Hint */}

The Sasquatch uses live Nostr data from the SkateSpots relay + AI to answer your questions. 🛹

); }