feat: complete UI redesign with glassmorphism and custom multi-select equipment dropdown

This commit is contained in:
Zuev
2026-02-21 01:35:56 +03:00
parent eea444409e
commit 74d937f6dc
7 changed files with 820 additions and 207 deletions

View File

@@ -1,11 +1,10 @@
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Панель студента</title>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
* {
margin: 0;
@@ -14,72 +13,168 @@
}
:root {
--bg-primary: #0f0f1a;
--text-primary: #f0f0f5;
--text-secondary: #9ca3af;
--accent-hover: #818cf8;
--bg-card: rgba(255, 255, 255, 0.05);
--bg-card-border: rgba(255, 255, 255, 0.08);
--bg-input: rgba(255, 255, 255, 0.06);
--accent-glow: rgba(99, 102, 241, 0.35);
/* Deep dark premium background */
--bg-primary: #0a0a0f;
--bg-card: rgba(255, 255, 255, 0.03);
--bg-card-border: rgba(255, 255, 255, 0.05);
/* Typography */
--text-primary: #f8fafc;
--text-secondary: #94a3b8;
/* Vibrant Accents */
--accent: #8b5cf6;
--accent-hover: #a78bfa;
--accent-glow: rgba(139, 92, 246, 0.4);
--accent-secondary: #ec4899;
}
[data-theme="light"] {
--bg-primary: #e8eaef;
--bg-primary: #f8fafc;
--bg-card: rgba(255, 255, 255, 0.7);
--bg-card-border: rgba(0, 0, 0, 0.08);
--text-primary: #0f172a;
--text-secondary: #374151;
--text-secondary: #475569;
--accent: #6366f1;
--accent-hover: #4f46e5;
--bg-card: rgba(255, 255, 255, 0.95);
--bg-card-border: rgba(0, 0, 0, 0.22);
--bg-input: rgba(0, 0, 0, 0.08);
--accent-glow: rgba(99, 102, 241, 0.25);
--accent-glow: rgba(99, 102, 241, 0.3);
--accent-secondary: #d946ef;
}
body {
font-family: 'Inter', sans-serif;
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
transition: background 0.4s ease, color 0.4s ease;
}
/* ===== Animated Background ===== */
.background {
position: fixed;
inset: 0;
z-index: 0;
overflow: hidden;
}
.shape {
position: absolute;
border-radius: 50%;
filter: blur(90px);
opacity: 0.4;
animation: float 20s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate;
transition: opacity 0.5s ease;
will-change: transform;
}
[data-theme="light"] .shape { opacity: 0.15; }
.shape-1 {
width: 600px;
height: 600px;
background: radial-gradient(circle, var(--accent), transparent 60%);
top: -20%;
left: -10%;
animation-delay: 0s;
}
.shape-2 {
width: 500px;
height: 500px;
background: radial-gradient(circle, var(--accent-secondary), transparent 60%);
bottom: -20%;
right: -10%;
animation-delay: -5s;
}
@keyframes float {
0%, 100% { transform: translate(0, 0) scale(1); }
50% { transform: translate(-30px, 30px) scale(0.95); }
}
@keyframes fadeInScale {
from {
opacity: 0;
transform: scale(0.9);
}
to {
opacity: 1;
transform: scale(1);
}
from { opacity: 0; transform: scale(0.9) translateY(20px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.placeholder {
.placeholder-card {
position: relative;
z-index: 1;
background: var(--bg-card);
backdrop-filter: blur(32px);
-webkit-backdrop-filter: blur(32px);
border: 1px solid var(--bg-card-border);
border-radius: 24px;
padding: 4rem 3rem;
text-align: center;
animation: fadeInScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
box-shadow:
0 24px 48px rgba(0, 0, 0, 0.2),
inset 0 1px 0 rgba(255, 255, 255, 0.1);
animation: fadeInScale 0.6s cubic-bezier(0.25, 0.8, 0.25, 1) both;
max-width: 400px;
width: 90%;
}
[data-theme="light"] .placeholder-card {
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.05),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.placeholder-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 1px;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.placeholder h1 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}
.placeholder p {
color: var(--text-secondary);
.placeholder-card .icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 80px;
height: 80px;
border-radius: 50%;
background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
color: var(--text-primary);
margin-bottom: 1.5rem;
box-shadow: 0 0 30px var(--accent-glow);
}
.placeholder a {
color: var(--accent-hover);
.placeholder-card h1 {
font-size: 1.75rem;
font-weight: 700;
margin-bottom: 0.5rem;
letter-spacing: -0.02em;
}
.placeholder-card p {
color: var(--text-secondary);
font-size: 1rem;
margin-bottom: 2rem;
line-height: 1.5;
}
.btn-logout {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.8rem 2rem;
background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
color: #fff;
text-decoration: none;
font-weight: 600;
border-radius: 12px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px var(--accent-glow);
}
.placeholder a:hover {
text-decoration: underline;
.btn-logout:hover {
transform: translateY(-2px);
box-shadow: 0 8px 25px var(--accent-glow);
}
/* Theme Toggle */
@@ -124,10 +219,21 @@
</head>
<body>
<div class="placeholder">
<div class="background">
<div class="shape shape-1"></div>
<div class="shape shape-2"></div>
</div>
<div class="placeholder-card">
<div class="icon">
<svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/>
<path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/>
</svg>
</div>
<h1>Панель студента</h1>
<p>Раздел в разработке</p>
<a href="/" onclick="localStorage.removeItem('token'); localStorage.removeItem('role')">Выйти</a>
<p>Раздел в разработке.<br>Ожидайте обновлений!</p>
<a href="/" class="btn-logout" onclick="localStorage.removeItem('token'); localStorage.removeItem('role')">Выйти</a>
</div>
<script src="/theme-toggle.js"></script>