Spaces:
Running
Running
Create a management website for internal use for site acquistion work , keeping track of all sites , the data and making reports and pop alerts for site requiring action - Initial Deployment
49011cf verified Download index.html from Humblewarrior/management: direct link, hf CLI and curl.
- Browser
- Download file 26.7 kB
-
https://huggingface.co/spaces/Humblewarrior/management/resolve/main/index.html
- Command line
-
hf download hf://spaces/Humblewarrior/management/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Humblewarrior/management/resolve/main/index.html
26.7 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Site Acquisition Manager</title> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet"> | |
| <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| .notification-badge { | |
| position: absolute; | |
| top: -5px; | |
| right: -5px; | |
| background-color: #ef4444; | |
| color: white; | |
| border-radius: 9999px; | |
| width: 20px; | |
| height: 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 12px; | |
| } | |
| .sidebar-item:hover { | |
| background-color: rgba(59, 130, 246, 0.1); | |
| } | |
| .active-site { | |
| border-left: 4px solid #3b82f6; | |
| background-color: rgba(59, 130, 246, 0.05); | |
| } | |
| .urgent { | |
| border-left: 4px solid #ef4444; | |
| } | |
| .status-completed { | |
| background-color: #10b981; | |
| } | |
| .status-pending { | |
| background-color: #f59e0b; | |
| } | |
| .status-urgent { | |
| background-color: #ef4444; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-50"> | |
| <!-- Sidebar --> | |
| <div class="fixed inset-y-0 left-0 w-64 bg-white shadow-md"> | |
| <div class="flex items-center justify-center h-16 border-b border-gray-200"> | |
| <h1 class="text-xl font-bold text-blue-600">SiteTrack Pro</h1> | |
| </div> | |
| <div class="p-4"> | |
| <div class="relative mb-6"> | |
| <input type="text" placeholder="Search sites..." class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <i data-feather="search" class="absolute right-3 top-3 text-gray-400"></i> | |
| </div> | |
| <nav> | |
| <a href="#" class="flex items-center px-4 py-3 text-blue-600 rounded-lg sidebar-item"> | |
| <i data-feather="home" class="w-5 h-5 mr-3"></i> | |
| Dashboard | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-gray-700 rounded-lg sidebar-item relative"> | |
| <i data-feather="map-pin" class="w-5 h-5 mr-3"></i> | |
| All Sites | |
| <span class="notification-badge">12</span> | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-gray-700 rounded-lg sidebar-item"> | |
| <i data-feather="file-text" class="w-5 h-5 mr-3"></i> | |
| Reports | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-gray-700 rounded-lg sidebar-item"> | |
| <i data-feather="users" class="w-5 h-5 mr-3"></i> | |
| Vendors | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-gray-700 rounded-lg sidebar-item relative"> | |
| <i data-feather="bell" class="w-5 h-5 mr-3"></i> | |
| Alerts | |
| <span class="notification-badge">3</span> | |
| </a> | |
| <a href="#" class="flex items-center px-4 py-3 text-gray-700 rounded-lg sidebar-item"> | |
| <i data-feather="settings" class="w-5 h-5 mr-3"></i> | |
| Settings | |
| </a> | |
| </nav> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="ml-64"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="flex items-center justify-between px-6 py-4"> | |
| <div> | |
| <h2 class="text-xl font-semibold text-gray-800">Site Acquisition Dashboard</h2> | |
| <p class="text-sm text-gray-500">Welcome back, John</p> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i data-feather="bell" class="w-6 h-6 text-gray-600 cursor-pointer"></i> | |
| <span class="notification-badge">3</span> | |
| </div> | |
| <div class="flex items-center space-x-2"> | |
| <img src="http://static.photos/people/40x40/1" alt="User" class="w-8 h-8 rounded-full"> | |
| <span class="text-sm font-medium">John Doe</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Dashboard Content --> | |
| <main class="p-6"> | |
| <!-- Stats Cards --> | |
| <div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-6"> | |
| <div class="bg-white p-6 rounded-lg shadow-sm border-l-4 border-blue-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Total Sites</p> | |
| <h3 class="text-2xl font-bold text-gray-800 mt-1">147</h3> | |
| </div> | |
| <div class="bg-blue-100 p-2 rounded-full"> | |
| <i data-feather="map-pin" class="w-5 h-5 text-blue-600"></i> | |
| </div> | |
| </div> | |
| <div class="flex items-center mt-4 text-sm text-gray-600"> | |
| <i data-feather="trending-up" class="w-4 h-4 mr-1 text-green-500"></i> | |
| <span>12% increase from last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow-sm border-l-4 border-green-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Completed</p> | |
| <h3 class="text-2xl font-bold text-gray-800 mt-1">89</h3> | |
| </div> | |
| <div class="bg-green-100 p-2 rounded-full"> | |
| <i data-feather="check-circle" class="w-5 h-5 text-green-600"></i> | |
| </div> | |
| </div> | |
| <div class="flex items-center mt-4 text-sm text-gray-600"> | |
| <i data-feather="trending-up" class="w-4 h-4 mr-1 text-green-500"></i> | |
| <span>8% increase from last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow-sm border-l-4 border-yellow-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">In Progress</p> | |
| <h3 class="text-2xl font-bold text-gray-800 mt-1">42</h3> | |
| </div> | |
| <div class="bg-yellow-100 p-2 rounded-full"> | |
| <i data-feather="clock" class="w-5 h-5 text-yellow-600"></i> | |
| </div> | |
| </div> | |
| <div class="flex items-center mt-4 text-sm text-gray-600"> | |
| <i data-feather="trending-up" class="w-4 h-4 mr-1 text-green-500"></i> | |
| <span>3% increase from last month</span> | |
| </div> | |
| </div> | |
| <div class="bg-white p-6 rounded-lg shadow-sm border-l-4 border-red-500"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <p class="text-sm font-medium text-gray-500">Requiring Action</p> | |
| <h3 class="text-2xl font-bold text-gray-800 mt-1">16</h3> | |
| </div> | |
| <div class="bg-red-100 p-2 rounded-full"> | |
| <i data-feather="alert-circle" class="w-5 h-5 text-red-600"></i> | |
| </div> | |
| </div> | |
| <div class="flex items-center mt-4 text-sm text-gray-600"> | |
| <i data-feather="trending-down" class="w-4 h-4 mr-1 text-red-500"></i> | |
| <span>5% increase from last month</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Charts and Alerts --> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-6"> | |
| <!-- Status Chart --> | |
| <div class="bg-white p-6 rounded-lg shadow-sm lg:col-span-2"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg font-semibold text-gray-800">Site Acquisition Status</h3> | |
| <select class="bg-gray-100 border border-gray-300 text-gray-700 py-1 px-3 rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <option>Last 30 Days</option> | |
| <option>Last 90 Days</option> | |
| <option>This Year</option> | |
| </select> | |
| </div> | |
| <div class="h-64"> | |
| <canvas id="statusChart"></canvas> | |
| </div> | |
| </div> | |
| <!-- Urgent Alerts --> | |
| <div class="bg-white p-6 rounded-lg shadow-sm"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg font-semibold text-gray-800">Urgent Alerts</h3> | |
| <span class="bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded-full">3 New</span> | |
| </div> | |
| <div class="space-y-4"> | |
| <div class="p-4 border-l-4 border-red-500 bg-red-50 rounded-lg"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-medium text-gray-800">Site #S-1298</h4> | |
| <p class="text-sm text-gray-600">Permit application delayed - action required</p> | |
| </div> | |
| <span class="text-xs text-red-600 font-medium">Due: Today</span> | |
| </div> | |
| <div class="mt-2 flex items-center space-x-2"> | |
| <span class="text-xs px-2 py-1 bg-white rounded">Permits</span> | |
| <span class="text-xs px-2 py-1 bg-white rounded">High Priority</span> | |
| </div> | |
| </div> | |
| <div class="p-4 border-l-4 border-red-500 bg-red-50 rounded-lg"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-medium text-gray-800">Site #S-1423</h4> | |
| <p class="text-sm text-gray-600">Vendor not responding to RFQ</p> | |
| </div> | |
| <span class="text-xs text-red-600 font-medium">Due: 2 days</span> | |
| </div> | |
| <div class="mt-2 flex items-center space-x-2"> | |
| <span class="text-xs px-2 py-1 bg-white rounded">Vendor</span> | |
| <span class="text-xs px-2 py-1 bg-white rounded">Communication</span> | |
| </div> | |
| </div> | |
| <div class="p-4 border-l-4 border-red-500 bg-red-50 rounded-lg"> | |
| <div class="flex justify-between items-start"> | |
| <div> | |
| <h4 class="font-medium text-gray-800">Site #S-1387</h4> | |
| <p class="text-sm text-gray-600">Zoning approval needed immediately</p> | |
| </div> | |
| <span class="text-xs text-red-600 font-medium">Due: 5 days</span> | |
| </div> | |
| <div class="mt-2 flex items-center space-x-2"> | |
| <span class="text-xs px-2 py-1 bg-white rounded">Zoning</span> | |
| <span class="text-xs px-2 py-1 bg-white rounded">Legal</span> | |
| </div> | |
| </div> | |
| </div> | |
| <button class="mt-4 w-full py-2 bg-gray-100 hover:bg-gray-200 text-gray-700 rounded-lg text-sm font-medium transition duration-200"> | |
| View All Alerts | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Sites Table --> | |
| <div class="bg-white rounded-lg shadow-sm overflow-hidden"> | |
| <div class="flex justify-between items-center p-6 border-b border-gray-200"> | |
| <h3 class="text-lg font-semibold text-gray-800">Recent Site Acquisitions</h3> | |
| <button class="flex items-center space-x-1 text-blue-600 hover:text-blue-800 text-sm font-medium"> | |
| <i data-feather="plus" class="w-4 h-4"></i> | |
| <span>Add New Site</span> | |
| </button> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="w-full"> | |
| <thead class="bg-gray-50 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"> | |
| <tr> | |
| <th class="px-6 py-3">Site ID</th> | |
| <th class="px-6 py-3">Location</th> | |
| <th class="px-6 py-3">Status</th> | |
| <th class="px-6 py-3">Vendor</th> | |
| <th class="px-6 py-3">Due Date</th> | |
| <th class="px-6 py-3 text-right">Actions</th> | |
| </tr> | |
| </thead> | |
| <tbody class="divide-y divide-gray-200"> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 font-medium text-gray-900">#S-1456</td> | |
| <td class="px-6 py-4"> | |
| <div> | |
| <p class="text-gray-900">123 Main St, Austin, TX</p> | |
| <p class="text-xs text-gray-500">Lat: 30.2672° N, Long: 97.7431° W</p> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <span class="px-2 py-1 text-xs font-medium rounded-full status-completed text-white">Completed</span> | |
| </td> | |
| <td class="px-6 py-4 text-gray-900">ABC Construction</td> | |
| <td class="px-6 py-4 text-gray-900">2023-06-15</td> | |
| <td class="px-6 py-4 text-right"> | |
| <button class="text-blue-600 hover:text-blue-800 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-800"> | |
| <i data-feather="more-vertical" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 font-medium text-gray-900">#S-1455</td> | |
| <td class="px-6 py-4"> | |
| <div> | |
| <p class="text-gray-900">456 Oak Ave, Dallas, TX</p> | |
| <p class="text-xs text-gray-500">Lat: 32.7767° N, Long: 96.7970° W</p> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <span class="px-2 py-1 text-xs font-medium rounded-full status-pending text-white">Pending</span> | |
| </td> | |
| <td class="px-6 py-4 text-gray-900">XYZ Builders</td> | |
| <td class="px-6 py-4 text-gray-900">2023-07-22</td> | |
| <td class="px-6 py-4 text-right"> | |
| <button class="text-blue-600 hover:text-blue-800 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-800"> | |
| <i data-feather="more-vertical" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50 urgent"> | |
| <td class="px-6 py-4 font-medium text-gray-900">#S-1454</td> | |
| <td class="px-6 py-4"> | |
| <div> | |
| <p class="text-gray-900">789 Pine Rd, Houston, TX</p> | |
| <p class="text-xs text-gray-500">Lat: 29.7604° N, Long: 95.3698° W</p> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <span class="px-2 py-1 text-xs font-medium rounded-full status-urgent text-white">Urgent</span> | |
| </td> | |
| <td class="px-6 py-4 text-gray-900">Houston Land Co.</td> | |
| <td class="px-6 py-4 text-gray-900">2023-06-30</td> | |
| <td class="px-6 py-4 text-right"> | |
| <button class="text-blue-600 hover:text-blue-800 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-800"> | |
| <i data-feather="more-vertical" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 font-medium text-gray-900">#S-1453</td> | |
| <td class="px-6 py-4"> | |
| <div> | |
| <p class="text-gray-900">101 Elm Blvd, San Antonio, TX</p> | |
| <p class="text-xs text-gray-500">Lat: 29.4241° N, Long: 98.4936° W</p> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <span class="px-2 py-1 text-xs font-medium rounded-full status-pending text-white">Pending</span> | |
| </td> | |
| <td class="px-6 py-4 text-gray-900">Alamo Developers</td> | |
| <td class="px-6 py-4 text-gray-900">2023-08-10</td> | |
| <td class="px-6 py-4 text-right"> | |
| <button class="text-blue-600 hover:text-blue-800 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-800"> | |
| <i data-feather="more-vertical" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 font-medium text-gray-900">#S-1452</td> | |
| <td class="px-6 py-4"> | |
| <div> | |
| <p class="text-gray-900">202 Maple Ln, Fort Worth, TX</p> | |
| <p class="text-xs text-gray-500">Lat: 32.7555° N, Long: 97.3308° W</p> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4"> | |
| <span class="px-2 py-1 text-xs font-medium rounded-full status-completed text-white">Completed</span> | |
| </td> | |
| <td class="px-6 py-4 text-gray-900">Lone Star Properties</td> | |
| <td class="px-6 py-4 text-gray-900">2023-05-28</td> | |
| <td class="px-6 py-4 text-right"> | |
| <button class="text-blue-600 hover:text-blue-800 mr-3"> | |
| <i data-feather="eye" class="w-4 h-4"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-800"> | |
| <i data-feather="more-vertical" class="w-4 h-4"></i> | |
| </button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </div> | |
| <div class="px-6 py-4 bg-gray-50 border-t border-gray-200 flex justify-between items-center"> | |
| <p class="text-sm text-gray-600">Showing <span class="font-medium">1</span> to <span class="font-medium">5</span> of <span class="font-medium">147</span> sites</p> | |
| <div class="flex space-x-1"> | |
| <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> | |
| Previous | |
| </button> | |
| <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-white bg-blue-600 hover:bg-blue-700"> | |
| 1 | |
| </button> | |
| <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> | |
| 2 | |
| </button> | |
| <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> | |
| 3 | |
| </button> | |
| <button class="px-3 py-1 border border-gray-300 rounded-md text-sm font-medium text-gray-700 bg-white hover:bg-gray-50"> | |
| Next | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| <script> | |
| AOS.init(); | |
| feather.replace(); | |
| // Initialize chart | |
| const ctx = document.getElementById('statusChart').getContext('2d'); | |
| const statusChart = new Chart(ctx, { | |
| type: 'bar', | |
| data: { | |
| labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], | |
| datasets: [ | |
| { | |
| label: 'Completed', | |
| data: [12, 19, 15, 22, 18, 25], | |
| backgroundColor: '#10b981', | |
| }, | |
| { | |
| label: 'Pending', | |
| data: [8, 12, 10, 15, 12, 10], | |
| backgroundColor: '#f59e0b', | |
| }, | |
| { | |
| label: 'Urgent', | |
| data: [3, 5, 4, 6, 8, 5], | |
| backgroundColor: '#ef4444', | |
| } | |
| ] | |
| }, | |
| options: { | |
| responsive: true, | |
| scales: { | |
| x: { | |
| stacked: true, | |
| }, | |
| y: { | |
| stacked: true, | |
| beginAtZero: true | |
| } | |
| } | |
| } | |
| }); | |
| // Sample alert notification | |
| setTimeout(() => { | |
| const notificationSound = new Audio('https://assets.mixkit.co/sfx/preview/mixkit-alarm-digital-clock-beep-989.mp3'); | |
| notificationSound.play(); | |
| const alertBox = document.createElement('div'); | |
| alertBox.className = 'fixed bottom-4 right-4 w-80 bg-white p-4 rounded-lg shadow-lg border-l-4 border-red-500 z-50'; | |
| alertBox.innerHTML = ` | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0"> | |
| <i data-feather="alert-triangle" class="w-5 h-5 text-red-500"></i> | |
| </div> | |
| <div class="ml-3"> | |
| <h3 class="text-sm font-medium text-gray-800">Urgent Action Required</h3> | |
| <p class="mt-1 text-sm text-gray-600">Site #S-1423 - Vendor not responding to RFQ</p> | |
| <div class="mt-2"> | |
| <button type="button" class="text-sm text-blue-600 hover:text-blue-800 font-medium"> | |
| View Details | |
| </button> | |
| </div> | |
| </div> | |
| <button type="button" class="ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-500 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8"> | |
| <i data-feather="x" class="w-4 h-4"></i> | |
| </button> | |
| </div> | |
| `; | |
| document.body.appendChild(alertBox); | |
| feather.replace(); | |
| alertBox.querySelector('button').addEventListener('click', () => { | |
| alertBox.remove(); | |
| }); | |
| }, 5000); | |
| </script> | |
| </body> | |
| </html> | |