я косяк, поправил веб. Капитан, работайте!
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,146 @@
|
||||
<!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="/static/css/inter-fonts.css" rel="stylesheet">
|
||||
<script src="/static/js/wesp-theme-boot.js"></script>
|
||||
<link href="/static/css/wesp-zootech-layout.css?v=16" rel="stylesheet"> <link href="/static/css/wesp-zootech-components.css" rel="stylesheet">
|
||||
<style>
|
||||
body.role-selection-body {
|
||||
margin: 0;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: var(--zootech-font);
|
||||
background: var(--bg-page);
|
||||
color: var(--text-dark);
|
||||
}
|
||||
|
||||
.role-selection-header {
|
||||
background: var(--gradient-blue);
|
||||
color: #fff;
|
||||
padding: 1.25rem 1rem 1.5rem;
|
||||
text-align: center;
|
||||
box-shadow: var(--box-shadow-hover);
|
||||
}
|
||||
|
||||
.role-selection-header .logo {
|
||||
height: 72px;
|
||||
width: auto;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
|
||||
.role-selection-main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
padding: clamp(1.25rem, 4vw, 2rem);
|
||||
}
|
||||
|
||||
.role-selection-grid {
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
max-width: 480px;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.role-card {
|
||||
flex: 1;
|
||||
background: var(--bg-white);
|
||||
border-radius: var(--border-radius);
|
||||
padding: 1.75rem 1.5rem;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
transition: box-shadow var(--transition), border-color var(--transition);
|
||||
box-shadow: var(--shadow-soft);
|
||||
border: 1px solid var(--border-light);
|
||||
}
|
||||
|
||||
.role-card:hover {
|
||||
box-shadow: var(--shadow-medium);
|
||||
}
|
||||
|
||||
.role-icon {
|
||||
width: 96px;
|
||||
height: 96px;
|
||||
margin: 0 auto 1.25rem;
|
||||
background: var(--bg-light);
|
||||
border-radius: 50%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
|
||||
.role-title {
|
||||
font-size: 1.35rem;
|
||||
color: var(--primary-color);
|
||||
margin: 0 0 0.75rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
|
||||
.role-description {
|
||||
color: var(--text-muted);
|
||||
margin: 0 0 1.25rem;
|
||||
line-height: 1.55;
|
||||
font-size: 0.9375rem;
|
||||
}
|
||||
|
||||
.role-button {
|
||||
background: var(--gradient-blue);
|
||||
color: #fff;
|
||||
border: none;
|
||||
padding: 0.85rem 1.25rem;
|
||||
border-radius: 10px;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
transition: filter var(--transition), transform var(--transition);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.role-button:hover {
|
||||
filter: brightness(1.05);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.role-selection-header .logo {
|
||||
height: 48px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<link href="/static/css/wesp-zootech-theme-organic.css?v=6" rel="stylesheet">
|
||||
</head>
|
||||
<body class="role-selection-body">
|
||||
<header class="role-selection-header">
|
||||
<a href="/recipes" class="nav-logo-link" aria-label="Рецепты">
|
||||
<img src="/static/logo.png" alt="Комптон" class="logo">
|
||||
</a>
|
||||
</header>
|
||||
|
||||
<main class="role-selection-main">
|
||||
<div class="role-selection-grid">
|
||||
<div class="role-card" onclick="selectRole('zootechnician')">
|
||||
<div class="role-icon" aria-hidden="true">📋</div>
|
||||
<h2 class="role-title">Зоотехник</h2>
|
||||
<p class="role-description">Управление рецептами и контроль кормления</p>
|
||||
<button type="button" class="role-button">Войти как зоотехник</button>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
function selectRole(role) {
|
||||
if (role === 'zootechnician') {
|
||||
window.location.href = '/recipes';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user