forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCTA.tsx
More file actions
65 lines (58 loc) 路 2.04 KB
/
Copy pathCTA.tsx
File metadata and controls
65 lines (58 loc) 路 2.04 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
'use client';
import Link from 'next/link';
import { ArrowRight } from 'lucide-react';
import { useGSAP } from '@gsap/react';
import gsap from 'gsap';
import { ScrollTrigger } from 'gsap/ScrollTrigger';
import { useRef } from 'react';
gsap.registerPlugin(ScrollTrigger);
export default function CTA() {
const containerRef = useRef(null);
useGSAP(
() => {
gsap.from('.cta-content', {
scrollTrigger: {
trigger: containerRef.current,
start: 'top 80%',
},
opacity: 0,
filter: 'blur(10px)',
y: 50,
stagger: 0.2,
duration: 1,
ease: 'power3.out',
});
},
{ scope: containerRef }
);
return (
<section
ref={containerRef}
className="relative py-24 md:py-32 overflow-hidden bg-[#030303]"
>
<div className="max-w-3xl px-4 mx-auto text-center glowing-card-container">
<div className="glow-layer"></div>
<div className="relative z-10 p-8 md:p-12 rounded-3xl bg-black/40 backdrop-blur-xl border border-white/10">
<h2 className="cta-content text-3xl font-bold text-white md:text-4xl">
Ready to See What's{' '}
<span className="text-purple-500">Happening</span>?
</h2>
<p className="cta-content max-w-xl mx-auto mt-4 text-white/70">
From the bustling streets of Lagos to the quiet corners of your
neighborhood, discover and share what's happening right now.
Your community is waiting.
</p>
<div className="cta-content mt-8">
<Link
href="/map"
className="inline-flex items-center justify-center px-8 py-3 text-lg font-semibold text-black transition-all duration-300 bg-purple-950 rounded-lg hover:bg-purple-900 hover:scale-105"
>
<span className="text-purple-200"> Explore the Live Map</span>{' '}
<ArrowRight className="w-5 h-5 ml-2 text-purple-200" />
</Link>
</div>
</div>
</div>
</section>
);
}