import { useSeoMeta } from '@unhead/react'; import { Link } from 'react-router-dom'; import { Card, CardContent } from '@/components/ui/card'; import { Button } from '@/components/ui/button'; import { ShareAppCard } from '@/components/ShareAppCard'; import { APP_INSTALL_URL } from '@/lib/platform'; import { useCurrentUser } from '@/hooks/useCurrentUser'; import { useToast } from '@/hooks/useToast'; import { MapPin, Heart, Globe, Zap, Shield, Users, Code, ExternalLink, BarChart3, AlertCircle, Download, Smartphone, MessageCircle, } from 'lucide-react'; import { useTranslation } from '@/contexts/language'; export default function AboutPage() { const { t } = useTranslation(); useSeoMeta({ title: t('settingsUi.about.seoTitle'), description: t('settingsUi.about.seoDescription'), }); const { user } = useCurrentUser(); const { toast } = useToast(); const copyNpub = () => { navigator.clipboard.writeText('npub1yrnuj56rnen08zp2h9h7p74ghgjx6ma39spmpj6w9hzxywutevsst7k5cx'); toast({ title: t('common.copied'), description: t('settingsUi.about.npubCopied'), }); }; // Bug report template for DM const bugReportTemplate = `${t('settingsUi.about.bugReport')} ${t('settingsUi.about.bugWhatHappened')} ${t('settingsUi.about.bugExpected')} ${t('settingsUi.about.bugSteps')} Device/Browser: ${navigator.userAgent.includes('Mobile') ? 'Mobile' : 'Desktop'} - ${navigator.userAgent.split(' ').slice(-2).join(' ')} Version: v0.1.0`; const bugReportUrl = `/messages/npub1yrnuj56rnen08zp2h9h7p74ghgjx6ma39spmpj6w9hzxywutevsst7k5cx?message=${encodeURIComponent(bugReportTemplate)}`; return ( <>
{t('settingsUi.about.heroBefore')} {t('settingsUi.about.skaterOwned')}{t('settingsUi.about.heroAfter')}
{t('settingsUi.about.mission1')}
{t('settingsUi.about.mission2')}
{t('settingsUi.about.why1Desc')}
{t('settingsUi.about.why2Desc')}
{t('settingsUi.about.why3Desc')}
{t('settingsUi.about.why4Desc')}
{t('settingsUi.about.getInvolvedDesc')}
{item.desc}
{t('settingsUi.about.stillQuestionsDesc')}
{t('settingsUi.about.poweredBy')}