feat: implement instant download functionality with static link (#16)

This commit is contained in:
Owen Gretzinger
2025-07-14 22:32:57 -04:00
committed by GitHub
parent c449847752
commit b6c083ffce
9 changed files with 171 additions and 118 deletions
+7 -6
View File
@@ -1,5 +1,8 @@
"use client"
import { Button } from "@/components/ui/button"
import { Download, Github, ArrowRight } from "lucide-react"
import { downloadAndNavigate } from "@/lib/utils"
export default function FinalCTA() {
return (
@@ -17,12 +20,10 @@ export default function FinalCTA() {
</p>
<div className="flex flex-col sm:flex-row gap-6 justify-center mb-12">
<Button size="lg" className="bg-blue-600 hover:bg-blue-700 text-lg px-8 py-4 group" asChild>
<a href="/download">
<Download className="w-5 h-5 mr-2" />
Download for macOS
<ArrowRight className="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" />
</a>
<Button size="lg" className="bg-blue-600 hover:bg-blue-700 text-lg px-8 py-4 group" onClick={downloadAndNavigate}>
<Download className="w-5 h-5 mr-2" />
Download for macOS
<ArrowRight className="w-4 h-4 ml-2 group-hover:translate-x-1 transition-transform" />
</Button>
<Button
variant="outline"