Skip to content

Commit 5445504

Browse files
committed
chore: optimize mobile hero — bigger slogan, smaller buttons, cleaner rhythm
- H1 slogan: 12px → 24px on mobile (text-xl semibold), scales to text-5xl on desktop. Drop redundant 'Pilot Shell —' prefix (logo above already says it). - Subdescription steps to text-sm/text-base (was text-[11px]). - Tagline takes a muted tertiary role. - CTAs: h-12 → h-10 on mobile, drop w-full force, switch from flex-col to flex-row flex-wrap so primary GitHub button gets its own row and Documentation + Blog pair below. - Tighten vertical spacing for cleaner rhythm.
1 parent ec4141a commit 5445504

1 file changed

Lines changed: 16 additions & 20 deletions

File tree

docs/site/src/components/HeroSection.tsx

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,58 @@ import Logo from "@/components/Logo";
44

55
const HeroSection = () => {
66
return (
7-
<section className="min-h-[70vh] flex flex-col items-center justify-center px-3 xs:px-4 sm:px-6 relative overflow-hidden pt-16 xs:pt-20 pb-4">
8-
7+
<section className="min-h-[70vh] flex flex-col items-center justify-center px-4 sm:px-6 relative overflow-hidden pt-14 xs:pt-16 sm:pt-20 pb-6">
98
<div className="relative z-10 text-center max-w-4xl mx-auto w-full">
109
{/* Logo */}
11-
<div className="animate-fade-in-up flex justify-center my-2 xs:my-4 sm:my-6">
10+
<div className="animate-fade-in-up flex justify-center mb-4 xs:mb-5 sm:mb-6">
1211
<Logo variant="hero" />
1312
</div>
1413

15-
{/* Subtitle */}
16-
<div className="animate-fade-in-up animation-delay-100 mb-6 xs:mb-8 px-1">
17-
<h1 className="text-foreground/90 text-xs xs:text-sm sm:text-base md:text-lg lg:text-xl font-medium max-w-[90%] xs:max-w-xl sm:max-w-2xl mx-auto leading-relaxed">
18-
Pilot Shell — how real engineers run Claude Code.
14+
{/* Slogan + descriptions */}
15+
<div className="animate-fade-in-up animation-delay-100 mb-6 xs:mb-7 sm:mb-9">
16+
<h1 className="text-foreground text-xl xs:text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-semibold tracking-tight leading-tight max-w-3xl mx-auto">
17+
How real engineers run Claude Code.
1918
</h1>
20-
<p className="text-muted-foreground text-[11px] xs:text-xs sm:text-sm md:text-base max-w-[90%] xs:max-w-xl sm:max-w-2xl mx-auto mt-1.5 leading-relaxed">
19+
<p className="text-muted-foreground text-sm xs:text-base sm:text-lg md:text-xl mt-3 xs:mt-4 max-w-2xl mx-auto leading-relaxed">
2120
From requirement to production-grade code — planned, tested, verified.
2221
</p>
23-
<p className="text-muted-foreground text-[10px] xs:text-xs sm:text-sm md:text-base max-w-[90%] xs:max-w-xl sm:max-w-2xl mx-auto mt-1.5 leading-relaxed">
22+
<p className="text-muted-foreground/80 text-xs xs:text-sm sm:text-base mt-2 max-w-2xl mx-auto">
2423
Spec-driven plans. Enforced quality gates. Persistent knowledge.
2524
</p>
2625
</div>
2726

28-
{/* CTA Buttons */}
29-
<div className="flex flex-col sm:flex-row items-center justify-center gap-2 sm:gap-4 animate-fade-in-up animation-delay-500 px-2">
27+
{/* CTA Buttons — stack on tiny screens, row from xs (475px+) */}
28+
<div className="flex flex-col xs:flex-row flex-wrap items-stretch xs:items-center justify-center gap-2 xs:gap-3 animate-fade-in-up animation-delay-500 max-w-md xs:max-w-none mx-auto">
3029
<Button
31-
size="lg"
3230
asChild
33-
className="w-full sm:w-auto text-sm xs:text-base"
31+
className="h-10 px-5 text-sm xs:text-base sm:h-11 sm:px-6 w-full xs:w-auto"
3432
>
3533
<a
3634
href="https://github.com/maxritter/pilot-shell"
3735
target="_blank"
3836
rel="noopener noreferrer"
3937
>
40-
<GithubIcon className="mr-1.5 xs:mr-2 h-3.5 w-3.5 xs:h-4 xs:w-4" />
38+
<GithubIcon className="mr-2 h-4 w-4" />
4139
View on GitHub
4240
</a>
4341
</Button>
4442
<Button
4543
variant="outline"
46-
size="lg"
4744
asChild
48-
className="w-full sm:w-auto text-sm xs:text-base"
45+
className="h-10 px-5 text-sm xs:text-base sm:h-11 sm:px-6 w-full xs:w-auto"
4946
>
5047
<a href="/docs">
51-
<BookOpen className="mr-1.5 xs:mr-2 h-3.5 w-3.5 xs:h-4 xs:w-4" />
48+
<BookOpen className="mr-2 h-4 w-4" />
5249
Documentation
5350
</a>
5451
</Button>
5552
<Button
5653
variant="outline"
57-
size="lg"
5854
asChild
59-
className="w-full sm:w-auto text-sm xs:text-base"
55+
className="h-10 px-5 text-sm xs:text-base sm:h-11 sm:px-6 w-full xs:w-auto"
6056
>
6157
<a href="/blog">
62-
<Newspaper className="mr-1.5 xs:mr-2 h-3.5 w-3.5 xs:h-4 xs:w-4" />
58+
<Newspaper className="mr-2 h-4 w-4" />
6359
Blog
6460
</a>
6561
</Button>

0 commit comments

Comments
 (0)