Skip to content

Commit cff0b15

Browse files
committed
style(home): polish spacing, typography, and gradients based on feedback
1 parent 99bc038 commit cff0b15

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

learnmate-frontend/src/pages/Home.jsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ const Home = () => {
1313
<div className="relative bg-[#0a2540] text-white">
1414
{/* CSS Gradient Mesh - Simplified for React/Tailwind without external assets */}
1515
<div className="absolute inset-0 overflow-hidden pointer-events-none">
16-
<div className="absolute top-[-50%] left-[-10%] w-[80%] h-[150%] bg-gradient-to-br from-[#ec4899] via-[#8b5cf6] to-[#06b6d4] opacity-30 blur-[120px] rotate-12 transform-gpu"></div>
17-
<div className="absolute top-[20%] right-[-10%] w-[60%] h-[120%] bg-gradient-to-bl from-[#f43f5e] via-[#7c3aed] to-[#3b82f6] opacity-30 blur-[100px] -rotate-12 transform-gpu"></div>
16+
<div className="absolute top-[-50%] left-[-10%] w-[80%] h-[150%] bg-gradient-to-br from-[#ec4899] via-[#8b5cf6] to-[#06b6d4] opacity-50 blur-[100px] rotate-12 transform-gpu"></div>
17+
<div className="absolute top-[20%] right-[-10%] w-[60%] h-[120%] bg-gradient-to-bl from-[#f43f5e] via-[#7c3aed] to-[#3b82f6] opacity-40 blur-[80px] -rotate-12 transform-gpu"></div>
1818
</div>
1919

2020
{/* NAVBAR: Transparent & White Text */}
2121
<nav className="relative z-50 pt-6 pb-6">
22-
<div className="max-w-[1080px] mx-auto px-6 flex items-center justify-between">
22+
<div className="max-w-[1280px] mx-auto px-6 flex items-center justify-between">
2323
<div className="flex items-center gap-3">
2424
<div className="w-10 h-10 bg-white/10 backdrop-blur-sm rounded-lg flex items-center justify-center border border-white/20 hover:bg-white/20 transition-colors">
2525
<span className="text-white text-base font-bold font-heading">L</span>
@@ -41,40 +41,41 @@ const Home = () => {
4141
</nav>
4242

4343
{/* HERO CONTENT */}
44-
<section className="relative pt-20 pb-32 sm:pt-32 sm:pb-48 overflow-hidden">
45-
<div className="max-w-[1080px] mx-auto px-6">
46-
<div className="grid lg:grid-cols-2 gap-20 items-center">
44+
<section className="relative pt-24 pb-32 sm:pt-32 sm:pb-40 overflow-hidden">
45+
<div className="max-w-[1280px] mx-auto px-6">
46+
<div className="grid lg:grid-cols-2 gap-12 items-center">
4747

4848
{/* Left: Typography (MASSIVE SCALE) */}
49-
<div className="max-w-2xl relative z-10">
50-
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/10 border border-white/10 text-sm font-medium text-pink-200 mb-10 backdrop-blur-md">
49+
<div className="max-w-3xl relative z-10">
50+
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-white/10 border border-white/10 text-sm font-medium text-pink-200 mb-8 backdrop-blur-md">
5151
<span className="flex h-2 w-2 relative">
5252
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-pink-400 opacity-75"></span>
5353
<span className="relative inline-flex rounded-full h-2 w-2 bg-pink-500"></span>
5454
</span>
5555
New: Interactive Python Environments
5656
</div>
5757

58-
<h1 className="font-heading text-7xl sm:text-8xl md:text-9xl font-bold tracking-tighter text-white mb-10 leading-[0.95]">
58+
{/* Stripe H1: Heavy, Tight, Massive */}
59+
<h1 className="font-heading text-6xl sm:text-8xl md:text-[7rem] font-extrabold tracking-[-0.04em] text-white mb-8 leading-[0.9]">
5960
Financial <br />
6061
<span className="text-transparent bg-clip-text bg-gradient-to-r from-pink-300 via-purple-300 to-indigo-300">velocity</span> <br />
6162
for skills.
6263
</h1>
6364

64-
<p className="text-xl sm:text-2xl text-slate-300 mb-12 leading-relaxed max-w-lg font-medium">
65+
<p className="text-lg sm:text-xl text-slate-200 mb-10 leading-normal max-w-lg font-medium opacity-90">
6566
The infrastructure to grow your engineering capability. Replace passive tutorials with deliberate, measurable practice.
6667
</p>
6768

68-
<div className="flex flex-col sm:flex-row items-center gap-6">
69+
<div className="flex flex-col sm:flex-row items-center gap-4">
6970
<Link
7071
to="/register"
71-
className="w-full sm:w-auto inline-flex items-center justify-center px-8 py-4 bg-[#635bff] text-white rounded-full font-bold text-lg hover:bg-[#5851df] transition-all transform hover:-translate-y-1 shadow-xl shadow-indigo-900/20"
72+
className="w-full sm:w-auto inline-flex items-center justify-center px-8 py-3.5 bg-[#635bff] text-white rounded-full font-bold text-base hover:bg-[#5851df] transition-all transform hover:-translate-y-0.5 shadow-xl shadow-indigo-900/20"
7273
>
7374
Start now <span className="ml-2"></span>
7475
</Link>
7576
<Link
7677
to="/login"
77-
className="w-full sm:w-auto inline-flex items-center justify-center px-8 py-4 text-white font-bold text-lg hover:text-indigo-200 transition-colors"
78+
className="w-full sm:w-auto inline-flex items-center justify-center px-8 py-3.5 text-white font-bold text-base hover:text-indigo-200 transition-colors"
7879
>
7980
View existing demos
8081
</Link>

0 commit comments

Comments
 (0)