Spaces:
Running
Running
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>FakeDates AI - Your Ultimate Dating Experience Generator</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| 'romantic-pink': '#ff6b8b', | |
| 'passionate-red': '#ff4757', | |
| 'deep-love': '#e84393', | |
| 'royal-purple': '#6c5ce7', | |
| 'soft-pink': '#fd79a8', | |
| 'dark-romance': '#d63031', | |
| 'dropdown-bg': '#fff5f7', | |
| 'dropdown-hover': '#ffecef', | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #fff0f3 0%, #ffccd5 100%); | |
| } | |
| .date-card { | |
| transition: all 0.3s ease; | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .date-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); | |
| } | |
| .tale-card { | |
| border-left: 4px solid #e84393; | |
| } | |
| /* Improved dropdown styling */ | |
| .autocomplete-items { | |
| position: absolute; | |
| border: 2px solid #fd79a8; | |
| border-radius: 0 0 8px 8px; | |
| z-index: 99; | |
| top: 100%; | |
| left: 0; | |
| right: 0; | |
| max-height: 300px; | |
| overflow-y: auto; | |
| background-color: theme('colors.dropdown-bg'); | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .autocomplete-items div { | |
| padding: 12px 16px; | |
| cursor: pointer; | |
| background-color: theme('colors.dropdown-bg'); | |
| border-bottom: 1px solid #ffccd5; | |
| font-size: 16px; | |
| color: #4a4a4a; | |
| transition: all 0.2s ease; | |
| } | |
| .autocomplete-items div:hover { | |
| background-color: theme('colors.dropdown-hover'); | |
| } | |
| .autocomplete-items div strong { | |
| color: #e84393; | |
| font-weight: 600; | |
| } | |
| .autocomplete-items::-webkit-scrollbar { | |
| width: 8px; | |
| } | |
| .autocomplete-items::-webkit-scrollbar-track { | |
| background: #ffecef; | |
| } | |
| .autocomplete-items::-webkit-scrollbar-thumb { | |
| background-color: #fd79a8; | |
| border-radius: 4px; | |
| } | |
| .active { | |
| background-color: #e84393 ; | |
| color: #ffffff; | |
| } | |
| .tab-content { | |
| display: none; | |
| } | |
| .tab-content.active { | |
| display: block; | |
| animation: fadeIn 0.5s; | |
| } | |
| @keyframes fadeIn { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .loading-spinner { | |
| border: 4px solid rgba(255, 107, 139, 0.1); | |
| border-radius: 50%; | |
| border-top: 4px solid #e84393; | |
| width: 40px; | |
| height: 40px; | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| .heartbeat { | |
| animation: heartbeat 1.5s ease-in-out infinite both; | |
| } | |
| @keyframes heartbeat { | |
| 0% { transform: scale(1); } | |
| 25% { transform: scale(1.1); } | |
| 50% { transform: scale(1); } | |
| 75% { transform: scale(1.1); } | |
| 100% { transform: scale(1); } | |
| } | |
| /* Improved input text visibility */ | |
| input, textarea, select { | |
| color: #4a4a4a ; | |
| } | |
| input::placeholder, textarea::placeholder { | |
| color: #a1a1a1 ; | |
| } | |
| /* Loading bar animation */ | |
| .progress-container { | |
| width: 100%; | |
| height: 8px; | |
| background: #ffccd5; | |
| border-radius: 4px; | |
| margin: 20px 0; | |
| overflow: hidden; | |
| } | |
| .progress-bar { | |
| height: 100%; | |
| background: linear-gradient(to right, #ff6b8b, #e84393); | |
| border-radius: 4px; | |
| transition: width 0.3s ease; | |
| } | |
| /* Modal styles */ | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| z-index: 100; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-color: rgba(0,0,0,0.5); | |
| } | |
| .modal-content { | |
| background-color: white; | |
| margin: 15% auto; | |
| padding: 25px; | |
| border-radius: 10px; | |
| width: 90%; | |
| max-width: 500px; | |
| box-shadow: 0 5px 15px rgba(0,0,0,0.3); | |
| } | |
| .close-btn { | |
| color: #aaa; | |
| float: right; | |
| font-size: 28px; | |
| font-weight: bold; | |
| cursor: pointer; | |
| } | |
| .close-btn:hover { | |
| color: #e84393; | |
| } | |
| /* User profile indicator */ | |
| .user-profile { | |
| display: none; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .user-avatar { | |
| width: 32px; | |
| height: 32px; | |
| border-radius: 50%; | |
| background-color: #e84393; | |
| color: white; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-weight: bold; | |
| } | |
| </style> | |
| </head> | |
| <body class="gradient-bg min-h-screen"> | |
| <header class="bg-gradient-to-r from-romantic-pink to-deep-love text-white py-6 shadow-lg"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center space-x-2"> | |
| <i class="fas fa-heart text-2xl heartbeat"></i> | |
| <h1 class="text-2xl font-bold">FakeDates AI</h1> | |
| </div> | |
| <nav> | |
| <ul class="flex space-x-6 items-center"> | |
| <li><a href="#generator" class="tab-link font-medium hover:text-soft-pink" data-tab="generator">Date Generator</a></li> | |
| <li><a href="#business" class="tab-link font-medium hover:text-soft-pink" data-tab="business">Date Ideas</a></li> | |
| <li><a href="#tales" class="tab-link font-medium hover:text-soft-pink" data-tab="tales">Date Tales</a></li> | |
| <li class="user-profile hidden"> | |
| <div class="user-avatar" id="user-avatar">U</div> | |
| <span id="username-display">User</span> | |
| </li> | |
| </ul> | |
| </nav> | |
| </div> | |
| </div> | |
| </header> | |
| <main class="container mx-auto px-4 py-8"> | |
| <!-- Date Generator Tab --> | |
| <div id="generator" class="tab-content active"> | |
| <div class="max-w-3xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8"> | |
| <h2 class="text-2xl font-bold text-deep-love mb-6">Create Your Perfect Date</h2> | |
| <div class="space-y-6"> | |
| <div class="relative"> | |
| <label for="city" class="block text-sm font-medium text-dark-romance mb-1">City</label> | |
| <input type="text" id="city" placeholder="Start typing your city..." | |
| class="w-full px-4 py-3 border-2 border-soft-pink rounded-md focus:ring-2 focus:ring-deep-love focus:border-deep-love text-gray-800 text-lg"> | |
| <div id="autocomplete-list" class="autocomplete-items"></div> | |
| </div> | |
| <div> | |
| <label for="date" class="block text-sm font-medium text-dark-romance mb-1">Date</label> | |
| <input type="date" id="date" | |
| class="w-full px-4 py-2 border border-soft-pink rounded-md focus:ring-2 focus:ring-deep-love focus:border-deep-love text-gray-800"> | |
| </div> | |
| <div> | |
| <label for="budget" class="block text-sm font-medium text-dark-romance mb-1">Budget (TZS)</label> | |
| <select id="budget" class="w-full px-4 py-2 border border-soft-pink rounded-md focus:ring-2 focus:ring-deep-love focus:border-deep-love text-gray-800"> | |
| <option value="50000">50,000 - 100,000</option> | |
| <option value="100000">100,000 - 200,000</option> | |
| <option value="200000">200,000 - 500,000</option> | |
| <option value="500000">500,000+</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="vibe" class="block text-sm font-medium text-dark-romance mb-1">Date Vibe</label> | |
| <select id="vibe" class="w-full px-4 py-2 border border-soft-pink rounded-md focus:ring-2 focus:ring-deep-love focus:border-deep-love text-gray-800"> | |
| <option value="romantic">Romantic</option> | |
| <option value="casual">Casual</option> | |
| <option value="adventurous">Adventurous</option> | |
| <option value="luxury">Luxury</option> | |
| <option value="quirky">Quirky/Unique</option> | |
| </select> | |
| </div> | |
| <button id="generate-btn" class="w-full bg-gradient-to-r from-romantic-pink to-passionate-red text-white py-3 px-6 rounded-md font-medium hover:from-passionate-red hover:to-deep-love transition duration-300 flex items-center justify-center"> | |
| <i class="fas fa-magic mr-2"></i> Generate Date Ideas | |
| </button> | |
| </div> | |
| </div> | |
| <div id="loading-section" class="max-w-3xl mx-auto bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8 hidden"> | |
| <div class="text-center"> | |
| <div class="loading-spinner mx-auto mb-4"></div> | |
| <h3 class="text-xl font-bold text-deep-love mb-2">Crafting Your Perfect Date Ideas</h3> | |
| <p class="text-gray-600 mb-4">Our AI is analyzing thousands of romantic possibilities...</p> | |
| <div class="progress-container"> | |
| <div id="progress-bar" class="progress-bar" style="width: 0%"></div> | |
| </div> | |
| <p id="progress-text" class="text-sm text-dark-romance">0% complete</p> | |
| </div> | |
| </div> | |
| <div id="signup-modal" class="modal"> | |
| <div class="modal-content"> | |
| <span class="close-btn">×</span> | |
| <h3 class="text-xl font-bold text-deep-love mb-4">Sign Up to View Your Results</h3> | |
| <p class="text-gray-600 mb-6">Create a free account to save and access your personalized date ideas anytime.</p> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">Email or Phone</label> | |
| <input type="text" id="signup-email" placeholder="Enter your email or phone number" | |
| class="w-full px-4 py-2 border border-soft-pink rounded-md focus:ring-2 focus:ring-deep-love focus:border-deep-love text-gray-800"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">Password</label> | |
| <input type="password" id="signup-password" placeholder="Create a password" | |
| class="w-full px-4 py-2 border border-soft-pink rounded-md focus:ring-2 focus:ring-deep-love focus:border-deep-love text-gray-800"> | |
| </div> | |
| <button id="signup-btn" class="w-full bg-gradient-to-r from-romantic-pink to-passionate-red text-white py-3 px-6 rounded-md font-medium hover:from-passionate-red hover:to-deep-love transition duration-300"> | |
| Sign Up & View Results | |
| </button> | |
| <p class="text-center text-sm text-gray-500 mt-4"> | |
| Already have an account? <a href="#" class="text-deep-love hover:underline">Log in</a> | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| <div id="results" class="space-y-6 hidden"> | |
| <h3 class="text-xl font-bold text-deep-love mb-4">Your Personalized Date Ideas</h3> | |
| <div class="grid grid-cols-1 md:grid-cols-3 gap-6"> | |
| <!-- Date Idea Cards will be inserted here by JavaScript --> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Date Ideas Tab --> | |
| <div id="business" class="tab-content"> | |
| <div class="max-w-6xl mx-auto"> | |
| <h2 class="text-2xl font-bold text-deep-love mb-6">Featured Date Ideas</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Date Idea Cards will be inserted here by JavaScript --> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Date Tales Tab --> | |
| <div id="tales" class="tab-content"> | |
| <div class="max-w-2xl mx-auto"> | |
| <div class="bg-white rounded-xl shadow-md overflow-hidden p-6 mb-8"> | |
| <h2 class="text-2xl font-bold text-deep-love mb-4">Share Your Date Tale</h2> | |
| <div class="space-y-4"> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">Title</label> | |
| <input type="text" id="tale-title" placeholder="Our magical evening at..." class="w-full px-4 py-2 border border-soft-pink rounded-md text-gray-800"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">Before the Date</label> | |
| <textarea id="tale-before" placeholder="How you prepared, what you were feeling..." class="w-full px-4 py-2 border border-soft-pink rounded-md h-24 text-gray-800"></textarea> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">During the Date</label> | |
| <textarea id="tale-during" placeholder="What happened, the highlights..." class="w-full px-4 py-2 border border-soft-pink rounded-md h-24 text-gray-800"></textarea> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">After the Date</label> | |
| <textarea id="tale-after" placeholder="How it ended, your thoughts..." class="w-full px-4 py-2 border border-soft-pink rounded-md h-24 text-gray-800"></textarea> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">Dress Code (optional)</label> | |
| <input type="text" id="tale-dresscode" placeholder="What you wore..." class="w-full px-4 py-2 border border-soft-pink rounded-md text-gray-800"> | |
| </div> | |
| <div> | |
| <label class="block text-sm font-medium text-dark-romance mb-1">Image Prompt (optional)</label> | |
| <textarea id="tale-image-prompt" placeholder="Describe an image to generate (dress code, food, location)" class="w-full px-4 py-2 border border-soft-pink rounded-md h-20 text-gray-800"></textarea> | |
| <p class="text-xs text-romantic-pink mt-1">Example: "A romantic candlelit dinner by the beach with seafood platter and champagne"</p> | |
| </div> | |
| <button id="share-tale-btn" class="w-full bg-gradient-to-r from-romantic-pink to-passionate-red text-white py-3 px-6 rounded-md font-medium hover:from-passionate-red hover:to-deep-love transition duration-300"> | |
| <i class="fas fa-share-alt mr-2"></i> Share Your Tale | |
| </button> | |
| </div> | |
| </div> | |
| <div id="tales-feed"> | |
| <h3 class="text-xl font-bold text-deep-love mb-4">Recent Date Tales</h3> | |
| <div class="space-y-6"> | |
| <!-- Date Tales will be inserted here by JavaScript --> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| <footer class="bg-gradient-to-r from-dark-romance to-royal-purple text-white py-8"> | |
| <div class="container mx-auto px-4"> | |
| <div class="flex flex-col md:flex-row justify-between items-center"> | |
| <div class="mb-4 md:mb-0"> | |
| <h2 class="text-xl font-bold flex items-center"> | |
| <i class="fas fa-heart mr-2 heartbeat"></i> FakeDates AI | |
| </h2> | |
| <p class="text-soft-pink mt-2">Creating unforgettable dating experiences</p> | |
| </div> | |
| <div class="flex space-x-6"> | |
| <a href="#" class="text-soft-pink hover:text-white"><i class="fab fa-twitter text-xl"></i></a> | |
| <a href="#" class="text-soft-pink hover:text-white"><i class="fab fa-instagram text-xl"></i></a> | |
| <a href="https://www.facebook.com" class="text-soft-pink hover:text-white"><i class="fab fa-facebook text-xl"></i></a> | |
| </div> | |
| </div> | |
| <div class="border-t border-soft-pink mt-8 pt-6 text-center text-soft-pink"> | |
| <p>© 2023 FakeDates AI. All rights reserved.</p> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| // Sample data for autocomplete | |
| const cities = [ | |
| "Dar es Salaam", "Dodoma", "Arusha", "Mwanza", "Mbeya", | |
| "Morogoro", "Tanga", "Zanzibar City", "Kigoma", "Moshi", | |
| "Nairobi", "Kampala", "Kigali", "Bujumbura", "Lusaka", | |
| "Harare", "Johannesburg", "Cape Town", "Addis Ababa", "Nairobi" | |
| ]; | |
| // Sample date ideas | |
| const dateIdeas = [ | |
| { | |
| name: "The Waterfront", | |
| address: "Msasani Peninsula, Dar es Salaam", | |
| rating: 4.5, | |
| reviews: 128, | |
| category: "Romantic Dinner", | |
| description: "Upscale seafood restaurant with ocean views and romantic ambiance perfect for special occasions.", | |
| image: "https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80", | |
| priceRange: "150,000 - 300,000 TZS", | |
| dressCode: "Smart Casual to Formal" | |
| }, | |
| { | |
| name: "Serengeti Breweries Lounge", | |
| address: "Mlimani City, Dar es Salaam", | |
| rating: 4.2, | |
| reviews: 87, | |
| category: "Casual Drinks", | |
| description: "Trendy spot with craft beers, cocktails, and live music on weekends for a fun night out.", | |
| image: "https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1374&q=80", | |
| priceRange: "50,000 - 150,000 TZS", | |
| dressCode: "Casual Chic" | |
| }, | |
| { | |
| name: "Arusha Coffee Lodge", | |
| address: "Dodoma Road, Arusha", | |
| rating: 4.7, | |
| reviews: 215, | |
| category: "Daytime Date", | |
| description: "Charming lodge with excellent coffee, breakfast, and cozy atmosphere for daytime connections.", | |
| image: "https://images.unsplash.com/photo-1445116572660-236099ec97a0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1471&q=80", | |
| priceRange: "30,000 - 80,000 TZS", | |
| dressCode: "Smart Casual" | |
| }, | |
| { | |
| name: "Zanzibar Beach Resort", | |
| address: "Nungwi, Zanzibar", | |
| rating: 4.8, | |
| reviews: 342, | |
| category: "Luxury Experience", | |
| description: "Luxury beachfront resort with private dining options and sunset views for unforgettable moments.", | |
| image: "https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80", | |
| priceRange: "250,000+ TZS", | |
| dressCode: "Resort Elegance" | |
| }, | |
| { | |
| name: "Moshi View Rooftop", | |
| address: "Downtown Moshi", | |
| rating: 4.3, | |
| reviews: 76, | |
| category: "Sunset Cocktails", | |
| description: "Panoramic views of Kilimanjaro with creative cocktails and tapas for a magical evening.", | |
| image: "https://images.unsplash.com/photo-1564501049412-61c2a3083791?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1632&q=80", | |
| priceRange: "80,000 - 180,000 TZS", | |
| dressCode: "Evening Chic" | |
| }, | |
| { | |
| name: "Lake Tanganyika Cruise", | |
| address: "Kigoma Waterfront", | |
| rating: 4.6, | |
| reviews: 53, | |
| category: "Unique Experience", | |
| description: "Romantic sunset cruises on Africa's deepest lake with dinner options for adventurous couples.", | |
| image: "https://images.unsplash.com/photo-1503917988258-f87a78e3c995?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1587&q=80", | |
| priceRange: "120,000 - 250,000 TZS", | |
| dressCode: "Nautical Chic" | |
| } | |
| ]; | |
| // Sample date tales | |
| const dateTales = [ | |
| { | |
| title: "Sunset Magic at The Waterfront", | |
| before: "I was so nervous! Spent hours picking the perfect outfit - a red dress that made me feel confident. My friends helped me with my hair and makeup, and I kept checking the time every 5 minutes.", | |
| during: "He surprised me with a table right by the water. The sunset was incredible - all oranges and pinks reflecting on the ocean. We shared oysters and laughed about our terrible first date stories. The waiter even brought us a complimentary dessert with 'Happy Anniversary' written in chocolate!", | |
| after: "We walked along the beach after dinner, barefoot in the sand. He held my hand the whole time and we talked about future travel plans. When he dropped me off, he kissed me goodnight and I knew this was something special.", | |
| dresscode: "Little red dress with strappy heels, simple jewelry", | |
| likes: 24, | |
| comments: 5, | |
| date: "2 days ago" | |
| }, | |
| { | |
| title: "Coffee & Unexpected Rain", | |
| before: "It was supposed to be a quick coffee date, nothing serious. I almost canceled because I was tired from work, but my roommate convinced me to go. Threw on jeans and a nice top, minimal makeup.", | |
| during: "The coffee place was cute but halfway through our drinks, it started pouring rain. Instead of cutting it short, we moved to a covered patio and talked for hours. He told me about his dream to open a bookstore and I shared my travel mishaps.", | |
| after: "He walked me to my car with his jacket over my head. We've been texting non-stop since then and have plans for dinner next week. Sometimes the simplest dates turn out the best!", | |
| dresscode: "Dark jeans, white blouse, leather jacket", | |
| likes: 18, | |
| comments: 3, | |
| date: "1 week ago" | |
| } | |
| ]; | |
| // Tab switching functionality | |
| document.querySelectorAll('.tab-link').forEach(link => { | |
| link.addEventListener('click', function(e) { | |
| e.preventDefault(); | |
| const tabId = this.getAttribute('data-tab'); | |
| // Hide all tab contents | |
| document.querySelectorAll('.tab-content').forEach(content => { | |
| content.classList.remove('active'); | |
| }); | |
| // Show selected tab content | |
| document.getElementById(tabId).classList.add('active'); | |
| // Update active tab link | |
| document.querySelectorAll('.tab-link').forEach(link => { | |
| link.classList.remove('text-soft-pink'); | |
| }); | |
| this.classList.add('text-soft-pink'); | |
| // Load content if needed | |
| if (tabId === 'business') { | |
| loadDateIdeas(); | |
| } else if (tabId === 'tales') { | |
| loadDateTales(); | |
| } | |
| }); | |
| }); | |
| // Autocomplete functionality for city input | |
| document.getElementById('city').addEventListener('input', function() { | |
| const input = this.value; | |
| const autocompleteList = document.getElementById('autocomplete-list'); | |
| autocompleteList.innerHTML = ''; | |
| if (!input) return; | |
| const filteredCities = cities.filter(city => | |
| city.toLowerCase().includes(input.toLowerCase()) | |
| ); | |
| if (filteredCities.length === 0) { | |
| const noResults = document.createElement('div'); | |
| noResults.innerHTML = 'No cities found'; | |
| noResults.style.padding = '12px 16px'; | |
| noResults.style.color = '#666'; | |
| autocompleteList.appendChild(noResults); | |
| return; | |
| } | |
| filteredCities.forEach(city => { | |
| const item = document.createElement('div'); | |
| const matchedPart = city.substr(0, input.length); | |
| const remainingPart = city.substr(input.length); | |
| item.innerHTML = `<strong>${matchedPart}</strong>${remainingPart}`; | |
| item.addEventListener('click', function() { | |
| document.getElementById('city').value = city; | |
| autocompleteList.innerHTML = ''; | |
| }); | |
| autocompleteList.appendChild(item); | |
| }); | |
| }); | |
| // Close dropdown when clicking outside | |
| document.addEventListener('click', function(e) { | |
| if (e.target.id !== 'city') { | |
| document.getElementById('autocomplete-list').innerHTML = ''; | |
| } | |
| }); | |
| // Generate date ideas | |
| document.getElementById('generate-btn').addEventListener('click', function() { | |
| const city = document.getElementById('city').value; | |
| const date = document.getElementById('date').value; | |
| const budget = document.getElementById('budget').value; | |
| const vibe = document.getElementById('vibe').value; | |
| if (!city) { | |
| alert('Please enter a city'); | |
| return; | |
| } | |
| // Show loading section | |
| document.getElementById('loading-section').classList.remove('hidden'); | |
| // Simulate loading with percentage | |
| let progress = 0; | |
| const progressBar = document.getElementById('progress-bar'); | |
| const progressText = document.getElementById('progress-text'); | |
| const loadingInterval = setInterval(() => { | |
| progress += Math.floor(Math.random() * 10) + 5; | |
| if (progress > 100) progress = 100; | |
| progressBar.style.width = `${progress}%`; | |
| progressText.textContent = `${progress}% complete`; | |
| if (progress === 100) { | |
| clearInterval(loadingInterval); | |
| // Hide loading section after a brief delay | |
| setTimeout(() => { | |
| document.getElementById('loading-section').classList.add('hidden'); | |
| // Show signup modal instead of results directly | |
| document.getElementById('signup-modal').style.display = 'block'; | |
| }, 500); | |
| } | |
| }, 300); | |
| }); | |
| // Close modal when clicking X | |
| document.querySelector('.close-btn').addEventListener('click', function() { | |
| document.getElementById('signup-modal').style.display = 'none'; | |
| }); | |
| // Close modal when clicking outside | |
| window.addEventListener('click', function(event) { | |
| if (event.target === document.getElementById('signup-modal')) { | |
| document.getElementById('signup-modal').style.display = 'none'; | |
| } | |
| }); | |
| // Sign up button functionality | |
| document.getElementById('signup-btn').addEventListener('click', function() { | |
| const email = document.getElementById('signup-email').value; | |
| const password = document.getElementById('signup-password').value; | |
| if (!email || !password) { | |
| alert('Please enter both email/phone and password'); | |
| return; | |
| } | |
| // Simulate successful signup | |
| const userInitial = email.charAt(0).toUpperCase(); | |
| document.getElementById('user-avatar').textContent = userInitial; | |
| document.getElementById('username-display').textContent = email.split('@')[0]; | |
| document.querySelector('.user-profile').classList.remove('hidden'); | |
| // Close modal | |
| document.getElementById('signup-modal').style.display = 'none'; | |
| // Redirect to date ideas tab | |
| document.querySelectorAll('.tab-content').forEach(content => { | |
| content.classList.remove('active'); | |
| }); | |
| document.getElementById('business').classList.add('active'); | |
| // Update active tab link | |
| document.querySelectorAll('.tab-link').forEach(link => { | |
| link.classList.remove('text-soft-pink'); | |
| }); | |
| document.querySelector('[data-tab="business"]').classList.add('text-soft-pink'); | |
| // Load date ideas | |
| loadDateIdeas(); | |
| // Show welcome message | |
| setTimeout(() => { | |
| alert(`Welcome to FakeDates AI, ${email.split('@')[0]}! You're now logged in and can explore all our date ideas.`); | |
| }, 500); | |
| }); | |
| function generateDateIdeas(city, date, budget, vibe) { | |
| // Sample date ideas based on inputs | |
| const ideas = [ | |
| { | |
| title: "Romantic Beach Dinner", | |
| description: `Enjoy a private candlelit dinner on the beach at ${city}'s finest resort. Includes 3-course meal with seafood options, champagne, and personalized service.`, | |
| budget: "150,000 TZS", | |
| dresscode: "Smart casual - sundresses or linen shirts recommended", | |
| imagePrompt: `A romantic beach dinner setup at sunset in ${city} with candles, white tablecloth, seafood platter and champagne, ocean view`, | |
| image: "https://images.unsplash.com/photo-1511795409834-ef04bbd61622?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1469&q=80" | |
| }, | |
| { | |
| title: "Cultural Food Tour", | |
| description: `Explore ${city}'s hidden culinary gems with a guided food tour. Sample 6 different local dishes while learning about the city's history and culture.`, | |
| budget: "75,000 TZS per person", | |
| dresscode: "Comfortable walking shoes and casual attire", | |
| imagePrompt: `A vibrant food market in ${city} with colorful spices, fresh fruits, and local dishes being prepared`, | |
| image: "https://images.unsplash.com/photo-1544025168-d27bba7638e5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" | |
| }, | |
| { | |
| title: "Sunset Rooftop Cocktails", | |
| description: `Experience ${city}'s skyline from a trendy rooftop bar. Enjoy signature cocktails and small plates while watching the sunset over the city.`, | |
| budget: "100,000 TZS", | |
| dresscode: "Smart evening wear - dresses or button-down shirts recommended", | |
| imagePrompt: `A stylish rooftop bar in ${city} at sunset with panoramic city views, cocktails with creative garnishes, and modern decor`, | |
| image: "https://images.unsplash.com/photo-1537047902294-62a40c20a6ae?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1635&q=80" | |
| } | |
| ]; | |
| // Display results | |
| const resultsContainer = document.querySelector('#results .grid'); | |
| resultsContainer.innerHTML = ''; | |
| ideas.forEach(idea => { | |
| const card = document.createElement('div'); | |
| card.className = 'date-card bg-white rounded-lg overflow-hidden shadow-md'; | |
| card.innerHTML = ` | |
| <img src="${idea.image}" alt="${idea.title}" class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <h4 class="text-lg font-bold text-deep-love mb-2">${idea.title}</h4> | |
| <p class="text-gray-600 mb-4">${idea.description}</p> | |
| <div class="flex justify-between items-center mb-3"> | |
| <span class="text-sm font-medium text-dark-romance"><i class="fas fa-coins mr-1"></i> ${idea.budget}</span> | |
| <span class="text-sm font-medium text-dark-romance"><i class="fas fa-tshirt mr-1"></i> ${idea.dresscode}</span> | |
| </div> | |
| <div class="bg-pink-50 p-3 rounded-md mb-4"> | |
| <p class="text-xs text-deep-love font-medium mb-1">AI Image Prompt:</p> | |
| <p class="text-xs text-romantic-pink">"${idea.imagePrompt}"</p> | |
| </div> | |
| <button class="w-full bg-soft-pink text-white py-2 px-4 rounded-md font-medium hover:bg-romantic-pink transition duration-300"> | |
| <i class="fas fa-bookmark mr-2"></i> Save Idea | |
| </button> | |
| </div> | |
| `; | |
| resultsContainer.appendChild(card); | |
| }); | |
| document.getElementById('results').classList.remove('hidden'); | |
| } | |
| function loadDateIdeas() { | |
| const container = document.querySelector('#business .grid'); | |
| container.innerHTML = ''; | |
| dateIdeas.forEach(idea => { | |
| const card = document.createElement('div'); | |
| card.className = 'date-card bg-white rounded-lg overflow-hidden shadow-md'; | |
| card.innerHTML = ` | |
| <img src="${idea.image}" alt="${idea.name}" class="w-full h-48 object-cover"> | |
| <div class="p-6"> | |
| <div class="flex justify-between items-start mb-2"> | |
| <h4 class="text-lg font-bold text-deep-love">${idea.name}</h4> | |
| <div class="flex items-center bg-soft-pink text-white px-2 py-1 rounded"> | |
| <i class="fas fa-star mr-1"></i> | |
| <span>${idea.rating}</span> | |
| </div> | |
| </div> | |
| <p class="text-sm text-dark-romance mb-2"><i class="fas fa-map-marker-alt mr-1"></i> ${idea.address}</p> | |
| <p class="text-sm text-dark-romance mb-3"><i class="fas fa-tag mr-1"></i> ${idea.category} • ${idea.reviews} reviews</p> | |
| <p class="text-gray-600 mb-4">${idea.description}</p> | |
| <div class="flex justify-between items-center mb-4"> | |
| <span class="text-sm font-medium text-dark-romance"><i class="fas fa-money-bill-wave mr-1"></i> ${idea.priceRange}</span> | |
| <span class="text-sm font-medium text-dark-romance"><i class="fas fa-tshirt mr-1"></i> ${idea.dressCode}</span> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button class="flex-1 bg-gradient-to-r from-romantic-pink to-passionate-red text-white py-2 px-4 rounded-md font-medium hover:from-passionate-red hover:to-deep-love transition duration-300 text-sm"> | |
| <i class="fas fa-calendar-plus mr-1"></i> Plan Date | |
| </button> | |
| <button class="flex-1 bg-gray-200 text-dark-romance py-2 px-4 rounded-md font-medium hover:bg-gray-300 transition duration-300 text-sm"> | |
| <i class="fas fa-directions mr-1"></i> Directions | |
| </button> | |
| </div> | |
| </div> | |
| `; | |
| container.appendChild(card); | |
| }); | |
| } | |
| function loadDateTales() { | |
| const container = document.querySelector('#tales-feed .space-y-6'); | |
| container.innerHTML = ''; | |
| dateTales.forEach(tale => { | |
| const card = document.createElement('div'); | |
| card.className = 'tale-card bg-white rounded-lg overflow-hidden shadow-md p-6'; | |
| card.innerHTML = ` | |
| <div class="flex justify-between items-start mb-3"> | |
| <h4 class="text-lg font-bold text-deep-love">${tale.title}</h4> | |
| <span class="text-sm text-dark-romance">${tale.date}</span> | |
| </div> | |
| <div class="mb-4"> | |
| <h5 class="text-sm font-medium text-dark-romance mb-1">Before:</h5> | |
| <p class="text-gray-600">${tale.before}</p> | |
| </div> | |
| <div class="mb-4"> | |
| <h5 class="text-sm font-medium text-dark-romance mb-1">During:</h5> | |
| <p class="text-gray-600">${tale.during}</p> | |
| </div> | |
| <div class="mb-4"> | |
| <h5 class="text-sm font-medium text-dark-romance mb-1">After:</h5> | |
| <p class="text-gray-600">${tale.after}</p> | |
| </div> | |
| ${tale.dresscode ? ` | |
| <div class="mb-4"> | |
| <h5 class="text-sm font-medium text-dark-romance mb-1">Dress Code:</h5> | |
| <p class="text-gray-600">${tale.dresscode}</p> | |
| </div> | |
| ` : ''} | |
| <div class="flex justify-between items-center pt-3 border-t border-gray-200"> | |
| <div class="flex space-x-4"> | |
| <button class="text-dark-romance hover:text-deep-love"> | |
| <i class="far fa-heart mr-1"></i> ${tale.likes} | |
| </button> | |
| <button class="text-dark-romance hover:text-deep-love"> | |
| <i class="far fa-comment mr-1"></i> ${tale.comments} | |
| </button> | |
| </div> | |
| <button class="text-deep-love hover:text-royal-purple text-sm font-medium"> | |
| <i class="fas fa-share-alt mr-1"></i> Share | |
| </button> | |
| </div> | |
| `; | |
| container.appendChild(card); | |
| }); | |
| } | |
| // Share date tale functionality | |
| document.getElementById('share-tale-btn').addEventListener('click', function() { | |
| const title = document.getElementById('tale-title').value; | |
| const before = document.getElementById('tale-before').value; | |
| const during = document.getElementById('tale-during').value; | |
| const after = document.getElementById('tale-after').value; | |
| const dresscode = document.getElementById('tale-dresscode').value; | |
| const imagePrompt = document.getElementById('tale-image-prompt').value; | |
| if (!title || !before || !during || !after) { | |
| alert('Please fill in all required fields'); | |
| return; | |
| } | |
| // Show loading state | |
| const btn = this; | |
| btn.innerHTML = '<div class="loading-spinner"></div>'; | |
| btn.disabled = true; | |
| // Simulate API call with timeout | |
| setTimeout(() => { | |
| // Create new tale object | |
| const newTale = { | |
| title, | |
| before, | |
| during, | |
| after, | |
| dresscode, | |
| likes: 0, | |
| comments: 0, | |
| date: "Just now" | |
| }; | |
| // Add to beginning of array | |
| dateTales.unshift(newTale); | |
| // Reload tales | |
| loadDateTales(); | |
| // Reset form | |
| document.getElementById('tale-title').value = ''; | |
| document.getElementById('tale-before').value = ''; | |
| document.getElementById('tale-during').value = ''; | |
| document.getElementById('tale-after').value = ''; | |
| document.getElementById('tale-dresscode').value = ''; | |
| document.getElementById('tale-image-prompt').value = ''; | |
| // Show success message | |
| alert('Your date tale has been shared successfully!'); | |
| // Reset button | |
| btn.innerHTML = '<i class="fas fa-share-alt mr-2"></i> Share Your Tale'; | |
| btn.disabled = false; | |
| // If image prompt was provided, show AI generation option | |
| if (imagePrompt) { | |
| if (confirm('Would you like to generate an AI image based on your prompt?')) { | |
| generateAIImage(imagePrompt); | |
| } | |
| } | |
| }, 2000); | |
| }); | |
| // Function to generate AI image (would integrate with DeepSeek API in real implementation) | |
| function generateAIImage(prompt) { | |
| alert(`In a real implementation, this would call the DeepSeek API to generate an image based on: "${prompt}"\n\nAPI Key: sk-f3952a2b095f4ae68b1c4033a9fb2416`); | |
| // This is where you would call the DeepSeek API | |
| // fetch('https://api.deepseek.com/v1/images/generate', { | |
| // method: 'POST', | |
| // headers: { | |
| // 'Content-Type': 'application/json', | |
| // 'Authorization': 'Bearer sk-f3952a2b095f4ae68b1c4033a9fb2416' | |
| // }, | |
| // body: JSON.stringify({ | |
| // prompt: prompt, | |
| // size: "1024x1024", | |
| // n: 1 | |
| // }) | |
| // }) | |
| // .then(response => response.json()) | |
| // .then(data => { | |
| // // Handle the generated image | |
| // console.log(data); | |
| // }); | |
| } | |
| // Initialize date ideas on first load | |
| loadDateIdeas(); | |
| </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=THEMONEYHOLLIC/fake-dates" style="color: #fff;text-decoration: underline;" target="_blank" >🧬 Remix</a></p></body> | |
| </html> |