Spaces:
Running
Running
Download index.html from harryfreeman7/freebee: direct link, hf CLI and curl.
- Browser
- Download file 26.4 kB
-
https://huggingface.co/spaces/harryfreeman7/freebee/resolve/main/index.html
- Command line
-
hf download hf://spaces/harryfreeman7/freebee/index.html
-
curl -L -o index.html https://huggingface.co/spaces/harryfreeman7/freebee/resolve/main/index.html
26.4 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Freebee - Get & Give Free Stuff Locally</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> | |
| .map-placeholder { | |
| background-image: url('https://maps.googleapis.com/maps/api/staticmap?center=40.7128,-74.0060&zoom=12&size=800x400&key=YOUR_API_KEY'); | |
| background-size: cover; | |
| background-position: center; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #6B46C1 0%, #4299E1 100%); | |
| } | |
| .item-card:hover { | |
| transform: translateY(-5px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); | |
| } | |
| .tab-active { | |
| border-bottom: 3px solid #6B46C1; | |
| color: #6B46C1; | |
| font-weight: 600; | |
| } | |
| @media (max-width: 640px) { | |
| .mobile-hidden { | |
| display: none; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50 font-sans"> | |
| <!-- Auth Modal --> | |
| <div id="authModal" class="fixed inset-0 z-50 hidden flex items-center justify-center bg-black bg-opacity-50"> | |
| <div class="bg-white rounded-lg p-6 w-full max-w-md"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold">Join Freebee</h3> | |
| <button onclick="toggleAuthModal()" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <div class="space-y-4"> | |
| <button class="w-full flex items-center justify-center space-x-2 bg-white border border-gray-300 rounded-lg px-4 py-2 text-gray-700 hover:bg-gray-50"> | |
| <i class="fab fa-google text-red-500"></i> | |
| <span>Continue with Google</span> | |
| </button> | |
| <div class="flex items-center"> | |
| <div class="flex-grow border-t border-gray-300"></div> | |
| <span class="mx-4 text-gray-500">or</span> | |
| <div class="flex-grow border-t border-gray-300"></div> | |
| </div> | |
| <form class="space-y-4"> | |
| <div> | |
| <label for="email" class="block text-sm font-medium text-gray-700">Email</label> | |
| <input type="email" id="email" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> | |
| </div> | |
| <div> | |
| <label for="password" class="block text-sm font-medium text-gray-700">Password</label> | |
| <input type="password" id="password" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> | |
| </div> | |
| <button type="button" class="w-full gradient-bg text-white rounded-lg px-4 py-2 font-medium hover:opacity-90"> | |
| Sign Up | |
| </button> | |
| </form> | |
| <p class="text-sm text-center text-gray-600"> | |
| Already have an account? <button onclick="switchToLogin()" class="text-purple-600 hover:underline">Log In</button> | |
| </p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Post Item Modal --> | |
| <div id="postModal" class="fixed inset-0 z-50 hidden flex items-center justify-center bg-black bg-opacity-50"> | |
| <div class="bg-white rounded-lg p-6 w-full max-w-md max-h-[90vh] overflow-y-auto"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-xl font-bold">Post an Item</h3> | |
| <button onclick="togglePostModal()" class="text-gray-500 hover:text-gray-700"> | |
| <i class="fas fa-times"></i> | |
| </button> | |
| </div> | |
| <form class="space-y-4"> | |
| <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center"> | |
| <i class="fas fa-camera text-gray-400 text-3xl mb-2"></i> | |
| <p class="text-gray-500">Tap to add photos</p> | |
| </div> | |
| <div> | |
| <label for="itemTitle" class="block text-sm font-medium text-gray-700">Title</label> | |
| <input type="text" id="itemTitle" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500" placeholder="What are you giving away?"> | |
| </div> | |
| <div> | |
| <label for="itemCategory" class="block text-sm font-medium text-gray-700">Category</label> | |
| <select id="itemCategory" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> | |
| <option value="">Select a category</option> | |
| <option value="furniture">Furniture</option> | |
| <option value="electronics">Electronics</option> | |
| <option value="clothing">Clothing</option> | |
| <option value="books">Books</option> | |
| <option value="toys">Toys</option> | |
| <option value="other">Other</option> | |
| </select> | |
| </div> | |
| <div> | |
| <label for="itemDescription" class="block text-sm font-medium text-gray-700">Description</label> | |
| <textarea id="itemDescription" rows="3" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500" placeholder="Tell us about the item..."></textarea> | |
| </div> | |
| <div> | |
| <label for="itemLocation" class="block text-sm font-medium text-gray-700">Location</label> | |
| <input type="text" id="itemLocation" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500" placeholder="Where can it be picked up?"> | |
| </div> | |
| <div> | |
| <label for="itemExpiry" class="block text-sm font-medium text-gray-700">Available for</label> | |
| <select id="itemExpiry" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500"> | |
| <option value="24">24 hours</option> | |
| <option value="48">48 hours</option> | |
| <option value="72">72 hours</option> | |
| </select> | |
| </div> | |
| <button type="button" class="w-full gradient-bg text-white rounded-lg px-4 py-2 font-medium hover:opacity-90"> | |
| Post Item | |
| </button> | |
| </form> | |
| </div> | |
| </div> | |
| <!-- Main Layout --> | |
| <div class="flex flex-col min-h-screen"> | |
| <!-- Header --> | |
| <header class="gradient-bg text-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-bee text-2xl"></i> | |
| <h1 class="text-xl font-bold">Freebee</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <button onclick="toggleAuthModal()" class="bg-white text-purple-600 px-4 py-1 rounded-full font-medium hover:bg-gray-100 mobile-hidden"> | |
| Sign Up | |
| </button> | |
| <button onclick="toggleAuthModal()" class="text-white hover:text-gray-200"> | |
| <i class="fas fa-user"></i> | |
| </button> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Search Bar --> | |
| <div class="bg-white px-4 py-3 shadow-sm"> | |
| <div class="container mx-auto flex items-center bg-gray-100 rounded-full px-4 py-2"> | |
| <i class="fas fa-search text-gray-500"></i> | |
| <input type="text" placeholder="Search for free stuff near you..." class="bg-transparent border-none focus:ring-0 w-full ml-2"> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <main class="flex-grow container mx-auto px-4 py-4"> | |
| <!-- Tabs --> | |
| <div class="flex border-b mb-4"> | |
| <button id="homeTab" onclick="switchTab('home')" class="px-4 py-2 tab-active">Home</button> | |
| <button id="mapTab" onclick="switchTab('map')" class="px-4 py-2">Map</button> | |
| <button id="postTab" onclick="switchTab('post')" class="px-4 py-2">Post</button> | |
| <button id="inboxTab" onclick="switchTab('inbox')" class="px-4 py-2">Inbox</button> | |
| <button id="profileTab" onclick="switchTab('profile')" class="px-4 py-2">Profile</button> | |
| </div> | |
| <!-- Home Tab Content --> | |
| <div id="homeContent" class="tab-content"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h2 class="text-lg font-semibold">Free Items Near You</h2> | |
| <div class="flex space-x-2"> | |
| <button class="bg-gray-100 px-3 py-1 rounded-full text-sm flex items-center"> | |
| <i class="fas fa-filter text-gray-500 mr-1"></i> | |
| <span>Filters</span> | |
| </button> | |
| <button class="bg-gray-100 px-3 py-1 rounded-full text-sm"> | |
| <span>1 mile</span> | |
| </button> | |
| </div> | |
| </div> | |
| <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4"> | |
| <!-- Item Cards --> | |
| <div class="item-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300"> | |
| <div class="h-40 bg-gray-200 relative"> | |
| <img src="https://images.unsplash.com/photo-1555041469-a586c61ea9bc?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Sofa" class="w-full h-full object-cover"> | |
| <div class="absolute top-2 left-2 bg-purple-100 text-purple-800 px-2 py-1 rounded-full text-xs font-medium"> | |
| Furniture | |
| </div> | |
| <div class="absolute top-2 right-2 bg-white p-2 rounded-full shadow"> | |
| <i class="fas fa-heart text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-semibold text-lg mb-1">Comfy Sofa</h3> | |
| <p class="text-gray-600 text-sm mb-2">Good condition, just needs a cleaning</p> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-map-marker-alt mr-1"></i> | |
| <span>0.5 mi away</span> | |
| </div> | |
| <button class="gradient-bg text-white px-3 py-1 rounded-full text-sm hover:opacity-90"> | |
| Claim | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="item-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300"> | |
| <div class="h-40 bg-gray-200 relative"> | |
| <img src="https://images.unsplash.com/photo-1517336714731-489689fd1ca8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1526&q=80" alt="MacBook" class="w-full h-full object-cover"> | |
| <div class="absolute top-2 left-2 bg-blue-100 text-blue-800 px-2 py-1 rounded-full text-xs font-medium"> | |
| Electronics | |
| </div> | |
| <div class="absolute top-2 right-2 bg-white p-2 rounded-full shadow"> | |
| <i class="fas fa-heart text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-semibold text-lg mb-1">MacBook Pro 2015</h3> | |
| <p class="text-gray-600 text-sm mb-2">Works great, battery needs replacement</p> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-map-marker-alt mr-1"></i> | |
| <span>1.2 mi away</span> | |
| </div> | |
| <button class="gradient-bg text-white px-3 py-1 rounded-full text-sm hover:opacity-90"> | |
| Claim | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="item-card bg-white rounded-lg overflow-hidden shadow-md transition duration-300"> | |
| <div class="h-40 bg-gray-200 relative"> | |
| <img src="https://images.unsplash.com/photo-1529374255404-311a2a4f1fd9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1526&q=80" alt="Books" class="w-full h-full object-cover"> | |
| <div class="absolute top-2 left-2 bg-yellow-100 text-yellow-800 px-2 py-1 rounded-full text-xs font-medium"> | |
| Books | |
| </div> | |
| <div class="absolute top-2 right-2 bg-white p-2 rounded-full shadow"> | |
| <i class="fas fa-heart text-gray-400"></i> | |
| </div> | |
| </div> | |
| <div class="p-4"> | |
| <h3 class="font-semibold text-lg mb-1">Book Collection</h3> | |
| <p class="text-gray-600 text-sm mb-2">20+ books, various genres</p> | |
| <div class="flex justify-between items-center"> | |
| <div class="flex items-center text-sm text-gray-500"> | |
| <i class="fas fa-map-marker-alt mr-1"></i> | |
| <span>0.8 mi away</span> | |
| </div> | |
| <button class="gradient-bg text-white px-3 py-1 rounded-full text-sm hover:opacity-90"> | |
| Claim | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Map Tab Content --> | |
| <div id="mapContent" class="tab-content hidden"> | |
| <div class="h-96 bg-gray-200 rounded-lg map-placeholder relative"> | |
| <div class="absolute top-4 left-4 bg-white p-2 rounded-full shadow"> | |
| <i class="fas fa-location-arrow text-purple-600"></i> | |
| </div> | |
| <div class="absolute bottom-4 left-1/2 transform -translate-x-1/2 bg-white px-4 py-2 rounded-full shadow flex items-center"> | |
| <i class="fas fa-sliders-h text-purple-600 mr-2"></i> | |
| <span>Filters</span> | |
| </div> | |
| </div> | |
| <div class="mt-4 grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4"> | |
| <div class="bg-white p-4 rounded-lg shadow flex items-center"> | |
| <div class="w-16 h-16 bg-purple-100 rounded-lg flex items-center justify-center mr-3"> | |
| <i class="fas fa-couch text-purple-600 text-xl"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Furniture</h3> | |
| <p class="text-sm text-gray-500">12 items nearby</p> | |
| </div> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow flex items-center"> | |
| <div class="w-16 h-16 bg-blue-100 rounded-lg flex items-center justify-center mr-3"> | |
| <i class="fas fa-laptop text-blue-600 text-xl"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Electronics</h3> | |
| <p class="text-sm text-gray-500">8 items nearby</p> | |
| </div> | |
| </div> | |
| <div class="bg-white p-4 rounded-lg shadow flex items-center"> | |
| <div class="w-16 h-16 bg-yellow-100 rounded-lg flex items-center justify-center mr-3"> | |
| <i class="fas fa-tshirt text-yellow-600 text-xl"></i> | |
| </div> | |
| <div> | |
| <h3 class="font-medium">Clothing</h3> | |
| <p class="text-sm text-gray-500">15 items nearby</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Post Tab Content --> | |
| <div id="postContent" class="tab-content hidden"> | |
| <div class="bg-white rounded-lg shadow p-6 text-center"> | |
| <div class="w-20 h-20 gradient-bg rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-plus text-white text-2xl"></i> | |
| </div> | |
| <h2 class="text-xl font-semibold mb-2">Post an Item</h2> | |
| <p class="text-gray-600 mb-6">Give away something you don't need anymore. It's free and easy!</p> | |
| <button onclick="togglePostModal()" class="gradient-bg text-white px-6 py-2 rounded-full font-medium hover:opacity-90"> | |
| Get Started | |
| </button> | |
| </div> | |
| <div class="mt-8"> | |
| <h3 class="font-semibold mb-3">Your Recent Posts</h3> | |
| <div class="bg-gray-100 rounded-lg p-4 text-center"> | |
| <i class="fas fa-box-open text-gray-400 text-3xl mb-2"></i> | |
| <p class="text-gray-500">You haven't posted any items yet</p> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Inbox Tab Content --> | |
| <div id="inboxContent" class="tab-content hidden"> | |
| <div class="bg-white rounded-lg shadow p-6 text-center"> | |
| <div class="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-envelope text-purple-600 text-2xl"></i> | |
| </div> | |
| <h2 class="text-xl font-semibold mb-2">Your Inbox</h2> | |
| <p class="text-gray-600 mb-6">Messages about your claims and posts will appear here</p> | |
| <button onclick="toggleAuthModal()" class="gradient-bg text-white px-6 py-2 rounded-full font-medium hover:opacity-90"> | |
| Sign Up to View | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Profile Tab Content --> | |
| <div id="profileContent" class="tab-content hidden"> | |
| <div class="bg-white rounded-lg shadow p-6 text-center"> | |
| <div class="w-20 h-20 bg-purple-100 rounded-full flex items-center justify-center mx-auto mb-4"> | |
| <i class="fas fa-user text-purple-600 text-2xl"></i> | |
| </div> | |
| <h2 class="text-xl font-semibold mb-2">Your Profile</h2> | |
| <p class="text-gray-600 mb-6">Track your posts, claims, and messages in one place</p> | |
| <button onclick="toggleAuthModal()" class="gradient-bg text-white px-6 py-2 rounded-full font-medium hover:opacity-90"> | |
| Sign Up to View | |
| </button> | |
| </div> | |
| </div> | |
| </main> | |
| <!-- Bottom Navigation (Mobile) --> | |
| <nav class="bg-white border-t fixed bottom-0 w-full md:hidden"> | |
| <div class="flex justify-around"> | |
| <button onclick="switchTab('home')" class="flex flex-col items-center justify-center p-3 text-purple-600"> | |
| <i class="fas fa-home text-xl"></i> | |
| <span class="text-xs mt-1">Home</span> | |
| </button> | |
| <button onclick="switchTab('map')" class="flex flex-col items-center justify-center p-3 text-gray-500"> | |
| <i class="fas fa-map text-xl"></i> | |
| <span class="text-xs mt-1">Map</span> | |
| </button> | |
| <button onclick="switchTab('post')" class="flex flex-col items-center justify-center p-3 text-gray-500"> | |
| <i class="fas fa-plus-circle text-xl"></i> | |
| <span class="text-xs mt-1">Post</span> | |
| </button> | |
| <button onclick="switchTab('inbox')" class="flex flex-col items-center justify-center p-3 text-gray-500"> | |
| <i class="fas fa-inbox text-xl"></i> | |
| <span class="text-xs mt-1">Inbox</span> | |
| </button> | |
| <button onclick="switchTab('profile')" class="flex flex-col items-center justify-center p-3 text-gray-500"> | |
| <i class="fas fa-user text-xl"></i> | |
| <span class="text-xs mt-1">Profile</span> | |
| </button> | |
| </div> | |
| </nav> | |
| </div> | |
| <script> | |
| // Tab switching | |
| function switchTab(tabName) { | |
| // Hide all tab contents | |
| document.querySelectorAll('.tab-content').forEach(content => { | |
| content.classList.add('hidden'); | |
| }); | |
| // Show selected tab content | |
| document.getElementById(tabName + 'Content').classList.remove('hidden'); | |
| // Update tab styling | |
| const tabs = ['home', 'map', 'post', 'inbox', 'profile']; | |
| tabs.forEach(tab => { | |
| const tabElement = document.getElementById(tab + 'Tab'); | |
| if (tabElement) { | |
| if (tab === tabName) { | |
| tabElement.classList.add('tab-active'); | |
| } else { | |
| tabElement.classList.remove('tab-active'); | |
| } | |
| } | |
| }); | |
| // Update mobile bottom nav | |
| if (window.innerWidth < 768) { | |
| const mobileButtons = document.querySelectorAll('nav button'); | |
| mobileButtons.forEach(button => { | |
| if (button.textContent.trim().toLowerCase() === tabName) { | |
| button.classList.remove('text-gray-500'); | |
| button.classList.add('text-purple-600'); | |
| } else { | |
| button.classList.remove('text-purple-600'); | |
| button.classList.add('text-gray-500'); | |
| } | |
| }); | |
| } | |
| } | |
| // Auth modal | |
| function toggleAuthModal() { | |
| document.getElementById('authModal').classList.toggle('hidden'); | |
| } | |
| function switchToLogin() { | |
| const form = document.querySelector('#authModal form'); | |
| const button = form.querySelector('button'); | |
| const switchText = document.querySelector('#authModal p'); | |
| button.textContent = 'Log In'; | |
| switchText.innerHTML = 'Don\'t have an account? <button onclick="switchToSignup()" class="text-purple-600 hover:underline">Sign Up</button>'; | |
| } | |
| function switchToSignup() { | |
| const form = document.querySelector('#authModal form'); | |
| const button = form.querySelector('button'); | |
| const switchText = document.querySelector('#authModal p'); | |
| button.textContent = 'Sign Up'; | |
| switchText.innerHTML = 'Already have an account? <button onclick="switchToLogin()" class="text-purple-600 hover:underline">Log In</button>'; | |
| } | |
| // Post modal | |
| function togglePostModal() { | |
| document.getElementById('postModal').classList.toggle('hidden'); | |
| } | |
| // Initialize with home tab | |
| document.addEventListener('DOMContentLoaded', function() { | |
| switchTab('home'); | |
| }); | |
| </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=harryfreeman7/freebee" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |