refactor: flatten Pastel routes by removing intermediate palettes and accessibility paths

- Move sub-routes from /pastel/palettes/* and /pastel/accessibility/* to direct children of /pastel
- Update AppSidebar navigation links
- Update Pastel Navbar and Footer links
- Update Tailwind source directives in pastel/globals.css
- Remove intermediate page files
This commit is contained in:
2026-02-23 08:18:44 +01:00
parent 3a100f8fde
commit 7806bcbede
12 changed files with 19 additions and 186 deletions

View File

@@ -74,12 +74,12 @@ const navigation: NavGroup[] = [
href: '/pastel',
icon: <PastelIcon className="h-4 w-4" />,
items: [
{ title: 'Harmony Palettes', href: '/pastel/palettes/harmony' },
{ title: 'Distinct Colors', href: '/pastel/palettes/distinct' },
{ title: 'Gradients', href: '/pastel/palettes/gradient' },
{ title: 'Contrast Checker', href: '/pastel/accessibility/contrast' },
{ title: 'Color Blindness', href: '/pastel/accessibility/colorblind' },
{ title: 'Text Color', href: '/pastel/accessibility/textcolor' },
{ title: 'Harmony Palettes', href: '/pastel/harmony' },
{ title: 'Distinct Colors', href: '/pastel/distinct' },
{ title: 'Gradients', href: '/pastel/gradient' },
{ title: 'Contrast Checker', href: '/pastel/contrast' },
{ title: 'Color Blindness', href: '/pastel/colorblind' },
{ title: 'Text Color', href: '/pastel/textcolor' },
{ title: 'Named Colors', href: '/pastel/names' },
{ title: 'Batch Operations', href: '/pastel/batch' },
]

View File

@@ -24,17 +24,17 @@ export function Footer() {
<h3 className="font-semibold">Resources</h3>
<ul className="space-y-2 text-sm">
<li>
<Link href="/pastel/playground" className="text-muted-foreground hover:text-foreground transition-colors">
<Link href="/pastel" className="text-muted-foreground hover:text-foreground transition-colors">
Color Playground
</Link>
</li>
<li>
<Link href="/pastel/palettes" className="text-muted-foreground hover:text-foreground transition-colors">
<Link href="/pastel/harmony" className="text-muted-foreground hover:text-foreground transition-colors">
Palette Generator
</Link>
</li>
<li>
<Link href="/pastel/accessibility" className="text-muted-foreground hover:text-foreground transition-colors">
<Link href="/pastel/contrast" className="text-muted-foreground hover:text-foreground transition-colors">
Accessibility Tools
</Link>
</li>

View File

@@ -7,11 +7,10 @@ import { cn } from '@/lib/utils/cn';
import { Palette } from 'lucide-react';
const navigation = [
{ name: 'Home', href: '/pastel' },
{ name: 'Playground', href: '/pastel/playground' },
{ name: 'Palettes', href: '/pastel/palettes' },
{ name: 'Accessibility', href: '/pastel/accessibility' },
{ name: 'Named Colors', href: '/pastel/names' },
{ name: 'Playground', href: '/pastel' },
{ name: 'Harmony', href: '/pastel/harmony' },
{ name: 'Contrast', href: '/pastel/contrast' },
{ name: 'Names', href: '/pastel/names' },
{ name: 'Batch', href: '/pastel/batch' },
];