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="/admin/static/style.css?v=3">
|
||||
<link rel="stylesheet" href="/admin/static/style.css?v=5">
|
||||
</head>
|
||||
<body>
|
||||
<div class="app-shell">
|
||||
|
|
@ -15,7 +15,6 @@
|
|||
<p class="hero-copy">Планируйте задачи и занятия на несколько недель вперед, меняйте серии целиком и переносите встречи прямо мышкой по сетке времени.</p>
|
||||
</div>
|
||||
<div class="hero-actions">
|
||||
<button id="today-btn" class="btn btn-secondary">Текущая неделя</button>
|
||||
<button id="add-task-btn" class="btn btn-secondary">Новая задача</button>
|
||||
<button id="add-event-btn" class="btn btn-primary">Новое занятие</button>
|
||||
</div>
|
||||
|
|
@ -29,11 +28,7 @@
|
|||
<div id="week-range" class="range-title"></div>
|
||||
</div>
|
||||
<button id="next-week" class="nav-btn">Вперед →</button>
|
||||
</div>
|
||||
<div class="legend">
|
||||
<span class="legend-chip task-chip">Задачи</span>
|
||||
<span class="legend-chip event-chip">Занятия</span>
|
||||
<span class="legend-chip recurring-chip">Цикличные</span>
|
||||
<button id="today-btn" class="btn btn-secondary">Текущая неделя</button>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
|
@ -55,6 +50,6 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/admin/static/script.js?v=3"></script>
|
||||
<script src="/admin/static/script.js?v=5"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue