Download index.html from john1071/king: direct link, hf CLI and curl.
- Browser
- Download file 45.4 kB
-
https://huggingface.co/spaces/john1071/king/resolve/main/index.html
- Command line
-
hf download hf://spaces/john1071/king/index.html
-
curl -L -o index.html https://huggingface.co/spaces/john1071/king/resolve/main/index.html
45.4 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Modern Airbnb Clone</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> | |
| /* Custom CSS for animations */ | |
| body { | |
| background: linear-gradient(-45deg, #ffffff, #f5f5f5, #ffecef, #ffdfe4); | |
| background-size: 400% 400%; | |
| animation: gradient 15s ease infinite; | |
| } | |
| @keyframes gradient { | |
| 0% { | |
| background-position: 0% 50%; | |
| } | |
| 50% { | |
| background-position: 100% 50%; | |
| } | |
| 100% { | |
| background-position: 0% 50%; | |
| } | |
| } | |
| .hero-bg { | |
| background: linear-gradient(-45deg, #ff385c, #ff5e62, #ff9966, #ff5e62); | |
| background-size: 400% 400%; | |
| animation: gradient 8s ease infinite; | |
| } | |
| .property-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .btn-hover { | |
| transition: all 0.3s ease; | |
| } | |
| .btn-hover:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .floating { | |
| animation: floating 3s ease-in-out infinite; | |
| } | |
| @keyframes floating { | |
| 0% { transform: translateY(0px); } | |
| 50% { transform: translateY(-10px); } | |
| 100% { transform: translateY(0px); } | |
| } | |
| .search-box { | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| .nav-link { | |
| position: relative; | |
| } | |
| .nav-link:after { | |
| content: ''; | |
| position: absolute; | |
| width: 0; | |
| height: 2px; | |
| bottom: -2px; | |
| left: 0; | |
| background-color: #ff385c; | |
| transition: width 0.3s ease; | |
| } | |
| .nav-link:hover:after { | |
| width: 100%; | |
| } | |
| .category-item:hover .category-icon { | |
| transform: scale(1.1); | |
| } | |
| .category-icon { | |
| transition: all 0.3s ease; | |
| } | |
| /* Dropdown animation */ | |
| .group-hover\:block { | |
| transition: all 0.2s ease; | |
| opacity: 0; | |
| transform: translateY(-10px); | |
| } | |
| .group:hover .group-hover\:block { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| </style> | |
| </head> | |
| <body class="font-sans antialiased text-gray-900"> | |
| <!-- Login Modal --> | |
| <div id="login-modal" class="fixed inset-0 bg-black bg-opacity-50 z-50 flex items-center justify-center hidden"> | |
| <div class="bg-white rounded-xl p-8 max-w-md w-full mx-4"> | |
| <div class="flex justify-between items-center mb-6"> | |
| <h2 class="text-2xl font-bold">Welcome back</h2> | |
| <button onclick="document.getElementById('login-modal').classList.add('hidden')" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Email</label> | |
| <input type="email" placeholder="Enter your email" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Password</label> | |
| <input type="password" placeholder="Enter your password" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div class="flex items-center"> | |
| <input id="remember-me" type="checkbox" class="h-4 w-4 text-rose-500 focus:ring-rose-500 border-gray-300 rounded"> | |
| <label for="remember-me" class="ml-2 block text-sm text-gray-700">Remember me</label> | |
| </div> | |
| <a href="#" class="text-sm text-rose-500 hover:text-rose-700">Forgot password?</a> | |
| </div> | |
| <button type="submit" class="btn-hover w-full bg-rose-500 text-white py-3 px-6 rounded-lg font-medium transition duration-300 hover:bg-rose-600"> | |
| Log In | |
| </button> | |
| </form> | |
| <div class="mt-6 text-center"> | |
| <p class="text-sm text-gray-600">Don't have an account? | |
| <a href="#" class="text-rose-500 hover:text-rose-700 font-medium">Sign up</a> | |
| </p> | |
| </div> | |
| <div class="mt-6"> | |
| <div class="relative"> | |
| <div class="absolute inset-0 flex items-center"> | |
| <div class="w-full border-t border-gray-300"></div> | |
| </div> | |
| <div class="relative flex justify-center text-sm"> | |
| <span class="px-2 bg-white text-gray-500">Or continue with</span> | |
| </div> | |
| </div> | |
| <div class="mt-6 grid grid-cols-2 gap-3"> | |
| <button type="button" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50"> | |
| <i class="fab fa-google text-rose-500"></i> | |
| <span class="ml-2">Google</span> | |
| </button> | |
| <button type="button" class="w-full inline-flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm bg-white text-sm font-medium text-gray-700 hover:bg-gray-50"> | |
| <i class="fab fa-facebook-f text-blue-600"></i> | |
| <span class="ml-2">Facebook</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-sm sticky top-0 z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16 items-center"> | |
| <!-- Logo --> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <div class="text-2xl font-bold text-rose-500 flex items-center"> | |
| <i class="fas fa-home mr-2"></i> | |
| <span>airbnb</span> | |
| </div> | |
| </div> | |
| <!-- Search Bar --> | |
| <div class="hidden md:flex mx-4 flex-1 max-w-md"> | |
| <div class="relative rounded-full border border-gray-300 shadow-sm flex items-center px-4 py-2 hover:shadow-md transition duration-200"> | |
| <input type="text" placeholder="Where are you going?" class="flex-grow outline-none bg-transparent text-sm"> | |
| <div class="absolute inset-y-0 right-0 flex items-center pr-3"> | |
| <button class="bg-rose-500 text-white p-2 rounded-full"> | |
| <i class="fas fa-search"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Menu Items --> | |
| <div class="hidden md:flex items-center space-x-8"> | |
| <a href="#" class="nav-link text-sm font-medium">Become a Host</a> | |
| <a href="#" class="nav-link text-sm font-medium">Trips</a> | |
| <a href="#" class="nav-link text-sm font-medium">Messages</a> | |
| <button onclick="document.getElementById('login-modal').classList.remove('hidden')" class="nav-link text-sm font-medium"> | |
| Log In | |
| </button> | |
| <!-- User Menu with Dropdown --> | |
| <div class="relative group"> | |
| <div class="flex items-center space-x-2 border border-gray-300 rounded-full p-2 hover:shadow-md transition duration-200 cursor-pointer"> | |
| <i class="fas fa-bars text-gray-500"></i> | |
| <div class="bg-gray-500 text-white rounded-full w-8 h-8 flex items-center justify-center"> | |
| <i class="fas fa-user"></i> | |
| </div> | |
| </div> | |
| <!-- Dropdown Menu --> | |
| <div class="absolute right-0 mt-2 w-48 bg-white rounded-md shadow-lg py-1 z-50 hidden group-hover:block"> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Profile</a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Account Settings</a> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Your Trips</a> | |
| <div class="border-t border-gray-200"></div> | |
| <a href="#" class="block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100">Log Out</a> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Mobile menu button --> | |
| <div class="md:hidden flex items-center"> | |
| <button class="text-gray-500"> | |
| <i class="fas fa-bars text-xl"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Hero Section with Animated Background --> | |
| <div class="hero-bg py-20 px-4 sm:px-6 lg:px-8"> | |
| <div class="max-w-7xl mx-auto"> | |
| <div class="text-center"> | |
| <h1 class="text-4xl md:text-5xl font-bold text-white mb-6">Find your perfect getaway</h1> | |
| <p class="text-xl text-white mb-8 max-w-2xl mx-auto">Discover homes, experiences, and places that are perfect for any occasion</p> | |
| <!-- Search Box --> | |
| <div class="bg-white rounded-lg p-4 search-box max-w-2xl mx-auto"> | |
| <div class="flex flex-col md:flex-row"> | |
| <div class="flex-1 mb-4 md:mb-0 md:mr-4"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Location</label> | |
| <input type="text" placeholder="Where are you going?" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| <div class="flex-1 mb-4 md:mb-0 md:mr-4"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Dates</label> | |
| <input type="text" placeholder="Add dates" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| <div class="flex-1 mb-4 md:mb-0"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Guests</label> | |
| <input type="text" placeholder="Add guests" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| </div> | |
| <button class="btn-hover mt-4 w-full bg-rose-500 text-white py-3 px-6 rounded-lg font-medium transition duration-300 hover:bg-rose-600"> | |
| <i class="fas fa-search mr-2"></i> Search | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Categories --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> | |
| <div class="flex overflow-x-auto pb-4 scrollbar-hide space-x-8"> | |
| <div class="category-item flex flex-col items-center min-w-max cursor-pointer group"> | |
| <div class="category-icon mb-2 w-12 h-12 flex items-center justify-center bg-gray-100 rounded-full group-hover:bg-rose-100 text-rose-500"> | |
| <i class="fas fa-umbrella-beach text-xl"></i> | |
| </div> | |
| <span class="text-sm">Beach</span> | |
| </div> | |
| <div class="category-item flex flex-col items-center min-w-max cursor-pointer group"> | |
| <div class="category-icon mb-2 w-12 h-12 flex items-center justify-center bg-gray-100 rounded-full group-hover:bg-rose-100 text-rose-500"> | |
| <i class="fas fa-mountain text-xl"></i> | |
| </div> | |
| <span class="text-sm">Mountain</span> | |
| </div> | |
| <div class="category-item flex flex-col items-center min-w-max cursor-pointer group"> | |
| <div class="category-icon mb-2 w-12 h-12 flex items-center justify-center bg-gray-100 rounded-full group-hover:bg-rose-100 text-rose-500"> | |
| <i class="fas fa-swimming-pool text-xl"></i> | |
| </div> | |
| <span class="text-sm">Amazing pools</span> | |
| </div> | |
| <div class="category-item flex flex-col items-center min-w-max cursor-pointer group"> | |
| <div class="category-icon mb-2 w-12 h-12 flex items-center justify-center bg-gray-100 rounded-full group-hover:bg-rose-100 text-rose-500"> | |
| <i class="fas fa-home text-xl"></i> | |
| </div> | |
| <span class="text-sm">Tiny homes</span> | |
| </div> | |
| <div class="category-item flex flex-col items-center min-w-max cursor-pointer group"> | |
| <div class="category-icon mb-2 w-12 h-12 flex items-center justify-center bg-gray-100 rounded-full group-hover:bg-rose-100 text-rose-500"> | |
| <i class="fas fa-tree text-xl"></i> | |
| </div> | |
| <span class="text-sm">Treehouses</span> | |
| </div> | |
| <div class="category-item flex flex-col items-center min-w-max cursor-pointer group"> | |
| <div class="category-icon mb-2 w-12 h-12 flex items-center justify-center bg-gray-100 rounded-full group-hover:bg-rose-100 text-rose-500"> | |
| <i class="fas fa-water text-xl"></i> | |
| </div> | |
| <span class="text-sm">Lakefront</span> | |
| </div> | |
| <div class="category-item flex flex-col items-center min-w-max cursor-pointer group"> | |
| <div class="category-icon mb-2 w-12 h-12 flex items-center justify-center bg-gray-100 rounded-full group-hover:bg-rose-100 text-rose-500"> | |
| <i class="fas fa-campground text-xl"></i> | |
| </div> | |
| <span class="text-sm">Camping</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Property Listings --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <h2 class="text-2xl font-bold mb-8">Live anywhere</h2> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6"> | |
| <!-- Property Card 1 --> | |
| <div class="property-card rounded-xl overflow-hidden transition duration-300 cursor-pointer"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Modern apartment" class="w-full h-full object-cover transition duration-500 hover:scale-105"> | |
| <div class="absolute top-4 right-4 bg-white p-2 rounded-full"> | |
| <i class="far fa-heart text-gray-700 hover:text-rose-500"></i> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-semibold">Modern Loft in Downtown</h3> | |
| <p class="text-gray-500 text-sm">New York, USA</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <i class="fas fa-star text-xs text-rose-500"></i> | |
| <span class="text-sm ml-1">4.92</span> | |
| </div> | |
| </div> | |
| <p class="text-gray-700 mt-2 text-sm">$120 <span class="text-gray-500">night</span></p> | |
| </div> | |
| </div> | |
| <!-- Property Card 2 --> | |
| <div class="property-card rounded-xl overflow-hidden transition duration-300 cursor-pointer"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Beach house" class="w-full h-full object-cover transition duration-500 hover:scale-105"> | |
| <div class="absolute top-4 right-4 bg-white p-2 rounded-full"> | |
| <i class="far fa-heart text-gray-700 hover:text-rose-500"></i> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-semibold">Beachfront Villa</h3> | |
| <p class="text-gray-500 text-sm">Malibu, California</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <i class="fas fa-star text-xs text-rose-500"></i> | |
| <span class="text-sm ml-1">4.85</span> | |
| </div> | |
| </div> | |
| <p class="text-gray-700 mt-2 text-sm">$350 <span class="text-gray-500">night</span></p> | |
| </div> | |
| </div> | |
| <!-- Property Card 3 --> | |
| <div class="property-card rounded-xl overflow-hidden transition duration-300 cursor-pointer"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="https://images.unsplash.com/photo-1522708323590-d24dbb6b0267?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Mountain cabin" class="w-full h-full object-cover transition duration-500 hover:scale-105"> | |
| <div class="absolute top-4 right-4 bg-white p-2 rounded-full"> | |
| <i class="far fa-heart text-gray-700 hover:text-rose-500"></i> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-semibold">Mountain Retreat</h3> | |
| <p class="text-gray-500 text-sm">Aspen, Colorado</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <i class="fas fa-star text-xs text-rose-500"></i> | |
| <span class="text-sm ml-1">4.97</span> | |
| </div> | |
| </div> | |
| <p class="text-gray-700 mt-2 text-sm">$180 <span class="text-gray-500">night</span></p> | |
| </div> | |
| </div> | |
| <!-- Property Card 4 --> | |
| <div class="property-card rounded-xl overflow-hidden transition duration-300 cursor-pointer"> | |
| <div class="relative overflow-hidden h-64"> | |
| <img src="https://images.unsplash.com/photo-1493809842364-78817add7ffb?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="City apartment" class="w-full h-full object-cover transition duration-500 hover:scale-105"> | |
| <div class="absolute top-4 right-4 bg-white p-2 rounded-full"> | |
| <i class="far fa-heart text-gray-700 hover:text-rose-500"></i> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h3 class="font-semibold">Luxury City Apartment</h3> | |
| <p class="text-gray-500 text-sm">Paris, France</p> | |
| </div> | |
| <div class="flex items-center"> | |
| <i class="fas fa-star text-xs text-rose-500"></i> | |
| <span class="text-sm ml-1">4.89</span> | |
| </div> | |
| </div> | |
| <p class="text-gray-700 mt-2 text-sm">$220 <span class="text-gray-500">night</span></p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Experience Section --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> | |
| <h2 class="text-2xl font-bold mb-8">Experiences</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Experience 1 --> | |
| <div class="bg-white rounded-xl overflow-hidden shadow-md hover:shadow-xl transition duration-300"> | |
| <div class="relative h-48 overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1503917988258-f87a78e3c995?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Cooking class" class="w-full h-full object-cover transition duration-500 hover:scale-105"> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-4 h-4 bg-rose-500 rounded-full mr-2"></div> | |
| <span class="text-xs font-medium">ONLINE EXPERIENCE</span> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Virtual Italian Cooking Class</h3> | |
| <p class="text-gray-600 text-sm mb-4">Learn to make authentic pasta from a local chef in Rome</p> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-sm font-medium">From $25/person</span> | |
| <div class="flex items-center"> | |
| <i class="fas fa-star text-xs text-rose-500"></i> | |
| <span class="text-sm ml-1">4.98</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Experience 2 --> | |
| <div class="bg-white rounded-xl overflow-hidden shadow-md hover:shadow-xl transition duration-300"> | |
| <div class="relative h-48 overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1531058020387-3be344556be6?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Hiking" class="w-full h-full object-cover transition duration-500 hover:scale-105"> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-4 h-4 bg-rose-500 rounded-full mr-2"></div> | |
| <span class="text-xs font-medium">EXPERIENCE</span> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Sunrise Hike with Local Guide</h3> | |
| <p class="text-gray-600 text-sm mb-4">Explore hidden trails and enjoy breathtaking views</p> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-sm font-medium">From $40/person</span> | |
| <div class="flex items-center"> | |
| <i class="fas fa-star text-xs text-rose-500"></i> | |
| <span class="text-sm ml-1">4.95</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Experience 3 --> | |
| <div class="bg-white rounded-xl overflow-hidden shadow-md hover:shadow-xl transition duration-300"> | |
| <div class="relative h-48 overflow-hidden"> | |
| <img src="https://images.unsplash.com/photo-1506197603052-3cc9c3a201bd?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Wine tasting" class="w-full h-full object-cover transition duration-500 hover:scale-105"> | |
| </div> | |
| <div class="p-6"> | |
| <div class="flex items-center mb-2"> | |
| <div class="w-4 h-4 bg-rose-500 rounded-full mr-2"></div> | |
| <span class="text-xs font-medium">EXPERIENCE</span> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Wine Tasting in Napa Valley</h3> | |
| <p class="text-gray-600 text-sm mb-4">Sample award-winning wines with stunning vineyard views</p> | |
| <div class="flex items-center justify-between"> | |
| <span class="text-sm font-medium">From $75/person</span> | |
| <div class="flex items-center"> | |
| <i class="fas fa-star text-xs text-rose-500"></i> | |
| <span class="text-sm ml-1">4.99</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Host Section --> | |
| <div class="bg-gray-100 py-16"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="lg:flex items-center"> | |
| <div class="lg:w-1/2 mb-8 lg:mb-0 lg:pr-12"> | |
| <h2 class="text-3xl font-bold mb-6">Become a Host</h2> | |
| <p class="text-gray-600 mb-6">Earn extra income and unlock new opportunities by sharing your space.</p> | |
| <button class="btn-hover bg-white text-gray-900 border border-gray-900 py-3 px-6 rounded-lg font-medium transition duration-300 hover:bg-gray-900 hover:text-white"> | |
| Learn More | |
| </button> | |
| </div> | |
| <div class="lg:w-1/2 relative"> | |
| <img src="https://images.unsplash.com/photo-1582719471383-1d9b5a0923c1?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="Host" class="w-full rounded-lg shadow-lg floating"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Newsletter --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16"> | |
| <div class="bg-gradient-to-r from-rose-500 to-pink-500 rounded-2xl p-8 text-white"> | |
| <div class="md:flex items-center justify-between"> | |
| <div class="md:w-2/3 mb-6 md:mb-0"> | |
| <h3 class="text-2xl font-bold mb-2">Get the latest deals</h3> | |
| <p>Subscribe to our newsletter and receive special offers and travel inspiration.</p> | |
| </div> | |
| <div class="md:w-1/3"> | |
| <div class="flex"> | |
| <input type="email" placeholder="Your email" class="flex-grow px-4 py-3 rounded-l-lg focus:outline-none text-gray-900"> | |
| <button class="btn-hover bg-gray-900 text-white px-6 py-3 rounded-r-lg font-medium transition duration-300 hover:bg-black"> | |
| Subscribe | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- User Profile Section --> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden"> | |
| <div class="md:flex"> | |
| <!-- Profile Picture Section --> | |
| <div class="md:w-1/3 p-8 bg-gray-50 flex flex-col items-center"> | |
| <div class="relative mb-6"> | |
| <img id="profile-pic" src="https://images.unsplash.com/photo-1633332755192-727a05c4013d?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" | |
| alt="Profile picture" class="w-32 h-32 rounded-full object-cover border-4 border-white shadow-lg"> | |
| <label for="profile-upload" class="absolute bottom-0 right-0 bg-rose-500 text-white p-2 rounded-full cursor-pointer hover:bg-rose-600 transition"> | |
| <i class="fas fa-camera"></i> | |
| <input id="profile-upload" type="file" accept="image/*" class="hidden"> | |
| </label> | |
| </div> | |
| <h2 class="text-2xl font-bold mb-1">John Doe</h2> | |
| <p class="text-gray-500 mb-4">Member since 2022</p> | |
| <div class="flex items-center mb-6"> | |
| <i class="fas fa-star text-rose-500 mr-1"></i> | |
| <span class="font-medium">4.8</span> | |
| <span class="text-gray-500 ml-1">(24 reviews)</span> | |
| </div> | |
| <button class="btn-hover bg-rose-500 text-white py-2 px-6 rounded-lg font-medium transition duration-300 hover:bg-rose-600"> | |
| Edit Profile | |
| </button> | |
| </div> | |
| <!-- Profile Details Section --> | |
| <div class="md:w-2/3 p-8"> | |
| <h3 class="text-xl font-bold mb-6">Profile Information</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8"> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">First Name</label> | |
| <input type="text" value="John" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Last Name</label> | |
| <input type="text" value="Doe" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Email</label> | |
| <input type="email" value="john.doe@example.com" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">Phone</label> | |
| <input type="tel" value="+1 (555) 123-4567" class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500"> | |
| </div> | |
| </div> | |
| <div class="mb-8"> | |
| <label class="block text-sm font-medium text-gray-700 mb-1">About</label> | |
| <textarea class="w-full p-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-rose-500 focus:border-rose-500 h-32">Travel enthusiast and adventure seeker. Love exploring new cultures and cuisines around the world.</textarea> | |
| </div> | |
| <h3 class="text-xl font-bold mb-6">Account Settings</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg"> | |
| <div> | |
| <h4 class="font-medium">Email Notifications</h4> | |
| <p class="text-sm text-gray-500">Receive updates about your account</p> | |
| </div> | |
| <label class="relative inline-flex items-center cursor-pointer"> | |
| <input type="checkbox" value="" class="sr-only peer" checked> | |
| <div class="w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-rose-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-rose-500"></div> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between p-4 bg-gray-50 rounded-lg"> | |
| <div> | |
| <h4 class="font-medium">Two-Factor Authentication</h4> | |
| <p class="text-sm text-gray-500">Add an extra layer of security</p> | |
| </div> | |
| <button class="btn-hover bg-white text-gray-900 border border-gray-300 py-2 px-4 rounded-lg font-medium text-sm transition duration-300 hover:bg-gray-100"> | |
| Enable | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-gray-100 border-t border-gray-200"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12"> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-8"> | |
| <div> | |
| <h4 class="text-sm font-semibold text-gray-900 mb-4">Support</h4> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Help Center</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Safety information</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Cancellation options</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-semibold text-gray-900 mb-4">Community</h4> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Disaster relief</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Support refugees</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Combating discrimination</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-semibold text-gray-900 mb-4">Hosting</h4> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Try hosting</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">AirCover for Hosts</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Hosting resources</a></li> | |
| </ul> | |
| </div> | |
| <div> | |
| <h4 class="text-sm font-semibold text-gray-900 mb-4">Airbnb</h4> | |
| <ul class="space-y-3"> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Newsroom</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Careers</a></li> | |
| <li><a href="#" class="text-sm text-gray-600 hover:text-rose-500">Investors</a></li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="border-t border-gray-200 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center"> | |
| <div class="flex items-center space-x-6 mb-4 md:mb-0"> | |
| <span class="text-sm text-gray-600">© 2023 Airbnb, Inc.</span> | |
| <a href="#" class="text-sm text-gray-600 hover:text-rose-500">Privacy</a> | |
| <a href="#" class="text-sm text-gray-600 hover:text-rose-500">Terms</a> | |
| <a href="#" class="text-sm text-gray-600 hover:text-rose-500">Sitemap</a> | |
| </div> | |
| <div class="flex items-center space-x-6"> | |
| <a href="#" class="text-gray-600 hover:text-rose-500"><i class="fab fa-facebook-f"></i></a> | |
| <a href="#" class="text-gray-600 hover:text-rose-500"><i class="fab fa-twitter"></i></a> | |
| <a href="#" class="text-gray-600 hover:text-rose-500"><i class="fab fa-instagram"></i></a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Simple JavaScript for interactive elements | |
| document.addEventListener('DOMContentLoaded', function() { | |
| // Add hover effect to all buttons with btn-hover class | |
| const buttons = document.querySelectorAll('.btn-hover'); | |
| buttons.forEach(button => { | |
| button.addEventListener('mouseenter', function() { | |
| this.style.transform = 'translateY(-2px)'; | |
| }); | |
| button.addEventListener('mouseleave', function() { | |
| this.style.transform = 'translateY(0)'; | |
| }); | |
| }); | |
| // Property cards click functionality | |
| const propertyCards = document.querySelectorAll('.property-card'); | |
| propertyCards.forEach(card => { | |
| card.addEventListener('click', function() { | |
| const title = this.querySelector('h3').textContent; | |
| const location = this.querySelector('p.text-gray-500').textContent; | |
| const price = this.querySelector('p.text-gray-700').textContent; | |
| alert(`Booking ${title} in ${location}\nPrice: ${price}`); | |
| }); | |
| }); | |
| // Mobile menu toggle | |
| const mobileMenuButton = document.querySelector('.md\\:hidden button'); | |
| const mobileMenu = document.createElement('div'); | |
| mobileMenu.className = 'fixed inset-0 bg-white z-50 p-8 hidden'; | |
| mobileMenu.innerHTML = ` | |
| <div class="flex justify-between items-center mb-8"> | |
| <div class="text-2xl font-bold text-rose-500 flex items-center"> | |
| <i class="fas fa-home mr-2"></i> | |
| <span>airbnb</span> | |
| </div> | |
| <button class="close-mobile-menu text-gray-500"> | |
| <i class="fas fa-times text-xl"></i> | |
| </button> | |
| </div> | |
| <div class="space-y-6"> | |
| <a href="#" class="block text-lg font-medium">Become a Host</a> | |
| <a href="#" class="block text-lg font-medium">Trips</a> | |
| <a href="#" class="block text-lg font-medium">Messages</a> | |
| <button class="block text-lg font-medium text-left" onclick="document.getElementById('login-modal').classList.remove('hidden'); mobileMenu.classList.add('hidden')"> | |
| Log In | |
| </button> | |
| </div> | |
| `; | |
| document.body.appendChild(mobileMenu); | |
| mobileMenuButton.addEventListener('click', function() { | |
| mobileMenu.classList.remove('hidden'); | |
| }); | |
| document.querySelector('.close-mobile-menu').addEventListener('click', function() { | |
| mobileMenu.classList.add('hidden'); | |
| }); | |
| // Search functionality | |
| document.querySelector('.search-box button').addEventListener('click', function() { | |
| const location = document.querySelector('.search-box input[placeholder="Where are you going?"]').value; | |
| const dates = document.querySelector('.search-box input[placeholder="Add dates"]').value; | |
| const guests = document.querySelector('.search-box input[placeholder="Add guests"]').value; | |
| alert(`Searching for ${guests} guests in ${location} from ${dates || 'any dates'}`); | |
| }); | |
| // Become a host button | |
| document.querySelector('.bg-gray-100 button').addEventListener('click', function() { | |
| alert('Redirecting to host registration page...'); | |
| }); | |
| // Newsletter subscription | |
| document.querySelector('.bg-gradient-to-r button').addEventListener('click', function() { | |
| const email = document.querySelector('.bg-gradient-to-r input[type="email"]').value; | |
| if (email) { | |
| alert(`Thank you for subscribing with ${email}!`); | |
| document.querySelector('.bg-gradient-to-r input[type="email"]').value = ''; | |
| } else { | |
| alert('Please enter your email address'); | |
| } | |
| }); | |
| // Edit profile button | |
| document.querySelector('.bg-gray-50 button').addEventListener('click', function() { | |
| alert('Opening profile editor...'); | |
| }); | |
| // Social media links | |
| document.querySelectorAll('footer a i').forEach(icon => { | |
| icon.parentElement.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const platform = icon.classList.contains('fa-facebook-f') ? 'Facebook' : | |
| icon.classList.contains('fa-twitter') ? 'Twitter' : 'Instagram'; | |
| alert(`Opening ${platform} in a new tab...`); | |
| }); | |
| }); | |
| }); | |
| // Login functionality | |
| document.querySelector('#login-modal form').addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const email = this.querySelector('input[type="email"]').value; | |
| const password = this.querySelector('input[type="password"]').value; | |
| if (!email || !password) { | |
| alert('Please enter both email and password'); | |
| return; | |
| } | |
| document.getElementById('login-modal').classList.add('hidden'); | |
| alert(`Welcome back! You're now logged in as ${email}`); | |
| }); | |
| // Social login buttons | |
| document.querySelectorAll('#login-modal button[type="button"]').forEach(button => { | |
| button.addEventListener('click', function() { | |
| const provider = this.querySelector('span').textContent; | |
| alert(`Redirecting to ${provider} login...`); | |
| }); | |
| }); | |
| // Forgot password link | |
| document.querySelector('#login-modal a[href="#"]').addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| alert('Password reset link will be sent to your email'); | |
| }); | |
| // Sign up link | |
| document.querySelector('#login-modal a.font-medium').addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| alert('Redirecting to sign up page...'); | |
| }); | |
| // Profile picture upload functionality | |
| document.getElementById('profile-upload').addEventListener('change', function(e) { | |
| const file = e.target.files[0]; | |
| if (file) { | |
| if (!file.type.match('image.*')) { | |
| alert('Please select an image file'); | |
| return; | |
| } | |
| const reader = new FileReader(); | |
| reader.onload = function(event) { | |
| document.getElementById('profile-pic').src = event.target.result; | |
| alert('Profile picture updated successfully!'); | |
| } | |
| reader.readAsDataURL(file); | |
| } | |
| }); | |
| // Toggle switches | |
| document.querySelectorAll('input[type="checkbox"]').forEach(checkbox => { | |
| checkbox.addEventListener('change', function() { | |
| const setting = this.closest('div').querySelector('h4').textContent; | |
| alert(`${setting} ${this.checked ? 'enabled' : 'disabled'}`); | |
| }); | |
| }); | |
| // Two-factor auth button | |
| document.querySelector('.bg-gray-50 button.text-sm').addEventListener('click', function() { | |
| alert('Setting up two-factor authentication...'); | |
| }); | |
| </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=john1071/king" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |