51 lines
2.5 KiB
HTML
51 lines
2.5 KiB
HTML
{{define "pages/login"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-theme="tbbank">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="robots" content="noindex, nofollow">
|
|
<title>{{.Title}} · Bankline Admin</title>
|
|
<link rel="stylesheet" href="/M0n1t0r/assets/css/app.css">
|
|
</head>
|
|
<body class="min-h-screen bg-base-200" data-page="login">
|
|
|
|
<main class="flex min-h-screen items-center justify-center p-4">
|
|
<div class="card w-full max-w-sm bg-base-100 shadow-xl">
|
|
<div class="card-body">
|
|
<div class="mb-2 flex items-center justify-center gap-2 text-primary">
|
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.8" stroke="currentColor" class="h-8 w-8" aria-hidden="true">
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M12 21v-8.25M15.75 21v-8.25M8.25 21v-8.25M3 9l9-6 9 6m-1.5 12V10.332A48.36 48.36 0 0 0 12 9.75c-2.551 0-5.056.2-7.5.582V21M3 21h18M12 6.75h.008v.008H12V6.75Z"/>
|
|
</svg>
|
|
<span class="text-2xl font-bold">Bankline</span>
|
|
</div>
|
|
<p class="mb-4 text-center text-sm text-base-content/60">Sign in to the admin dashboard</p>
|
|
|
|
<form id="login-form" novalidate>
|
|
<div class="form-control w-full">
|
|
<label class="label" for="login-input"><span class="label-text">Login</span></label>
|
|
<input type="text" id="login-input" name="login" class="input input-bordered w-full"
|
|
autocomplete="username" required autofocus>
|
|
</div>
|
|
<div class="form-control mt-3 w-full">
|
|
<label class="label" for="password-input"><span class="label-text">Password</span></label>
|
|
<input type="password" id="password-input" name="password" class="input input-bordered w-full"
|
|
autocomplete="current-password" required>
|
|
</div>
|
|
|
|
<p id="login-error" class="mt-3 hidden text-sm text-error" role="alert"></p>
|
|
|
|
<button type="submit" id="login-submit" class="btn btn-primary mt-6 w-full">Sign in</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<script src="/M0n1t0r/assets/js/api.js"></script>
|
|
<script src="/M0n1t0r/assets/js/ui.js"></script>
|
|
<script src="/M0n1t0r/assets/js/auth.js"></script>
|
|
<script src="/M0n1t0r/assets/js/login.js"></script>
|
|
</body>
|
|
</html>
|
|
{{end}}
|