241 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			241 lines
		
	
	
		
			5.8 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html lang="ru">
 | |
| <head>
 | |
|   <meta charset="UTF-8">
 | |
|   <meta name="viewport" content="width=device-width, initial-scale=1.0">
 | |
|   <title>Логи системы</title>
 | |
|   <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
 | |
|   <style>
 | |
|     body {
 | |
|       margin: 0;
 | |
|       padding: 0;
 | |
|       font-family: 'Arial', sans-serif;
 | |
|       color: #ffffff;
 | |
|       overflow: hidden;
 | |
|       display: flex;
 | |
|       transition: margin-left 0.3s ease;
 | |
|     }
 | |
| 
 | |
|     /* Боковое меню */
 | |
|     .sidebar {
 | |
|       width: 250px;
 | |
|       background-color: #2e2e2e;
 | |
|       padding: 20px;
 | |
|       box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
 | |
|       transition: width 0.3s ease;
 | |
|       overflow-y: auto;
 | |
|       position: fixed;
 | |
|       top: 0;
 | |
|       left: 0;
 | |
|       bottom: 0;
 | |
|       z-index: 2;
 | |
|     }
 | |
| 
 | |
|     .sidebar.collapsed {
 | |
|       width: 60px;
 | |
|     }
 | |
| 
 | |
|     .sidebar.collapsed h2,
 | |
|     .sidebar.collapsed ul li a span {
 | |
|       display: none;
 | |
|     }
 | |
| 
 | |
|     .sidebar h2 {
 | |
|       color: #3399FF;
 | |
|       text-align: center;
 | |
|       margin-bottom: 20px;
 | |
|       font-size: 24px;
 | |
|       transition: opacity 0.3s ease;
 | |
|     }
 | |
| 
 | |
|     .sidebar ul {
 | |
|       list-style: none;
 | |
|       padding: 0;
 | |
|     }
 | |
| 
 | |
|     .sidebar ul li {
 | |
|       margin: 15px 0;
 | |
|     }
 | |
| 
 | |
|     .sidebar ul li a {
 | |
|       color: #ffffff;
 | |
|       text-decoration: none;
 | |
|       font-size: 16px;
 | |
|       transition: color 0.3s ease;
 | |
|       display: flex;
 | |
|       align-items: center;
 | |
|     }
 | |
| 
 | |
|     .sidebar ul li a:hover {
 | |
|       color: #3399FF;
 | |
|     }
 | |
| 
 | |
|     .sidebar ul li a i {
 | |
|       margin-right: 10px;
 | |
|       font-size: 20px;
 | |
|     }
 | |
| 
 | |
|     .sidebar ul li a span {
 | |
|       transition: opacity 0.3s ease;
 | |
|     }
 | |
| 
 | |
|     /* Кнопка для сворачивания/разворачивания меню */
 | |
|     .toggle-btn {
 | |
|       position: fixed;
 | |
|       left: 10px;
 | |
|       top: 10px;
 | |
|       background-color: #3399FF;
 | |
|       border: none;
 | |
|       color: #fff;
 | |
|       padding: 10px;
 | |
|       border-radius: 5px;
 | |
|       cursor: pointer;
 | |
|       z-index: 1000;
 | |
|     }
 | |
| 
 | |
|     /* Основной контент */
 | |
|     .container {
 | |
|       flex: 1;
 | |
|       padding: 20px;
 | |
|       margin-left: 250px;
 | |
|       transition: margin-left 0.3s ease;
 | |
|       min-height: 100vh;
 | |
|       display: flex;
 | |
|       justify-content: center;
 | |
|       align-items: center;
 | |
|     }
 | |
| 
 | |
|     .container.collapsed {
 | |
|       margin-left: 60px;
 | |
|     }
 | |
| 
 | |
|     /* Видео на фоне */
 | |
|     .background-video {
 | |
|       position: fixed;
 | |
|       top: 0;
 | |
|       left: 0;
 | |
|       width: 100%;
 | |
|       height: 100%;
 | |
|       object-fit: cover;
 | |
|       z-index: -1;
 | |
|       opacity: 0.8;
 | |
|     }
 | |
| 
 | |
|     /* Затемнение поверх видео */
 | |
|     .overlay {
 | |
|       position: fixed;
 | |
|       top: 0;
 | |
|       left: 0;
 | |
|       width: 100%;
 | |
|       height: 100%;
 | |
|       background: rgba(0, 0, 0, 0.7);
 | |
|       z-index: -1;
 | |
|     }
 | |
| 
 | |
|     /* Контейнер для логов */
 | |
