skeleton/assets/templates/layouts/auth_login.tmpl

110 lines
No EOL
5.9 KiB
Cheetah

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.9.0/css/bulma.min.css"
integrity="sha256-aPeK/N8IHpHsvPBCf49iVKMdusfobKo2oxF8lRruWJg=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/material-design-icons/3.0.1/iconfont/material-icons.min.css" integrity="sha512-mRuH7OxetZB1XiSaKZ2fxENKgxVvx3ffpzX0FUcaP6GBqAuqOLc8YiC/3EVTUVt5p5mIRT5D9i4LitZUQKWNCg==" crossorigin="anonymous" />
<link rel="stylesheet" href="{{ static "css/style.css" }}">
<title>Log In</title>
</head>
<body>
<div class="hero is-primary is-fullheight auth-background">
<div id="particles-js"></div>
<div class="hero-body">
<div class="container">
<div class="columns">
<div
class="column is-one-third-desktop is-offset-one-third-desktop is-half-tablet is-offset-one-quarter-tablet">
{{- range $i, $error := .Errors }}
<div class="notification is-warning">
<button class="delete"></button>
{{ $error }}
</div>
{{- end }}
<div class="content box">
<h3 class="has-text-centered is-size-3 has-text-weight-light">{{ i18n "de_DE" "Log in" }}</h3>
<form class="form" method="POST" action="{{ url "login" }}">
<div class="field is-horizontal">
<div class="field-body">
<div class="field">
<div class="control has-icons-left">
<input id="" placeholder="Email" class="input is-primary" type="text" name="" autofocus="autofocus">
<span class="icon is-small is-left">
<i class="material-icons">mail_outline</i>
</span>
</div>
</div>
</div>
</div>
<div class="field">
<div class="field-body">
<div class="field">
<div class="control has-icons-left">
<input placeholder="Password" type="password" name="" id="" class="input is-primary">
<span class="icon is-small is-left">
<i class="material-icons">lock_outline</i>
</span>
</div>
<p class="has-text-right"><a>Forgot password?</a></p>
</div>
</div>
</div>
{{ .csrf_token }}
<input type="hidden" name="client_id" value="">
<input type="hidden" name="redirect_uri" value="">
<input type="hidden" name="scope" value="">
<input type="hidden" name="state" value="">
<input type="hidden" name="response_type" value="">
<input type="hidden" name="duration" value="">
<input type="hidden" name="csrf_token" value="">
<div class="field">
<button class="button is-medium is-fullwidth is-primary" value="authorize"
type="submit">
Log in
</button>
</div>
<div class="seperate-header">
<p class="has-text-centered">Or</p>
</div>
<div class="field">
<a disabled class="button is-medium is-fullwidth is-dark">
Log in with external
</a>
</div>
</form>
</div>
<div class="has-text-light-grey has-text-centered">
Don't have an account?
<a class="has-text-white has-text-weight-bold" href="{{ url "signup" }}">Sign Up</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
(document.querySelectorAll('.notification .delete') || []).forEach(($delete) => {
$notification = $delete.parentNode;
$delete.addEventListener('click', () => {
$notification.parentNode.removeChild($notification);
});
});
particlesJS.load('particles-js', '{{ static "js/particle.json" }}');
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/particles.js/2.0.0/particles.min.js" integrity="sha512-Kef5sc7gfTacR7TZKelcrRs15ipf7+t+n7Zh6mKNJbmW+/RRdCW9nwfLn4YX0s2nO6Kv5Y2ChqgIakaC6PW09A==" crossorigin="anonymous"></script>
</body>
</html>