Files
pastel-ui/app/page.tsx
valknarness e6b693dbd8 fix: correct padding alignment between navbar, content, and footer
The previous implementation had misaligned padding structure:
- Navbar/Footer: padding INSIDE max-width container (max-w-7xl mx-auto px-8)
- Page content: padding OUTSIDE max-width container (px-8 on outer, max-w-7xl inside)

This caused content to have double horizontal spacing and misalign with
the navbar and footer borders.

**Fix:**
Move px-8 from outer container to inner max-w-7xl container on all pages,
matching the navbar and footer pattern.

**Structure (all components now consistent):**
```
<div className="py-12">              <!-- vertical padding only -->
  <div className="max-w-7xl mx-auto px-8">  <!-- max-width + horizontal padding -->
    <!-- content -->
  </div>
</div>
```

Now navbar, main content, and footer all align perfectly at the same
left and right edges.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-07 17:49:36 +01:00

49 lines
2.5 KiB
TypeScript

export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center justify-center py-12 md:py-24">
<div className="max-w-7xl mx-auto px-8 w-full space-y-8 text-center">
<h1 className="text-5xl md:text-6xl font-bold bg-gradient-to-r from-pink-500 via-purple-500 to-blue-500 bg-clip-text text-transparent animate-fade-in">
Pastel UI
</h1>
<p className="text-lg md:text-xl text-muted-foreground animate-slide-up">
Modern web UI for color manipulation, palette generation, and accessibility analysis
</p>
<div className="flex flex-col sm:flex-row gap-4 justify-center animate-slide-up" style={{ animationDelay: '0.1s' }}>
<a
href="/playground"
className="px-6 py-3 bg-primary text-primary-foreground rounded-lg hover:scale-105 hover:shadow-lg transition-all duration-200"
>
Open Playground
</a>
<a
href="/palettes"
className="px-6 py-3 bg-secondary text-secondary-foreground rounded-lg hover:scale-105 hover:shadow-lg transition-all duration-200"
>
Generate Palettes
</a>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-6 mt-12">
<div className="p-6 border rounded-lg bg-card hover:border-primary hover:shadow-lg transition-all duration-200 animate-scale-in" style={{ animationDelay: '0.2s' }}>
<h3 className="text-lg font-semibold mb-2">Color Playground</h3>
<p className="text-sm text-muted-foreground">
Interactive color picker with multi-format support and real-time manipulation
</p>
</div>
<div className="p-6 border rounded-lg bg-card hover:border-primary hover:shadow-lg transition-all duration-200 animate-scale-in" style={{ animationDelay: '0.3s' }}>
<h3 className="text-lg font-semibold mb-2">Palette Generation</h3>
<p className="text-sm text-muted-foreground">
Create harmony palettes, distinct colors, and smooth gradients
</p>
</div>
<div className="p-6 border rounded-lg bg-card hover:border-primary hover:shadow-lg transition-all duration-200 animate-scale-in" style={{ animationDelay: '0.4s' }}>
<h3 className="text-lg font-semibold mb-2">Accessibility Tools</h3>
<p className="text-sm text-muted-foreground">
WCAG contrast checker and color blindness simulation
</p>
</div>
</div>
</div>
</main>
);
}