@@ -11,9 +11,11 @@ const CategoryIcon = () => <svg className="h-12 w-12 text-purple-500" fill="none
1111
1212const FeatureCard = ( { icon, title, children } ) => {
1313 return (
14- < div className = "relative group cursor-pointer" >
14+ < Link to = "/login" >
15+
16+ < div className = "relative group cursor-pointer " >
1517 { /* Glow effect on hover */ }
16- < div className = "absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 blur-xl bg-gradient-to-r from-sky-400/40 via-purple-400/40 to-pink-400/40 transition-opacity duration-500" />
18+ < div className = "absolute inset-0 rounded-2xl opacity-0 group-hover:opacity-100 blur-l bg-gradient-to-r from-sky-400/40 via-purple-400/40 to-pink-400/40 transition-opacity duration-500" />
1719
1820 { /* Actual Card */ }
1921 < div className = "relative p-8 bg-white dark:bg-gray-900 rounded-2xl shadow-md hover:shadow-2xl transition-all duration-300 transform group-hover:-translate-y-2 border border-gray-200 dark:border-gray-700" >
@@ -35,6 +37,7 @@ const FeatureCard = ({ icon, title, children }) => {
3537 </ p >
3638 </ div >
3739 </ div >
40+ </ Link >
3841 ) ;
3942} ;
4043
@@ -43,38 +46,76 @@ export default function WelcomePage() {
4346 const { logout } = useAuth ( ) ;
4447
4548 return (
46- < div className = "bg-gray-50 dark:bg-gray-900 min-h-screen font-montserrat text-gray-800 dark:text-gray-200" >
47- { /* Header */ }
48- < header className = "py-4 px-8 flex justify-between items-center bg-white dark:bg-gray-800 shadow-md" >
49- < Link to = "/" className = "text-2xl font-bold text-blue-600 dark:text-blue-400" >
50- Paisable
51- </ Link >
52- < div className = "flex items-center gap-4" >
53- < ThemeToggle />
54- { user ? (
49+ < div className = "bg-background" >
50+
51+ < nav className = "border-b border-border " >
52+ < div className = "mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4 flex items-center justify-between" >
53+ < div className = "text-2xl font-bold text-primary" > Paisable</ div >
54+ < div className = "flex items-center gap-4" >
55+ < ThemeToggle />
56+ { user ? (
5557 < >
56- < Link to = "/dashboard" className = "text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-semibold" > Dashboard</ Link >
57- < button onClick = { logout } className = "bg-red-500 text-white px-4 py-2 rounded-md font-semibold hover:bg-red-600" > Logout</ button >
58+ < Link to = "/dashboard" className = "text-gray-600 dark:text-gray-300 hover:bg-background/80 transition font-semibold" > Dashboard</ Link >
59+ < button onClick = { logout } className = "bg-secondary text-white px-4 py-2 rounded-md font-semibold hover:bg-red-600" > Logout</ button >
5860 </ >
5961 ) : (
6062 < >
61- < Link to = "/login" className = "text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 font-semibold" > Login</ Link >
62- < Link to = "/register" className = "bg-blue-600 text-white px-4 py-2 rounded-md font-semibold hover:bg-blue -700" > Sign Up</ Link >
63+ < Link to = "/login" className = "text-gray-600 dark:text-gray-300 hover:text-[#155e75] dark:hover:text-gray-700 font-semibold" > Login</ Link >
64+ < Link to = "/register" className = "bg-secondary text-white px-4 py-2 rounded-md font-semibold hover:bg-[#155e75] dark:hover:bg-gray -700" > Sign Up</ Link >
6365 </ >
6466 ) }
67+
68+ </ div >
69+ </ div >
70+ </ nav >
71+ < section className = "mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-16 sm:py-24" >
72+ < div className = "grid grid-cols-1 lg:grid-cols-2 gap-12 items-center" >
73+ { /* Left Content */ }
74+ < div className = "space-y-8" >
75+ < div className = "space-y-4" >
76+ < div className = "inline-block px-4 py-2 bg-secondary rounded-full" >
77+ </ div >
78+ < h1 className = "text-5xl sm:text-6xl font-bold text-primary text-balance leading-tight" >
79+ Take Control of Your Finances
80+ </ h1 >
81+ < p className = "text-lg text-foreground leading-relaxed max-w-lg" >
82+ The simple, smart, and secure way to manage your income and expenses, visualize your spending, and achieve your financial goals.
83+ </ p >
84+ </ div >
85+
86+
87+
88+
89+ </ div >
90+
91+ { /* Right Visual */ }
92+ < div className = "relative h-96 sm:h-full min-h-96 bg-gradient-to-br from-secondary to-slate-100 rounded-3xl overflow-hidden shadow-2xl" >
93+ < div className = "absolute inset-0 opacity-10 bg-" />
94+ < div className = "absolute top-8 left-8 right-8 space-y-4" >
95+ < div className = "bg-secondary rounded-xl p-6 shadow-lg space-y-3" >
96+ < p className = "text-sm text-foreground" > Total Balance</ p >
97+ < p className = "text-3xl font-bold text-primary" > $24,582.50</ p >
98+ < div className = "flex gap-2 pt-2" >
99+ < div className = "h-1 flex-1 bg-accent rounded-full" />
100+ < div className = "h-1 flex-1 bg-secondary rounded-full" />
101+ </ div >
102+ </ div >
103+ < div className = "grid grid-cols-2 gap-3" >
104+ < div className = "bg-secondary rounded-lg p-4 shadow-lg" >
105+ < p className = "text-xs text-foreground mb-1" > Income</ p >
106+ < p className = "text-xl font-bold text-primary" > +$5,200</ p >
107+ </ div >
108+ < div className = "bg-secondary rounded-lg p-4 shadow-lg" >
109+ < p className = "text-xs text-muted-foreground mb-1" > Expenses</ p >
110+ < p className = "text-xl font-bold text-primary" > -$1,840</ p >
111+ </ div >
112+ </ div >
113+ </ div >
114+ </ div >
65115 </ div >
66- </ header >
67-
68- { /* Hero Section */ }
69- < main className = "text-center py-20 px-4" >
70- < h2 className = "text-5xl font-bold text-gray-900 dark:text-white" > Take Control of Your Finances</ h2 >
71- < p className = "mt-4 text-lg text-gray-600 dark:text-gray-400 max-w-2xl mx-auto" > The simple, smart, and secure way to manage your income and expenses, visualize your spending, and achieve your financial goals.</ p >
72- { user ? (
73- < Link to = "/dashboard" className = "mt-8 inline-block bg-blue-600 text-white px-8 py-3 rounded-lg font-bold text-lg hover:bg-blue-700" > Go to Dashboard</ Link >
74- ) : (
75- < Link to = "/register" className = "mt-8 inline-block bg-blue-600 text-white px-8 py-3 rounded-lg font-bold text-lg hover:bg-blue-700" > Get Started for Free</ Link >
76- ) }
77- </ main >
116+ </ section >
117+
118+
78119
79120 { /* Features Section */ }
80121 < section className = "py-20 bg-gray-100 dark:bg-gray-800/50" >
@@ -105,7 +146,7 @@ export default function WelcomePage() {
105146 </ section >
106147
107148 { /* Footer */ }
108- < footer className = "py-8 text-center text-gray-500 dark:text-gray-400" >
149+ < footer className = "py-8 text-center text-gray-500 dark:text-gray-400 bg-secondary " >
109150 < p > © { new Date ( ) . getFullYear ( ) } Paisable. All Rights Reserved.</ p >
110151 </ footer >
111152 </ div >
0 commit comments