Skip to content

Commit 071c3bd

Browse files
Optimize navbar layout and compress hero section for viewport fit
Navigation improvements: - Move nav links to right side with proper spacing from action buttons - Add flex spacer for better distribution of elements - Reduce gap between external link buttons from 4 to 3 Hero section compression: - Make overline pill chip smaller (text-xs, smaller padding and icon) - Move pill chip much higher (pt-2 sm:pt-4 instead of pt-8 sm:pt-12) - Reduce main heading sizes (text-3xl sm:text-4xl lg:text-5xl) - Compress rotating text container height (3.5rem instead of 5rem) - Shrink description text size and max-width - Tighten all margins and padding throughout - Reduce section bottom padding from pb-8 to pb-4 Hero section now fits comfortably in 800-1000px viewport height with monitor frame fully visible. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 211aeeb commit 071c3bd

File tree

2 files changed

+22
-21
lines changed

2 files changed

+22
-21
lines changed

src/components/HeroOptimized.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function HeroOptimized() {
4949
}, [titleNumber, rotatingTexts]);
5050

5151
const titleComponent = (
52-
<div className="pt-8 sm:pt-12"> {/* Reduced from pt-16 sm:pt-20 */}
52+
<div className="pt-2 sm:pt-4"> {/* Much smaller top padding */}
5353
<motion.div
5454
initial={{ opacity: 0, y: 20 }}
5555
animate={{ opacity: 1, y: 0 }}
@@ -58,9 +58,9 @@ export function HeroOptimized() {
5858
<TesseractLiquidGlassOptimized
5959
variant="interactive"
6060
enableShimmer={true}
61-
className="mb-4 inline-flex items-center gap-2 rounded-full px-6 py-3 text-sm font-medium"
61+
className="mb-3 inline-flex items-center gap-1.5 rounded-full px-4 py-1.5 text-xs font-medium"
6262
>
63-
<Sparkles className="h-4 w-4 text-brand-accent" />
63+
<Sparkles className="h-3 w-3 text-brand-accent" />
6464
<span className="text-gray-900 dark:text-gray-100">Tesseract Creator Template</span>
6565
</TesseractLiquidGlassOptimized>
6666
</motion.div>
@@ -69,16 +69,16 @@ export function HeroOptimized() {
6969
initial={{ opacity: 0, y: 20 }}
7070
animate={{ opacity: 1, y: 0 }}
7171
transition={{ duration: 0.5, delay: 0.1 }}
72-
className="mb-4 text-4xl font-black text-gray-900 dark:text-white sm:text-5xl lg:text-6xl text-center tracking-tight"
72+
className="mb-2 text-3xl font-black text-gray-900 dark:text-white sm:text-4xl lg:text-5xl text-center tracking-tight"
7373
>
74-
<div className="mb-2">Build</div>
75-
<div className="relative flex justify-center overflow-hidden py-2" style={{ height: '5rem' }}>
74+
<div className="mb-1">Build</div>
75+
<div className="relative flex justify-center overflow-hidden py-1" style={{ height: '3.5rem' }}>
7676
&nbsp;
7777
{rotatingTexts.map((text, index) => (
7878
<motion.span
7979
key={index}
80-
className="absolute font-black gradient-text text-3xl sm:text-4xl lg:text-5xl tracking-tight"
81-
style={{ top: '0.8rem' }}
80+
className="absolute font-black gradient-text text-2xl sm:text-3xl lg:text-4xl tracking-tight"
81+
style={{ top: '0.4rem' }}
8282
initial={{ opacity: 0, y: "-100" }}
8383
transition={{ type: "spring", stiffness: 50 }}
8484
animate={
@@ -97,14 +97,14 @@ export function HeroOptimized() {
9797
</motion.span>
9898
))}
9999
</div>
100-
<div className="-mt-2">That Users Love</div>
100+
<div className="-mt-1">That Users Love</div>
101101
</motion.h1>
102102

103103
<motion.p
104104
initial={{ opacity: 0, y: 20 }}
105105
animate={{ opacity: 1, y: 0 }}
106106
transition={{ duration: 0.5, delay: 0.2 }}
107-
className="mx-auto mb-4 max-w-3xl text-lg text-gray-600 dark:text-gray-400 sm:text-xl"
107+
className="mx-auto mb-3 max-w-2xl text-base text-gray-600 dark:text-gray-400 sm:text-lg"
108108
>
109109
The ultimate Next.js 15 starter template with TypeScript, Tailwind CSS, and Supabase integration. Build modern SaaS applications, landing pages, and digital products with our comprehensive development framework.
110110
</motion.p>
@@ -113,7 +113,7 @@ The ultimate Next.js 15 starter template with TypeScript, Tailwind CSS, and Supa
113113
initial={{ opacity: 0, y: 20 }}
114114
animate={{ opacity: 1, y: 0 }}
115115
transition={{ duration: 0.5, delay: 0.3 }}
116-
className="mb-6 flex justify-center"
116+
className="mb-4 flex justify-center"
117117
>
118118
<TesseractLiquidGlassOptimized variant="interactive" enableShimmer={true}>
119119
<button
@@ -132,7 +132,7 @@ Get Started Now
132132
);
133133

134134
return (
135-
<section className="relative overflow-hidden pb-8">
135+
<section className="relative overflow-hidden pb-4">
136136
<NodeNetworkBackground />
137137

138138
<ContainerScroll titleComponent={titleComponent}>
@@ -153,7 +153,7 @@ Get Started Now
153153
initial={{ opacity: 0, y: 20 }}
154154
animate={{ opacity: 1, y: 0 }}
155155
transition={{ duration: 0.5, delay: 0.5 }}
156-
className="relative z-10 mt-4 flex justify-center px-4 pb-8"
156+
className="relative z-10 mt-2 flex justify-center px-4 pb-4"
157157
>
158158
<HeroEmailCapture />
159159
</motion.div>

src/components/Navigation.tsx

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,13 @@ export function Navigation() {
9292
<GitHubButton />
9393
</div>
9494

95-
{/* Center: Navigation Links */}
96-
<nav className="hidden lg:flex items-center justify-center flex-1 mx-8" role="navigation">
97-
<div className="flex items-center gap-10">
95+
{/* Spacer */}
96+
<div className="flex-1"></div>
97+
98+
{/* Right Side: Navigation Links and Actions */}
99+
<div className="flex items-center gap-6">
100+
{/* Navigation Links */}
101+
<nav className="hidden lg:flex items-center gap-6" role="navigation">
98102
{navItems.map((item) => (
99103
<motion.a
100104
key={item.label}
@@ -106,13 +110,10 @@ export function Navigation() {
106110
{item.label}
107111
</motion.a>
108112
))}
109-
</div>
110-
</nav>
113+
</nav>
111114

112-
{/* Right Side: External Links and Actions */}
113-
<div className="flex items-center gap-6">
114115
{/* External Link Buttons - hide on smaller screens */}
115-
<div className="hidden xl:flex items-center gap-4">
116+
<div className="hidden xl:flex items-center gap-3">
116117
{externalLinks.map((link) => (
117118
<motion.a
118119
key={link.label}

0 commit comments

Comments
 (0)