- Lab page is now read-only with a settings screen for levels/variants; variant issuance moved to a large modal on the group page (assign-fragment). - Header: bordeaux logo and 2px accent underline, bordeaux login/logout/theme buttons; smaller radii across the UI; filled secondary/danger buttons. - Includes prior agent work (login backoff, no-cache pages, API timeouts, content tweaks) and fixes (variant usage Map.values, import order). - Bump static asset version to v=9.
265 lines
14 KiB
HTML
265 lines
14 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>LMS — демо стиля В: институциональный</title>
|
||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||
<link href="https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
|
||
<style>
|
||
:root {
|
||
--bg: #edf1f6;
|
||
--surface: #ffffff;
|
||
--text: #16202b;
|
||
--muted: #5c6b7c;
|
||
--border: #c9d4e2;
|
||
--border-strong: #9fb0c4;
|
||
--accent: #1f4e8c;
|
||
--accent-hover: #173c6d;
|
||
--accent-soft: #e3eaf3;
|
||
--danger: #a02929;
|
||
--ok: #2e6b34;
|
||
--warn: #8a5a12;
|
||
}
|
||
* { box-sizing: border-box; }
|
||
body {
|
||
margin: 0; background: var(--bg); color: var(--text);
|
||
font: 14px/1.5 "PT Sans", Roboto, "Segoe UI", system-ui, sans-serif;
|
||
}
|
||
.demo-note {
|
||
background: #16202b; color: #e8eef5; text-align: center;
|
||
font-size: 12px; padding: 6px 12px;
|
||
}
|
||
/* ── Шапка-плашка ──────────────────────────────────────── */
|
||
.page-header { background: var(--accent); color: #ffffff; }
|
||
.header-inner {
|
||
max-width: 1200px; margin: 0 auto; padding: 10px 24px;
|
||
display: flex; align-items: center; gap: 24px;
|
||
}
|
||
.logo { font-size: 17px; font-weight: 700; color: #ffffff; text-decoration: none; letter-spacing: .04em; }
|
||
.nav { display: flex; gap: 4px; flex: 1; }
|
||
.nav a {
|
||
color: #d7e2ef; text-decoration: none; font-size: 13.5px; font-weight: 500;
|
||
padding: 6px 12px; border-radius: 4px;
|
||
}
|
||
.nav a.active { background: rgba(255, 255, 255, .16); color: #ffffff; }
|
||
.nav a:hover { background: rgba(255, 255, 255, .1); color: #ffffff; }
|
||
.user { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #e8eef5; }
|
||
.user .btn { background: rgba(255, 255, 255, .12); border-color: transparent; color: #ffffff; }
|
||
.user .btn:hover { background: rgba(255, 255, 255, .2); }
|
||
/* ── Основная часть ────────────────────────────────────── */
|
||
.page-main { max-width: 1200px; margin: 0 auto; padding: 24px 24px 48px; }
|
||
.kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
|
||
h1 {
|
||
margin: 0 0 6px; padding-left: 12px; font-size: 22px; font-weight: 700;
|
||
border-left: 4px solid var(--accent); line-height: 1.25;
|
||
}
|
||
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
|
||
.meta { margin: 0 0 0 16px; color: var(--muted); font-size: 13px; }
|
||
.actions { display: flex; gap: 8px; }
|
||
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
|
||
/* ── Таблица-ведомость: полная сетка ───────────────────── */
|
||
.matrix-wrap { background: var(--surface); border: 1px solid var(--border-strong); }
|
||
table.matrix { width: 100%; border-collapse: collapse; }
|
||
.matrix th {
|
||
padding: 9px 12px; text-align: left;
|
||
background: var(--accent-soft); color: var(--text);
|
||
font-size: 12px; font-weight: 700;
|
||
border: 1px solid var(--border); border-top: none;
|
||
}
|
||
.matrix th:first-child { border-left: none; }
|
||
.matrix th:last-child { border-right: none; }
|
||
.matrix td { padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
|
||
.matrix tbody tr:last-child td { border-bottom: none; }
|
||
.matrix td:first-child { border-left: none; }
|
||
.matrix td:last-child { border-right: none; }
|
||
.matrix tbody tr:nth-child(even) { background: #f7f9fc; }
|
||
.sticky { min-width: 190px; }
|
||
.student-name { font-weight: 700; }
|
||
.student-no { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
|
||
.lab-no { display: block; font-weight: 700; }
|
||
.lab-title { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
|
||
.cell-main { display: flex; align-items: baseline; gap: 10px; }
|
||
.variant { font-weight: 700; color: var(--accent); }
|
||
.score { font-variant-numeric: tabular-nums; font-weight: 700; }
|
||
.score.muted { color: var(--muted); font-weight: 400; }
|
||
.cell-sub { margin-top: 3px; display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
|
||
.sub-link { color: var(--accent); text-decoration: underline; }
|
||
.st { white-space: nowrap; }
|
||
.st.done { color: var(--ok); font-weight: 700; }
|
||
.st.active { color: var(--warn); font-weight: 700; }
|
||
.eye { cursor: default; color: var(--border-strong); font-size: 13px; }
|
||
.eye.on { color: var(--accent); }
|
||
.ta-r { text-align: right; }
|
||
/* ── Кнопки, бейджи, поля ──────────────────────────────── */
|
||
.btn {
|
||
display: inline-block; padding: 6px 14px; font: inherit; font-size: 13px; font-weight: 700;
|
||
border: 1px solid var(--border-strong); background: var(--surface);
|
||
color: var(--text); border-radius: 4px; cursor: pointer; text-decoration: none;
|
||
}
|
||
.btn:hover { background: #f2f6fb; }
|
||
.btn-primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
|
||
.btn-primary:hover { background: var(--accent-hover); }
|
||
.btn-danger { background: var(--surface); border-color: var(--danger); color: var(--danger); }
|
||
.btn-danger:hover { background: #f7e9e9; }
|
||
.btn-sm { padding: 4px 9px; font-size: 12px; }
|
||
.input {
|
||
padding: 6px 10px; font: inherit; font-size: 13px; color: var(--text);
|
||
background: var(--surface); border: 1px solid var(--border-strong); border-radius: 4px;
|
||
}
|
||
.input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
|
||
.badge {
|
||
display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 700;
|
||
border-radius: 3px; background: var(--accent-soft); color: var(--accent);
|
||
}
|
||
.badge.warn { background: #f7ecd4; color: var(--warn); }
|
||
.badge.ok { background: #e2efe3; color: var(--ok); }
|
||
.notice { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface); padding: 10px 14px; font-size: 13px; }
|
||
/* ── Секция элементов ──────────────────────────────────── */
|
||
.components { margin-top: 28px; border: 1px solid var(--border); background: var(--surface); padding: 16px; }
|
||
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
|
||
.page-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="demo-note">Демо-шаблон «В. Институциональный» · данные условные · тёмная тема будет в реализации</div>
|
||
|
||
<header class="page-header">
|
||
<div class="header-inner">
|
||
<a class="logo" href="#">LMS</a>
|
||
<nav class="nav">
|
||
<a href="#" class="active">Группы</a>
|
||
<a href="#">Пользователи</a>
|
||
<a href="#">Лабораторные</a>
|
||
</nav>
|
||
<div class="user">
|
||
<span>Копнин В.</span>
|
||
<button class="btn btn-sm">Выйти</button>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<main class="page-main">
|
||
<div class="page-head">
|
||
<div>
|
||
<p class="kicker">Ведомость группы</p>
|
||
<h1>М202-1 · Первый курс</h1>
|
||
<p class="meta">24 студента · 3 опубликованные лабораторные · длительность защиты 30 мин</p>
|
||
</div>
|
||
<div class="actions">
|
||
<button class="btn">Скачать пароли</button>
|
||
<button class="btn btn-primary">+ Студент</button>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="toolbar">
|
||
<input class="input" style="width:260px" placeholder="Поиск по студенту…">
|
||
<select class="input"><option>все лабораторные</option><option>ЛР 1</option><option>ЛР 2</option></select>
|
||
</div>
|
||
|
||
<div class="matrix-wrap">
|
||
<table class="matrix">
|
||
<thead>
|
||
<tr>
|
||
<th class="sticky">Студент</th>
|
||
<th><span class="lab-no">ЛР 1</span><span class="lab-title">Анализ данных</span></th>
|
||
<th><span class="lab-no">ЛР 2</span><span class="lab-title">Сортировки</span></th>
|
||
<th><span class="lab-no">ЛР 3</span><span class="lab-title">Деревья поиска</span></th>
|
||
<th>Пароль</th>
|
||
<th class="ta-r">Действия</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<tr>
|
||
<td class="sticky"><div class="student-name">Иванова Анна</div><div class="student-no">2025001</div></td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-7</span><span class="score">4.5</span><span class="eye on">◉</span></div>
|
||
<div class="cell-sub"><a class="sub-link" href="#">сдача ↓ 2</a><span class="st done">защита: готов</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-2</span><span class="score">3.0</span><span class="eye on">◉</span></div>
|
||
<div class="cell-sub"><a class="sub-link" href="#">сдача ↓ 1</a><span class="st code">защита: код 552314</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="score muted">—</span></div>
|
||
<div class="cell-sub"><span class="st">не выдан</span></div>
|
||
</td>
|
||
<td><span class="badge warn">временный</span></td>
|
||
<td class="ta-r"><button class="btn btn-sm">Сбросить</button> <button class="btn btn-sm btn-danger">Отчислить</button></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="sticky"><div class="student-name">Петров Павел</div><div class="student-no">2025002</div></td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-1</span><span class="score">5.0</span><span class="eye on">◉</span></div>
|
||
<div class="cell-sub"><a class="sub-link" href="#">сдача ↓ 3</a><span class="st done">защита: готов</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-4</span><span class="score muted">—</span><span class="eye on">◉</span></div>
|
||
<div class="cell-sub"><a class="sub-link" href="#">сдача ↓ 1</a><span class="st active">защита: идёт · 12:34</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-3</span><span class="score muted">—</span><span class="eye">○</span></div>
|
||
<div class="cell-sub"><span class="st">не сдано</span></div>
|
||
</td>
|
||
<td><span class="badge ok">изменён</span></td>
|
||
<td class="ta-r"><button class="btn btn-sm">Сбросить</button> <button class="btn btn-sm btn-danger">Отчислить</button></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="sticky"><div class="student-name">Сидоров Алексей</div><div class="student-no">2025017</div></td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-5</span><span class="score muted">—</span><span class="eye on">◉</span></div>
|
||
<div class="cell-sub"><span class="st">не сдано</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="score muted">—</span></div>
|
||
<div class="cell-sub"><span class="st">не выдан</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="score muted">—</span></div>
|
||
<div class="cell-sub"><span class="st">не выдан</span></div>
|
||
</td>
|
||
<td><span class="badge warn">временный</span></td>
|
||
<td class="ta-r"><button class="btn btn-sm">Сбросить</button> <button class="btn btn-sm btn-danger">Отчислить</button></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="sticky"><div class="student-name">Кузнецова Мария</div><div class="student-no">2025021</div></td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-3</span><span class="score">4.0</span><span class="eye">○</span></div>
|
||
<div class="cell-sub"><a class="sub-link" href="#">сдача ↓ 1</a><span class="st done">защита: готов</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="variant">В-6</span><span class="score muted">—</span><span class="eye">○</span></div>
|
||
<div class="cell-sub"><a class="sub-link" href="#">сдача ↓ 1</a><span class="st active">защита: идёт · 03:07</span></div>
|
||
</td>
|
||
<td>
|
||
<div class="cell-main"><span class="score muted">—</span></div>
|
||
<div class="cell-sub"><span class="st">не выдан</span></div>
|
||
</td>
|
||
<td><span class="badge ok">изменён</span></td>
|
||
<td class="ta-r"><button class="btn btn-sm">Сбросить</button> <button class="btn btn-sm btn-danger">Отчислить</button></td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<section class="components">
|
||
<p class="kicker">Элементы интерфейса</p>
|
||
<div class="row">
|
||
<button class="btn btn-primary">Сохранить всё</button>
|
||
<button class="btn">Отмена</button>
|
||
<button class="btn btn-danger">Удалить</button>
|
||
<span class="badge ok">published</span>
|
||
<span class="badge warn">draft</span>
|
||
</div>
|
||
<div class="row">
|
||
<input class="input" style="width:220px" value="Поле ввода">
|
||
<input class="input" style="width:120px" value="552314">
|
||
</div>
|
||
<div class="notice">Оценки опубликованы всей группе — студенты видят баллы и комментарии.</div>
|
||
</section>
|
||
</main>
|
||
|
||
<footer class="page-footer">LMS · демо-шаблон · стиль В</footer>
|
||
</body>
|
||
</html>
|