diff --git a/app/favicon.ico b/app/favicon.ico index 9bb10d9..45f9bac 100644 Binary files a/app/favicon.ico and b/app/favicon.ico differ diff --git a/components/landing-page.tsx b/components/landing-page.tsx index 3d9cc5a..289bc63 100644 --- a/components/landing-page.tsx +++ b/components/landing-page.tsx @@ -13,14 +13,28 @@ import { DialogTrigger, } from "@/components/ui/dialog" import { Label } from "@/components/ui/label" +import { useEffect, useState } from 'react'; -import { Github, Download, Zap, Type, Globe, Sparkles, Heart, MessageCircle, Paintbrush, Star } from 'lucide-react' +import { Github, Download, Zap, Type, Globe, Sparkles, Heart, MessageCircle, Paintbrush, Star, Speech } from 'lucide-react' import Image from 'next/image' export default function Component() { + const [downloadLink, setDownloadLink] = useState(''); + + useEffect(() => { + const userAgent = window.navigator.userAgent; + if (userAgent.indexOf('Win') !== -1) { + setDownloadLink('https://github.com/tmoroney/auto-subs/releases/download/V2.1/AutoSubs-Win-setup.exe'); + } else if (userAgent.indexOf('Mac') !== -1) { + setDownloadLink('https://github.com/tmoroney/auto-subs/releases/download/V2.1/AutoSubs-Mac-ARM.pkg'); + } else { + setDownloadLink('https://github.com/tmoroney/auto-subs/releases'); + } + }, []); + return (
-
+
-
+
-
+
-
-