Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
117 changes: 52 additions & 65 deletions frontend/src/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const steps = [

export default function LandingPage() {
return (
<div className="min-h-screen bg-[#050e18] text-slate-200 relative">
<div className="min-h-screen bg-[#050e18] text-slate-200 relative overflow-x-hidden">
{/* ── CSS ─────────────────────────────────────────────── */}
<style>{`
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500;1,600&display=swap');
Expand Down Expand Up @@ -68,8 +68,8 @@ export default function LandingPage() {

/* Crystal prism */
.prism {
width: 340px;
height: 340px;
width: clamp(240px, 75vw, 340px);
height: clamp(240px, 75vw, 340px);
position: relative;
}
.prism::before {
Expand All @@ -91,7 +91,7 @@ export default function LandingPage() {
.prism::after {
content: '';
position: absolute;
inset: 30px;
inset: 20px;
background: conic-gradient(
from 220deg,
rgba(96,165,250,.1),
Expand All @@ -116,86 +116,73 @@ export default function LandingPage() {
transform: translateY(-2px);
box-shadow: 0 16px 48px -12px rgba(0,0,0,.5), 0 0 0 1px rgba(96,165,250,.08);
}

/* Step connector dash */
.step-connector {
width: 100%;
height: 1px;
background: repeating-linear-gradient(
90deg,
rgba(96,165,250,.2) 0px,
rgba(96,165,250,.2) 6px,
transparent 6px,
transparent 12px
);
}
`}</style>

{/* ── Ambient glow ───────────────────────────────────── */}
<div className="fixed inset-0 pointer-events-none overflow-hidden" aria-hidden>
<div className="absolute -top-[30%] left-1/2 -translate-x-1/2 w-[900px] h-[900px] rounded-full"
<div className="absolute -top-[30%] left-1/2 -translate-x-1/2 w-[min(900px,100vw)] h-[min(900px,100vw)] rounded-full"
style={{ background: 'radial-gradient(circle, rgba(45,98,255,.1) 0%, transparent 65%)' }} />
<div className="absolute top-[55%] -right-[10%] w-[500px] h-[500px] rounded-full"
<div className="absolute top-[55%] -right-[10%] w-[min(500px,80vw)] h-[min(500px,80vw)] rounded-full"
style={{ background: 'radial-gradient(circle, rgba(56,189,248,.05) 0%, transparent 65%)' }} />
</div>

{/* ── Nav ────────────────────────────────────────────── */}
<nav className="sticky top-0 z-50 backdrop-blur-xl border-b border-white/[.04]"
style={{ background: 'rgba(5,14,24,.75)' }}>
<div className="max-w-6xl mx-auto flex items-center justify-between px-6 h-16">
<Link to="/" className="flex items-center gap-2.5 group">
<div className="max-w-6xl mx-auto flex items-center justify-between px-4 sm:px-6 h-16">
<Link to="/" className="flex items-center gap-2 sm:gap-2.5 group">
<div className="w-8 h-8 rounded-lg bg-gradient-to-br from-brand-500 to-blue-400 flex items-center justify-center
shadow-lg shadow-brand-500/20 group-hover:shadow-brand-500/40 transition-shadow">
shadow-lg shadow-brand-500/20 group-hover:shadow-brand-500/40 transition-shadow shrink-0">
<Gem size={14} className="text-white" />
</div>
<span className="font-display text-lg font-semibold tracking-tight text-white">
<span className="font-display text-base sm:text-lg font-semibold tracking-tight text-white">
Crystal<span className="text-blue-400">PDF</span>
</span>
</Link>
<div className="flex items-center gap-2">
<div className="flex items-center gap-1.5 sm:gap-2">
<Link to="/login"
className="text-sm text-slate-400 hover:text-white px-4 py-2 transition-colors">
className="text-xs sm:text-sm text-slate-400 hover:text-white px-2.5 sm:px-4 py-2 transition-colors">
Sign in
</Link>
<Link to="/register"
className="text-sm font-medium text-blue-300 bg-brand-500/15 hover:bg-brand-500/25
className="text-xs sm:text-sm font-medium text-blue-300 bg-brand-500/15 hover:bg-brand-500/25
border border-brand-500/25 hover:border-brand-500/40
px-4 py-2 rounded-lg transition-all">
px-3 sm:px-4 py-1.5 sm:py-2 rounded-lg transition-all whitespace-nowrap">
Get started
</Link>
</div>
</div>
</nav>

{/* ── Hero ───────────────────────────────────────────── */}
<section className="relative z-10 max-w-6xl mx-auto px-6
pt-20 pb-24 md:pt-32 md:pb-36
grid md:grid-cols-[1fr,auto] items-center gap-12">
<section className="relative z-10 max-w-6xl mx-auto px-4 sm:px-6
pt-12 pb-16 md:pt-32 md:pb-36
grid md:grid-cols-[1fr,auto] items-center gap-8 md:gap-12">
{/* Text column */}
<div className="max-w-2xl">
<div className="max-w-2xl text-center md:text-left mx-auto md:mx-0">
<h1 className="font-display font-semibold tracking-tight leading-[1.1]
text-[clamp(2.2rem,5.5vw,4.8rem)] text-white anim-reveal">
Every<br className="hidden sm:block" /> PDF tool<br className="hidden sm:block" /> you'll ever{' '}
<em className="not-italic text-blue-400">need.</em>
</h1>

<p className="mt-7 text-[clamp(1rem,1.8vw,1.2rem)] leading-relaxed
text-slate-400 max-w-md anim-reveal anim-d2">
<p className="mt-5 sm:mt-7 text-[clamp(0.95rem,1.8vw,1.2rem)] leading-relaxed
text-slate-400 max-w-md mx-auto md:mx-0 anim-reveal anim-d2">
Merge, split, compress, protect, convert, and annotate&nbsp;&mdash;
from one elegant workspace. No subscriptions, no upload limits.
</p>

<div className="mt-10 flex flex-wrap gap-3 anim-reveal anim-d3">
<div className="mt-8 sm:mt-10 flex flex-col sm:flex-row items-stretch sm:items-center justify-center md:justify-start gap-3 anim-reveal anim-d3">
<Link to="/register"
className="inline-flex items-center gap-2 px-6 py-3.5 rounded-xl text-[15px] font-medium
className="inline-flex items-center justify-center gap-2 px-6 py-3.5 rounded-xl text-[15px] font-medium
text-white bg-gradient-to-b from-brand-500 to-brand-600
shadow-[0_2px_24px_rgba(45,98,255,.35)]
hover:shadow-[0_4px_32px_rgba(45,98,255,.5)]
hover:-translate-y-px active:translate-y-0 transition-all">
Start for free <ArrowRight size={15} strokeWidth={2.2} />
</Link>
<Link to="/login"
className="inline-flex items-center gap-2 px-6 py-3.5 rounded-xl text-[15px] font-medium
className="inline-flex items-center justify-center gap-2 px-6 py-3.5 rounded-xl text-[15px] font-medium
text-slate-300 border border-white/10 hover:border-white/20
hover:bg-white/[.03] transition-all">
Sign in to workspace
Expand All @@ -204,39 +191,39 @@ export default function LandingPage() {
</div>

{/* Crystal visual */}
<div className="hidden md:flex items-center justify-center anim-fade anim-d4">
<div className="flex items-center justify-center my-4 md:my-0 anim-fade anim-d4">
<div className="prism">
{/* Inner facets */}
<div className="absolute inset-0 flex items-center justify-center">
<Layers size={48} className="text-blue-400/30" strokeWidth={1} />
<Layers size={40} className="text-blue-400/30 md:w-12 md:h-12" strokeWidth={1} />
</div>
</div>
</div>
</section>

{/* ── Tools grid ─────────────────────────────────────── */}
<section className="relative z-10 dot-grid">
<div className="max-w-6xl mx-auto px-6 py-24 md:py-32">
<div className="max-w-6xl mx-auto px-4 sm:px-6 py-16 sm:py-24 md:py-32">
{/* Section header */}
<div className="max-w-lg mb-14">
<p className="text-xs font-medium tracking-[.15em] uppercase text-brand-400 mb-4">
<div className="max-w-lg mb-10 sm:mb-14 text-center md:text-left mx-auto md:mx-0">
<p className="text-xs font-medium tracking-[.15em] uppercase text-brand-400 mb-3 sm:mb-4">
Toolkit
</p>
<h2 className="font-display text-[clamp(2rem,4.5vw,3.5rem)] font-semibold
<h2 className="font-display text-[clamp(1.8rem,4.5vw,3.5rem)] font-semibold
tracking-tight leading-[1.05] text-white">
Everything in<br className="hidden sm:block" /> one workspace
</h2>
<p className="mt-4 text-slate-500 leading-relaxed text-[15px]">
<p className="mt-3 sm:mt-4 text-slate-500 leading-relaxed text-sm sm:text-[15px]">
Every operation produces a new file — your originals stay untouched.
</p>
</div>

{/* Grid */}
<div className="grid grid-cols-2 sm:grid-cols-4 gap-3">
{/* Grid: 1 col on small phones, 2 on mobile, 4 on desktop */}
<div className="grid grid-cols-1 xs:grid-cols-2 sm:grid-cols-2 md:grid-cols-4 gap-3 sm:gap-4">
{tools.map((t) => (
<div key={t.name} className="tool-card rounded-2xl p-5 cursor-default group">
<div key={t.name} className="tool-card rounded-2xl p-4 sm:p-5 cursor-default group">
<div className="w-10 h-10 rounded-xl bg-blue-400/[.08] border border-blue-400/[.12]
flex items-center justify-center mb-4
flex items-center justify-center mb-3 sm:mb-4
group-hover:bg-blue-400/[.12] group-hover:border-blue-400/[.2]
transition-colors">
<t.icon size={18} className="text-blue-400" strokeWidth={1.8} />
Expand All @@ -255,12 +242,12 @@ export default function LandingPage() {

{/* ── How it works ───────────────────────────────────── */}
<section className="relative z-10 border-t border-white/[.04]">
<div className="max-w-3xl mx-auto px-6 py-24 md:py-32">
<div className="text-center max-w-lg mx-auto mb-16">
<p className="text-xs font-medium tracking-[.15em] uppercase text-brand-400 mb-4">
<div className="max-w-3xl mx-auto px-4 sm:px-6 py-16 sm:py-24 md:py-32">
<div className="text-center max-w-lg mx-auto mb-12 sm:mb-16">
<p className="text-xs font-medium tracking-[.15em] uppercase text-brand-400 mb-3 sm:mb-4">
How it works
</p>
<h2 className="font-display text-[clamp(2rem,4.5vw,3.5rem)] font-semibold
<h2 className="font-display text-[clamp(1.8rem,4.5vw,3.5rem)] font-semibold
tracking-tight leading-[1.05] text-white">
Three steps, that's it
</h2>
Expand All @@ -270,17 +257,17 @@ export default function LandingPage() {
{steps.map((s, i) => (
<div key={s.num}>
{/* Step row */}
<div className="flex items-start gap-5">
<div className="flex items-start gap-4 sm:gap-5">
{/* Left: number + icon */}
<div className="flex flex-col items-center">
<div className="w-12 h-12 rounded-xl flex items-center justify-center
<div className="w-10 h-10 sm:w-12 sm:h-12 rounded-xl flex items-center justify-center
bg-brand-500/10 border border-brand-500/20 shrink-0">
<s.icon size={20} className="text-blue-400" strokeWidth={1.6} />
<s.icon size={18} className="text-blue-400 sm:w-5 sm:h-5" strokeWidth={1.6} />
</div>
</div>

{/* Right: text */}
<div className="pt-1">
<div className="pt-0.5 sm:pt-1">
<p className="text-xs font-medium text-brand-400/60 tracking-wider mb-1">
Step {s.num}
</p>
Expand All @@ -295,8 +282,8 @@ export default function LandingPage() {

{/* Connector between steps */}
{i < steps.length - 1 && (
<div className="flex items-stretch gap-5 py-1">
<div className="w-12 flex justify-center shrink-0">
<div className="flex items-stretch gap-4 sm:gap-5 py-1">
<div className="w-10 sm:w-12 flex justify-center shrink-0">
<div className="w-px h-8 bg-gradient-to-b from-brand-500/20 to-transparent" />
</div>
</div>
Expand All @@ -309,30 +296,30 @@ export default function LandingPage() {

{/* ── CTA ────────────────────────────────────────────── */}
<section className="relative z-10 border-t border-white/[.04]">
<div className="max-w-6xl mx-auto px-6 py-28 md:py-36 text-center">
<div className="max-w-6xl mx-auto px-4 sm:px-6 py-20 sm:py-28 md:py-36 text-center">
{/* Soft top glow */}
<div className="absolute inset-x-0 top-0 h-64 pointer-events-none"
style={{ background: 'radial-gradient(ellipse 50% 100% at 50% 0%, rgba(45,98,255,.06), transparent)' }} />

<p className="text-sm text-slate-500 mb-4 relative">
<p className="text-xs sm:text-sm text-slate-500 mb-3 sm:mb-4 relative">
Free to use. No credit card required.
</p>
<h2 className="font-display text-[clamp(2.4rem,5.5vw,4.5rem)] font-semibold
tracking-tight leading-[.95] text-white mb-10 relative">
<h2 className="font-display text-[clamp(2rem,5.5vw,4.5rem)] font-semibold
tracking-tight leading-[1.0] text-white mb-8 sm:mb-10 relative">
Start working with<br />
your PDFs today.
</h2>
<div className="relative flex flex-wrap justify-center gap-3">
<div className="relative flex flex-col sm:flex-row justify-center items-center gap-3 max-w-sm sm:max-w-none mx-auto">
<Link to="/register"
className="inline-flex items-center gap-2 px-7 py-3.5 rounded-xl text-[15px] font-medium
className="w-full sm:w-auto inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-xl text-[15px] font-medium
text-white bg-gradient-to-b from-brand-500 to-brand-600
shadow-[0_2px_24px_rgba(45,98,255,.35)]
hover:shadow-[0_4px_32px_rgba(45,98,255,.5)]
hover:-translate-y-px transition-all">
Create free account <ArrowRight size={15} strokeWidth={2.2} />
</Link>
<Link to="/login"
className="inline-flex items-center gap-2 px-7 py-3.5 rounded-xl text-[15px] font-medium
className="w-full sm:w-auto inline-flex items-center justify-center gap-2 px-7 py-3.5 rounded-xl text-[15px] font-medium
text-slate-400 hover:text-slate-200 transition-colors">
or sign in
</Link>
Expand All @@ -342,7 +329,7 @@ export default function LandingPage() {

{/* ── Footer ─────────────────────────────────────────── */}
<footer className="relative z-10 border-t border-white/[.04]">
<div className="max-w-6xl mx-auto px-6 py-8 flex items-center justify-between flex-wrap gap-4">
<div className="max-w-6xl mx-auto px-4 sm:px-6 py-6 sm:py-8 flex flex-col sm:flex-row items-center justify-between text-center sm:text-left gap-3 sm:gap-4">
<span className="font-display text-sm font-semibold text-slate-600">
Crystal<span className="text-blue-400/50">PDF</span>
</span>
Expand Down