mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 17:11:13 -05:00
Visual edit in Lovable
This commit is contained in:
@@ -8,12 +8,9 @@ import { Link, useNavigate } from 'react-router-dom';
|
|||||||
import { SearchDropdown } from '@/components/search/SearchDropdown';
|
import { SearchDropdown } from '@/components/search/SearchDropdown';
|
||||||
import { AuthButtons } from '@/components/auth/AuthButtons';
|
import { AuthButtons } from '@/components/auth/AuthButtons';
|
||||||
import { ThemeToggle } from '@/components/theme/ThemeToggle';
|
import { ThemeToggle } from '@/components/theme/ThemeToggle';
|
||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
return <header className="sticky top-0 z-50 w-full border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
|
||||||
return (
|
|
||||||
<header className="sticky top-0 z-50 w-full border-b border-border bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60">
|
|
||||||
<div className="container flex h-16 items-center justify-between px-4">
|
<div className="container flex h-16 items-center justify-between px-4">
|
||||||
{/* Logo and Brand */}
|
{/* Logo and Brand */}
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
@@ -26,36 +23,24 @@ export function Header() {
|
|||||||
<h1 className="text-xl font-bold bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">
|
<h1 className="text-xl font-bold bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">
|
||||||
ThrillWiki
|
ThrillWiki
|
||||||
</h1>
|
</h1>
|
||||||
<span className="text-xs text-muted-foreground -mt-1">Theme Park Database</span>
|
|
||||||
</div>
|
</div>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
||||||
{/* Desktop Navigation */}
|
{/* Desktop Navigation */}
|
||||||
<nav className="hidden md:flex items-center gap-6 ml-8">
|
<nav className="hidden md:flex items-center gap-6 ml-8">
|
||||||
<Button
|
<Button variant="ghost" className="text-sm font-medium hover:text-primary" onClick={() => navigate('/parks')}>
|
||||||
variant="ghost"
|
|
||||||
className="text-sm font-medium hover:text-primary"
|
|
||||||
onClick={() => navigate('/parks')}
|
|
||||||
>
|
|
||||||
<MapPin className="w-4 h-4 mr-2" />
|
<MapPin className="w-4 h-4 mr-2" />
|
||||||
Parks
|
Parks
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button variant="ghost" className="text-sm font-medium hover:text-primary" onClick={() => navigate('/rides')}>
|
||||||
variant="ghost"
|
|
||||||
className="text-sm font-medium hover:text-primary"
|
|
||||||
onClick={() => navigate('/rides')}
|
|
||||||
>
|
|
||||||
🎢 Rides
|
🎢 Rides
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="ghost" className="text-sm font-medium hover:text-primary">
|
<Button variant="ghost" className="text-sm font-medium hover:text-primary">
|
||||||
<Star className="w-4 h-4 mr-2" />
|
<Star className="w-4 h-4 mr-2" />
|
||||||
Reviews
|
Reviews
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button variant="ghost" className="text-sm font-medium hover:text-primary" onClick={() => navigate('/manufacturers')}>
|
||||||
variant="ghost"
|
|
||||||
className="text-sm font-medium hover:text-primary"
|
|
||||||
onClick={() => navigate('/manufacturers')}
|
|
||||||
>
|
|
||||||
🏭 Manufacturers
|
🏭 Manufacturers
|
||||||
</Button>
|
</Button>
|
||||||
</nav>
|
</nav>
|
||||||
@@ -80,30 +65,18 @@ export function Header() {
|
|||||||
</SheetTrigger>
|
</SheetTrigger>
|
||||||
<SheetContent side="right" className="w-[300px] sm:w-[400px]">
|
<SheetContent side="right" className="w-[300px] sm:w-[400px]">
|
||||||
<div className="flex flex-col gap-4 mt-8">
|
<div className="flex flex-col gap-4 mt-8">
|
||||||
<Button
|
<Button variant="ghost" className="justify-start" onClick={() => navigate('/parks')}>
|
||||||
variant="ghost"
|
|
||||||
className="justify-start"
|
|
||||||
onClick={() => navigate('/parks')}
|
|
||||||
>
|
|
||||||
<MapPin className="w-4 h-4 mr-2" />
|
<MapPin className="w-4 h-4 mr-2" />
|
||||||
Parks
|
Parks
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button variant="ghost" className="justify-start" onClick={() => navigate('/rides')}>
|
||||||
variant="ghost"
|
|
||||||
className="justify-start"
|
|
||||||
onClick={() => navigate('/rides')}
|
|
||||||
>
|
|
||||||
🎢 Rides
|
🎢 Rides
|
||||||
</Button>
|
</Button>
|
||||||
<Button variant="ghost" className="justify-start">
|
<Button variant="ghost" className="justify-start">
|
||||||
<Star className="w-4 h-4 mr-2" />
|
<Star className="w-4 h-4 mr-2" />
|
||||||
Reviews
|
Reviews
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button variant="ghost" className="justify-start" onClick={() => navigate('/manufacturers')}>
|
||||||
variant="ghost"
|
|
||||||
className="justify-start"
|
|
||||||
onClick={() => navigate('/manufacturers')}
|
|
||||||
>
|
|
||||||
🏭 Manufacturers
|
🏭 Manufacturers
|
||||||
</Button>
|
</Button>
|
||||||
<div className="border-t pt-4 mt-4">
|
<div className="border-t pt-4 mt-4">
|
||||||
@@ -122,6 +95,5 @@ export function Header() {
|
|||||||
</Sheet>
|
</Sheet>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>;
|
||||||
);
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user