freetravel/public/index.html

107 lines
5.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Стажировки</title>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<header>
<h1>Стажировки в клиентском сервисе</h1>
<p class="lead">
Бесплатные и полностью оплачиваемые стажировки по миру — на русском или без обязательного иностранного
языка. Условия находит ИИ-агент: перед подачей проверьте их на сайте программы.
</p>
</header>
<section id="account" class="account" aria-label="Вход">
<p id="account-status" role="status"></p>
<div class="row">
<button id="sign-in-open" type="button" hidden>Войти</button>
<button id="sign-out" type="button" hidden>Выйти</button>
</div>
<form id="sign-in-form" hidden>
<label>
<span class="field-label">Пароль</span>
<input id="password" type="password" autocomplete="current-password" aria-describedby="password-hint password-error" />
<small id="password-error" class="field-error" role="alert"></small>
<small id="password-hint" class="muted">Пароль владельца сервиса. Браузер запомнит вход на год.</small>
</label>
<button id="sign-in-submit" type="submit">Войти</button>
</form>
</section>
<p id="mock-note" class="note" role="status" hidden>
<span id="mock-note-text">Настоящий поиск ещё не включён.</span>
</p>
<section class="controls" aria-label="Поиск и фильтры">
<form id="search-form">
<button id="search-button" type="submit">Найти новые</button>
<span id="search-state" role="status"></span>
<small id="search-locked" class="muted" hidden></small>
</form>
<p id="run-summary" class="muted"></p>
<p id="run-next" class="muted"></p>
<div class="filters">
<label>
<span class="field-label">Страна</span>
<select id="filter-country" aria-describedby="country-hint"><option value="">Все</option></select>
<small id="country-hint" class="muted">Где проходит стажировка</small>
</label>
<label>
<span class="field-label">Язык</span>
<select id="filter-language" aria-describedby="language-hint">
<option value="">Любой</option>
<option value="russian">Русский</option>
<option value="not_required">Язык не требуется</option>
</select>
<small id="language-hint" class="muted">Оставьте стажировки на русском или без требования к языку</small>
</label>
</div>
</section>
<section class="settings" aria-label="Уведомления">
<h2>Уведомления в Телеграм</h2>
<p id="settings-locked" class="muted" role="status" hidden></p>
<div id="settings-body" hidden>
<p id="telegram-status" class="status" role="status"></p>
<p id="telegram-note" class="muted"></p>
<p id="bot-setup" class="notice" role="note" hidden></p>
<details id="telegram-details" class="muted" hidden>
<summary>Подробнее</summary>
<p id="telegram-detail"></p>
</details>
<p id="telegram-code-hint" class="muted"></p>
<p id="settings-hint" class="muted"></p>
<div id="link-info" hidden>
<p class="link-line"><span class="field-label">Бот:</span> <strong id="bot-name"></strong></p>
<p class="link-line"><span class="field-label">Код привязки:</span> <code id="link-code"></code></p>
<p class="muted">Откройте бота, нажмите Start и отправьте код.</p>
</div>
<p id="bot-unavailable" class="notice" role="status" hidden></p>
<div class="row">
<button id="link-button" type="button">Привязать Телеграм</button>
<a id="link-url" href="#" target="_blank" rel="noopener noreferrer" hidden>Открыть бота</a>
<button id="mock-confirm" type="button" aria-describedby="telegram-action-hint" hidden>Подтвердить привязку</button>
<button id="unlink-button" type="button" aria-describedby="telegram-action-hint" hidden>Отвязать</button>
</div>
<p id="telegram-action-hint" class="muted"></p>
<label class="inline enabled-field">
<input id="enabled" type="checkbox" aria-describedby="enabled-hint" />
<span>Искать раз в сутки и присылать новое</span>
</label>
<small id="enabled-hint" class="muted"></small>
<p id="settings-last-run" class="muted" role="status"></p>
<p id="settings-error" class="muted" role="alert"></p>
</div>
</section>
<p id="empty" class="muted" hidden></p>
<ul id="list" class="cards"></ul>
<script type="module" src="/app.js"></script>
</body>
</html>