- Реализованы маршруты для обслуживания PWA файлов: manifest.json, sw.js и browserconfig.xml - Добавлены мета-теги и иконки для PWA в HTML страницах - Внедрена регистрация сервисного работника для кэширования и оффлайн-доступа - Обновлены страницы входа, регистрации, профиля и заметок для поддержки PWA
91 lines
3.2 KiB
HTML
91 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<title>Регистрация - NoteJS</title>
|
||
|
||
<!-- PWA Meta Tags -->
|
||
<meta name="description" content="NoteJS - современная система заметок с поддержкой Markdown, изображений, тегов и календаря" />
|
||
<meta name="theme-color" content="#007bff" />
|
||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||
<meta name="apple-mobile-web-app-title" content="NoteJS" />
|
||
<meta name="msapplication-TileColor" content="#007bff" />
|
||
|
||
<!-- Icons -->
|
||
<link rel="icon" type="image/svg+xml" href="/icon.svg" />
|
||
<link rel="icon" type="image/png" sizes="32x32" href="/icons/icon-32x32.png" />
|
||
<link rel="icon" type="image/png" sizes="16x16" href="/icons/icon-16x16.png" />
|
||
<link rel="apple-touch-icon" sizes="180x180" href="/icons/icon-192x192.png" />
|
||
<link rel="mask-icon" href="/icon.svg" color="#007bff" />
|
||
|
||
<!-- Manifest -->
|
||
<link rel="manifest" href="/manifest.json" />
|
||
|
||
<!-- Styles -->
|
||
<link rel="stylesheet" href="/style.css" />
|
||
|
||
<!-- Scripts -->
|
||
<script src="https://cdnjs.cloudflare.com/ajax/libs/iconify/2.0.0/iconify.min.js"></script>
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<header>
|
||
<span class="iconify" data-icon="mdi:account-plus"></span> Регистрация
|
||
</header>
|
||
<div class="login-form">
|
||
<form id="registerForm">
|
||
<div class="form-group">
|
||
<label for="username">Логин:</label>
|
||
<input
|
||
type="text"
|
||
id="username"
|
||
name="username"
|
||
required
|
||
placeholder="Минимум 3 символа"
|
||
minlength="3"
|
||
/>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="password">Пароль:</label>
|
||
<input
|
||
type="password"
|
||
id="password"
|
||
name="password"
|
||
required
|
||
placeholder="Минимум 6 символов"
|
||
minlength="6"
|
||
/>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="confirmPassword">Подтвердите пароль:</label>
|
||
<input
|
||
type="password"
|
||
id="confirmPassword"
|
||
name="confirmPassword"
|
||
required
|
||
placeholder="Введите пароль еще раз"
|
||
minlength="6"
|
||
/>
|
||
</div>
|
||
<button type="submit" class="btnSave">Зарегистрироваться</button>
|
||
</form>
|
||
<div
|
||
id="errorMessage"
|
||
class="error-message"
|
||
style="display: none"
|
||
></div>
|
||
<p class="auth-link">Уже есть аккаунт? <a href="/">Войдите</a></p>
|
||
</div>
|
||
</div>
|
||
<div class="footer">
|
||
<p>Создатель: <span>Fovway</span></p>
|
||
</div>
|
||
<script src="/register.js"></script>
|
||
|
||
<!-- PWA Script -->
|
||
<script src="/pwa.js"></script>
|
||
</body>
|
||
</html>
|