11
22import React from 'react' ;
3+ import { motion } from 'framer-motion' ;
4+ import ReferralProgram from '@/components/ReferralProgram' ;
5+ import { useIsMobile } from "@/hooks/use-mobile" ;
36
47const Referrals : React . FC = ( ) => {
8+ const isMobile = useIsMobile ( ) ;
9+
510 return (
6- < div className = "container py-8" >
7- < h1 className = "text-3xl font-bold mb-4" > Referrals</ h1 >
8- < p > Referral program details will go here</ p >
9- </ div >
11+ < motion . div
12+ className = "container py-8 pb-16"
13+ initial = { { opacity : 0 } }
14+ animate = { { opacity : 1 } }
15+ transition = { { duration : 0.5 } }
16+ >
17+ < div className = "mb-8" >
18+ < motion . h1
19+ className = "text-3xl font-bold mb-2"
20+ initial = { { opacity : 0 , y : - 20 } }
21+ animate = { { opacity : 1 , y : 0 } }
22+ transition = { { duration : 0.3 } }
23+ >
24+ Referral Program
25+ </ motion . h1 >
26+ < motion . p
27+ className = "text-muted-foreground"
28+ initial = { { opacity : 0 , y : - 20 } }
29+ animate = { { opacity : 1 , y : 0 } }
30+ transition = { { duration : 0.3 , delay : 0.1 } }
31+ >
32+ Invite friends and earn rewards together
33+ </ motion . p >
34+ </ div >
35+
36+ < ReferralProgram className = "w-full" />
37+ </ motion . div >
1038 ) ;
1139} ;
1240
13- export default Referrals ;
41+ export default Referrals ;
0 commit comments