Download index.html from drivehard/kayonga: direct link, hf CLI and curl.
- Browser
- Download file 17.3 kB
-
https://huggingface.co/spaces/drivehard/kayonga/resolve/main/index.html
- Command line
-
hf download hf://spaces/drivehard/kayonga/index.html
-
curl -L -o index.html https://huggingface.co/spaces/drivehard/kayonga/resolve/main/index.html
17.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
| <title>BuildConnect | Construction Materials Marketplace</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> | |
| <style> | |
| @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap'); | |
| body { | |
| font-family: 'Inter', sans-serif; | |
| } | |
| .gradient-bg { | |
| background: linear-gradient(135deg, #1f2937 0%, #111827 100%); | |
| } | |
| .card-hover:hover { | |
| transform: translateY(-4px); | |
| box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); | |
| } | |
| .animate-pulse { | |
| animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; | |
| } | |
| @keyframes pulse { | |
| 0%, 100% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0.5; | |
| } | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <header class="gradient-bg text-white py-8 px-4"> | |
| <div class="max-w-6xl mx-auto"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h1 class="text-3xl md:text-4xl font-bold"> | |
| <span class="text-blue-400">Build</span><span class="text-white">Connect</span> | |
| </h1> | |
| <p class="mt-2 text-blue-100">The construction industry's trusted logistics platform</p> | |
| </div> | |
| <div class="hidden md:flex space-x-4"> | |
| <button class="px-4 py-2 rounded-lg bg-blue-600 hover:bg-blue-700 transition">For Clients</button> | |
| <button class="px-4 py-2 rounded-lg border border-blue-400 hover:bg-blue-900/30 transition">For Transporters</button> | |
| </div> | |
| </div> | |
| <div class="mt-12 text-center"> | |
| <h2 class="text-2xl md:text-3xl font-semibold">Streamline Your Construction Logistics</h2> | |
| <p class="mt-4 max-w-2xl mx-auto text-blue-100"> | |
| Connect directly with reliable transporters for your material delivery needs. | |
| Save time and reduce costs with our efficient matching system. | |
| </p> | |
| </div> | |
| </div> | |
| </header> | |
| <div class="max-w-6xl mx-auto px-4 py-8"> | |
| <div class="bg-white rounded-xl shadow-lg overflow-hidden"> | |
| <div class="md:flex"> | |
| <div class="md:w-1/2 p-8 bg-blue-50"> | |
| <h2 class="text-2xl font-bold text-gray-800">Post a Delivery Request</h2> | |
| <p class="mt-2 text-gray-600">Fill in the details and we'll notify available transporters</p> | |
| <form id="requestForm" class="mt-6 space-y-4"> | |
| <div> | |
| <label for="clientName" class="block text-sm font-medium text-gray-700">Your Name</label> | |
| <div class="mt-1 relative rounded-md shadow-sm"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-user text-gray-400"></i> | |
| </div> | |
| <input type="text" id="clientName" class="py-3 pl-10 block w-full border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="John Smith" required /> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="material" class="block text-sm font-medium text-gray-700">Material Needed</label> | |
| <div class="mt-1 relative rounded-md shadow-sm"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-cubes text-gray-400"></i> | |
| </div> | |
| <input type="text" id="material" class="py-3 pl-10 block w-full border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="e.g. cement, sand, bricks" required /> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="pickup" class="block text-sm font-medium text-gray-700">Pickup Location</label> | |
| <div class="mt-1 relative rounded-md shadow-sm"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-map-marker-alt text-gray-400"></i> | |
| </div> | |
| <input type="text" id="pickup" class="py-3 pl-10 block w-full border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="Supplier address" required /> | |
| </div> | |
| </div> | |
| <div> | |
| <label for="delivery" class="block text-sm font-medium text-gray-700">Delivery Site</label> | |
| <div class="mt-1 relative rounded-md shadow-sm"> | |
| <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"> | |
| <i class="fas fa-hard-hat text-gray-400"></i> | |
| </div> | |
| <input type="text" id="delivery" class="py-3 pl-10 block w-full border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500" placeholder="Construction site address" required /> | |
| </div> | |
| </div> | |
| <div class="pt-2"> | |
| <button type="submit" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition"> | |
| <i class="fas fa-paper-plane mr-2"></i> Post Request | |
| </button> | |
| </div> | |
| </form> | |
| </div> | |
| <div class="md:w-1/2 p-8"> | |
| <div class="flex items-center justify-between"> | |
| <h3 class="text-lg font-semibold text-gray-800">Available Requests</h3> | |
| <div class="flex items-center space-x-2"> | |
| <span class="text-sm text-gray-500">Sort by:</span> | |
| <select class="text-sm border-gray-300 rounded-md focus:ring-blue-500 focus:border-blue-500"> | |
| <option>Newest</option> | |
| <option>Nearest</option> | |
| <option>Highest Pay</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div id="requestList" class="mt-6 space-y-4"> | |
| <div class="text-center py-8"> | |
| <i class="fas fa-truck-loading text-3xl text-gray-300 mb-2"></i> | |
| <p class="text-gray-500">No delivery requests yet. Be the first to post!</p> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-12 grid md:grid-cols-3 gap-6"> | |
| <div class="bg-white p-6 rounded-xl shadow-md card-hover transition duration-300"> | |
| <div class="text-blue-600 mb-4"> | |
| <i class="fas fa-bolt text-2xl"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Fast Matching</h3> | |
| <p class="text-gray-600">Our algorithm connects you with the nearest available transporters within minutes.</p> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md card-hover transition duration-300"> | |
| <div class="text-blue-600 mb-4"> | |
| <i class="fas fa-shield-alt text-2xl"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Verified Partners</h3> | |
| <p class="text-gray-600">All transporters are vetted and rated by previous clients for reliability.</p> | |
| </div> | |
| <div class="bg-white p-6 rounded-xl shadow-md card-hover transition duration-300"> | |
| <div class="text-blue-600 mb-4"> | |
| <i class="fas fa-chart-line text-2xl"></i> | |
| </div> | |
| <h3 class="text-lg font-semibold mb-2">Cost Savings</h3> | |
| <p class="text-gray-600">Competitive pricing with no middlemen means you save up to 30% on logistics.</p> | |
| </div> | |
| </div> | |
| </div> | |
| <footer class="gradient-bg text-white py-8 mt-12"> | |
| <div class="max-w-6xl mx-auto px-4"> | |
| <div class="md:flex md:items-center md:justify-between"> | |
| <div class="flex justify-center md:justify-start"> | |
| <h2 class="text-xl font-bold"> | |
| <span class="text-blue-400">Build</span><span class="text-white">Connect</span> | |
| </h2> | |
| </div> | |
| <div class="mt-8 md:mt-0"> | |
| <div class="flex space-x-6 justify-center md:justify-end"> | |
| <a href="#" class="text-blue-200 hover:text-white"> | |
| <i class="fab fa-facebook-f"></i> | |
| </a> | |
| <a href="#" class="text-blue-200 hover:text-white"> | |
| <i class="fab fa-twitter"></i> | |
| </a> | |
| <a href="#" class="text-blue-200 hover:text-white"> | |
| <i class="fab fa-linkedin-in"></i> | |
| </a> | |
| <a href="#" class="text-blue-200 hover:text-white"> | |
| <i class="fab fa-instagram"></i> | |
| </a> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-8 border-t border-gray-700 pt-8 md:flex md:items-center md:justify-between"> | |
| <p class="text-center text-sm text-blue-100 md:order-1 md:mt-0"> | |
| © 2023 BuildConnect. All rights reserved. | |
| </p> | |
| <div class="mt-4 md:mt-0 flex flex-col md:flex-row space-y-2 md:space-y-0 md:space-x-8 text-sm"> | |
| <a href="#" class="text-blue-200 hover:text-white">Privacy Policy</a> | |
| <a href="#" class="text-blue-200 hover:text-white">Terms of Service</a> | |
| <a href="#" class="text-blue-200 hover:text-white">Contact Us</a> | |
| <a href="#" class="text-blue-200 hover:text-white">FAQ</a> | |
| </div> | |
| </div> | |
| </div> | |
| </footer> | |
| <script> | |
| const form = document.getElementById('requestForm'); | |
| const requestList = document.getElementById('requestList'); | |
| // Sample data for demonstration | |
| const sampleRequests = [ | |
| { | |
| name: "Alex Johnson", | |
| material: "20 bags of cement", | |
| pickup: "Hardware Depot, 123 Main St", | |
| delivery: "45 Oak Avenue construction site", | |
| posted: "2 hours ago", | |
| distance: "3.2 miles" | |
| }, | |
| { | |
| name: "Greenfield Developers", | |
| material: "5 tons of sand", | |
| pickup: "Riverside Quarry", | |
| delivery: "Greenfield Heights project site", | |
| posted: "5 hours ago", | |
| distance: "8.5 miles" | |
| } | |
| ]; | |
| // Display sample requests if list is empty | |
| if(requestList.children.length === 1) { | |
| requestList.innerHTML = ''; | |
| sampleRequests.forEach(request => { | |
| addRequestToDOM(request); | |
| }); | |
| } | |
| form.addEventListener('submit', function(e) { | |
| e.preventDefault(); | |
| const name = document.getElementById('clientName').value; | |
| const material = document.getElementById('material').value; | |
| const pickup = document.getElementById('pickup').value; | |
| const delivery = document.getElementById('delivery').value; | |
| const newRequest = { | |
| name, | |
| material, | |
| pickup, | |
| delivery, | |
| posted: "Just now", | |
| distance: "Calculating..." | |
| }; | |
| addRequestToDOM(newRequest); | |
| form.reset(); | |
| // Show success notification | |
| showNotification('Your request has been posted successfully!'); | |
| }); | |
| function addRequestToDOM(request) { | |
| const card = document.createElement('div'); | |
| card.className = 'bg-white border border-gray-200 rounded-lg p-4 shadow-sm card-hover transition duration-300'; | |
| card.innerHTML = ` | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-medium text-gray-900">${request.material}</h4> | |
| <p class="text-sm text-gray-500 mt-1">Posted by: ${request.name}</p> | |
| </div> | |
| <span class="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded-full">${request.posted}</span> | |
| </div> | |
| <div class="mt-4 space-y-2"> | |
| <div class="flex items-center text-sm text-gray-600"> | |
| <i class="fas fa-map-marker-alt mr-2 text-blue-500"></i> | |
| <span>Pickup: ${request.pickup}</span> | |
| </div> | |
| <div class="flex items-center text-sm text-gray-600"> | |
| <i class="fas fa-hard-hat mr-2 text-blue-500"></i> | |
| <span>Deliver to: ${request.delivery}</span> | |
| </div> | |
| <div class="flex items-center text-sm text-gray-600"> | |
| <i class="fas fa-road mr-2 text-blue-500"></i> | |
| <span>Distance: ${request.distance}</span> | |
| </div> | |
| </div> | |
| <div class="mt-4 flex space-x-2"> | |
| <button onclick="acceptJob('${request.name}')" class="flex-1 bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded-md text-sm font-medium transition"> | |
| <i class="fas fa-check-circle mr-1"></i> Accept Job | |
| </button> | |
| <button onclick="showDetails()" class="bg-gray-100 hover:bg-gray-200 text-gray-800 py-2 px-4 rounded-md text-sm font-medium transition"> | |
| <i class="fas fa-info-circle mr-1"></i> Details | |
| </button> | |
| </div> | |
| `; | |
| requestList.prepend(card); | |
| } | |
| function acceptJob(clientName) { | |
| showNotification(`Job accepted! Contact ${clientName} to arrange pickup.`); | |
| } | |
| function showDetails() { | |
| showNotification("More details about this delivery request will be shown here."); | |
| } | |
| function showNotification(message) { | |
| const notification = document.createElement('div'); | |
| notification.className = 'fixed bottom-4 right-4 bg-green-600 text-white px-6 py-3 rounded-lg shadow-lg flex items-center animate-pulse'; | |
| notification.innerHTML = ` | |
| <i class="fas fa-check-circle mr-2"></i> | |
| <span>${message}</span> | |
| `; | |
| document.body.appendChild(notification); | |
| setTimeout(() => { | |
| notification.classList.remove('animate-pulse'); | |
| notification.classList.add('opacity-0', 'transition-opacity', 'duration-300'); | |
| setTimeout(() => notification.remove(), 300); | |
| }, 3000); | |
| } | |
| </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=drivehard/kayonga" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body> | |
| </html> |