263 lines
7.7 KiB
HTML
263 lines
7.7 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 href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
/* 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: #f8fafc;
|
|
--bg-card: rgba(255, 255, 255, 0.7);
|
|
--bg-card-border: rgba(0, 0, 0, 0.08);
|
|
--text-primary: #0f172a;
|
|
--text-secondary: #475569;
|
|
--accent: #6366f1;
|
|
--accent-hover: #4f46e5;
|
|
--accent-glow: rgba(99, 102, 241, 0.3);
|
|
--accent-secondary: #d946ef;
|
|
}
|
|
|
|
body {
|
|
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) translateY(20px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: scale(1) translateY(0);
|
|
}
|
|
}
|
|
|
|
.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;
|
|
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-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-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);
|
|
}
|
|
|
|
.btn-logout:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px var(--accent-glow);
|
|
}
|
|
|
|
/* Theme Toggle */
|
|
.theme-toggle {
|
|
width: 42px;
|
|
height: 42px;
|
|
border-radius: 50%;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--bg-card-border);
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
backdrop-filter: blur(12px);
|
|
-webkit-backdrop-filter: blur(12px);
|
|
transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
|
|
z-index: 100;
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
transition: transform 0.4s ease;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
transform: scale(1.1);
|
|
box-shadow: 0 4px 16px var(--accent-glow);
|
|
}
|
|
|
|
.theme-toggle:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.theme-toggle--fixed {
|
|
position: fixed;
|
|
top: 1.25rem;
|
|
right: 1.25rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<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="M22 10v6M2 10l10-5 10 5-10 5z" />
|
|
<path d="M6 12v5c3 3 9 3 12 0v-5" />
|
|
</svg>
|
|
</div>
|
|
<h1>Панель преподавателя</h1>
|
|
<p>Раздел в разработке.<br>Ожидайте обновлений!</p>
|
|
<a href="/" class="btn-logout"
|
|
onclick="localStorage.removeItem('token'); localStorage.removeItem('role')">Выйти</a>
|
|
</div>
|
|
|
|
<script src="/theme-toggle.js"></script>
|
|
</body>
|
|
|
|
</html> |