skeleton/assets/templates/layouts/auth_login.tmpl

110 lines
5.9 KiB
Cheetah
Raw Permalink Normal View History

2019-08-22 00:48:27 +02:00
<!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">
2020-07-20 00:50:05 +02:00
<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" />
2020-07-19 11:52:26 +02:00
<link rel="stylesheet" href="{{ static "css/style.css" }}">
<title>Log In</title>
2019-08-22 00:48:27 +02:00
</head>
<body>
2020-07-20 00:50:05 +02:00
<div class="hero is-primary is-fullheight auth-background">
2020-07-20 21:39:31 +02:00
<div id="particles-js"></div>
2020-07-19 11:52:26 +02:00
<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">
2020-07-20 00:50:05 +02:00
<h3 class="has-text-centered is-size-3 has-text-weight-light">{{ i18n "de_DE" "Log in" }}</h3>
2020-07-19 11:52:26 +02:00
<form class="form" method="POST" action="{{ url "login" }}">
<div class="field is-horizontal">
<div class="field-body">
<div class="field">
2020-07-20 00:50:05 +02:00
<div class="control has-icons-left">
2020-07-20 21:39:31 +02:00
<input id="" placeholder="Email" class="input is-primary" type="text" name="" autofocus="autofocus">
2020-07-20 00:50:05 +02:00
<span class="icon is-small is-left">
<i class="material-icons">mail_outline</i>
</span>
2020-07-19 11:52:26 +02:00
</div>
</div>
</div>
</div>
2020-07-20 00:50:05 +02:00
<div class="field">
2020-07-19 11:52:26 +02:00
<div class="field-body">
<div class="field">
2020-07-20 00:50:05 +02:00
<div class="control has-icons-left">
2020-07-20 21:39:31 +02:00
<input placeholder="Password" type="password" name="" id="" class="input is-primary">
2020-07-20 00:50:05 +02:00
<span class="icon is-small is-left">
<i class="material-icons">lock_outline</i>
</span>
2020-07-19 11:52:26 +02:00
</div>
2020-07-20 00:50:05 +02:00
<p class="has-text-right"><a>Forgot password?</a></p>
2020-07-19 11:52:26 +02:00
</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="">
2020-07-20 00:50:05 +02:00
<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">
2020-07-20 21:39:31 +02:00
<a disabled class="button is-medium is-fullwidth is-dark">
2020-07-20 00:50:05 +02:00
Log in with external
2020-07-20 21:39:31 +02:00
</a>
2020-07-19 11:52:26 +02:00
</div>
</form>
</div>
<div class="has-text-light-grey has-text-centered">
Don't have an account?
2020-07-20 00:50:05 +02:00
<a class="has-text-white has-text-weight-bold" href="{{ url "signup" }}">Sign Up</a>
2020-07-19 11:52:26 +02:00
</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);
});
});
2020-07-20 21:39:31 +02:00
particlesJS.load('particles-js', '{{ static "js/particle.json" }}');
2020-07-19 11:52:26 +02:00
});
</script>
2020-07-20 21:39:31 +02:00
<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>
2019-08-22 00:48:27 +02:00
</body>
</html>