Download index.html from SZPPK/titlee: direct link, hf CLI and curl.
- Browser
- Download file 10.5 kB
-
https://huggingface.co/spaces/SZPPK/titlee/resolve/main/index.html
- Command line
-
hf download hf://spaces/SZPPK/titlee/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SZPPK/titlee/resolve/main/index.html
10.5 kB
| <html lang="ru"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Управление Российскими Железными Дорогами</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> | |
| @keyframes trainMove { | |
| 0% { left: -100px; } | |
| 100% { left: calc(100% + 100px); } | |
| } | |
| .train-animation { | |
| animation: trainMove 10s linear infinite; | |
| position: absolute; | |
| bottom: 20px; | |
| } | |
| .station-platform { | |
| position: relative; | |
| height: 80px; | |
| overflow: hidden; | |
| background-color: #e5e7eb; | |
| border-radius: 4px; | |
| } | |
| .cargo-item { | |
| transition: all 0.3s ease; | |
| } | |
| .cargo-item:hover { | |
| transform: scale(1.05); | |
| box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); | |
| } | |
| .modal { | |
| transition: opacity 0.3s ease; | |
| } | |
| </style> | |
| </head> | |
| <body class="bg-gray-100 font-sans"> | |
| <div class="container mx-auto px-4 py-8"> | |
| <header class="mb-8 bg-blue-800 text-white rounded-lg shadow-lg p-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h1 class="text-3xl font-bold"><i class="fas fa-train mr-2"></i>Российские Железные Дороги</h1> | |
| <p class="mt-2">Управляйте грузовыми перевозками по всей России</p> | |
| </div> | |
| <div class="text-right"> | |
| <div class="text-xl font-semibold">Баланс: <span id="balance" class="text-yellow-300">10,000,000 ₽</span></div> | |
| <div class="text-sm">День: <span id="day">1</span></div> | |
| </div> | |
| </div> | |
| </header> | |
| <div class="grid grid-cols-1 lg:grid-cols-3 gap-6 mb-8"> | |
| <!-- Статистика --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-xl font-bold mb-4 text-blue-800"><i class="fas fa-chart-line mr-2"></i>Статистика</h2> | |
| <div class="space-y-3"> | |
| <div class="flex justify-between"> | |
| <span>Доход:</span> | |
| <span class="font-semibold text-green-600">+2,450,000 ₽</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span>Расходы:</span> | |
| <span class="font-semibold text-red-600">-1,200,000 ₽</span> | |
| </div> | |
| <div class="flex justify-between border-t pt-2"> | |
| <span>Грузовые поезда:</span> | |
| <span class="font-semibold" id="freight-trains-count">3</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span>Станции:</span> | |
| <span class="font-semibold" id="stations-count">5</span> | |
| </div> | |
| <div class="flex justify-between"> | |
| <span>Доставлено грузов:</span> | |
| <span class="font-semibold" id="delivered-cargo">12</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Управление --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-xl font-bold mb-4 text-blue-800"><i class="fas fa-cogs mr-2"></i>Управление</h2> | |
| <div class="space-y-3"> | |
| <button onclick="openModal('buy-train-modal')" class="w-full bg-blue-600 hover:bg-blue-700 text-white py-2 px-4 rounded flex items-center justify-center"> | |
| <i class="fas fa-train mr-2"></i> Купить поезд | |
| </button> | |
| <button onclick="openModal('build-station-modal')" class="w-full bg-green-600 hover:bg-green-700 text-white py-2 px-4 rounded flex items-center justify-center"> | |
| <i class="fas fa-building mr-2"></i> Построить станцию | |
| </button> | |
| <button onclick="nextDay()" class="w-full bg-yellow-600 hover:bg-yellow-700 text-white py-2 px-4 rounded flex items-center justify-center"> | |
| <i class="fas fa-forward mr-2"></i> Следующий день | |
| </button> | |
| <button onclick="openModal('cargo-modal')" class="w-full bg-purple-600 hover:bg-purple-700 text-white py-2 px-4 rounded flex items-center justify-center"> | |
| <i class="fas fa-boxes mr-2"></i> Грузы для перевозки | |
| </button> | |
| </div> | |
| </div> | |
| <!-- Карта --> | |
| <div class="bg-white rounded-lg shadow p-6"> | |
| <h2 class="text-xl font-bold mb-4 text-blue-800"><i class="fas fa-map mr-2"></i>Карта сети</h2> | |
| <div class="relative h-64 bg-blue-50 rounded-lg p-4"> | |
| <!-- Железнодорожные пути --> | |
| <div class="absolute top-1/2 left-0 right-0 h-1 bg-gray-800"></div> | |
| <div class="absolute top-1/2 left-1/4 h-1 bg-gray-800 w-1/4 transform -translate-y-1/2"></div> | |
| <div class="absolute top-1/4 left-1/2 h-1/4 bg-gray-800 w-1 transform -translate-x-1/2"></div> | |
| <!-- Станции --> | |
| <div class="station-marker absolute top-1/2 left-1/4 transform -translate-x-1/2 -translate-y-1/2" onclick="showStationInfo('Москва')"> | |
| <div class="w-4 h-4 bg-red-600 rounded-full border-2 border-white shadow"></div> | |
| <div class="text-xs font-semibold mt-1 text-center">Москва</div> | |
| </div> | |
| <div class="station-marker absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2" onclick="showStationInfo('Санкт-Петербург')"> | |
| <div class="w-4 h-4 bg-blue-600 rounded-full border-2 border-white shadow"></div> | |
| <div class="text-xs font-semibold mt-1 text-center">СПб</div> | |
| </div> | |
| <div class="station-marker absolute top-1/2 left-3/4 transform -translate-x-1/2 -translate-y-1/2" onclick="showStationInfo('Екатеринбург')"> | |
| <div class="w-4 h-4 bg-green-600 rounded-full border-2 border-white shadow"></div> | |
| <div class="text-xs font-semibold mt-1 text-center">Екатеринбург</div> | |
| </div> | |
| <div class="station-marker absolute top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/2" onclick="showStationInfo('Новосибирск')"> | |
| <div class="w-4 h-4 bg-yellow-600 rounded-full border-2 border-white shadow"></div> | |
| <div class="text-xs font-semibold mt-1 text-center">Новосибирск</div> | |
| </div> | |
| <!-- Движущийся поезд --> | |
| <div class="train-animation"> | |
| <i class="fas fa-train text-3xl text-gray-800"></i> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Активные перевозки --> | |
| <div class="bg-white rounded-lg shadow p-6 mb-8"> | |
| <h2 class="text-xl font-bold mb-4 text-blue-800"><i class="fas fa-list-alt mr-2"></i>Активные перевозки</h2> | |
| <div class="overflow-x-auto"> | |
| <table class="min-w-full bg-white"> | |
| <thead> | |
| <tr class="bg-gray-100"> | |
| <th class="py-2 px-4 text-left">Поезд</th> | |
| <th class="py-2 px-4 text-left">Маршрут</th> | |
| <th class="py-2 px-4 text-left">Груз</th> | |
| <th class="py-2 px-4 text-left">Прогресс</th> | |
| <th class="py-2 px-4 text-left">Доход</th> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <tr class="border-b"> | |
| <td class="py-3 px-4">Грузовой №1</td> | |
| <td class="py-3 px-4">Москва → Санкт-Петербург</td> | |
| <td class="py-3 px-4">Нефть (1000 т)</td> | |
| <td class="py-3 px-4"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-blue-600 h-2.5 rounded-full" style="width: 45%"></div> | |
| </div> | |
| </td> | |
| <td class="py-3 px-4 text-green-600 font-semibold">+450,000 ₽</td> | |
| </tr> | |
| <tr class="border-b"> | |
| <td class="py-3 px-4">Грузовой №2</td> | |
| <td class="py-3 px-4">Екатеринбург → Новосибирск</td> | |
| <td class="py-3 px-4">Уголь (1500 т)</td> | |
| <td class="py-3 px-4"> | |
| <div class="w-full bg-gray-200 rounded-full h-2.5"> | |
| <div class="bg-blue-600 h-2.5 rounded-full" style="width: 20%"></div> | |
| </div> | |
| </td> | |
| <td class="py-3 px-4 text-green-600 font-semibold">+320,000 ₽</td> | |
| </tr> | |
| <tr> | |
| <td class="py-3 px-4">Грузовой №3</td> | |
| <td class="py-3 px-4">Санкт-Петербург → Москва</td> | |
| <td class="py-3 px-4">Металл (800 т)</td> | |
| <td class="py-3 px-4"> | |
| <div class="w-full bg-gray-200 | |
| </html> |