Visual edit in Lovable

This commit is contained in:
gpt-engineer-app[bot]
2025-09-20 12:21:25 +00:00
parent ef6f502ac3
commit 990f2c7776
2 changed files with 15 additions and 60 deletions

View File

@@ -2,20 +2,16 @@ import { useState } from 'react';
import { Search } from 'lucide-react';
import { Input } from '@/components/ui/input';
import { Button } from '@/components/ui/button';
export function SimpleHeroSearch() {
const [searchTerm, setSearchTerm] = useState('');
const handleSearch = () => {
console.log('Searching for:', searchTerm);
};
return (
<section className="relative py-24 bg-gradient-to-br from-primary/10 via-secondary/5 to-accent/10">
return <section className="relative py-24 bg-gradient-to-br from-primary/10 via-secondary/5 to-accent/10">
<div className="container mx-auto px-4 text-center">
<div className="max-w-4xl mx-auto space-y-8">
<h1 className="text-5xl md:text-6xl font-bold leading-tight">
<span className="bg-gradient-to-r from-primary via-secondary to-accent bg-clip-text text-transparent">
<span className="bg-gradient-to-r from-primary via-secondary to-accent bg-clip-text text-transparent text-7xl">
ThrillWiki
</span>
</h1>
@@ -28,23 +24,13 @@ export function SimpleHeroSearch() {
<div className="max-w-2xl mx-auto">
<div className="relative">
<Search className="absolute left-4 top-1/2 transform -translate-y-1/2 text-muted-foreground w-5 h-5" />
<Input
placeholder="Search parks, rides, or locations..."
value={searchTerm}
onChange={(e) => setSearchTerm(e.target.value)}
className="pl-12 pr-24 h-14 text-lg bg-background border-border rounded-full shadow-lg"
onKeyDown={(e) => e.key === 'Enter' && handleSearch()}
/>
<Button
onClick={handleSearch}
className="absolute right-2 top-2 h-10 px-6 bg-gradient-to-r from-primary to-secondary hover:from-primary/90 hover:to-secondary/90 rounded-full"
>
<Input placeholder="Search parks, rides, or locations..." value={searchTerm} onChange={e => setSearchTerm(e.target.value)} className="pl-12 pr-24 h-14 text-lg bg-background border-border rounded-full shadow-lg" onKeyDown={e => e.key === 'Enter' && handleSearch()} />
<Button onClick={handleSearch} className="absolute right-2 top-2 h-10 px-6 bg-gradient-to-r from-primary to-secondary hover:from-primary/90 hover:to-secondary/90 rounded-full">
Search
</Button>
</div>
</div>
</div>
</div>
</section>
);
</section>;
}

View File

@@ -8,54 +8,36 @@ import { Link, useNavigate } from 'react-router-dom';
import { SearchDropdown } from '@/components/search/SearchDropdown';
import { AuthButtons } from '@/components/auth/AuthButtons';
import { ThemeToggle } from '@/components/theme/ThemeToggle';
export function Header() {
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">
{/* Logo and Brand */}
<div className="flex items-center gap-4">
<Link to="/" className="flex items-center gap-2">
<div className="relative">
<Zap className="h-8 w-8 text-primary" />
<div className="absolute inset-0 blur-sm bg-primary/20 rounded-full"></div>
</div>
<div className="flex flex-col">
<h1 className="text-xl font-bold bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">
ThrillWiki
</h1>
<span className="text-xs text-muted-foreground -mt-1">Theme Park Database</span>
</div>
</Link>
{/* Desktop Navigation */}
<nav className="hidden md:flex items-center gap-6 ml-8">
<Button
variant="ghost"
className="text-sm font-medium hover:text-primary"
onClick={() => navigate('/parks')}
>
<Button variant="ghost" className="text-sm font-medium hover:text-primary" onClick={() => navigate('/parks')}>
<MapPin className="w-4 h-4 mr-2" />
Parks
</Button>
<Button
variant="ghost"
className="text-sm font-medium hover:text-primary"
onClick={() => navigate('/rides')}
>
<Button variant="ghost" className="text-sm font-medium hover:text-primary" onClick={() => navigate('/rides')}>
🎢 Rides
</Button>
<Button variant="ghost" className="text-sm font-medium hover:text-primary">
<Star className="w-4 h-4 mr-2" />
Reviews
</Button>
<Button
variant="ghost"
className="text-sm font-medium hover:text-primary"
onClick={() => navigate('/manufacturers')}
>
<Button variant="ghost" className="text-sm font-medium hover:text-primary" onClick={() => navigate('/manufacturers')}>
🏭 Manufacturers
</Button>
</nav>
@@ -80,30 +62,18 @@ export function Header() {
</SheetTrigger>
<SheetContent side="right" className="w-[300px] sm:w-[400px]">
<div className="flex flex-col gap-4 mt-8">
<Button
variant="ghost"
className="justify-start"
onClick={() => navigate('/parks')}
>
<Button variant="ghost" className="justify-start" onClick={() => navigate('/parks')}>
<MapPin className="w-4 h-4 mr-2" />
Parks
</Button>
<Button
variant="ghost"
className="justify-start"
onClick={() => navigate('/rides')}
>
<Button variant="ghost" className="justify-start" onClick={() => navigate('/rides')}>
🎢 Rides
</Button>
<Button variant="ghost" className="justify-start">
<Star className="w-4 h-4 mr-2" />
Reviews
</Button>
<Button
variant="ghost"
className="justify-start"
onClick={() => navigate('/manufacturers')}
>
<Button variant="ghost" className="justify-start" onClick={() => navigate('/manufacturers')}>
🏭 Manufacturers
</Button>
<div className="border-t pt-4 mt-4">
@@ -122,6 +92,5 @@ export function Header() {
</Sheet>
</div>
</div>
</header>
);
</header>;
}