'use client'; import React, { useRef, useEffect } from 'react'; import Link from 'next/link'; function useMagnetic() { const ref = useRef(null); useEffect(() => { const el = ref.current; if (!el) return; const onMove = (e: MouseEvent) => { const r = el.getBoundingClientRect(); el.style.transform = `translate(${((e.clientX - r.left) / r.width - 0.5) * 18}px,${((e.clientY - r.top) / r.height - 0.5) * 18}px) scale(1.04)`; }; const onLeave = () => { el.style.transform = 'translate(0,0) scale(1)'; }; el.addEventListener('mousemove', onMove); el.addEventListener('mouseleave', onLeave); return () => { el.removeEventListener('mousemove', onMove); el.removeEventListener('mouseleave', onLeave); }; }, []); return ref; } const proof = [ { val: '50K+', label: 'Active users', color: '#f4be28' }, { val: '10K+', label: 'Partner stores', color: '#16a34a' }, { val: '₹28L+', label: 'Rewards given', color: '#2563eb' }, { val: '4.9★', label: 'App rating', color: '#9333ea' }, ]; export default function FinalCTASection() { const mag1 = useMagnetic(); const mag2 = useMagnetic(); return (
{/* Vivid background shape */}
LOYALY
{/* Live badge */}
Now live in Coimbatore
{/* Headline */}

Your rewards are waiting.

Download Loyaly and start earning on your very next purchase. Free. Instant. Yours.

{/* CTAs */}
Download for iOS Get on Android
{/* Proof stats — colored chips */}
{proof.map((p, i) => (
{p.val}
{p.label}
))}
); }