11import { useState } from 'react' ;
22import { useTheme } from '../../context/theme/ThemeContext'
3- import { Mail , Link , Copy , CheckCircle2 } from 'lucide-react' ;
3+ import { Mail , Link , Link2 , Copy , CheckCircle2 } from 'lucide-react' ;
44import Button from '../ui/Button' ;
55
66function InviteCard ( ) {
77 const { theme } = useTheme ( )
88 const [ copied , setCopied ] = useState ( false ) ;
9- const inviteLink = 'https://codedetectives. com/invite/abc123xyz ' ;
9+ const inviteLink = 'https://app.crackcodehq. com' ;
1010 const friendsInvited = 3 ;
1111 const bonusPoints = 450 ;
1212
@@ -26,13 +26,21 @@ function InviteCard() {
2626 borderWidth : '1px'
2727 } }
2828 >
29- < div className = 'grid grid-cols-1 md:grid-cols-3 gap-6 items-center' >
29+ < div className = 'grid grid-cols-1 md:grid-cols-2 gap-6 items-center' >
3030 { /* Left: Info */ }
31- < div className = 'md:col-span-1' >
32- < h3 className = "text-lg font-bold mb-1" > 🎉 Invite Friends</ h3 >
33- < p style = { { color : 'var(--textSec)' } } className = "text-xs" >
34- Earn bonus points together
35- </ p >
31+ < div className = 'flex flex-row md:col-span-1 gap-6' >
32+ < div >
33+ < h3 className = "flex items-center justify-baseline gap-2 text-lg font-bold mb-1" >
34+ < span > < Link2 /> </ span >
35+ Invite Friends
36+ </ h3 >
37+ </ div >
38+ < div >
39+ < p style = { { color : 'var(--textSec)' } } className = "text-xs" >
40+ Know someone who’d enjoy learning to code through challenges and stories? < br />
41+ Send them this link and let them jump in!
42+ </ p >
43+ </ div >
3644 </ div >
3745
3846 { /* Center: Copy Link */ }
@@ -45,7 +53,7 @@ function InviteCard() {
4553 className = "flex-1 rounded-lg px-3 py-2 text-xs focus:outline-none transition-all duration-300"
4654 style = { {
4755 background : 'rgba(255, 165, 0, 0.05)' ,
48- color : 'var(--text )' ,
56+ color : 'var(--muted )' ,
4957 border : '1px solid var(--border)'
5058 } }
5159 />
@@ -72,7 +80,7 @@ function InviteCard() {
7280 </ div >
7381
7482 { /* Right: Stats */ }
75- < div className = 'md:col-span-1 flex gap-4' >
83+ { /* <div className='md:col-span-1 flex gap-4'>
7684 <div className='flex-1'>
7785 <p className="text-xs font-semibold mb-1" style={{ color: 'var(--textSec)' }}>
7886 Invited
@@ -89,7 +97,7 @@ function InviteCard() {
8997 +{bonusPoints}
9098 </p>
9199 </div>
92- </ div >
100+ </div> */ }
93101 </ div >
94102 </ div >
95103 ) ;
0 commit comments