Spaces:
Running

cs2lh / index.html
Novis4's picture
Add 2 files
9aac731 verified
Raw History Blame Contribute Delete
37.5 kB
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CS2 5x5 Статистика</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>
.team-probability {
height: 30px;
transition: width 0.5s ease;
}
.player-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.map-selector {
cursor: pointer;
transition: all 0.3s ease;
}
.map-selector:hover {
transform: scale(1.05);
}
.map-selector.active {
border-bottom: 3px solid #3b82f6;
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
.nav-link {
position: relative;
}
.nav-link:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background-color: #3b82f6;
transition: width 0.3s;
}
.nav-link:hover:after {
width: 100%;
}
.nav-link.active:after {
width: 100%;
}
.modal {
display: none;
position: fixed;
z-index: 50;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0,0,0,0.5);
}
.modal-content {
background-color: #fefefe;
margin: 10% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
max-width: 600px;
border-radius: 8px;
animation: modalopen 0.3s;
}
@keyframes modalopen {
from {opacity: 0; transform: translateY(-50px);}
to {opacity: 1; transform: translateY(0);}
}
.admin-panel {
display: none;
}
.admin-panel.active {
display: block;
}
</style>
</head>
<body class="bg-gray-100 font-sans">
<!-- Навигация -->
<nav class="bg-gray-900 text-white shadow-lg">
<div class="container mx-auto px-4 py-3">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-4">
<a href="#" class="flex items-center space-x-2">
<i class="fas fa-bomb text-blue-400 text-2xl"></i>
<span class="text-xl font-bold">CS2 STATS</span>
</a>
</div>
<div class="hidden md:flex items-center space-x-8">
<a href="#home" class="nav-link active py-2 px-1">Главная</a>
<a href="#matches" class="nav-link py-2 px-1">Матчи</a>
<a href="#ratings" class="nav-link py-2 px-1">Рейтинги</a>
<a href="#teams" class="nav-link py-2 px-1">Составы</a>
<a href="#admin" id="admin-link" class="bg-blue-600 hover:bg-blue-700 py-2 px-4 rounded-lg transition">
<i class="fas fa-lock mr-1"></i> Админ
</a>
</div>
<div class="md:hidden">
<button class="mobile-menu-button p-2 focus:outline-none">
<i class="fas fa-bars text-xl"></i>
</button>
</div>
</div>
</div>
<!-- Мобильное меню -->
<div class="mobile-menu hidden md:hidden bg-gray-800">
<div class="container mx-auto px-4 py-2 flex flex-col">
<a href="#home" class="py-2 px-1 border-b border-gray-700">Главная</a>
<a href="#matches" class="py-2 px-1 border-b border-gray-700">Матчи</a>
<a href="#ratings" class="py-2 px-1 border-b border-gray-700">Рейтинги</a>
<a href="#teams" class="py-2 px-1 border-b border-gray-700">Составы</a>
<a href="#admin" id="admin-link-mobile" class="bg-blue-600 hover:bg-blue-700 py-2 px-4 rounded-lg my-2 text-center">
<i class="fas fa-lock mr-1"></i> Админ
</a>
</div>
</div>
</nav>
<!-- Контент страниц -->
<div class="container mx-auto px-4 py-8">
<!-- Главная страница -->
<div id="home" class="tab-content active">
<div class="bg-white rounded-xl shadow-md overflow-hidden mb-8">
<div class="p-6">
<h2 class="text-2xl font-bold text-center mb-6">Последний матч</h2>
<!-- Счет карт -->
<div class="flex justify-center items-center mb-8">
<div class="text-center mx-4">
<div class="text-3xl font-bold text-blue-600">3</div>
<div class="text-gray-500">Team A</div>
</div>
<div class="text-4xl font-bold mx-4">:</div>
<div class="text-center mx-4">
<div class="text-3xl font-bold text-red-600">2</div>
<div class="text-gray-500">Team B</div>
</div>
</div>
<!-- Вероятность победы -->
<div class="mb-8">
<h3 class="text-lg font-semibold mb-2 text-center">Вероятность победы</h3>
<div class="flex items-center mb-2">
<div class="w-1/2 text-right pr-2 font-medium text-blue-600">Team A - 65%</div>
<div class="w-1/2 pl-2 font-medium text-red-600">Team B - 35%</div>
</div>
<div class="flex h-4 rounded-full overflow-hidden">
<div class="team-probability bg-blue-600" style="width: 65%"></div>
<div class="team-probability bg-red-600" style="width: 35%"></div>
</div>
</div>
<!-- Выбор карты -->
<div class="mb-8">
<h3 class="text-lg font-semibold mb-4 text-center">Сыгранные карты</h3>
<div class="flex flex-wrap justify-center gap-2">
<div class="map-selector active bg-gray-100 rounded-lg p-3 text-center">
<div class="font-medium">Mirage</div>
<div class="text-sm text-gray-600">16:12</div>
</div>
<div class="map-selector bg-gray-100 rounded-lg p-3 text-center">
<div class="font-medium">Inferno</div>
<div class="text-sm text-gray-600">10:16</div>
</div>
<div class="map-selector bg-gray-100 rounded-lg p-3 text-center">
<div class="font-medium">Overpass</div>
<div class="text-sm text-gray-600">16:14</div>
</div>
<div class="map-selector bg-gray-100 rounded-lg p-3 text-center">
<div class="font-medium">Nuke</div>
<div class="text-sm text-gray-600">8:16</div>
</div>
<div class="map-selector bg-gray-100 rounded-lg p-3 text-center">
<div class="font-medium">Vertigo</div>
<div class="text-sm text-gray-600">16:10</div>
</div>
</div>
</div>
<!-- Статистика команд -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-8">
<!-- Team A -->
<div class="bg-gray-50 rounded-lg p-4">
<h3 class="text-xl font-bold text-center mb-4 text-blue-600">Team A</h3>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="border-b border-gray-200">
<th class="py-2 text-left">Игрок</th>
<th class="py-2 text-center">K</th>
<th class="py-2 text-center">D</th>
<th class="py-2 text-center">A</th>
<th class="py-2 text-center">ADR</th>
<th class="py-2 text-center">KD</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player1">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerOne</span>
</td>
<td class="py-2 text-center">25</td>
<td class="py-2 text-center">18</td>
<td class="py-2 text-center">5</td>
<td class="py-2 text-center">98.7</td>
<td class="py-2 text-center font-bold text-green-600">1.39</td>
</tr>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player2">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerTwo</span>
</td>
<td class="py-2 text-center">22</td>
<td class="py-2 text-center">20</td>
<td class="py-2 text-center">7</td>
<td class="py-2 text-center">87.2</td>
<td class="py-2 text-center font-bold text-green-600">1.10</td>
</tr>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player3">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerThree</span>
</td>
<td class="py-2 text-center">18</td>
<td class="py-2 text-center">19</td>
<td class="py-2 text-center">4</td>
<td class="py-2 text-center">76.5</td>
<td class="py-2 text-center font-bold">0.95</td>
</tr>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player4">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerFour</span>
</td>
<td class="py-2 text-center">15</td>
<td class="py-2 text-center">22</td>
<td class="py-2 text-center">6</td>
<td class="py-2 text-center">65.3</td>
<td class="py-2 text-center font-bold text-red-600">0.68</td>
</tr>
<tr class="hover:bg-gray-100 cursor-pointer player-row" data-player="player5">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerFive</span>
</td>
<td class="py-2 text-center">12</td>
<td class="py-2 text-center">24</td>
<td class="py-2 text-center">3</td>
<td class="py-2 text-center">54.1</td>
<td class="py-2 text-center font-bold text-red-600">0.50</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Team B -->
<div class="bg-gray-50 rounded-lg p-4">
<h3 class="text-xl font-bold text-center mb-4 text-red-600">Team B</h3>
<div class="overflow-x-auto">
<table class="w-full">
<thead>
<tr class="border-b border-gray-200">
<th class="py-2 text-left">Игрок</th>
<th class="py-2 text-center">K</th>
<th class="py-2 text-center">D</th>
<th class="py-2 text-center">A</th>
<th class="py-2 text-center">ADR</th>
<th class="py-2 text-center">KD</th>
</tr>
</thead>
<tbody>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player6">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerSix</span>
</td>
<td class="py-2 text-center">28</td>
<td class="py-2 text-center">16</td>
<td class="py-2 text-center">8</td>
<td class="py-2 text-center">105.3</td>
<td class="py-2 text-center font-bold text-green-600">1.75</td>
</tr>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player7">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerSeven</span>
</td>
<td class="py-2 text-center">23</td>
<td class="py-2 text-center">19</td>
<td class="py-2 text-center">5</td>
<td class="py-2 text-center">92.4</td>
<td class="py-2 text-center font-bold text-green-600">1.21</td>
</tr>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player8">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerEight</span>
</td>
<td class="py-2 text-center">19</td>
<td class="py-2 text-center">20</td>
<td class="py-2 text-center">6</td>
<td class="py-2 text-center">78.9</td>
<td class="py-2 text-center font-bold">0.95</td>
</tr>
<tr class="border-b border-gray-200 hover:bg-gray-100 cursor-pointer player-row" data-player="player9">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerNine</span>
</td>
<td class="py-2 text-center">17</td>
<td class="py-2 text-center">22</td>
<td class="py-2 text-center">4</td>
<td class="py-2 text-center">71.2</td>
<td class="py-2 text-center font-bold text-red-600">0.77</td>
</tr>
<tr class="hover:bg-gray-100 cursor-pointer player-row" data-player="player10">
<td class="py-2 flex items-center">
<img src="https://via.placeholder.com/40" alt="Player" class="w-8 h-8 rounded-full mr-2">
<span>PlayerTen</span>
</td>
<td class="py-2 text-center">14</td>
<td class="py-2 text-center">25</td>
<td class="py-2 text-center">2</td>
<td class="py-2 text-center">60.8</td>
<td class="py-2 text-center font-bold text-red-600">0.56</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- ТОП игроков матча -->
<div class="bg-white rounded-lg shadow-md p-6">
<h3 class="text-xl font-bold mb-4">Лучшие игроки матча</h3>
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-5 gap-4">
<!-- 1 место -->
<div class="player-card bg-gradient-to-b from-yellow-100 to-yellow-50 rounded-lg p-4 text-center border border-yellow-200 transition" data-player="player6">
<div class="relative mb-3">
<img src="https://via.placeholder.com/80" alt="Player" class="w-16 h-16 rounded-full mx-auto border-2 border-yellow-400">
<div class="absolute -top-2 -right-2 bg-yellow-500 text-white rounded-full w-8 h-8 flex items-center justify-center">
<i class="fas fa-trophy"></i>
</div>
</div>
<h4 class="font-bold">PlayerSix</h4>
<div class="text-sm text-gray-600">Team B</div>
<div class="mt-2 font-bold text-lg text-yellow-600">1.75 KD</div>
<div class="text-sm">28/16/8</div>
</div>
<!-- 2 место -->
<div class="player-card bg-gradient-to-b from-gray-200 to-gray-100 rounded-lg p-4 text-center border border-gray-300 transition" data-player="player1">
<div class="relative mb-3">
<img src="https://via.placeholder.com/80" alt="Player" class="w-16 h-16 rounded-full mx-auto border-2 border-gray-400">
<div class="absolute -top-2 -right-2 bg-gray-500 text-white rounded-full w-8 h-8 flex items-center justify-center">
<i class="fas fa-trophy"></i>
</div>
</div>
<h4 class="font-bold">PlayerOne</h4>
<div class="text-sm text-gray-600">Team A</div>
<div class="mt-2 font-bold text-lg text-gray-600">1.39 KD</div>
<div class="text-sm">25/18/5</div>
</div>
<!-- 3 место -->
<div class="player-card bg-gradient-to-b from-amber-100 to-amber-50 rounded-lg p-4 text-center border border-amber-200 transition" data-player="player7">
<div class="relative mb-3">
<img src="https://via.placeholder.com/80" alt="Player" class="w-16 h-16 rounded-full mx-auto border-2 border-amber-400">
<div class="absolute -top-2 -right-2 bg-amber-600 text-white rounded-full w-8 h-8 flex items-center justify-center">
<i class="fas fa-trophy"></i>
</div>
</div>
<h4 class="font-bold">PlayerSeven</h4>
<div class="text-sm text-gray-600">Team B</div>
<div class="mt-2 font-bold text-lg text-amber-600">1.21 KD</div>
<div class="text-sm">23/19/5</div>
</div>
<!-- 4 место -->
<div class="player-card bg-white rounded-lg p-4 text-center border border-gray-200 transition" data-player="player2">
<div class="relative mb-3">
<img src="https://via.placeholder.com/80" alt="Player" class="w-16 h-16 rounded-full mx-auto border-2 border-blue-200">
</div>
<h4 class="font-bold">PlayerTwo</h4>
<div class="text-sm text-gray-600">Team A</div>
<div class="mt-2 font-bold text-lg">1.10 KD</div>
<div class="text-sm">22/20/7</div>
</div>
<!-- 5 место -->
<div class="player-card bg-white rounded-lg p-4 text-center border border-gray-200 transition" data-player="player8">
<div class="relative mb-3">
<img src="https://via.placeholder.com/80" alt="Player" class="w-16 h-16 rounded-full mx-auto border-2 border-blue-200">
</div>
<h4 class="font-bold">PlayerEight</h4>
<div class="text-sm text-gray-600">Team B</div>
<div class="mt-2 font-bold text-lg">0.95 KD</div>
<div class="text-sm">19/20/6</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Страница матчей -->
<div id="matches" class="tab-content">
<div class="bg-white rounded-xl shadow-md overflow-hidden">
<div class="p-6">
<h2 class="text-2xl font-bold mb-6">История матчей</h2>
<div class="mb-4">
<div class="flex justify-between items-center">
<div class="relative w-64">
<input type="text" placeholder="Поиск матчей..." class="w-full pl-10 pr-4 py-2 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-blue-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-400"></i>
</div>
<div>
<select class="border border-gray-300 rounded-lg px-3 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500">
<option>Все карты</option>
<option>Mirage</option>
<option>Inferno</option>
<option>Overpass</option>
<option>Nuke</option>
<option>Vertigo</option>
</select>
</div>
</div>
</div>
<div class="space-y-4">
<!-- Матч 1 -->
<div class="match-item bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition cursor-pointer border border-gray-200">
<div class="flex justify-between items-center mb-2">
<div class="text-sm text-gray-500">15.06.2023</div>
<div class="text-sm bg-blue-100 text-blue-800 px-2 py-1 rounded">BO5</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-users text-blue-600"></i>
</div>
<span class="font-medium">Team A</span>
</div>
<div class="mx-4">
<span class="bg-gray-200 px-3 py-1 rounded-lg font-bold">3 : 2</span>
</div>
<div class="flex items-center">
<span class="font-medium">Team B</span>
<div class="w-8 h-8 bg-red-100 rounded-full flex items-center justify-center ml-2">
<i class="fas fa-users text-red-600"></i>
</div>
</div>
</div>
<div class="mt-3 flex justify-center space-x-2">
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Mirage 16:12</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Inferno 10:16</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Overpass 16:14</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Nuke 8:16</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Vertigo 16:10</span>
</div>
</div>
<!-- Матч 2 -->
<div class="match-item bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition cursor-pointer border border-gray-200">
<div class="flex justify-between items-center mb-2">
<div class="text-sm text-gray-500">10.06.2023</div>
<div class="text-sm bg-green-100 text-green-800 px-2 py-1 rounded">BO3</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-users text-blue-600"></i>
</div>
<span class="font-medium">Team A</span>
</div>
<div class="mx-4">
<span class="bg-gray-200 px-3 py-1 rounded-lg font-bold">2 : 1</span>
</div>
<div class="flex items-center">
<span class="font-medium">Team C</span>
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center ml-2">
<i class="fas fa-users text-purple-600"></i>
</div>
</div>
</div>
<div class="mt-3 flex justify-center space-x-2">
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Mirage 16:8</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Inferno 12:16</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Overpass 16:10</span>
</div>
</div>
<!-- Матч 3 -->
<div class="match-item bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition cursor-pointer border border-gray-200">
<div class="flex justify-between items-center mb-2">
<div class="text-sm text-gray-500">05.06.2023</div>
<div class="text-sm bg-green-100 text-green-800 px-2 py-1 rounded">BO3</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-8 h-8 bg-red-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-users text-red-600"></i>
</div>
<span class="font-medium">Team B</span>
</div>
<div class="mx-4">
<span class="bg-gray-200 px-3 py-1 rounded-lg font-bold">1 : 2</span>
</div>
<div class="flex items-center">
<span class="font-medium">Team C</span>
<div class="w-8 h-8 bg-purple-100 rounded-full flex items-center justify-center ml-2">
<i class="fas fa-users text-purple-600"></i>
</div>
</div>
</div>
<div class="mt-3 flex justify-center space-x-2">
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Mirage 14:16</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Inferno 16:12</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Overpass 8:16</span>
</div>
</div>
<!-- Матч 4 -->
<div class="match-item bg-gray-50 rounded-lg p-4 hover:bg-gray-100 transition cursor-pointer border border-gray-200">
<div class="flex justify-between items-center mb-2">
<div class="text-sm text-gray-500">01.06.2023</div>
<div class="text-sm bg-blue-100 text-blue-800 px-2 py-1 rounded">BO5</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<div class="w-8 h-8 bg-blue-100 rounded-full flex items-center justify-center mr-2">
<i class="fas fa-users text-blue-600"></i>
</div>
<span class="font-medium">Team A</span>
</div>
<div class="mx-4">
<span class="bg-gray-200 px-3 py-1 rounded-lg font-bold">3 : 1</span>
</div>
<div class="flex items-center">
<span class="font-medium">Team D</span>
<div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center ml-2">
<i class="fas fa-users text-green-600"></i>
</div>
</div>
</div>
<div class="mt-3 flex justify-center space-x-2">
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Mirage 16:14</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Inferno 16:10</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Overpass 12:16</span>
<span class="text-xs bg-gray-200 px-2 py-1 rounded">Nuke 16:8</span>
</div>
</div>
</div>
<div class="mt-6 flex justify-center">
<nav class="inline-flex rounded-md shadow">
<a href="#" class="px-3 py-2 rounded-l-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">
<i class="fas fa-chevron-left"></i>
</a>
<a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-blue-500 text-white">1</a>
<a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">2</a>
<a href="#" class="px-3 py-2 border-t border-b border-gray-300 bg-white text-gray-500 hover:bg-gray-50">3</a>
<a href="#" class="px-3 py-2 rounded-r-md border border-gray-300 bg-white text-gray-500 hover:bg-gray-50">
<i class="fas fa-chevron-right"></i>
</a>
</nav>
</div>
</
</html>