Spaces:
Running
Running
Download vehicles.html from YURIY33/auto33electric: direct link, hf CLI and curl.
- Browser
- Download file 19.3 kB
-
https://huggingface.co/spaces/YURIY33/auto33electric/resolve/main/vehicles.html
- Command line
-
hf download hf://spaces/YURIY33/auto33electric/vehicles.html
-
curl -L -o vehicles.html https://huggingface.co/spaces/YURIY33/auto33electric/resolve/main/vehicles.html
19.3 kB
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Автомобили - AutoServiceDB</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> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="flex h-screen overflow-hidden"> | |
| <!-- Sidebar (same as index.html) --> | |
| <div id="sidebar" class="sidebar sidebar-expanded bg-gray-800 text-white shadow-lg"> | |
| <!-- Sidebar content from index.html --> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content flex-1 flex flex-col overflow-hidden"> | |
| <!-- Top Navigation --> | |
| <header class="bg-white shadow-sm"> | |
| <div class="flex items-center justify-between px-6 py-4"> | |
| <div class="flex items-center space-x-4"> | |
| <h1 class="text-2xl font-semibold text-gray-800">Управление автомобилями</h1> | |
| </div> | |
| <div class="flex items-center space-x-4"> | |
| <div class="relative"> | |
| <i data-feather="bell" class="text-gray-600 hover:text-blue-500 cursor-pointer"></i> | |
| <span class="absolute top-0 right-0 h-2 w-2 rounded-full bg-red-500"></span> | |
| </div> | |
| <div class="flex items-center space-x-2"> | |
| <img src="http://static.photos/people/200x200/1" alt="User" class="h-8 w-8 rounded-full"> | |
| <span class="text-gray-700">Администратор</span> | |
| </div> | |
| </div> | |
| </div> | |
| </header> | |
| <!-- Vehicles Content --> | |
| <main class="flex-1 overflow-y-auto p-6 bg-gray-50"> | |
| <!-- Vehicle Search and Actions --> | |
| <div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6 gap-4"> | |
| <div class="relative w-full md:w-96"> | |
| <input type="text" placeholder="Поиск автомобилей..." class="w-full pl-10 pr-4 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500"> | |
| <i data-feather="search" class="absolute left-3 top-3 text-gray-400"></i> | |
| </div> | |
| <div class="flex space-x-3"> | |
| <button class="flex items-center px-4 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700"> | |
| <i data-feather="plus" class="mr-2"></i> | |
| Добавить автомобиль | |
| </button> | |
| <button class="flex items-center px-4 py-2 bg-white border border-gray-300 rounded-lg hover:bg-gray-50"> | |
| <i data-feather="filter" class="mr-2"></i> | |
| Фильтры | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Vehicles Table --> | |
| <div class="bg-white rounded-lg shadow overflow-hidden" data-aos="fade-up"> | |
| <div class="px-6 py-4 border-b border-gray-200 flex justify-between items-center"> | |
| <h2 class="text-lg font-semibold text-gray-800">Список автомобилей</h2> | |
| <div class="flex items-center space-x-2"> | |
| <span class="text-sm text-gray-500">Всего: 189</span> | |
| <select class="text-sm border rounded px-2 py-1"> | |
| <option>10 на странице</option> | |
| <option>25 на странице</option> | |
| <option>50 на странице</option> | |
| </select> | |
| </div> | |
| </div> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full divide-y divide-gray-200"> | |
| <thead class="bg-gray-50"> | |
| <tr> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">VIN</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Марка/Модель</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Год</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Владелец</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Пробег</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Статус</th> | |
| <th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Действия</th> | |
| </tr> | |
| </thead> | |
| <tbody class="bg-white divide-y divide-gray-200"> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">XTA21099765432101</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/automotive/200x200/1" alt="Vehicle" class="h-10 w-16 object-cover rounded mr-3"> | |
| <div> | |
| <div class="font-medium text-gray-900">Toyota Camry</div> | |
| <div class="text-gray-500 text-xs">2.5L, Бензин, Автомат</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2018</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Иванов А.С.</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">78,450 км</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">Активен</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <div class="flex space-x-2"> | |
| <button class="text-blue-600 hover:text-blue-900"> | |
| <i data-feather="edit"></i> | |
| </button> | |
| <button class="text-red-600 hover:text-red-900"> | |
| <i data-feather="trash-2"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-900"> | |
| <i data-feather="info"></i> | |
| </button> | |
| </div> | |
| </td> | |
| </tr> | |
| <tr class="hover:bg-gray-50"> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">ZFA25000001234567</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <div class="flex items-center"> | |
| <img src="http://static.photos/automotive/200x200/2" alt="Vehicle" class="h-10 w-16 object-cover rounded mr-3"> | |
| <div> | |
| <div class="font-medium text-gray-900">Honda CR-V</div> | |
| <div class="text-gray-500 text-xs">1.5T, Бензин, Вариатор</div> | |
| </div> | |
| </div> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2020</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">Петрова М.И.</td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">32,100 км</td> | |
| <td class="px-6 py-4 whitespace-nowrap"> | |
| <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-yellow-100 text-yellow-800">В ремонте</span> | |
| </td> | |
| <td class="px-6 py-4 whitespace-nowrap text-sm font-medium"> | |
| <div class="flex space-x-2"> | |
| <button class="text-blue-600 hover:text-blue-900"> | |
| <i data-feather="edit"></i> | |
| </button> | |
| <button class="text-red-600 hover:text-red-900"> | |
| <i data-feather="trash-2"></i> | |
| </button> | |
| <button class="text-gray-600 hover:text-gray-900"> | |
| <i data-feather="info"></i> | |
| </button> | |
| </div> | |
| </td> | |
| </tr> | |
| <!-- More vehicle rows... --> | |
| </tbody> | |
| </table> | |
| </div> | |
| <!-- Pagination (same as clients.html) --> | |
| </div> | |
| <!-- Vehicle Details Modal (hidden by default) --> | |
| <div id="vehicle-modal" class="hidden fixed inset-0 overflow-y-auto z-50"> | |
| <div class="flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"> | |
| <div class="fixed inset-0 transition-opacity" aria-hidden="true"> | |
| <div class="absolute inset-0 bg-gray-500 opacity-75"></div> | |
| </div> | |
| <span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">​</span> | |
| <div class="inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full"> | |
| <div class="bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> | |
| <div class="sm:flex sm:items-start"> | |
| <div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"> | |
| <div class="flex justify-between items-center mb-4"> | |
| <h3 class="text-lg leading-6 font-medium text-gray-900" id="modal-title"> | |
| Информация об автомобиле | |
| </h3> | |
| <button type="button" class="text-gray-400 hover:text-gray-500" onclick="document.getElementById('vehicle-modal').classList.add('hidden')"> | |
| <i data-feather="x"></i> | |
| </button> | |
| </div> | |
| <div class="grid grid-cols-1 md:grid-cols-2 gap-6"> | |
| <div> | |
| <img src="http://static.photos/automotive/640x360/1" alt="Vehicle" class="w-full h-48 object-cover rounded-lg"> | |
| </div> | |
| <div> | |
| <h4 class="text-xl font-semibold">Toyota Camry</h4> | |
| <p class="text-gray-600">2018, 2.5L, Бензин, Автомат</p> | |
| <div class="mt-4 space-y-2"> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-500">VIN:</span> | |
| <span class="font-medium">XTA21099765432101</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-500">Гос. номер:</span> | |
| <span class="font-medium">А123БВ777</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-500">Пробег:</span> | |
| <span class="font-medium">78,450 км</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span class="text-gray-500">Цвет:</span> | |
| <span class="font-medium">Серебристый</span> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <h5 class="font-medium mb-2">Владелец</h5> | |
| <div class="flex items-center space-x-3"> | |
| <img src="http://static.photos/people/200x200/2" alt="Owner" class="h-10 w-10 rounded-full"> | |
| <div> | |
| <p class="font-medium">Иванов Алексей Сергеевич</p> | |
| <p class="text-sm text-gray-500">+7 (912) 345-67-89</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div> | |
| <h5 class="font-medium mb-2">История обслуживания</h5> | |
| <div class="space-y-2"> | |
| <div class="flex justify-between text-sm"> | |
| <span>12.05.2023</span> | |
| <span>Замена масла</span> | |
| <span class="text-green-600">₽5,200</span> | |
| </div> | |
| <div class="flex justify-between text-sm"> | |
| <span>15.03.2023</span> | |
| <span>Диагностика</span> | |
| <span class="text-green-600">₽3,500</span> | |
| </div> | |
| <div class="flex justify-between text-sm"> | |
| <span>10.01.2023</span> | |
| <span>Замена тормозных колодок</span> | |
| <span class="text-green-600">₽8,700</span> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"> | |
| <button type="button" class="w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-blue-600 text-base font-medium text-white hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 sm:ml-3 sm:w-auto sm:text-sm"> | |
| Распечатать карточку | |
| </button> | |
| <button type="button" class="mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm" onclick="document.getElementById('vehicle-modal').classList.add('hidden')"> | |
| Закрыть | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </main> | |
| </div> | |
| </div> | |
| <script> | |
| // Initialize AOS animations | |
| AOS.init({ | |
| duration: 800, | |
| easing: 'ease-in-out', | |
| once: true | |
| }); | |
| // Initialize feather icons | |
| feather.replace(); | |
| // Function to show vehicle details modal | |
| function showVehicleDetails() { | |
| document.getElementById('vehicle-modal').classList.remove('hidden'); | |
| feather.replace(); | |
| } | |
| </script> | |
| </body> | |
| </html> | |