style: make terminal hero responsive on wider screens

- Hero: responsive max-width (2xl→3xl→4xl→5xl) and min-height
- Terminal: responsive font size (sm→base→lg), padding, title bar

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-13 22:54:42 +08:00
parent 62d5973e1f
commit a4e88fa506
2 changed files with 10 additions and 10 deletions

View File

@@ -89,7 +89,7 @@ export function HeroSection({ title, tagline }: HeroSectionProps) {
}, [reducedMotion]);
return (
<div className="relative min-h-[280px] w-full overflow-hidden rounded-2xl">
<div className="relative min-h-[280px] w-full overflow-hidden rounded-2xl sm:min-h-[320px] lg:min-h-[360px] xl:min-h-[400px]">
{/* Matrix rain - full area, fades out */}
{!reducedMotion && (
<div
@@ -101,9 +101,9 @@ export function HeroSection({ title, tagline }: HeroSectionProps) {
</div>
)}
{/* Terminal - fades in over Matrix */}
{/* Terminal - fades in over Matrix, responsive width */}
<div
className="relative z-10 mx-auto max-w-2xl px-4 py-6 transition-opacity duration-[600ms] ease-out"
className="relative z-10 mx-auto w-full max-w-2xl px-4 py-6 transition-opacity duration-[600ms] ease-out sm:max-w-3xl lg:max-w-4xl xl:max-w-5xl"
style={{ opacity: reducedMotion ? 1 : terminalOpacity }}
>
<TerminalWindow