Files
panel-vpn/web/templates/login.html
T

35 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{.Title}} · VPN Panel</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=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/static/css/app.css">
</head>
<body class="page-login">
<div class="home-bg" aria-hidden="true"></div>
<main class="login-wrap">
<a class="brand brand-center" href="/">VPN Panel</a>
<form class="login-form" method="POST" action="/login" autocomplete="on">
<h1>Вход в админку</h1>
<p class="muted">Используйте данные из <code>.env</code></p>
{{if .Error}}
<div class="alert">{{.Error}}</div>
{{end}}
<label>
Email
<input type="email" name="email" required value="{{.Email}}" placeholder="admin@panel.local" autofocus>
</label>
<label>
Пароль
<input type="password" name="password" required placeholder="••••••••">
</label>
<button class="btn btn-primary btn-block" type="submit">Войти</button>
</form>
</main>
</body>
</html>