forked from ZyntariHQ/Invoisio
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhero-section.tsx
More file actions
66 lines (59 loc) · 2.72 KB
/
Copy pathhero-section.tsx
File metadata and controls
66 lines (59 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
"use client"
import { Button } from "@/components/ui/button"
import { FileText, Wallet, Shield, Zap, Lock } from "lucide-react"
import Link from "next/link"
import { useRouter } from "next/navigation"
import { useAppLoader } from "@/components/loader-provider"
export function HeroSection() {
const router = useRouter()
const { withLoader } = useAppLoader()
const handlePaymentClick = async (e: React.MouseEvent<HTMLAnchorElement>) => {
e.preventDefault()
await withLoader(async () => {
router.push("/payment")
// tiny delay to let loader be visible
await new Promise((res) => setTimeout(res, 250))
})
}
return (
<section className="relative min-h-screen flex items-center justify-center overflow-hidden" style={{ background: 'var(--nm-background)' }}>
{/* Background Elements */}
<div className="absolute top-20 left-10 w-32 h-32 bg-primary/10 rounded-full blur-3xl animate-float" />
<div
className="absolute bottom-20 right-10 w-40 h-40 bg-accent/10 rounded-full blur-3xl animate-float"
style={{ animationDelay: "1s" }}
/>
<div className="relative container mx-auto px-4 text-center">
<div className="max-w-4xl mx-auto animate-fade-in-up">
{/* Main Headline */}
<div className="p-8 mb-8">
<h1 className="font-heading text-5xl md:text-7xl font-bold mb-6 text-balance">
<span className="text-foreground">Effortless, </span>
<span className="text-primary">Private</span>
<br />
<span className="text-foreground">Invoicing for </span>
<span className="text-primary">Freelancers</span>
</h1>
{/* Subheadline */}
<p className="text-xl md:text-2xl text-muted-foreground mb-8 max-w-3xl mx-auto text-balance leading-relaxed">
Create professional invoices quickly and easily with AI assistance.
</p>
{/* CTA Buttons */}
<div className="flex justify-center">
<div className="nm-flat rounded-lg p-4 flex flex-row flex-wrap gap-4 items-center justify-center">
<Link href="/create" className="nm-button bg-accent text-accent-foreground font-semibold text-lg flex items-center">
Create Invoice
<FileText className="ml-2 w-5 h-5" />
</Link>
<Link href="/payment" onClick={handlePaymentClick} className="nm-button bg-primary text-primary-foreground font-semibold text-lg flex items-center">
Make Payment
<Wallet className="ml-2 w-5 h-5" />
</Link>
</div>
</div>
</div>
</div>
</div>
</section>
)
}