diff --git a/src/pages/Destinations.tsx b/src/pages/Destinations.tsx new file mode 100644 index 0000000..5ee9cc2 --- /dev/null +++ b/src/pages/Destinations.tsx @@ -0,0 +1,122 @@ +import { useState } from "react"; +import { Link } from "react-router-dom"; +import { Button } from "@/components/ui/button"; +import { Card, CardContent } from "@/components/ui/card"; +import { Badge } from "@/components/ui/badge"; +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; +import { Slider } from "@/components/ui/slider"; +import { MapPin, Star, ArrowRight, Filter } from "lucide-react"; +import Header from "@/components/Header"; +import Footer from "@/components/Footer"; + +const allDestinations = [ + { name: "Bali", country: "Indonesia", region: "Asia", type: "Beach", rating: "4.9", price: "\$899", gradient: "from-blue-600/60 to-cyan-500/40" }, + { name: "Santorini", country: "Greece", region: "Europe", type: "City", rating: "4.8", price: "\$1,299", gradient: "from-amber-600/60 to-orange-400/40" }, + { name: "Machu Picchu", country: "Peru", region: "Americas", type: "Mountain", rating: "4.9", price: "\$1,499", gradient: "from-emerald-600/60 to-teal-400/40" }, + { name: "Kyoto", country: "Japan", region: "Asia", type: "City", rating: "4.7", price: "\$1,199", gradient: "from-purple-600/60 to-violet-400/40" }, + { name: "Marrakech", country: "Morocco", region: "Africa", type: "Adventure", rating: "4.8", price: "\$799", gradient: "from-rose-600/60 to-pink-400/40" }, + { name: "Queenstown", country: "New Zealand", region: "Oceania", type: "Adventure", rating: "4.9", price: "\$1,599", gradient: "from-sky-600/60 to-indigo-400/40" }, +]; + +export default function DestinationsPage() { + const [region, setRegion] = useState("all"); + const [type, setType] = useState("all"); + + const filtered = allDestinations.filter((d) => { + if (region !== "all" && d.region !== region) return false; + if (type !== "all" && d.type !== type) return false; + return true; + }); + + return ( +
Discover breathtaking locations across every continent.
+No destinations match your filters. Try adjusting your criteria.
+