57 lines
2.6 KiB
HTML
57 lines
2.6 KiB
HTML
{{/* Shared shell for guest-facing pages: share, faq, rules, status, login,
|
|
install, cabinet. Each page calls "guest_shell_open" with a dict of
|
|
Title/BodyClass/Lang, writes its own content, then "guest_shell_close". */}}
|
|
{{define "guest_shell_open"}}<!doctype html>
|
|
<html lang="{{.Lang}}" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{.Title}}</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=JetBrains+Mono:wght@500;700&family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css" rel="stylesheet" referrerpolicy="no-referrer">
|
|
<link href="{{appURL "static/css/portal.css"}}" rel="stylesheet">
|
|
<link href="{{appURL "static/css/share.css"}}" rel="stylesheet">
|
|
</head>
|
|
<body class="share-app">
|
|
<div class="cyber-bg" aria-hidden="true"></div>
|
|
<div class="wrap">
|
|
{{end}}
|
|
|
|
{{define "guest_shell_close"}}
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
|
|
</body>
|
|
</html>
|
|
{{end}}
|
|
|
|
{{define "guest_flash"}}
|
|
{{if .OK}}<div class="alert alert-success d-flex align-items-center gap-2" role="alert"><i class="fa-solid fa-circle-check"></i><div>{{.OK}}</div></div>{{end}}
|
|
{{if .Error}}<div class="alert alert-danger d-flex align-items-center gap-2" role="alert"><i class="fa-solid fa-triangle-exclamation"></i><div>{{.Error}}</div></div>{{end}}
|
|
{{end}}
|
|
|
|
{{define "guest_lang_switch"}}
|
|
<div class="d-flex lang-switch">
|
|
<span class="lang-switch__label"><i class="fa-solid fa-globe"></i></span>
|
|
<a class="lang-switch__btn {{if eq2 (lang) "ru"}}active{{end}}" href="?{{.QS}}lang=ru">RU</a>
|
|
<a class="lang-switch__btn {{if eq2 (lang) "en"}}active{{end}}" href="?{{.QS}}lang=en">EN</a>
|
|
</div>
|
|
{{end}}
|
|
|
|
{{define "guest_subnav"}}
|
|
<div class="guest-subnav d-flex justify-content-center gap-3 flex-wrap">
|
|
<a href="{{appURL "faq"}}"><i class="fa-solid fa-circle-question"></i> {{t "faq_link_short"}}</a>
|
|
<a href="{{appURL "rules"}}"><i class="fa-solid fa-scale-balanced"></i> {{t "rules_link_short"}}</a>
|
|
<a href="{{appURL "status"}}"><i class="fa-solid fa-tower-broadcast"></i> {{t "status_link"}}</a>
|
|
</div>
|
|
{{end}}
|
|
|
|
{{define "guest_footer"}}
|
|
<div class="share-footer">
|
|
<span class="share-footer__line"></span>
|
|
<span class="share-footer__text">Amnezia VPN Share © {{year}}</span>
|
|
</div>
|
|
{{end}}
|