Improved hero

This commit is contained in:
2026-02-02 13:37:31 +01:00
parent b911582d19
commit 4ec69c5127
+55 -20
View File
@@ -9,22 +9,26 @@ const Landing = () => {
{ {
icon: Timer, icon: Timer,
title: "Race the Clock", title: "Race the Clock",
description: "Built-in timer with splits tracking. Every millisecond counts in your pursuit of the perfect run.", description:
"Built-in timer with splits tracking. Every millisecond counts in your pursuit of the perfect run.",
}, },
{ {
icon: Trophy, icon: Trophy,
title: "Compete Globally", title: "Compete Globally",
description: "Weekly and all-time leaderboards. Claim your spot among the fastest runners worldwide.", description:
"Weekly and all-time leaderboards. Claim your spot among the fastest runners worldwide.",
}, },
{ {
icon: Zap, icon: Zap,
title: "Quick Runs", title: "Quick Runs",
description: "No signup walls. Jump into a run instantly and start grinding for that PB.", description:
"No signup walls. Jump into a run instantly and start grinding for that PB.",
}, },
{ {
icon: Users, icon: Users,
title: "Community First", title: "Community First",
description: "Share your runs, compare splits, and celebrate clean runs with fellow speedrunners.", description:
"Share your runs, compare splits, and celebrate clean runs with fellow speedrunners.",
}, },
]; ];
@@ -38,29 +42,42 @@ const Landing = () => {
return ( return (
<div className="min-h-screen"> <div className="min-h-screen">
{/* Hero Section */} {/* Hero Section */}
<section className="relative pt-32 pb-20 overflow-hidden"> <section className="relative overflow-hidden h-svh flex flex-col items-center justify-center">
{/* Background gradient */} {/* Background gradient */}
<div <div
className="absolute inset-0 pointer-events-none" className="absolute inset-0 pointer-events-none"
style={{ background: 'radial-gradient(ellipse at top, hsl(270 91% 75% / 0.12) 0%, transparent 60%)' }} style={{
background:
"radial-gradient(ellipse at top, hsl(270 91% 45% / 0.25) 0%, transparent 60%)",
}}
/> />
<div className="container mx-auto px-6 relative pt-24"> <div className="container mx-auto px-6 relative pt-20">
<div className="max-w-4xl mx-auto text-center"> <div className="max-w-4xl mx-auto text-center">
{/* Headline */} {/* Headline */}
<h1 className="text-5xl md:text-7xl font-bold text-foreground mb-6 animate-fade-in stagger-1 opacity-0" style={{ animationFillMode: 'forwards' }}> <h1
className="text-5xl md:text-7xl font-bold text-foreground mb-6 animate-fade-in stagger-1 opacity-0"
style={{ animationFillMode: "forwards" }}
>
Code Fast.{" "} Code Fast.{" "}
<span className="text-primary text-glow">Run Faster.</span> <span className="text-primary text-glow">Run Faster.</span>
</h1> </h1>
{/* Subheadline */} {/* Subheadline */}
<p className="text-xl text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed animate-fade-in stagger-2 opacity-0" style={{ animationFillMode: 'forwards' }}> <p
DevRun is competitive programming reimagined. Race the clock through algorithmic challenges, className="text-xl text-muted-foreground max-w-2xl mx-auto mb-10 leading-relaxed animate-fade-in stagger-2 opacity-0"
track your splits, and compete for the fastest runs on the global leaderboard. style={{ animationFillMode: "forwards" }}
>
DevRun is competitive programming reimagined. Race the clock
through algorithmic challenges, track your splits, and compete for
the fastest runs on the global leaderboard.
</p> </p>
{/* CTA Buttons */} {/* CTA Buttons */}
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 animate-fade-in stagger-3 opacity-0" style={{ animationFillMode: 'forwards' }}> <div
className="flex flex-col sm:flex-row items-center justify-center gap-4 animate-fade-in stagger-3 opacity-0"
style={{ animationFillMode: "forwards" }}
>
<Link href="/run"> <Link href="/run">
<Button variant="hero" className="group"> <Button variant="hero" className="group">
<Play className="h-5 w-5" /> <Play className="h-5 w-5" />
@@ -83,10 +100,17 @@ const Landing = () => {
<div <div
key={stat.label} key={stat.label}
className="text-center animate-fade-in opacity-0" className="text-center animate-fade-in opacity-0"
style={{ animationDelay: `${0.4 + i * 0.1}s`, animationFillMode: 'forwards' }} style={{
animationDelay: `${0.4 + i * 0.1}s`,
animationFillMode: "forwards",
}}
> >
<p className="text-3xl md:text-4xl font-bold text-primary font-mono">{stat.value}</p> <p className="text-3xl md:text-4xl font-bold text-primary font-mono">
<p className="text-sm text-muted-foreground mt-1">{stat.label}</p> {stat.value}
</p>
<p className="text-sm text-muted-foreground mt-1">
{stat.label}
</p>
</div> </div>
))} ))}
</div> </div>
@@ -110,13 +134,20 @@ const Landing = () => {
<div <div
key={feature.title} key={feature.title}
className="group bg-card border border-border rounded-xl p-6 card-hover animate-fade-in opacity-0" className="group bg-card border border-border rounded-xl p-6 card-hover animate-fade-in opacity-0"
style={{ animationDelay: `${i * 0.1}s`, animationFillMode: 'forwards' }} style={{
animationDelay: `${i * 0.1}s`,
animationFillMode: "forwards",
}}
> >
<div className="w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary/20 transition-colors"> <div className="w-12 h-12 rounded-xl bg-primary/10 flex items-center justify-center mb-4 group-hover:bg-primary/20 transition-colors">
<feature.icon className="h-6 w-6 text-primary" /> <feature.icon className="h-6 w-6 text-primary" />
</div> </div>
<h3 className="text-lg font-semibold text-foreground mb-2">{feature.title}</h3> <h3 className="text-lg font-semibold text-foreground mb-2">
<p className="text-sm text-muted-foreground leading-relaxed">{feature.description}</p> {feature.title}
</h3>
<p className="text-sm text-muted-foreground leading-relaxed">
{feature.description}
</p>
</div> </div>
))} ))}
</div> </div>
@@ -127,7 +158,10 @@ const Landing = () => {
<section className="py-24 border-t border-border relative overflow-hidden"> <section className="py-24 border-t border-border relative overflow-hidden">
<div <div
className="absolute inset-0 pointer-events-none" className="absolute inset-0 pointer-events-none"
style={{ background: 'radial-gradient(ellipse at bottom, hsl(270 91% 75% / 0.08) 0%, transparent 60%)' }} style={{
background:
"radial-gradient(ellipse at bottom, hsl(270 91% 75% / 0.08) 0%, transparent 60%)",
}}
/> />
<div className="container mx-auto px-6 relative"> <div className="container mx-auto px-6 relative">
@@ -136,7 +170,8 @@ const Landing = () => {
Ready to chase your PB? Ready to chase your PB?
</h2> </h2>
<p className="text-muted-foreground mb-8"> <p className="text-muted-foreground mb-8">
Join thousands of runners pushing the limits of competitive programming. Join thousands of runners pushing the limits of competitive
programming.
</p> </p>
<Link href="/problems"> <Link href="/problems">
<Button variant="hero" className="group"> <Button variant="hero" className="group">