import { useState } from "react";
import { Navbar } from "@/components/Navbar";
import { Hero } from "@/components/Hero";
import { TripFilters } from "@/components/TripFilters";
import { TripCard, Trip } from "@/components/TripCard";
import { TripListItem } from "@/components/TripListItem";
import { Footer } from "@/components/Footer";
import { Button } from "@/components/ui/button";
import { LayoutGrid, List } from "lucide-react";
import trip1 from "@/assets/trip-1.jpg";
import trip2 from "@/assets/trip-2.jpg";
import trip3 from "@/assets/trip-3.jpg";
const Index = () => {
const [viewMode, setViewMode] = useState<"grid" | "list">("grid");
// Mock data - in production this would come from API/database
const trips: Trip[] = [
{
id: "1",
title: "טיול שטח במכתש רמון - שקיעה מדהימה",
image: trip1,
date: "15/12/2024",
registrationEndDate: "10/12/2024",
location: "מכתש רמון, הנגב",
region: "negev-center",
difficulty: "בינוני",
tripType: "ג'יפים",
price: 350,
priceUnit: "ג'יפ",
isFree: false,
maxParticipants: 12,
currentParticipants: 8,
jeepType: "Wrangler",
guideName: "יוסי כהן",
guidePhone: "0505358010",
rating: 4.8,
externalPaymentLink: "https://payment.example.com/trip1",
},
{
id: "2",
title: "מסלול אתגרי - הרי אילת",
image: trip2,
date: "20/12/2024",
registrationEndDate: "15/12/2024",
location: "הרי אילת",
region: "eilat",
difficulty: "קשה",
tripType: "ג'יפים",
price: 450,
priceUnit: "ג'יפ",
isFree: false,
maxParticipants: 8,
currentParticipants: 5,
jeepType: "Defender",
guideName: "דן לוי",
guidePhone: "0524567890",
rating: 4.9,
externalPaymentLink: "https://payment.example.com/trip2",
},
{
id: "3",
title: "טיול משפחות - נחל צין",
image: trip3,
date: "22/12/2024",
registrationEndDate: "18/12/2024",
location: "נחל צין, הנגב",
region: "negev-center",
difficulty: "קל",
tripType: "משולב",
price: 0,
priceUnit: "משתתף",
isFree: true,
maxParticipants: 15,
currentParticipants: 12,
jeepType: "כל סוג",
guideName: "שרה אברהם",
guidePhone: "0523456789",
rating: 4.7,
},
{
id: "4",
title: "טיול שטח במכתש רמון - שקיעה מדהימה",
image: trip1,
date: "25/12/2024",
registrationEndDate: "20/12/2024",
location: "מכתש רמון",
region: "negev-center",
difficulty: "בינוני",
tripType: "ג'יפים",
price: 350,
priceUnit: "ג'יפ",
isFree: false,
maxParticipants: 10,
currentParticipants: 7,
jeepType: "Patrol",
guideName: "מיכל גבאי",
guidePhone: "0547654321",
rating: 4.6,
},
{
id: "5",
title: "חוויית שטח קיצונית",
image: trip2,
date: "28/12/2024",
registrationEndDate: "23/12/2024",
location: "מדבר יהודה",
region: "jerusalem",
difficulty: "קשה",
tripType: "ג'יפים",
price: 500,
priceUnit: "ג'יפ",
isFree: false,
maxParticipants: 6,
currentParticipants: 4,
jeepType: "Wrangler Rubicon",
guideName: "רון דוד",
guidePhone: "0508765432",
rating: 5.0,
},
{
id: "6",
title: "טיול משפחות - בקעת הירדן",
image: trip3,
date: "30/12/2024",
registrationEndDate: "27/12/2024",
location: "בקעת הירדן",
region: "dead-sea",
difficulty: "קל",
tripType: "רגלי",
price: 200,
priceUnit: "משתתף",
isFree: false,
maxParticipants: 20,
currentParticipants: 15,
jeepType: "כל סוג",
guideName: "תמר כהן",
guidePhone: "0529876543",
rating: 4.5,
},
];
return (
טיולים קרובים
{trips.length} טיולים זמינים
{viewMode === "grid" ? (
{trips.map((trip) => (
))}
) : (
{trips.map((trip) => (
))}
)}
);
};
export default Index;