2026-06-12 18:09:03 +08:00

273 lines
11 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"
/>
<title>Host Center</title>
<link rel="stylesheet" href="../../common/theme.css" />
<link rel="stylesheet" href="./style.css" />
</head>
<body>
<div
class="host-center"
aria-label="Host Center"
data-loading="false"
data-view="join-agency"
>
<div class="hero-bg" aria-hidden="true"></div>
<nav class="title-bar">
<button
class="back-button"
id="backButton"
type="button"
aria-label="Back"
data-i18n-aria="host_center.back"
>
<svg viewBox="0 0 32 32" aria-hidden="true">
<path d="M20 8 12 16l8 8" />
</svg>
</button>
<h1 data-i18n="host_center.title">Host Center</h1>
<div class="language-switcher">
<button
class="language-button"
type="button"
aria-label="Change language"
aria-expanded="false"
data-language-toggle
data-current-lang
data-i18n-aria="host_center.change_language"
>
EN
</button>
<div class="language-menu" data-language-menu hidden>
<button type="button" data-lang-option="en">EN</button>
<button type="button" data-lang-option="ar">AR</button>
<button type="button" data-lang-option="tr">TR</button>
<button type="button" data-lang-option="es">ES</button>
</div>
</div>
</nav>
<main class="content">
<section class="card profile-card">
<div class="avatar-shell">
<img
class="avatar-image"
id="profileAvatar"
alt=""
hidden
/>
<div
class="avatar-fallback"
id="profileAvatarFallback"
aria-hidden="true"
>
N
</div>
</div>
<div class="profile-copy">
<div
class="name"
id="profileName"
data-i18n="host_center.profile_name"
>
Namenamename
</div>
<div
class="meta"
id="profileUID"
data-i18n="host_center.uid"
>
UID: 12345678
</div>
<button class="agency" type="button" hidden>
<span>Agency</span>
</button>
</div>
<button
class="message-button"
id="messageButton"
type="button"
aria-label="Open messages"
data-i18n-aria="host_center.open_messages"
>
<svg viewBox="0 0 28 28" aria-hidden="true">
<path
d="M5 8.5A3.5 3.5 0 0 1 8.5 5h11A3.5 3.5 0 0 1 23 8.5v7A3.5 3.5 0 0 1 19.5 19H12l-5 4v-4.5A3.5 3.5 0 0 1 5 15.3Z"
/>
<path d="M9 10h10M9 14h6" />
</svg>
<span
class="message-unread-dot"
id="messageUnreadDot"
hidden
></span>
</button>
</section>
<section
class="join-agency-dialog-static"
aria-label="Join Agency"
data-i18n-aria="host_center.join_title"
>
<div class="join-agency-head">
<h2 data-i18n="host_center.join_title">Join Agency</h2>
</div>
<div class="join-agency-modal-body">
<form
class="join-agency-search-form"
id="joinAgencyForm"
>
<label class="join-agency-field">
<span data-i18n="host_center.agency_id"
>Agency ID</span
>
<div class="join-agency-search-control">
<input
id="agencySearchInput"
type="text"
inputmode="numeric"
autocomplete="off"
placeholder="Enter agency ID"
data-i18n-placeholder="host_center.enter_agency_id"
/>
<button
class="join-agency-search-button"
id="agencySearchButton"
type="submit"
data-i18n="host_center.search"
>
Search
</button>
</div>
</label>
</form>
<div
class="join-agency-status"
id="joinAgencyStatus"
role="status"
hidden
></div>
<section
class="agency-list"
id="agencyList"
aria-label="Agency list"
data-i18n-aria="host_center.agency_list"
>
<div
class="agency-list-empty"
id="agencyListEmpty"
data-i18n="host_center.loading_agencies"
>
Loading agencies...
</div>
</section>
</div>
</section>
</main>
<div class="home-indicator" aria-hidden="true"></div>
<div
class="join-agency-modal"
id="joinConfirmModal"
hidden
aria-hidden="true"
>
<button
class="join-agency-backdrop"
id="joinConfirmBackdrop"
type="button"
aria-label="Cancel"
data-i18n-aria="host_center.cancel"
></button>
<section
class="join-confirm-dialog"
role="dialog"
aria-modal="true"
aria-labelledby="joinConfirmTitle"
>
<h2
id="joinConfirmTitle"
data-i18n="host_center.join_confirm_title"
>
Join Agency
</h2>
<p id="joinConfirmMessage">
Are you sure you want to join this agency?
</p>
<div class="join-confirm-actions">
<button
class="join-confirm-cancel"
id="joinConfirmCancelButton"
type="button"
data-i18n="host_center.cancel"
>
Cancel
</button>
<button
class="join-confirm-submit"
id="joinConfirmSubmitButton"
type="button"
data-i18n="host_center.join"
>
Join
</button>
</div>
</section>
</div>
<div
class="message-modal"
id="messageModal"
hidden
aria-hidden="true"
>
<button
class="modal-backdrop"
id="messageBackdrop"
type="button"
aria-label="Close"
data-i18n-aria="host_center.close"
></button>
<section
class="message-dialog"
role="dialog"
aria-modal="true"
aria-labelledby="messageTitle"
>
<div class="sheet-head">
<h2 id="messageTitle" data-i18n="host_center.messages">
Messages
</h2>
<button
class="sheet-close"
id="messageCloseButton"
type="button"
aria-label="Close"
data-i18n-aria="host_center.close"
>
&times;
</button>
</div>
<div class="message-list" id="messageList"></div>
<div class="sheet-empty" id="messageEmpty" hidden></div>
</section>
</div>
</div>
<script src="../../common/api.js"></script>
<script src="../../common/toast.js"></script>
<script src="../../common/params.js"></script>
<script src="../../common/jsbridge.js"></script>
<script src="../../common/i18n.js"></script>
<script src="./script.js"></script>
</body>
</html>