Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created November 14, 2019 18:29
Show Gist options
  • Save jongravois/735ecaf19e9eb1a2358e164f115f8a14 to your computer and use it in GitHub Desktop.
Save jongravois/735ecaf19e9eb1a2358e164f115f8a14 to your computer and use it in GitHub Desktop.
@extends('layouts.auth')
@section('content')
<div class="bg-blue-500 h-screen pt-24">
<div class="p-16 bg-white w-1/3 m-auto rounded">
<div class="mb-6">
<img alt="logo" src="/images/UAM_logo_color.png">
</div>
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="">
<label for="email"
class="tw-label">
{{ __('E-Mail Address') }}
</label>
<input id="email" type="email"
class="tw-input mb-4 @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
@error('email')
<span class="text-red-500 text-xs font-bold" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
<div class="mb-6">
<label for="password" class="tw-label">{{ __('Password') }}</label>
<div class="col-md-6">
<input id="password" type="password" class="tw-input @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">
@error('password')
<span class="text-red-500 text-xs font-bold" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>
<div class="mb-3">
<div class="">
<div class="form-check">
<input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>
<label class="tw-inline-label" for="remember">
{{ __('Remember Me') }}
</label>
</div>
</div>
</div>
<div class="mb-3">
<div class="flex justify-between align-content-center">
<button type="submit"
class="tw-button bg-blue-500 text-white hover:bg-blue-800">
{{ __('Login') }}
</button>
@if (Route::has('password.request'))
<a class="btn-link"
href="{{ route('password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
</div>
</div>
</form>
</div>
</div>
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment