All checks were successful
CI / lint-and-test (push) Successful in 15s
- Introduced a new function `applyThemeParamsToCss` to map Telegram theme parameters to CSS variables, improving theme customization. - Updated the `applyTheme` function to utilize the new theme parameters and set background/header colors accordingly. - Added a favicon to the project by linking `favicon.png` in `index.html`. - Modified CSS for the light theme to use CSS variables for better flexibility and maintainability. - Enhanced styling for light theme elements, including container borders and calendar sticky behavior.
34 lines
1.3 KiB
HTML
34 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||
<link rel="icon" href="favicon.png" type="image/png">
|
||
<title>Календарь дежурств</title>
|
||
<link rel="stylesheet" href="style.css">
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<div class="calendar-sticky" id="calendarSticky">
|
||
<header class="header">
|
||
<button type="button" class="nav" id="prevMonth" aria-label="Предыдущий месяц">‹</button>
|
||
<h1 class="title" id="monthTitle"></h1>
|
||
<button type="button" class="nav" id="nextMonth" aria-label="Следующий месяц">›</button>
|
||
</header>
|
||
<div class="weekdays">
|
||
<span>Пн</span><span>Вт</span><span>Ср</span><span>Чт</span><span>Пт</span><span>Сб</span><span>Вс</span>
|
||
</div>
|
||
<div class="calendar" id="calendar"></div>
|
||
</div>
|
||
<div class="duty-list" id="dutyList"></div>
|
||
<div class="loading" id="loading">Загрузка…</div>
|
||
<div class="error" id="error" hidden></div>
|
||
<div class="access-denied" id="accessDenied" hidden>
|
||
<p>Доступ запрещён.</p>
|
||
</div>
|
||
</div>
|
||
<script src="https://telegram.org/js/telegram-web-app.js"></script>
|
||
<script src="app.js"></script>
|
||
</body>
|
||
</html>
|