Add event colors (Catppuccin Mocha) and read-only week view for users
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 20s
All checks were successful
CI/CD Pipeline / build-and-deploy (push) Successful in 20s
Admins can now pick a color per event from a Catppuccin Mocha palette; existing events default to blue. Colors flow through to both the admin timeline and the new "Неделя" tab in the user view, which reuses the admin's weekly grid in a read-only mode. Also reworks event blocks to show a single-line "start–end title" so short events no longer overflow, tidies the admin toolbar, and expands mobile responsiveness across both frontends. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
parent
fc66954c03
commit
c40a6569b4
10 changed files with 685 additions and 64 deletions
|
|
@ -4,7 +4,7 @@
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Расписание</title>
|
||||
<link rel="stylesheet" href="/static/style.css?v=3">
|
||||
<link rel="stylesheet" href="/static/style.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<main class="board">
|
||||
|
|
@ -14,7 +14,12 @@
|
|||
<p class="board-copy">Задачи отображаются сверху, занятия ниже по времени. Данные обновляются автоматически каждые пять минут.</p>
|
||||
</section>
|
||||
|
||||
<section class="days-grid">
|
||||
<nav class="view-tabs">
|
||||
<button id="tab-daily" class="view-tab is-active">Сегодня / Завтра</button>
|
||||
<button id="tab-week" class="view-tab">Неделя</button>
|
||||
</nav>
|
||||
|
||||
<section id="view-daily" class="days-grid">
|
||||
<article id="today-section" class="day-panel">
|
||||
<div class="panel-head">
|
||||
<h2 class="day-title" id="today-title">Сегодня</h2>
|
||||
|
|
@ -31,6 +36,17 @@
|
|||
</section>
|
||||
</main>
|
||||
|
||||
<script src="/static/script.js?v=3"></script>
|
||||
<section id="view-week" class="week-view" hidden>
|
||||
<div class="week-toolbar">
|
||||
<button id="week-prev" class="nav-btn">← Назад</button>
|
||||
<div id="week-range" class="range-title"></div>
|
||||
<button id="week-next" class="nav-btn">Вперед →</button>
|
||||
</div>
|
||||
<div class="week-scroll">
|
||||
<div id="week-grid" class="week-grid"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="/static/script.js?v=5"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue