mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-11-01 18:19:43 +00:00
Add Google Play links to web
This commit is contained in:
1 parent
e28dcc1592
commit
19a6bb7cda
4 files changed
+130
-68
No files matched your search
@@ -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 (
|
||||
|
||||
<section id="pricing" className="relative py-24 overflow-hidden">
|
||||
{/* Background */}
|
||||
<div className="absolute inset-0 bg-gradient-to-b from-background-light to-background" />
|
||||
@@ -113,15 +128,16 @@ export default function Pricing() {
|
||||
|
||||
{/* CTA */}
|
||||
<div className="text-center">
|
||||
<a
|
||||
href="https://apps.apple.com/app/sauci"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="btn-primary inline-flex items-center gap-2"
|
||||
>
|
||||
<Crown className="w-5 h-5" />
|
||||
Get Sauci Pro
|
||||
</a>
|
||||
<a
|
||||
href={downloadUrl}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="btn-primary inline-flex items-center gap-2"
|
||||
>
|
||||
<Crown className="w-5 h-5" />
|
||||
Get Sauci Pro
|
||||
</a>
|
||||
|
||||
<p className="text-sm text-white/40 mt-3">
|
||||
Upgrade anytime from within the app
|
||||
</p>
|
||||
|
||||
Reference in new issue
Block a user