mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 12:31:26 -05:00
Refactor homepage for simplicity
This commit is contained in:
252
src/components/homepage/ContentTabs.tsx
Normal file
252
src/components/homepage/ContentTabs.tsx
Normal file
@@ -0,0 +1,252 @@
|
|||||||
|
import { useState, useEffect } from 'react';
|
||||||
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';
|
||||||
|
import { ParkCard } from '@/components/parks/ParkCard';
|
||||||
|
import { Card, CardContent } from '@/components/ui/card';
|
||||||
|
import { Star, TrendingUp, Plus, MapPin } from 'lucide-react';
|
||||||
|
import { Park, Ride } from '@/types/database';
|
||||||
|
import { supabase } from '@/integrations/supabase/client';
|
||||||
|
|
||||||
|
export function ContentTabs() {
|
||||||
|
const [popularParks, setPopularParks] = useState<Park[]>([]);
|
||||||
|
const [trendingParks, setTrendingParks] = useState<Park[]>([]);
|
||||||
|
const [popularRides, setPopularRides] = useState<Ride[]>([]);
|
||||||
|
const [trendingRides, setTrendingRides] = useState<Ride[]>([]);
|
||||||
|
const [recentParks, setRecentParks] = useState<Park[]>([]);
|
||||||
|
const [recentRides, setRecentRides] = useState<Ride[]>([]);
|
||||||
|
const [loading, setLoading] = useState(true);
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
fetchContent();
|
||||||
|
}, []);
|
||||||
|
|
||||||
|
const fetchContent = async () => {
|
||||||
|
try {
|
||||||
|
// Most Popular Parks (by rating)
|
||||||
|
const { data: popular } = await supabase
|
||||||
|
.from('parks')
|
||||||
|
.select(`*, location:locations(*), operator:companies!parks_operator_id_fkey(*)`)
|
||||||
|
.order('average_rating', { ascending: false })
|
||||||
|
.limit(6);
|
||||||
|
|
||||||
|
// Trending Parks (by review count)
|
||||||
|
const { data: trending } = await supabase
|
||||||
|
.from('parks')
|
||||||
|
.select(`*, location:locations(*), operator:companies!parks_operator_id_fkey(*)`)
|
||||||
|
.order('review_count', { ascending: false })
|
||||||
|
.limit(6);
|
||||||
|
|
||||||
|
// Recently Added Parks
|
||||||
|
const { data: recent } = await supabase
|
||||||
|
.from('parks')
|
||||||
|
.select(`*, location:locations(*), operator:companies!parks_operator_id_fkey(*)`)
|
||||||
|
.order('created_at', { ascending: false })
|
||||||
|
.limit(6);
|
||||||
|
|
||||||
|
// Popular Rides (by rating)
|
||||||
|
const { data: popularRidesData } = await supabase
|
||||||
|
.from('rides')
|
||||||
|
.select(`*, park:parks!inner(name, slug, location:locations(*))`)
|
||||||
|
.order('average_rating', { ascending: false })
|
||||||
|
.limit(8);
|
||||||
|
|
||||||
|
// Trending Rides (by review count)
|
||||||
|
const { data: trendingRidesData } = await supabase
|
||||||
|
.from('rides')
|
||||||
|
.select(`*, park:parks!inner(name, slug, location:locations(*))`)
|
||||||
|
.order('review_count', { ascending: false })
|
||||||
|
.limit(8);
|
||||||
|
|
||||||
|
// Recently Added Rides
|
||||||
|
const { data: recentRidesData } = await supabase
|
||||||
|
.from('rides')
|
||||||
|
.select(`*, park:parks!inner(name, slug, location:locations(*))`)
|
||||||
|
.order('created_at', { ascending: false })
|
||||||
|
.limit(8);
|
||||||
|
|
||||||
|
setPopularParks(popular || []);
|
||||||
|
setTrendingParks(trending || []);
|
||||||
|
setRecentParks(recent || []);
|
||||||
|
setPopularRides(popularRidesData || []);
|
||||||
|
setTrendingRides(trendingRidesData || []);
|
||||||
|
setRecentRides(recentRidesData || []);
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Error fetching content:', error);
|
||||||
|
} finally {
|
||||||
|
setLoading(false);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
const RideCard = ({ ride }: { ride: Ride }) => (
|
||||||
|
<Card className="group hover:shadow-lg transition-all duration-300 cursor-pointer">
|
||||||
|
<CardContent className="p-4">
|
||||||
|
<div className="space-y-3">
|
||||||
|
<div className="flex items-start justify-between">
|
||||||
|
<div className="flex-1">
|
||||||
|
<h3 className="font-semibold group-hover:text-primary transition-colors line-clamp-1">
|
||||||
|
{ride.name}
|
||||||
|
</h3>
|
||||||
|
<p className="text-sm text-muted-foreground">
|
||||||
|
at {ride.park?.name}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
<div className="text-xl">
|
||||||
|
{ride.category === 'roller_coaster' ? '🎢' :
|
||||||
|
ride.category === 'water_ride' ? '🌊' :
|
||||||
|
ride.category === 'dark_ride' ? '🎭' : '🎡'}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{ride.description && (
|
||||||
|
<p className="text-sm text-muted-foreground line-clamp-2">
|
||||||
|
{ride.description}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<div className="flex items-center justify-between text-sm">
|
||||||
|
<div className="flex items-center gap-3">
|
||||||
|
{ride.max_speed_kmh && (
|
||||||
|
<span className="text-primary font-medium">{ride.max_speed_kmh} km/h</span>
|
||||||
|
)}
|
||||||
|
{ride.max_height_meters && (
|
||||||
|
<span className="text-secondary font-medium">{ride.max_height_meters}m</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{ride.average_rating > 0 && (
|
||||||
|
<div className="flex items-center gap-1">
|
||||||
|
<Star className="w-3 h-3 fill-yellow-400 text-yellow-400" />
|
||||||
|
<span className="font-medium">{ride.average_rating.toFixed(1)}</span>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
);
|
||||||
|
|
||||||
|
if (loading) {
|
||||||
|
return (
|
||||||
|
<section className="py-12">
|
||||||
|
<div className="container mx-auto px-4">
|
||||||
|
<div className="animate-pulse space-y-6">
|
||||||
|
<div className="h-12 bg-muted rounded w-1/3 mx-auto"></div>
|
||||||
|
<div className="grid md:grid-cols-3 gap-6">
|
||||||
|
{[...Array(6)].map((_, i) => (
|
||||||
|
<div key={i} className="h-64 bg-muted rounded-lg"></div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="py-16">
|
||||||
|
<div className="container mx-auto px-4">
|
||||||
|
<Tabs defaultValue="popular-parks" className="w-full">
|
||||||
|
<div className="text-center mb-8">
|
||||||
|
<TabsList className="grid w-full max-w-4xl mx-auto grid-cols-3 md:grid-cols-6 h-auto p-1 bg-muted/50">
|
||||||
|
<TabsTrigger value="popular-parks" className="text-xs md:text-sm px-2 py-3">
|
||||||
|
<Star className="w-4 h-4 mr-1" />
|
||||||
|
<span className="hidden sm:inline">Popular </span>Parks
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="trending-parks" className="text-xs md:text-sm px-2 py-3">
|
||||||
|
<TrendingUp className="w-4 h-4 mr-1" />
|
||||||
|
<span className="hidden sm:inline">Trending </span>Parks
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="popular-rides" className="text-xs md:text-sm px-2 py-3">
|
||||||
|
<Star className="w-4 h-4 mr-1" />
|
||||||
|
<span className="hidden sm:inline">Popular </span>Rides
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="trending-rides" className="text-xs md:text-sm px-2 py-3">
|
||||||
|
<TrendingUp className="w-4 h-4 mr-1" />
|
||||||
|
<span className="hidden sm:inline">Trending </span>Rides
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="recent-parks" className="text-xs md:text-sm px-2 py-3">
|
||||||
|
<Plus className="w-4 h-4 mr-1" />
|
||||||
|
<span className="hidden sm:inline">New </span>Parks
|
||||||
|
</TabsTrigger>
|
||||||
|
<TabsTrigger value="recent-rides" className="text-xs md:text-sm px-2 py-3">
|
||||||
|
<Plus className="w-4 h-4 mr-1" />
|
||||||
|
<span className="hidden sm:inline">New </span>Rides
|
||||||
|
</TabsTrigger>
|
||||||
|
</TabsList>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<TabsContent value="popular-parks" className="mt-8">
|
||||||
|
<div className="text-center mb-6">
|
||||||
|
<h2 className="text-2xl font-bold mb-2">Most Popular Parks</h2>
|
||||||
|
<p className="text-muted-foreground">Highest rated theme parks worldwide</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||||
|
{popularParks.map((park) => (
|
||||||
|
<ParkCard key={park.id} park={park} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</TabsContent>
|
||||||
|
|
||||||
|
<TabsContent value="trending-parks" className="mt-8">
|
||||||
|
<div className="text-center mb-6">
|
||||||
|
<h2 className="text-2xl font-bold mb-2">Trending Parks</h2>
|
||||||
|
<p className="text-muted-foreground">Most reviewed parks this month</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||||
|
{trendingParks.map((park) => (
|
||||||
|
<ParkCard key={park.id} park={park} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</TabsContent>
|
||||||
|
|
||||||
|
<TabsContent value="popular-rides" className="mt-8">
|
||||||
|
<div className="text-center mb-6">
|
||||||
|
<h2 className="text-2xl font-bold mb-2">Most Popular Rides</h2>
|
||||||
|
<p className="text-muted-foreground">Highest rated attractions worldwide</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||||
|
{popularRides.map((ride) => (
|
||||||
|
<RideCard key={ride.id} ride={ride} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</TabsContent>
|
||||||
|
|
||||||
|
<TabsContent value="trending-rides" className="mt-8">
|
||||||
|
<div className="text-center mb-6">
|
||||||
|
<h2 className="text-2xl font-bold mb-2">Trending Rides</h2>
|
||||||
|
<p className="text-muted-foreground">Most talked about attractions</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||||
|
{trendingRides.map((ride) => (
|
||||||
|
<RideCard key={ride.id} ride={ride} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</TabsContent>
|
||||||
|
|
||||||
|
<TabsContent value="recent-parks" className="mt-8">
|
||||||
|
<div className="text-center mb-6">
|
||||||
|
<h2 className="text-2xl font-bold mb-2">Recently Added Parks</h2>
|
||||||
|
<p className="text-muted-foreground">Latest parks added to our database</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||||
|
{recentParks.map((park) => (
|
||||||
|
<ParkCard key={park.id} park={park} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</TabsContent>
|
||||||
|
|
||||||
|
<TabsContent value="recent-rides" className="mt-8">
|
||||||
|
<div className="text-center mb-6">
|
||||||
|
<h2 className="text-2xl font-bold mb-2">Recently Added Rides</h2>
|
||||||
|
<p className="text-muted-foreground">Latest attractions added to our database</p>
|
||||||
|
</div>
|
||||||
|
<div className="grid md:grid-cols-2 lg:grid-cols-4 gap-6">
|
||||||
|
{recentRides.map((ride) => (
|
||||||
|
<RideCard key={ride.id} ride={ride} />
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</TabsContent>
|
||||||
|
</Tabs>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
50
src/components/homepage/SimpleHeroSearch.tsx
Normal file
50
src/components/homepage/SimpleHeroSearch.tsx
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
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">
|
||||||
|
<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">
|
||||||
|
ThrillWiki
|
||||||
|
</span>
|
||||||
|
</h1>
|
||||||
|
|
||||||
|
<p className="text-xl text-muted-foreground max-w-2xl mx-auto">
|
||||||
|
The ultimate theme park database. Discover parks, track rides, and connect with enthusiasts.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
{/* Simple Search */}
|
||||||
|
<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"
|
||||||
|
>
|
||||||
|
Search
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -1,206 +1,13 @@
|
|||||||
import { Header } from '@/components/layout/Header';
|
import { Header } from '@/components/layout/Header';
|
||||||
import { ParkGrid } from '@/components/parks/ParkGrid';
|
import { SimpleHeroSearch } from '@/components/homepage/SimpleHeroSearch';
|
||||||
import { FeaturedParks } from '@/components/homepage/FeaturedParks';
|
import { ContentTabs } from '@/components/homepage/ContentTabs';
|
||||||
import { QuickActions } from '@/components/homepage/QuickActions';
|
|
||||||
import { HeroSearch } from '@/components/homepage/HeroSearch';
|
|
||||||
import { Button } from '@/components/ui/button';
|
|
||||||
import { Badge } from '@/components/ui/badge';
|
|
||||||
import { Zap, MapPin, Star, TrendingUp, Users, Globe, Award } from 'lucide-react';
|
|
||||||
|
|
||||||
const Index = () => {
|
const Index = () => {
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-background">
|
<div className="min-h-screen bg-background">
|
||||||
<Header />
|
<Header />
|
||||||
|
<SimpleHeroSearch />
|
||||||
{/* Enhanced Hero Section */}
|
<ContentTabs />
|
||||||
<section className="relative overflow-hidden min-h-screen flex items-center">
|
|
||||||
{/* Animated Background */}
|
|
||||||
<div className="absolute inset-0 bg-gradient-to-br from-primary/20 via-secondary/10 to-accent/20" />
|
|
||||||
<div className="absolute inset-0">
|
|
||||||
{/* Floating Elements */}
|
|
||||||
<div className="absolute top-20 left-10 animate-pulse">
|
|
||||||
<div className="w-3 h-3 bg-primary rounded-full shadow-lg shadow-primary/50" />
|
|
||||||
</div>
|
|
||||||
<div className="absolute top-40 right-20 animate-pulse delay-1000">
|
|
||||||
<div className="w-2 h-2 bg-accent rounded-full shadow-lg shadow-accent/50" />
|
|
||||||
</div>
|
|
||||||
<div className="absolute bottom-20 left-1/4 animate-pulse delay-500">
|
|
||||||
<div className="w-4 h-4 bg-secondary rounded-full shadow-lg shadow-secondary/50" />
|
|
||||||
</div>
|
|
||||||
<div className="absolute top-1/3 right-1/3 animate-pulse delay-700">
|
|
||||||
<div className="w-2 h-2 bg-primary rounded-full shadow-lg shadow-primary/50" />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="container mx-auto px-4 py-16 relative z-10">
|
|
||||||
<div className="text-center max-w-5xl mx-auto space-y-8">
|
|
||||||
<div className="flex items-center justify-center gap-3 mb-6">
|
|
||||||
<Badge className="bg-primary/20 text-primary border-primary/30 animate-bounce">
|
|
||||||
<Zap className="w-3 h-3 mr-1" />
|
|
||||||
Beta Version
|
|
||||||
</Badge>
|
|
||||||
<Badge className="bg-secondary/20 text-secondary border-secondary/30">
|
|
||||||
<Users className="w-3 h-3 mr-1" />
|
|
||||||
Community Driven
|
|
||||||
</Badge>
|
|
||||||
<Badge className="bg-accent/20 text-accent border-accent/30">
|
|
||||||
<Globe className="w-3 h-3 mr-1" />
|
|
||||||
Worldwide
|
|
||||||
</Badge>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h1 className="text-5xl md:text-7xl lg:text-8xl font-bold leading-tight">
|
|
||||||
Discover
|
|
||||||
<br />
|
|
||||||
<span className="bg-gradient-to-r from-primary via-secondary to-accent bg-clip-text text-transparent">
|
|
||||||
Epic Thrills
|
|
||||||
</span>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<p className="text-xl md:text-2xl text-muted-foreground max-w-3xl mx-auto leading-relaxed">
|
|
||||||
The ultimate theme park database. Discover amazing parks, track your ride credits,
|
|
||||||
share reviews, and connect with fellow thrill seekers worldwide.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
{/* Enhanced Search Component */}
|
|
||||||
<div className="mt-12">
|
|
||||||
<HeroSearch />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Quick CTA Buttons */}
|
|
||||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-4 mt-8">
|
|
||||||
<Button size="lg" className="bg-gradient-to-r from-primary to-secondary hover:from-primary/90 hover:to-secondary/90 text-lg px-8 py-4 rounded-xl shadow-xl shadow-primary/25">
|
|
||||||
<MapPin className="w-5 h-5 mr-2" />
|
|
||||||
Explore Parks
|
|
||||||
</Button>
|
|
||||||
<Button variant="outline" size="lg" className="text-lg px-8 py-4 rounded-xl border-primary/30 hover:bg-primary/10">
|
|
||||||
<Star className="w-5 h-5 mr-2" />
|
|
||||||
Top Rated
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* Quick Actions */}
|
|
||||||
<QuickActions />
|
|
||||||
|
|
||||||
{/* Featured Parks */}
|
|
||||||
<FeaturedParks />
|
|
||||||
|
|
||||||
{/* Features Section */}
|
|
||||||
<section className="py-16 bg-muted/10">
|
|
||||||
<div className="container mx-auto px-4">
|
|
||||||
<div className="text-center max-w-3xl mx-auto mb-16">
|
|
||||||
<h2 className="text-3xl md:text-4xl font-bold mb-4">
|
|
||||||
Everything for Your
|
|
||||||
<span className="bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent"> Thrill Journey</span>
|
|
||||||
</h2>
|
|
||||||
<p className="text-xl text-muted-foreground">
|
|
||||||
From park discovery to ride tracking, ThrillWiki has all the tools enthusiasts need.
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="grid md:grid-cols-3 gap-8">
|
|
||||||
<div className="text-center space-y-4 p-8 rounded-2xl bg-gradient-to-br from-primary/5 to-primary/10 border border-primary/20 hover:shadow-xl hover:shadow-primary/10 transition-all duration-300">
|
|
||||||
<div className="w-16 h-16 bg-primary/20 rounded-full flex items-center justify-center mx-auto">
|
|
||||||
<MapPin className="w-8 h-8 text-primary" />
|
|
||||||
</div>
|
|
||||||
<h3 className="text-2xl font-semibold">Discover Parks</h3>
|
|
||||||
<p className="text-muted-foreground leading-relaxed">
|
|
||||||
Explore thousands of theme parks worldwide with detailed information, photos, and authentic reviews from fellow enthusiasts.
|
|
||||||
</p>
|
|
||||||
<Button variant="outline" className="mt-4">
|
|
||||||
Start Exploring
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="text-center space-y-4 p-8 rounded-2xl bg-gradient-to-br from-secondary/5 to-secondary/10 border border-secondary/20 hover:shadow-xl hover:shadow-secondary/10 transition-all duration-300">
|
|
||||||
<div className="w-16 h-16 bg-secondary/20 rounded-full flex items-center justify-center mx-auto">
|
|
||||||
<TrendingUp className="w-8 h-8 text-secondary" />
|
|
||||||
</div>
|
|
||||||
<h3 className="text-2xl font-semibold">Track Credits</h3>
|
|
||||||
<p className="text-muted-foreground leading-relaxed">
|
|
||||||
Keep track of every ride you've experienced and build your personal coaster portfolio with detailed statistics.
|
|
||||||
</p>
|
|
||||||
<Button variant="outline" className="mt-4">
|
|
||||||
Track Rides
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div className="text-center space-y-4 p-8 rounded-2xl bg-gradient-to-br from-accent/5 to-accent/10 border border-accent/20 hover:shadow-xl hover:shadow-accent/10 transition-all duration-300">
|
|
||||||
<div className="w-16 h-16 bg-accent/20 rounded-full flex items-center justify-center mx-auto">
|
|
||||||
<Users className="w-8 h-8 text-accent" />
|
|
||||||
</div>
|
|
||||||
<h3 className="text-2xl font-semibold">Join Community</h3>
|
|
||||||
<p className="text-muted-foreground leading-relaxed">
|
|
||||||
Share reviews, create top lists, and connect with thousands of passionate theme park enthusiasts.
|
|
||||||
</p>
|
|
||||||
<Button variant="outline" className="mt-4">
|
|
||||||
Join Now
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* All Parks Section */}
|
|
||||||
<section className="py-16">
|
|
||||||
<div className="container mx-auto px-4 mb-8">
|
|
||||||
<div className="text-center max-w-3xl mx-auto mb-12">
|
|
||||||
<h2 className="text-3xl md:text-4xl font-bold mb-4">
|
|
||||||
Browse All
|
|
||||||
<span className="bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent"> Parks</span>
|
|
||||||
</h2>
|
|
||||||
<p className="text-xl text-muted-foreground">
|
|
||||||
Discover every park in our comprehensive database
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ParkGrid />
|
|
||||||
</section>
|
|
||||||
|
|
||||||
{/* Final CTA Section */}
|
|
||||||
<section className="py-20 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">
|
|
||||||
<div className="flex items-center justify-center gap-3 mb-6">
|
|
||||||
<Badge className="bg-primary/20 text-primary border-primary/30">
|
|
||||||
<Award className="w-3 h-3 mr-1" />
|
|
||||||
Free Forever
|
|
||||||
</Badge>
|
|
||||||
<Badge className="bg-secondary/20 text-secondary border-secondary/30">
|
|
||||||
<Zap className="w-3 h-3 mr-1" />
|
|
||||||
No Ads
|
|
||||||
</Badge>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<h2 className="text-4xl md:text-5xl font-bold">
|
|
||||||
Ready for Your Next
|
|
||||||
<br />
|
|
||||||
<span className="bg-gradient-to-r from-primary to-accent bg-clip-text text-transparent">
|
|
||||||
Thrill Adventure?
|
|
||||||
</span>
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<p className="text-xl text-muted-foreground max-w-2xl mx-auto">
|
|
||||||
Join thousands of theme park enthusiasts and start tracking your rides today!
|
|
||||||
Completely free, no ads, just pure passion for thrills.
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div className="flex flex-col sm:flex-row items-center justify-center gap-4">
|
|
||||||
<Button size="lg" className="bg-gradient-to-r from-primary to-accent hover:from-primary/90 hover:to-accent/90 text-lg px-10 py-4 rounded-xl shadow-2xl shadow-primary/25">
|
|
||||||
<Star className="w-5 h-5 mr-2" />
|
|
||||||
Join ThrillWiki Free
|
|
||||||
</Button>
|
|
||||||
<Button variant="outline" size="lg" className="text-lg px-8 py-4 rounded-xl border-primary/30 hover:bg-primary/10">
|
|
||||||
<MapPin className="w-5 h-5 mr-2" />
|
|
||||||
Explore First
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</section>
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -63,12 +63,12 @@ export interface Ride {
|
|||||||
name: string;
|
name: string;
|
||||||
slug: string;
|
slug: string;
|
||||||
description?: string;
|
description?: string;
|
||||||
park?: Park;
|
park?: Park | { name: string; slug: string; location?: Location }; // Allow partial park data
|
||||||
ride_model?: RideModel;
|
ride_model?: RideModel;
|
||||||
manufacturer?: Company;
|
manufacturer?: Company;
|
||||||
designer?: Company;
|
designer?: Company;
|
||||||
category: 'roller_coaster' | 'flat_ride' | 'water_ride' | 'dark_ride' | 'kiddie_ride' | 'transportation';
|
category: string; // Allow any string from database
|
||||||
status: 'operating' | 'closed' | 'under_construction' | 'maintenance' | 'sbno';
|
status: string; // Allow any string from database
|
||||||
opening_date?: string;
|
opening_date?: string;
|
||||||
closing_date?: string;
|
closing_date?: string;
|
||||||
height_requirement?: number;
|
height_requirement?: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user