Download index.html from Mucatt/https-enzostvs-deepsite-hf-space-projects-new: direct link, hf CLI and curl.
- Browser
- Download file 70.8 kB
-
https://huggingface.co/spaces/Mucatt/https-enzostvs-deepsite-hf-space-projects-new/resolve/main/index.html
- Command line
-
hf download hf://spaces/Mucatt/https-enzostvs-deepsite-hf-space-projects-new/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Mucatt/https-enzostvs-deepsite-hf-space-projects-new/resolve/main/index.html
70.8 kB
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HoyDoon - Hotel Booking Platform</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
:root {
--primary-color: #2c786c;
--secondary-color: #004445;
--accent-color: #f8b400;
--light-color: #faf5e4;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5;
}
.somali-font {
font-family: 'Roboto', sans-serif;
}
.hero-section {
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
background-size: cover;
background-position: center;
}
.language-toggle {
cursor: pointer;
transition: all 0.3s ease;
}
.language-toggle:hover {
transform: scale(1.05);
}
.hotel-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.amenity-icon {
width: 24px;
height: 24px;
margin-right: 8px;
}
.booking-form {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.tab-active {
border-bottom: 3px solid var(--accent-color);
font-weight: 500;
color: var(--secondary-color);
}
.tab-inactive {
color: #6b7280;
}
.rating-stars {
color: var(--accent-color);
}
.btn-primary {
background-color: var(--primary-color);
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: var(--secondary-color);
transform: translateY(-2px);
}
.btn-secondary {
background-color: var(--accent-color);
transition: all 0.3s ease;
}
.btn-secondary:hover {
background-color: #e09e00;
transform: translateY(-2px);
}
/* Animation for loading */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Language Toggle -->
<div class="bg-gray-800 text-white py-2 px-4 flex justify-end">
<div class="flex items-center space-x-2">
<span id="currentLanguage" class="font-medium">English</span>
<button id="toggleLanguage" class="language-toggle bg-white text-gray-800 px-3 py-1 rounded-full text-sm font-medium">
<i class="fas fa-exchange-alt"></i>
</button>
</div>
</div>
<!-- Navigation -->
<nav class="bg-white shadow-md">
<div class="container mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center space-x-2">
<i class="fas fa-hotel text-2xl text-green-700"></i>
<a href="#" class="text-xl font-bold text-green-700 somali-font">HoyDoon</a>
</div>
<div class="hidden md:flex items-center space-x-6">
<a href="#home" class="text-gray-700 hover:text-green-700 font-medium">Home</a>
<a href="#hotels" class="text-gray-700 hover:text-green-700 font-medium">Hotels</a>
<a href="#cities" class="text-gray-700 hover:text-green-700 font-medium">Cities</a>
<a href="#about" class="text-gray-700 hover:text-green-700 font-medium">About</a>
</div>
<div class="flex items-center space-x-4">
<button id="loginBtn" class="px-4 py-2 text-gray-700 font-medium hover:text-green-700">Login</button>
<button id="registerBtn" class="px-4 py-2 bg-green-700 text-white rounded-md font-medium hover:bg-green-800">Register</button>
<button class="md:hidden text-gray-700">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</nav>
<!-- Hero Section -->
<section id="home" class="hero-section text-white py-20">
<div class="container mx-auto px-4">
<div class="max-w-2xl mx-auto text-center">
<h1 class="text-4xl md:text-5xl font-bold mb-6 somali-font">Raadi Hoygaaga Somaliyeed</h1>
<p class="text-xl mb-8">Find the perfect accommodation for your stay in Somalia's major cities</p>
<!-- Search Form -->
<div class="booking-form bg-white rounded-lg p-6">
<div class="flex border-b mb-4">
<button id="hotelsTab" class="tab-active py-2 px-4 font-medium">Hotels</button>
<button id="apartmentsTab" class="tab-inactive py-2 px-4 font-medium">Apartments</button>
<button id="guestHousesTab" class="tab-inactive py-2 px-4 font-medium">Guest Houses</button>
</div>
<form id="searchForm" class="grid grid-cols-1 md:grid-cols-4 gap-4">
<div>
<label for="city" class="block text-black text-sm font-medium mb-1">City</label>
<select id="city" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 text-black">
<option value="">Select City</option>
<option value="mogadishu">Mogadishu</option>
<option value="hargeisa">Hargeisa</option>
<option value="bosaso">Bosaso</option>
<option value="garowe">Garowe</option>
<option value="kismayo">Kismayo</option>
</select>
</div>
<div>
<label for="checkin" class="block text-black text-sm font-medium mb-1">Check-in</label>
<input type="date" id="checkin" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 text-black">
</div>
<div>
<label for="checkout" class="block text-black text-sm font-medium mb-1">Check-out</label>
<input type="date" id="checkout" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 text-black">
</div>
<div class="flex items-end">
<button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
Search <i class="fas fa-search ml-2"></i>
</button>
</div>
</form>
</div>
</div>
</div>
</section>
<!-- Popular Cities -->
<section id="cities" class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-8 text-gray-800">Popular Cities in Somalia</h2>
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<!-- City 1 - Mogadishu -->
<div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
<img src="https://images.unsplash.com/photo-1605152276897-4f618f831968?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Mogadishu" class="w-full h-48 object-cover">
<div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
<h3 class="text-white text-2xl font-bold">Mogadishu</h3>
</div>
<div class="p-4 bg-white">
<p class="text-gray-600">45 hotels available</p>
<a href="#" class="text-green-700 font-medium mt-2 inline-block">Explore <i class="fas fa-arrow-right ml-1"></i></a>
</div>
</div>
<!-- City 2 - Hargeisa -->
<div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
<img src="https://images.unsplash.com/photo-1582468546235-d5e0d6f11690?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Hargeisa" class="w-full h-48 object-cover">
<div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
<h3 class="text-white text-2xl font-bold">Hargeisa</h3>
</div>
<div class="p-4 bg-white">
<p class="text-gray-600">32 hotels available</p>
<a href="#" class="text-green-700 font-medium mt-2 inline-block">Explore <i class="fas fa-arrow-right ml-1"></i></a>
</div>
</div>
<!-- City 3 - Bosaso -->
<div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
<img src="https://images.unsplash.com/photo-1582468546235-d5e0d6f11690?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Bosaso" class="w-full h-48 object-cover">
<div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
<h3 class="text-white text-2xl font-bold">Bosaso</h3>
</div>
<div class="p-4 bg-white">
<p class="text-gray-600">28 hotels available</p>
<a href="#" class="text-green-700 font-medium mt-2 inline-block">Explore <i class="fas fa-arrow-right ml-1"></i></a>
</div>
</div>
<!-- City 4 -->
<div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
<img src="https://images.unsplash.com/photo-1506929562872-bb421503ef21?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1368&q=80" alt="Garowe" class="w-full h-48 object-cover">
<div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
<h3 class="text-white text-2xl font-bold">Garowe</h3>
</div>
<div class="p-4 bg-white">
<p class="text-gray-600">18 hotels available</p>
<a href="#" class="text-green-700 font-medium mt-2 inline-block">Explore <i class="fas fa-arrow-right ml-1"></i></a>
</div>
</div>
</div>
</div>
</section>
<!-- Featured Hotels -->
<section id="hotels" class="py-12 bg-gray-50">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-8 text-gray-800">Featured Hotels</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
<!-- Hotel 1 -->
<div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300" data-city="mogadishu">
<div class="relative">
<img src="https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Jazeera Palace Hotel" class="w-full h-48 object-cover">
<div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
<i class="fas fa-star mr-1"></i> 4.8
</div>
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Jazeera Palace Hotel</h3>
<p class="text-gray-600 mb-2"><i class="fas fa-map-marker-alt text-green-700 mr-2"></i> Mogadishu, Somalia</p>
<div class="flex items-center mb-3">
<div class="rating-stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
<span class="text-gray-600 text-sm ml-2">(128 reviews)</span>
</div>
<div class="flex flex-wrap gap-2 mb-4">
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-wifi amenity-icon"></i> Free WiFi
</span>
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-swimming-pool amenity-icon"></i> Pool
</span>
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-utensils amenity-icon"></i> Restaurant
</span>
</div>
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500 text-sm">Starting from</p>
<p class="text-green-700 font-bold text-xl">SOS 350,000</p>
<p class="text-gray-500 text-sm">per night</p>
</div>
<button class="btn-primary text-white px-4 py-2 rounded-md font-medium">
Book Now
</button>
</div>
</div>
</div>
<!-- Hotel 2 -->
<div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300" data-city="hargeisa">
<div class="relative">
<img src="https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Maansoor Hotel" class="w-full h-48 object-cover">
<div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
<i class="fas fa-star mr-1"></i> 4.5
</div>
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Maansoor Hotel</h3>
<p class="text-gray-600 mb-2"><i class="fas fa-map-marker-alt text-green-700 mr-2"></i> Hargeisa, Somalia</p>
<div class="flex items-center mb-3">
<div class="rating-stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<span class="text-gray-600 text-sm ml-2">(94 reviews)</span>
</div>
<div class="flex flex-wrap gap-2 mb-4">
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-wifi amenity-icon"></i> Free WiFi
</span>
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-parking amenity-icon"></i> Free Parking
</span>
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-utensils amenity-icon"></i> Restaurant
</span>
</div>
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500 text-sm">Starting from</p>
<p class="text-green-700 font-bold text-xl">SOS 280,000</p>
<p class="text-gray-500 text-sm">per night</p>
</div>
<button class="btn-primary text-white px-4 py-2 rounded-md font-medium">
Book Now
</button>
</div>
</div>
</div>
<!-- Hotel 3 -->
<div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300" data-city="bosaso">
<div class="relative">
<img src="https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Bosaso Beach Resort" class="w-full h-48 object-cover">
<div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
<i class="fas fa-star mr-1"></i> 4.7
</div>
</div>
<div class="p-4">
<h3 class="text-xl font-bold text-gray-800 mb-1">Bosaso Beach Resort</h3>
<p class="text-gray-600 mb-2"><i class="fas fa-map-marker-alt text-green-700 mr-2"></i> Bosaso, Somalia</p>
<div class="flex items-center mb-3">
<div class="rating-stars">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
<span class="text-gray-600 text-sm ml-2">(112 reviews)</span>
</div>
<div class="flex flex-wrap gap-2 mb-4">
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-umbrella-beach amenity-icon"></i> Beachfront
</span>
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-swimming-pool amenity-icon"></i> Pool
</span>
<span class="flex items-center text-sm text-gray-700">
<i class="fas fa-spa amenity-icon"></i> Spa
</span>
</div>
<div class="flex justify-between items-center">
<div>
<p class="text-gray-500 text-sm">Starting from</p>
<p class="text-green-700 font-bold text-xl">SOS 420,000</p>
<p class="text-gray-500 text-sm">per night</p>
</div>
<button class="btn-primary text-white px-4 py-2 rounded-md font-medium">
Book Now
</button>
</div>
</div>
</div>
</div>
<div class="text-center mt-8">
<button class="btn-secondary text-white px-6 py-3 rounded-md font-medium">
View All Hotels <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</div>
</section>
<!-- Testimonials -->
<section class="py-12 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-8 text-gray-800">What Our Guests Say</h2>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Testimonial 1 -->
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<div class="flex items-center mb-4">
<img src="https://randomuser.me/api/portraits/men/32.jpg" alt="Ahmed" class="w-12 h-12 rounded-full object-cover mr-4">
<div>
<h4 class="font-bold text-gray-800">Ahmed Ali</h4>
<div class="flex">
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
</div>
</div>
</div>
<p class="text-gray-600">"Excellent service and beautiful rooms at Jazeera Palace. The staff was very helpful and the location was perfect for my business meetings in Mogadishu."</p>
</div>
<!-- Testimonial 2 -->
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<div class="flex items-center mb-4">
<img src="https://randomuser.me/api/portraits/women/44.jpg" alt="Fadumo" class="w-12 h-12 rounded-full object-cover mr-4">
<div>
<h4 class="font-bold text-gray-800">Fadumo Hassan</h4>
<div class="flex">
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star-half-alt text-yellow-500"></i>
</div>
</div>
</div>
<p class="text-gray-600">"The Bosaso Beach Resort was amazing! The sea view from my room was breathtaking and the food was delicious. Will definitely come back!"</p>
</div>
<!-- Testimonial 3 -->
<div class="bg-gray-50 p-6 rounded-lg shadow-sm">
<div class="flex items-center mb-4">
<img src="https://randomuser.me/api/portraits/men/75.jpg" alt="Mohamed" class="w-12 h-12 rounded-full object-cover mr-4">
<div>
<h4 class="font-bold text-gray-800">Mohamed Abdi</h4>
<div class="flex">
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="fas fa-star text-yellow-500"></i>
<i class="far fa-star text-yellow-500"></i>
</div>
</div>
</div>
<p class="text-gray-600">"Great experience at Maansoor Hotel in Hargeisa. The rooms were clean and comfortable, and the staff was very friendly. Highly recommended!"</p>
</div>
</div>
</div>
</section>
<!-- About Section -->
<section id="about" class="py-16 bg-white">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold text-center mb-8 text-gray-800">About Hoy Somali</h2>
<div class="max-w-4xl mx-auto">
<p class="text-gray-600 mb-6">
Hoy Somali is the leading hotel booking platform in Somalia, connecting travelers with the best accommodations across the country. Our mission is to make travel planning easy and accessible for everyone visiting Somalia.
</p>
<p class="text-gray-600 mb-6">
Founded in 2020, we've partnered with hundreds of hotels, apartments, and guest houses to provide you with a wide selection of options at competitive prices. Whether you're traveling for business or leisure, we've got you covered.
</p>
<p class="text-gray-600">
Our team is based in Mogadishu with local experts in each major city, ensuring we provide the most accurate information and best customer service to our users.
</p>
</div>
</div>
</section>
<!-- Call to Action -->
<section class="py-16 bg-green-700 text-white">
<div class="container mx-auto px-4 text-center">
<h2 class="text-3xl font-bold mb-4">Ready to book your stay in Somalia?</h2>
<p class="text-xl mb-8 max-w-2xl mx-auto">Join thousands of satisfied guests who have discovered the best accommodations across Somalia</p>
<button class="btn-secondary text-white px-8 py-3 rounded-md font-medium text-lg">
Find Your Perfect Hotel <i class="fas fa-arrow-right ml-2"></i>
</button>
</div>
</section>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="text-xl font-bold mb-4 flex items-center">
<i class="fas fa-hotel text-2xl text-green-500 mr-2"></i> HoyDoon
</h3>
<p class="text-gray-400">Your trusted partner for hotel bookings across Somalia. We connect travelers with the best accommodations in major Somali cities.</p>
</div>
<div>
<h4 class="text-lg font-bold mb-4">Quick Links</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Home</a></li>
<li><a href="#hotels" class="text-gray-400 hover:text-white">Hotels</a></li>
<li><a href="#cities" class="text-gray-400 hover:text-white">Cities</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">About Us</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Contact</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-bold mb-4">Support</h4>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">FAQs</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Privacy Policy</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Terms & Conditions</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Cancellation Policy</a></li>
</ul>
</div>
<div>
<h4 class="text-lg font-bold mb-4">Contact Us</h4>
<ul class="space-y-2">
<li class="flex items-center">
<i class="fas fa-map-marker-alt text-green-500 mr-2"></i>
<span class="text-gray-400">Mogadishu, Somalia</span>
</li>
<li class="flex items-center">
<i class="fas fa-phone text-green-500 mr-2"></i>
<span class="text-gray-400">+252 61 123 4567</span>
</li>
<li class="flex items-center">
<i class="fas fa-envelope text-green-500 mr-2"></i>
<span class="text-gray-400">info@hoysomali.com</span>
</li>
</ul>
<div class="mt-4 flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="text-gray-400 hover:text-white">
<i class="fab fa-linkedin-in"></i>
</a>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2023 HoyDoon. All rights reserved.</p>
</div>
</div>
</footer>
<!-- Back to Top Button -->
<button id="backToTopBtn" class="fixed bottom-8 right-8 w-12 h-12 bg-green-700 text-white rounded-full shadow-lg hover:bg-green-800 transition-all duration-300 transform hover:scale-110 hidden z-40">
<i class="fas fa-arrow-up text-xl"></i>
</button>
<!-- Login Modal -->
<div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg w-full max-w-md mx-4">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-2xl font-bold text-gray-800">Login to Your Account</h3>
<button id="closeLoginModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<form id="loginForm" class="space-y-4">
<div>
<label for="loginEmail" class="block text-gray-700 font-medium mb-1">Email Address</label>
<input type="email" id="loginEmail" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div>
<label for="loginPassword" class="block text-gray-700 font-medium mb-1">Password</label>
<input type="password" id="loginPassword" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div class="flex justify-between items-center">
<div class="flex items-center">
<input type="checkbox" id="rememberMe" class="mr-2">
<label for="rememberMe" class="text-gray-700">Remember me</label>
</div>
<a href="#" class="text-green-700 hover:underline">Forgot password?</a>
</div>
<button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
Login
</button>
</form>
<div class="mt-6 text-center">
<p class="text-gray-600">Or login with</p>
<div class="flex justify-center space-x-4 mt-4">
<button class="bg-blue-600 text-white p-2 rounded-full">
<i class="fab fa-facebook-f"></i>
</button>
<button class="bg-red-600 text-white p-2 rounded-full">
<i class="fab fa-google"></i>
</button>
<button class="bg-blue-400 text-white p-2 rounded-full">
<i class="fab fa-twitter"></i>
</button>
</div>
</div>
<div class="mt-6 text-center">
<p class="text-gray-600">Don't have an account? <button id="switchToRegister" class="text-green-700 font-medium hover:underline">Register</button></p>
</div>
</div>
</div>
</div>
<!-- Registration Modal -->
<div id="registerModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
<div class="bg-white rounded-lg w-full max-w-md mx-4">
<div class="p-6">
<div class="flex justify-between items-center mb-6">
<h3 class="text-2xl font-bold text-gray-800">Create Your Account</h3>
<button id="closeRegisterModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<form id="registerForm" class="space-y-4">
<div>
<label for="registerName" class="block text-gray-700 font-medium mb-1">Full Name</label>
<input type="text" id="registerName" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div>
<label for="registerEmail" class="block text-gray-700 font-medium mb-1">Email Address</label>
<input type="email" id="registerEmail" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div>
<label for="registerPhone" class="block text-gray-700 font-medium mb-1">Phone Number</label>
<input type="tel" id="registerPhone" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div>
<label for="registerPassword" class="block text-gray-700 font-medium mb-1">Password</label>
<input type="password" id="registerPassword" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div>
<label for="registerConfirmPassword" class="block text-gray-700 font-medium mb-1">Confirm Password</label>
<input type="password" id="registerConfirmPassword" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div class="flex items-center">
<input type="checkbox" id="agreeTerms" class="mr-2" required>
<label for="agreeTerms" class="text-gray-700">I agree to the <a href="#" class="text-green-700 hover:underline">Terms & Conditions</a> and <a href="#" class="text-green-700 hover:underline">Privacy Policy</a></label>
</div>
<button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
Register
</button>
</form>
<div class="mt-6 text-center">
<p class="text-gray-600">Already have an account? <button id="switchToLogin" class="text-green-700 font-medium hover:underline">Login</button></p>
</div>
</div>
</div>
</div>
<!-- Hotel Details Modal -->
<div id="hotelDetailsModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden overflow-y-auto py-8">
<div class="bg-white rounded-lg w-full max-w-4xl mx-4 max-h-screen overflow-y-auto">
<div class="p-6">
<div class="flex justify-between items-start mb-6">
<div>
<h3 class="text-2xl font-bold text-gray-800">Jazeera Palace Hotel</h3>
<p class="text-gray-600"><i class="fas fa-map-marker-alt text-green-700 mr-2"></i> Mogadishu, Somalia</p>
</div>
<button id="closeHotelModal" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-times"></i>
</button>
</div>
<!-- Hotel Images Gallery -->
<div class="mb-6">
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
<div class="col-span-2">
<img src="https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Jazeera Palace Hotel" class="w-full h-64 md:h-80 object-cover rounded-lg">
</div>
<div class="grid grid-cols-2 gap-4">
<img src="https://images.unsplash.com/photo-1582719478460-973ef638aac1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Hotel Room" class="w-full h-32 md:h-40 object-cover rounded-lg">
<img src="https://images.unsplash.com/photo-1565031491910-e57fac031c41?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Hotel Pool" class="w-full h-32 md:h-40 object-cover rounded-lg">
<img src="https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1374&q=80" alt="Hotel Restaurant" class="w-full h-32 md:h-40 object-cover rounded-lg">
<img src="https://images.unsplash.com/photo-1571896349842-33c89424de2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Hotel Lobby" class="w-full h-32 md:h-40 object-cover rounded-lg">
</div>
</div>
</div>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
<div class="lg:col-span-2">
<!-- Hotel Description -->
<div class="mb-6">
<h4 class="text-xl font-bold text-gray-800 mb-3">About Jazeera Palace Hotel</h4>
<p class="text-gray-600 mb-4">
Located in the heart of Mogadishu, Jazeera Palace Hotel offers luxurious accommodations with stunning views of the Indian Ocean. Our hotel features modern amenities, spacious rooms, and exceptional service to ensure a memorable stay for both business and leisure travelers.
</p>
<p class="text-gray-600">
Enjoy our rooftop swimming pool, state-of-the-art fitness center, and multiple dining options serving both local Somali cuisine and international dishes. Our conference facilities can accommodate up to 300 guests, making us the perfect choice for your next event in Mogadishu.
</p>
</div>
<!-- Amenities -->
<div class="mb-6">
<h4 class="text-xl font-bold text-gray-800 mb-3">Amenities</h4>
<div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
<div class="flex items-center">
<i class="fas fa-wifi text-green-700 mr-3"></i>
<span class="text-gray-700">Free High-Speed WiFi</span>
</div>
<div class="flex items-center">
<i class="fas fa-swimming-pool text-green-700 mr-3"></i>
<span class="text-gray-700">Outdoor Swimming Pool</span>
</div>
<div class="flex items-center">
<i class="fas fa-utensils text-green-700 mr-3"></i>
<span class="text-gray-700">Restaurant & Bar</span>
</div>
<div class="flex items-center">
<i class="fas fa-dumbbell text-green-700 mr-3"></i>
<span class="text-gray-700">Fitness Center</span>
</div>
<div class="flex items-center">
<i class="fas fa-concierge-bell text-green-700 mr-3"></i>
<span class="text-gray-700">24-Hour Room Service</span>
</div>
<div class="flex items-center">
<i class="fas fa-parking text-green-700 mr-3"></i>
<span class="text-gray-700">Free Parking</span>
</div>
<div class="flex items-center">
<i class="fas fa-business-time text-green-700 mr-3"></i>
<span class="text-gray-700">Business Center</span>
</div>
<div class="flex items-center">
<i class="fas fa-spa text-green-700 mr-3"></i>
<span class="text-gray-700">Spa & Wellness</span>
</div>
</div>
</div>
<!-- Reviews -->
<div class="mb-6">
<h4 class="text-xl font-bold text-gray-800 mb-3">Guest Reviews</h4>
<div class="flex items-center mb-4">
<div class="text-3xl font-bold mr-4">4.8</div>
<div>
<div class="rating-stars mb-1">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star-half-alt"></i>
</div>
<div class="text-gray-600">Based on 128 reviews</div>
</div>
</div>
<!-- Review 1 -->
<div class="border-b border-gray-200 pb-4 mb-4">
<div class="flex justify-between mb-2">
<div class="font-medium">Ahmed Ali</div>
<div class="text-sm text-gray-500">2 days ago</div>
</div>
<div class="rating-stars text-sm mb-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
</div>
<p class="text-gray-600">
Excellent service and beautiful rooms. The staff was very helpful and the location was perfect for my business meetings in Mogadishu.
</p>
</div>
<!-- Review 2 -->
<div class="border-b border-gray-200 pb-4 mb-4">
<div class="flex justify-between mb-2">
<div class="font-medium">Fatima Omar</div>
<div class="text-sm text-gray-500">1 week ago</div>
</div>
<div class="rating-stars text-sm mb-2">
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="fas fa-star"></i>
<i class="far fa-star"></i>
</div>
<p class="text-gray-600">
Great hotel with amazing views. The food was delicious and the rooms were very clean. Would definitely stay here again.
</p>
</div>
<button class="text-green-700 font-medium hover:underline">View All Reviews</button>
</div>
</div>
<!-- Booking Sidebar -->
<div class="bg-gray-50 p-6 rounded-lg">
<h4 class="text-xl font-bold text-gray-800 mb-4">Select Your Room</h4>
<!-- Room Type 1 -->
<div class="border-b border-gray-200 pb-4 mb-4">
<h5 class="font-bold text-gray-800 mb-2">Deluxe Room</h5>
<p class="text-gray-600 text-sm mb-3">Spacious room with king-size bed and ocean view</p>
<div class="flex justify-between items-center mb-3">
<div>
<span class="text-green-700 font-bold text-xl">SOS 350,000</span>
<span class="text-gray-500 text-sm">/ night</span>
</div>
<button class="btn-primary text-white px-3 py-1 rounded-md text-sm font-medium">
Select
</button>
</div>
<div class="text-sm text-gray-600">
<div class="flex items-center mb-1">
<i class="fas fa-bed text-green-700 mr-2"></i>
<span>1 King Bed</span>
</div>
<div class="flex items-center mb-1">
<i class="fas fa-user text-green-700 mr-2"></i>
<span>Sleeps 2</span>
</div>
<div class="flex items-center">
<i class="fas fa-ruler-combined text-green-700 mr-2"></i>
<span>35 m²</span>
</div>
</div>
</div>
<!-- Room Type 2 -->
<div class="border-b border-gray-200 pb-4 mb-4">
<h5 class="font-bold text-gray-800 mb-2">Executive Suite</h5>
<p class="text-gray-600 text-sm mb-3">Luxurious suite with separate living area and balcony</p>
<div class="flex justify-between items-center mb-3">
<div>
<span class="text-green-700 font-bold text-xl">SOS 480,000</span>
<span class="text-gray-500 text-sm">/ night</span>
</div>
<button class="btn-primary text-white px-3 py-1 rounded-md text-sm font-medium">
Select
</button>
</div>
<div class="text-sm text-gray-600">
<div class="flex items-center mb-1">
<i class="fas fa-bed text-green-700 mr-2"></i>
<span>1 King Bed</span>
</div>
<div class="flex items-center mb-1">
<i class="fas fa-user text-green-700 mr-2"></i>
<span>Sleeps 3</span>
</div>
<div class="flex items-center">
<i class="fas fa-ruler-combined text-green-700 mr-2"></i>
<span>60 m²</span>
</div>
</div>
</div>
<!-- Room Type 3 -->
<div class="pb-4 mb-4">
<h5 class="font-bold text-gray-800 mb-2">Family Room</h5>
<p class="text-gray-600 text-sm mb-3">Perfect for families with two queen beds</p>
<div class="flex justify-between items-center mb-3">
<div>
<span class="text-green-700 font-bold text-xl">SOS 420,000</span>
<span class="text-gray-500 text-sm">/ night</span>
</div>
<button class="btn-primary text-white px-3 py-1 rounded-md text-sm font-medium">
Select
</button>
</div>
<div class="text-sm text-gray-600">
<div class="flex items-center mb-1">
<i class="fas fa-bed text-green-700 mr-2"></i>
<span>2 Queen Beds</span>
</div>
<div class="flex items-center mb-1">
<i class="fas fa-user text-green-700 mr-2"></i>
<span>Sleeps 4</span>
</div>
<div class="flex items-center">
<i class="fas fa-ruler-combined text-green-700 mr-2"></i>
<span>50 m²</span>
</div>
</div>
</div>
<!-- Selected Room Summary -->
<div class="bg-white p-4 rounded-lg border border-gray-200 mb-4 hidden" id="selectedRoomSummary">
<h5 class="font-bold text-gray-800 mb-2">Deluxe Room</h5>
<div class="flex justify-between mb-2">
<span class="text-gray-600">SOS 350,000 x 2 nights</span>
<span class="text-gray-800">SOS 700,000</span>
</div>
<div class="flex justify-between mb-2">
<span class="text-gray-600">Taxes & Fees</span>
<span class="text-gray-800">SOS 70,000</span>
</div>
<div class="border-t border-gray-200 pt-2 mt-2">
<div class="flex justify-between font-bold">
<span>Total</span>
<span>SOS 770,000</span>
</div>
</div>
</div>
<!-- Booking Form -->
<form id="bookingForm" class="hidden">
<div class="mb-4">
<label for="checkinDate" class="block text-gray-700 text-sm font-medium mb-1">Check-in</label>
<input type="date" id="checkinDate" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div class="mb-4">
<label for="checkoutDate" class="block text-gray-700 text-sm font-medium mb-1">Check-out</label>
<input type="date" id="checkoutDate" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
</div>
<div class="mb-4">
<label for="guests" class="block text-gray-700 text-sm font-medium mb-1">Guests</label>
<select id="guests" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
<option>1 Adult</option>
<option>2 Adults</option>
<option>3 Adults</option>
<option>4 Adults</option>
<option>1 Adult, 1 Child</option>
<option>2 Adults, 1 Child</option>
<option>2 Adults, 2 Children</option>
</select>
</div>
<!-- Personal Information Fields -->
<div class="mt-6 mb-4">
<h5 class="font-bold text-gray-800 mb-3">Personal Information</h5>
<div class="mb-4">
<label for="fullName" class="block text-gray-700 text-sm font-medium mb-1">Full Name</label>
<input type="text" id="fullName" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div class="mb-4">
<label for="email" class="block text-gray-700 text-sm font-medium mb-1">Email Address</label>
<input type="email" id="email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div class="mb-4">
<label for="phone" class="block text-gray-700 text-sm font-medium mb-1">Phone Number</label>
<input type="tel" id="phone" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
</div>
<div class="mb-4">
<label for="address" class="block text-gray-700 text-sm font-medium mb-1">Address</label>
<textarea id="address" rows="2" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"></textarea>
</div>
<div class="mb-4">
<label for="specialRequests" class="block text-gray-700 text-sm font-medium mb-1">Special Requests</label>
<textarea id="specialRequests" rows="2" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"></textarea>
</div>
</div>
<button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
Complete Booking
</button>
</form>
<!-- Book Now Button (shown when no room selected) -->
<button id="showBookingForm" class="w-full btn-primary text-white py-3 px-4 rounded-md font-medium hidden">
Book Now
</button>
<!-- Need Help -->
<div class="mt-6 text-center">
<p class="text-gray-600 text-sm">Need help with your booking?</p>
<div class="flex justify-center mt-2">
<i class="fas fa-phone text-green-700 mr-2"></i>
<span class="text-green-700 font-medium">+252 61 123 4567</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
// Tab Switching
const hotelsTab = document.getElementById('hotelsTab');
const apartmentsTab = document.getElementById('apartmentsTab');
const guestHousesTab = document.getElementById('guestHousesTab');
function setActiveTab(activeTab) {
[hotelsTab, apartmentsTab, guestHousesTab].forEach(tab => {
tab.classList.remove('tab-active');
tab.classList.add('tab-inactive');
});
activeTab.classList.add('tab-active');
activeTab.classList.remove('tab-inactive');
// In a real app, you would update the search results here
console.log(`Showing ${activeTab.textContent.trim()} results`);
}
hotelsTab.addEventListener('click', () => setActiveTab(hotelsTab));
apartmentsTab.addEventListener('click', () => setActiveTab(apartmentsTab));
guestHousesTab.addEventListener('click', () => setActiveTab(guestHousesTab));
// Language Toggle
const toggleLanguage = document.getElementById('toggleLanguage');
const currentLanguage = document.getElementById('currentLanguage');
let isEnglish = true;
toggleLanguage.addEventListener('click', () => {
isEnglish = !isEnglish;
currentLanguage.textContent = isEnglish ? 'English' : 'Somali';
// Here you would typically reload content in the selected language
// For this demo, we're just toggling the display text
});
// Modal Handling
const loginBtn = document.getElementById('loginBtn');
const registerBtn = document.getElementById('registerBtn');
const loginModal = document.getElementById('loginModal');
const registerModal = document.getElementById('registerModal');
const closeLoginModal = document.getElementById('closeLoginModal');
const closeRegisterModal = document.getElementById('closeRegisterModal');
const switchToRegister = document.getElementById('switchToRegister');
const switchToLogin = document.getElementById('switchToLogin');
loginBtn.addEventListener('click', () => {
loginModal.classList.remove('hidden');
registerModal.classList.add('hidden');
});
registerBtn.addEventListener('click', () => {
registerModal.classList.remove('hidden');
loginModal.classList.add('hidden');
});
closeLoginModal.addEventListener('click', () => {
loginModal.classList.add('hidden');
});
closeRegisterModal.addEventListener('click', () => {
registerModal.classList.add('hidden');
});
switchToRegister.addEventListener('click', () => {
registerModal.classList.remove('hidden');
loginModal.classList.add('hidden');
});
switchToLogin.addEventListener('click', () => {
loginModal.classList.remove('hidden');
registerModal.classList.add('hidden');
});
// Close modals when clicking outside
window.addEventListener('click', (e) => {
if (e.target === loginModal) {
loginModal.classList.add('hidden');
}
if (e.target === registerModal) {
registerModal.classList.add('hidden');
}
if (e.target === hotelDetailsModal) {
hotelDetailsModal.classList.add('hidden');
}
});
// Hotel Details Modal
const hotelDetailsModal = document.getElementById('hotelDetailsModal');
const closeHotelModal = document.getElementById('closeHotelModal');
const bookNowButtons = document.querySelectorAll('.hotel-card button');
const showBookingForm = document.getElementById('showBookingForm');
const selectedRoomSummary = document.getElementById('selectedRoomSummary');
const bookingForm = document.getElementById('bookingForm');
bookNowButtons.forEach(button => {
button.addEventListener('click', () => {
hotelDetailsModal.classList.remove('hidden');
});
});
closeHotelModal.addEventListener('click', () => {
hotelDetailsModal.classList.add('hidden');
});
// Room selection
const roomSelectButtons = document.querySelectorAll('.bg-gray-50 button');
roomSelectButtons.forEach(button => {
button.addEventListener('click', (e) => {
e.preventDefault();
const roomType = e.target.closest('div').querySelector('h5').textContent;
const roomPrice = e.target.closest('div').querySelector('.text-green-700').textContent;
// Update selected room summary
selectedRoomSummary.querySelector('h5').textContent = roomType;
selectedRoomSummary.querySelectorAll('span')[1].textContent = roomPrice;
// Show summary and booking form
selectedRoomSummary.classList.remove('hidden');
bookingForm.classList.remove('hidden');
showBookingForm.classList.add('hidden');
});
});
// Form Submissions
document.getElementById('loginForm').addEventListener('submit', (e) => {
e.preventDefault();
alert('Login functionality would be implemented here');
loginModal.classList.add('hidden');
});
document.getElementById('registerForm').addEventListener('submit', (e) => {
e.preventDefault();
alert('Registration functionality would be implemented here');
registerModal.classList.add('hidden');
});
document.getElementById('bookingForm').addEventListener('submit', (e) => {
e.preventDefault();
const bookingData = {
roomType: selectedRoomSummary.querySelector('h5').textContent,
price: selectedRoomSummary.querySelectorAll('span')[1].textContent,
checkin: document.getElementById('checkinDate').value,
checkout: document.getElementById('checkoutDate').value,
guests: document.getElementById('guests').value,
fullName: document.getElementById('fullName').value,
email: document.getElementById('email').value,
phone: document.getElementById('phone').value,
address: document.getElementById('address').value,
specialRequests: document.getElementById('specialRequests').value
};
// In a real app, you would send this data to your backend
console.log('Booking submitted:', bookingData);
alert(`Booking confirmed for ${bookingData.fullName}!\nWe've sent details to ${bookingData.email}`);
hotelDetailsModal.classList.add('hidden');
});
document.getElementById('searchForm').addEventListener('submit', (e) => {
e.preventDefault();
const city = document.getElementById('city').value;
const checkin = document.getElementById('checkin').value;
const checkout = document.getElementById('checkout').value;
if (!city || !checkin || !checkout) {
alert('Please fill in all search fields');
return;
}
// Hide all hotels first
document.querySelectorAll('.hotel-card').forEach(card => {
card.style.display = 'none';
});
// Show only hotels in selected city
const matchingHotels = document.querySelectorAll(`.hotel-card[data-city="${city}"]`);
if (matchingHotels.length > 0) {
matchingHotels.forEach(hotel => {
hotel.style.display = 'block';
});
// Scroll to hotels section
document.getElementById('hotels').scrollIntoView({
behavior: 'smooth'
});
} else {
alert(`No hotels found in ${city}`);
// Show all hotels if none match
document.querySelectorAll('.hotel-card').forEach(card => {
card.style.display = 'block';
});
}
});
// Navigation Smooth Scrolling
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
const targetId = this.getAttribute('href');
if (targetId === '#') return;
const targetElement = document.querySelector(targetId);
if (targetElement) {
targetElement.scrollIntoView({
behavior: 'smooth',
block: 'start'
});
}
});
});
// Back to Top Button
const backToTopBtn = document.getElementById('backToTopBtn');
window.addEventListener('scroll', () => {
if (window.pageYOffset > 300) {
backToTopBtn.classList.remove('hidden');
} else {
backToTopBtn.classList.add('hidden');
}
});
backToTopBtn.addEventListener('click', () => {
window.scrollTo({
top: 0,
behavior: 'smooth'
});
});
// Mobile menu toggle (would be implemented with more time)
// Date picker initialization (would use a library like flatpickr in a real implementation)
const today = new Date();
const tomorrow = new Date(today);
tomorrow.setDate(tomorrow.getDate() + 1);
document.getElementById('checkin').valueAsDate = today;
document.getElementById('checkout').valueAsDate = tomorrow;
document.getElementById('checkinDate').valueAsDate = today;
document.getElementById('checkoutDate').valueAsDate = tomorrow;
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Mucatt/https-enzostvs-deepsite-hf-space-projects-new" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>
<html lang="en" dir="ltr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>HoyDoon - Hotel Booking Platform</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
:root {
--primary-color: #2c786c;
--secondary-color: #004445;
--accent-color: #f8b400;
--light-color: #faf5e4;
}
body {
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5;
}
.somali-font {
font-family: 'Roboto', sans-serif;
}
.hero-section {
background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
background-size: cover;
background-position: center;
}
.language-toggle {
cursor: pointer;
transition: all 0.3s ease;
}
.language-toggle:hover {
transform: scale(1.05);
}
.hotel-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.amenity-icon {
width: 24px;
height: 24px;
margin-right: 8px;
}
.booking-form {
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.tab-active {
border-bottom: 3px solid var(--accent-color);
font-weight: 500;
color: var(--secondary-color);
}
.tab-inactive {
color: #6b7280;
}
.rating-stars {
color: var(--accent-color);
}
.btn-primary {
background-color: var(--primary-color);
transition: all 0.3s ease;
}
.btn-primary:hover {
background-color: var(--secondary-color);
transform: translateY(-2px);
}
.btn-secondary {
background-color: var(--accent-color);
transition: all 0.3s ease;
}
.btn-secondary:hover {
background-color: #e09e00;
transform: translateY(-2px);
}
/* Animation for loading */
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.5;
}
}