Revert "UI redesign: CS2 gambling aesthetic, glassmorphism, responsive layout, enhanced sounds, admin panel overhaul"

This reverts commit 4b0fc594b4.
This commit is contained in:
root
2026-07-05 14:42:58 +00:00
parent 4b0fc594b4
commit a34c9f07a7
21 changed files with 9157 additions and 2704 deletions
+30 -22
View File
@@ -3,41 +3,42 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Вход CS2 Simulator</title>
<title>Вход - CS2 Simulator</title>
<link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
<nav class="navbar">
<div class="container">
<a href="/" class="logo">CS2 <span>Simulator</span></a>
<button class="mobile-toggle" id="mobileToggle"></button>
<div class="nav-links" id="navLinks">
<button onclick="toggleSafeMode()" class="btn btn-ghost" id="safeModeToggle" title="Режим записи">🎙️</button>
<a href="/" class="logo">🎮 CS2 Simulator</a>
<div class="nav-links">
<button onclick="toggleSafeMode()" class="btn btn-outline" id="safeModeToggle" title="Режим записи">🎙️</button>
<a href="/register" class="btn btn-outline">Регистрация</a>
</div>
</div>
</nav>
<main style="display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 60px);padding:2rem 1rem;">
<div class="card" style="max-width:400px;width:100%;padding:2rem;">
<h1 class="display-font" style="font-size:1.3rem;margin-bottom:0.25rem;text-align:center;">Вход</h1>
<p class="text-dim text-sm text-center" style="margin-bottom:1.5rem;">Войдите в свой аккаунт</p>
<form id="loginForm">
<main class="auth-container">
<div class="auth-card">
<h2>Вход в аккаунт</h2>
<form id="loginForm" class="auth-form">
<div class="form-group">
<label class="form-label">Имя пользователя</label>
<input type="text" id="username" name="username" class="form-input" required minlength="3">
<label for="username">Имя пользователя</label>
<input type="text" id="username" name="username" required minlength="3">
</div>
<div class="form-group">
<label class="form-label">Пароль</label>
<input type="password" id="password" name="password" class="form-input" required minlength="4">
<label for="password">Пароль</label>
<input type="password" id="password" name="password" required minlength="4">
</div>
<div id="errorMessage" class="form-error" style="display:none;margin-bottom:0.75rem;"></div>
<button type="submit" class="btn btn-primary btn-block btn-large">Войти</button>
<div id="errorMessage" class="error-message" style="display: none;"></div>
<button type="submit" class="btn btn-primary btn-block">Войти</button>
</form>
<p class="text-dim text-sm text-center" style="margin-top:1rem;">
Нет аккаунта? <a href="/register" style="color:var(--primary);">Зарегистрируйтесь</a>
<p class="auth-footer">
Нет аккаунта? <a href="/register">Зарегистрируйтесь</a>
</p>
</div>
</main>
@@ -45,11 +46,18 @@
<script>
document.getElementById('loginForm').addEventListener('submit', async (e) => {
e.preventDefault();
const formData = new FormData(e.target);
const errorDiv = document.getElementById('errorMessage');
try {
const response = await fetch('/web/api/auth/login', { method: 'POST', body: formData });
const response = await fetch('/web/api/auth/login', {
method: 'POST',
body: formData
});
const data = await response.json();
if (response.ok && data.success) {
window.location.href = data.redirect;
} else {
@@ -64,4 +72,4 @@
</script>
<script src="/static/js/safemode.js"></script>
</body>
</html>
</html>