(add login form)

This commit is contained in:
Adam Wathan
2017-05-02 15:05:05 -04:00
parent 0bc8954774
commit 01602b46d4
5 changed files with 46 additions and 1 deletions

View File

@@ -29,7 +29,7 @@
@text-brand: hsv(@hue-brand-primary, 100%, 86%);
@text-brand-soft: hsv(@hue-brand-primary, 85%, 86%);
@text-brand-muted: hsv(@hue-brand-primary, 65%, 86%);
@text-danger: @color-danger;
small {
font-size: @font-size-sm;

View File

@@ -21,6 +21,7 @@
.text-brand { color: @text-brand; }
.text-brand-soft { color: @text-brand-soft; }
.text-brand-muted { color: @text-brand-muted; }
.text-danger { color: @text-danger; }
.text-em { font-style: italic; }

View File

@@ -0,0 +1,38 @@
@extends('layouts.master')
@section('body')
<div class="container-fluid bg-soft">
<div class="full-height flex-center">
<div class="constrain constrain-sm flex-fit">
<form class="card p-xs-6" action="/login" method="POST">
{{ csrf_field() }}
<h1 class="text-xl wt-light text-center m-xs-b-6">Log in to your account</h1>
<div class="form-group">
<label class="form-label pseudo-hidden">Email address</label>
<div class="input-group">
<span class="input-group-addon">
@icon('user', 'text-dark-muted text-xs')
</span>
<input type="email" name="email" class="form-control" placeholder="Email address" value="{{ old('email') }}">
</div>
</div>
<div class="form-group">
<label class="form-label pseudo-hidden">Password</label>
<div class="input-group">
<span class="input-group-addon">
@icon('lock-closed', 'text-dark-muted text-xs')
</span>
<input type="password" name="password" class="form-control" placeholder="Password">
</div>
</div>
<button type="submit" class="btn btn-block btn-primary">Log in</button>
@if($errors->any())
<p class="text-center text-danger m-xs-t-2">
These credentials do not match our records.
</p>
@endif
</form>
</div>
</div>
</div>
@endsection