import React, { useState, useEffect } from 'react'; import { Menu, X, Map, Calendar, Star, ChevronRight, Mountain, Sun, CheckCircle, Mail, Phone, Bike, Shield, Users, ArrowRight } from 'lucide-react'; export default function App() { const [isScrolled, setIsScrolled] = useState(false); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); const [modalOpen, setModalOpen] = useState(false); const [selectedTour, setSelectedTour] = useState(''); const [formSubmitted, setFormSubmitted] = useState(false); // Handle scroll for navbar styling useEffect(() => { const handleScroll = () => { setIsScrolled(window.scrollY > 20); }; window.addEventListener('scroll', handleScroll); return () => window.removeEventListener('scroll', handleScroll); }, []); const openBookingModal = (tourName = '') => { setSelectedTour(tourName); setFormSubmitted(false); setModalOpen(true); }; const handleBookingSubmit = (e) => { e.preventDefault(); setFormSubmitted(true); // In a real app, you would send data to your backend here. setTimeout(() => { setModalOpen(false); setFormSubmitted(false); }, 3000); }; const tours = [ { id: 1, title: "High Atlas Epic", duration: "7 Days", level: "Advanced", terrain: "Road / Gravel", image: "https://images.unsplash.com/photo-1542640244-7e672d6cb466?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80", description: "Conquer the legendary Tizi n'Tichka pass. A thrilling ride through Berber villages and dramatic mountain gorges.", icon: }, { id: 2, title: "Sahara Gravel Adventure", duration: "5 Days", level: "Moderate", terrain: "Gravel / Dirt", image: "https://images.unsplash.com/photo-1526772662000-3f88f10405ff?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80", description: "Ride from the kasbahs of Ouarzazate to the towering dunes of Merzouga. Experience the absolute silence of the desert.", icon: }, { id: 3, title: "Coastal Cruise", duration: "6 Days", level: "Leisure", terrain: "Paved", image: "https://images.unsplash.com/photo-1558349511-73df9bd0ce6b?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80", description: "A scenic, rolling journey from Marrakech to the breezy, blue-and-white Atlantic coastal town of Essaouira.", icon: } ]; return (
{/* Navigation */} {/* Hero Section */}
Cycling in Morocco
Rated 5/5 by Adventure Cyclists

Discover Morocco
On Two Wheels

From the snow-capped peaks of the High Atlas to the sweeping dunes of the Sahara. Join our expertly guided tours for the ride of a lifetime.

Learn More
{/* Trust & Features Section */}

Why Ride With Us?

We don't just organise bike rides; we craft immersive Moroccan adventures. With years of local experience, we guarantee safety, spectacular routes, and authentic Berber hospitality.

Expert Support

Full mechanical support, customized route briefings, and an air-conditioned support vehicle always nearby. Ride with complete peace of mind.

Premium Fleet

Choose from our fleet of top-tier carbon road bikes, rugged gravel setups, or powerful e-bikes. Perfectly maintained for Moroccan terrain.

Authentic Culture

Stay in traditional riads, share mint tea with local families, and experience the unparalleled warmth of Berber hospitality along your route.

{/* Tours Section */}

Featured Expeditions

From challenging mountain ascents to relaxed coastal cruises, find the perfect route for your riding style.

{tours.map((tour) => (
{tour.icon} {tour.terrain}
{tour.title}

{tour.title}

{tour.description}

{tour.duration}
{tour.level}
))}
{/* Social Proof / Testimonials */}

Rider Stories

{[...Array(5)].map((_, i) => )}

"The High Atlas Epic was truly the ride of a lifetime. The climbs were tough, but the support crew was incredible. Descending into Dades Gorge is a memory I'll keep forever."

- Sarah Jenkins, UK
{[...Array(5)].map((_, i) => )}

"Immaculate bikes, stunning gravel routes, and the best tagine I've ever eaten. They took care of every detail so we could just focus on pedaling and enjoying the Sahara."

- Marcus T., Germany
{[...Array(5)].map((_, i) => )}

"As a beginner to multi-day touring, I was nervous. The guides were exceptionally patient and the Coastal Cruise route was perfectly paced. Highly recommended!"

- Emma L., Australia
{/* CTA Section */}

Ready for Your Moroccan Adventure?

Whether you want a custom itinerary or to join one of our scheduled departures, our team is ready to plan your perfect cycling holiday.

{/* Footer */}
Morocco Cycling Tours

Premium cycling experiences across Morocco's most spectacular landscapes. Ride with the local experts.

{/* Placeholder for social icons */}
IG
FB
TW

Contact Us

  • ride@morocco-cycling.com
  • +212 555 123 456
  • Medina, Marrakesh, Morocco

© 2026 Morocco Cycling Tours. All rights reserved.

{/* Booking ModalOverlay */} {modalOpen && (
{formSubmitted ? (

Request Received!

Thank you. One of our adventure specialists will contact you shortly to plan your Moroccan journey.

) : ( <>

Book Your Adventure

Fill out the form below and we'll be in touch with availability and details.

)}
)}
); }