Added auth layout and route for login.

This commit is contained in:
mikestefanello 2021-12-03 15:41:40 -05:00
parent 869fa82f14
commit fe0fb8c801
8 changed files with 124 additions and 32 deletions

24
views/pages/login.gohtml Normal file
View file

@ -0,0 +1,24 @@
{{define "content"}}
<form action="" class="">
<div class="field">
<label for="" class="label">Email</label>
<div class="control">
<input type="email" placeholder="e.g. bobsmith@gmail.com" class="input" required>
</div>
</div>
<div class="field">
<label for="" class="label">Password</label>
<div class="control">
<input type="password" placeholder="*******" class="input" required>
</div>
</div>
<div class="field is-grouped">
<p class="control">
<button class="button is-primary">Log in</button>
</p>
<p class="control">
<a href="{{call .Reverse "home"}}" class="button is-light">Cancel</a>
</p>
</div>
</form>
{{end}}