|     .logs-container {
 | |
|       width: 90%;
 | |
|       max-width: 800px;
 | |
|       background-color: rgba(46, 46, 46, 0.9);
 | |
|       padding: 20px;
 | |
|       border-radius: 10px;
 | |
|       box-shadow: 0 0 20px rgba(51, 153, 255, 0.5);
 | |
|     }
 | |
| 
 | |
|     .logs-container h2 {
 | |
|       color: #3399FF;
 | |
|       margin-bottom: 20px;
 | |
|       font-size: 24px;
 | |
|     }
 | |
| 
 | |
|     /* Стили для логов */
 | |
|     .logs {
 | |
|       height: 60vh;
 | |
|       overflow-y: auto;
 | |
|       font-family: 'Courier New', monospace;
 | |
|       font-size: 14px;
 | |
|       color: #3399FF;
 | |
|       padding-right: 10px;
 | |
|     }
 | |
| 
 | |
|     .logs p {
 | |
|       margin: 10px 0;
 | |
|       padding: 5px;
 | |
|       background-color: rgba(0, 0, 0, 0.3);
 | |
|       border-radius: 5px;
 | |
|     }
 | |
| 
 | |
|     /* Стили для скроллбара */
 | |
|     .logs::-webkit-scrollbar {
 | |
|       width: 8px;
 | |
|     }
 | |
| 
 | |
|     .logs::-webkit-scrollbar-track {
 | |
|       background: rgba(0, 0, 0, 0.2);
 | |
|       border-radius: 5px;
 | |
|     }
 | |
| 
 | |
|     .logs::-webkit-scrollbar-thumb {
 | |
|       background: #00ffcc;
 | |
|       border-radius: 5px;
 | |
|     }
 | |
| 
 | |
|     .logs::-webkit-scrollbar-thumb:hover {
 | |
|       background: #00cc99;
 | |
|     }
 | |
|   </style>
 | |
| </head>
 | |
| <body>
 | |
|   <!-- Боковое меню -->
 | |
|   <div class="sidebar" id="sidebar">
 | |
|     <h2>Меню</h2>
 | |
|     <ul>
 | |
|       <li><a href="index.html"><i class="fas fa-home"></i><span>Главная</span></a></li>
 | |
|       <li><a href="#"><i class="fas fa-cog"></i><span>Настройки</span></a></li>
 | |
|       <li><a href="#"><i class="fas fa-chart-line"></i><span>Отчеты</span></a></li>
 | |
|       <li><a href="#"><i class="fas fa-code"></i><span>Парсеры</span></a></li>
 | |
|       <li><a href="logs.html"><i class="fas fa-file-alt"></i><span>Логи</span></a></li>
 | |
|     </ul>
 | |
|   </div>
 | |
| 
 | |
|   <!-- Кнопка для сворачивания/разворачивания меню -->
 | |
|   <button class="toggle-btn" id="toggle-btn">
 | |
|     <i class="fas fa-bars"></i>
 | |
|   </button>
 | |
| 
 | |
|   <!-- Основной контент -->
 | |
|   <div class="container" id="main-content">
 | |
|     <!-- Видео на фоне -->
 | |
|     <video class="background-video" autoplay loop muted>
 | |
|       <source src="{{ url_for('static', filename='alb_glob0411_1080p_24fps.mp4') }}" type="video/mp4">
 | |
|       Ваш браузер не поддерживает видео.
 | |
|     </video>
 | |
|     <!-- Затемнение поверх видео -->
 | |
|     <div class="overlay"></div>
 | |
| 
 | |
|     <!-- Контейнер для логов -->
 | |
|     <div class="logs-container">
 | |
|       <h2>Логи системы (tg_nodes.log)</h2>
 | |
|       <div class="logs" id="logs-container">
 | |
|         {% for log in logs %}
 | |
|         <p>{{ log }}</p>
 | |
|         {% else %}
 | |
|         <p>Нет записей в логах</p>
 | |
|         {% endfor %}
 | |
|       </div>
 | |
|     </div>
 | |
|   </div>
 | |
| 
 | |
|   <script>
 | |
|     // Сворачивание/разворачивание бокового меню
 | |
|     const sidebar = document.getElementById('sidebar');
 | |
|     const mainContent = document.getElementById('main-content');
 | |
|     const toggleBtn = document.getElementById('toggle-btn');
 | |
| 
 | |
|     toggleBtn.addEventListener('click', () => {
 | |
|       sidebar.classList.toggle('collapsed');
 | |
|       mainContent.classList.toggle('collapsed');
 | |
|     });
 | |
|   </script>
 | |
| </body>
 | |
| </html> |