Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel/UI with CoreUI theme #6

Merged
merged 1 commit into from
Oct 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions resources/stubs/ui/coreui/css/coreui.min.css

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions resources/stubs/ui/coreui/icons/brand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,666 changes: 1,666 additions & 0 deletions resources/stubs/ui/coreui/icons/coreui.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions resources/stubs/ui/coreui/js/coreui.bundle.min.js

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions resources/stubs/ui/coreui/views/auth/login.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
@extends('layouts.guest')

@section('content')
<div class="col-lg-8">
<div class="card-group d-block d-md-flex row">
<div class="card col-md-7 p-4 mb-0">
<div class="card-body">
<h1>{{ __('Login') }}</h1>
<form action="{{ route('login') }}" method="POST">
@csrf
<div class="input-group mb-3"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-envelope-open') }}"></use>
</svg></span>
<input class="form-control @error('email') is-invalid @enderror" type="text" name="email"
placeholder="{{ __('Email') }}" required autofocus>
@error('email')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="input-group mb-4"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-lock-locked') }}"></use>
</svg></span>
<input class="form-control @error('password') is-invalid @enderror" type="password"
name="password"
placeholder="{{ __('Password') }}" required>
@error('password')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="row">
<div class="col-6">
<button class="btn btn-primary px-4" type="submit">{{ __('Login') }}</button>
</div>
@if (Route::has('password.request'))
<div class="col-6 text-end">
<a href="{{ route('password.request') }}" class="btn btn-link px-0"
type="button">{{ __('Forgot Your Password?') }}</a>
</div>
@endif
</div>
</form>
</div>
</div>
<div class="card col-md-5 text-white bg-primary py-5">
<div class="card-body text-center">
<div>
<h2>{{ __('Sign up') }}</h2>
<a href="{{ route('register') }}"
class="btn btn-lg btn-outline-light mt-3">{{ __('Register') }}</a>
</div>
</div>
</div>
</div>
</div>
@endsection
40 changes: 40 additions & 0 deletions resources/stubs/ui/coreui/views/auth/passwords/confirm.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@extends('layouts.guest')

@section('content')
<div class="col-md-6">
<div class="card mb-4 mx-4">
<div class="card-body p-4">
<h1>{{ __('Please confirm your password before continuing.') }}</h1>

<form method="POST" action="{{ route('password.confirm') }}">
@csrf

<div class="input-group mb-3"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-lock-locked') }}"></use>
</svg></span>
<input class="form-control @error('password') is-invalid @enderror" type="password"
placeholder="{{ __('Password') }}">
@error('password')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<div class="row">
<div class="col-6">
<button class="btn btn-primary px-4" type="submit">{{ __('Confirm Password') }}</button>
</div>
@if (Route::has('password.request'))
<div class="col-6 text-end">
<a href="{{ route('password.request') }}" class="btn btn-link px-0"
type="button">{{ __('Forgot Your Password?') }}</a>
</div>
@endif
</div>
</form>

</div>
</div>
</div>
@endsection
29 changes: 29 additions & 0 deletions resources/stubs/ui/coreui/views/auth/passwords/email.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
@extends('layouts.guest')

@section('content')
<div class="col-md-6">
<div class="card mb-4 mx-4">
<div class="card-body p-4">
<h1>{{ __('Reset Password') }}</h1>
<form action="{{ route('password.email') }}" method="POST">
@csrf

<div class="input-group mb-3"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-envelope-open') }}"></use>
</svg></span>
<input class="form-control @error('email') is-invalid @enderror" type="text"
placeholder="{{ __('Email') }}">
@error('email')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>
<button class="btn btn-block btn-success"
type="submit">{{ __('Send Password Reset Link') }}</button>
</form>
</div>
</div>
</div>
@endsection
60 changes: 60 additions & 0 deletions resources/stubs/ui/coreui/views/auth/passwords/reset.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@extends('layouts.guest')

@section('content')
<div class="col-md-6">
<div class="card mb-4 mx-4">
<div class="card-body p-4">
<h1>{{ __('Reset Password') }}</h1>

<form action="{{ route('password.update') }}" method="POST">
@csrf

<div class="input-group mb-3"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-envelope-open') }}"></use>
</svg></span>
<input class="form-control @error('email') is-invalid @enderror" type="text"
placeholder="{{ __('Email') }}">
@error('email')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>

<div class="input-group mb-4"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-lock-locked') }}"></use>
</svg></span>
<input class="form-control @error('password') is-invalid @enderror" type="password"
name="password"
placeholder="{{ __('Password') }}">
@error('password')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>

<div class="input-group mb-4"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-lock-locked') }}"></use>
</svg></span>
<input class="form-control @error('password_confirmation') is-invalid @enderror" type="password"
name="password"
placeholder="{{ __('Confirm Password') }}">
@error('password_confirmation')
<div class="invalid-feedback">
{{ $message }}
</div>
@enderror
</div>

<button class="btn btn-block btn-success"
type="submit">{{ __('Reset Password') }}</button>
</form>

</div>
</div>
</div>
@endsection
67 changes: 67 additions & 0 deletions resources/stubs/ui/coreui/views/auth/register.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
@extends('layouts.guest')

@section('content')
<div class="col-md-6">
<div class="card mb-4 mx-4">
<div class="card-body p-4">
<h1>Register</h1>

<form method="POST" action="{{ route('register') }}">
@csrf

<div class="input-group mb-3"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-user') }}"></use>
</svg></span>
<input class="form-control" type="text" name="name" placeholder="{{ __('Name') }}" required
autocomplete="name" autofocus>
@error('name')
<span class="invalid-feedback">
{{ $message }}
</span>
@enderror
</div>

<div class="input-group mb-3"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-envelope-open') }}"></use>
</svg></span>
<input class="form-control" type="text" name="email" placeholder="Email" required
autocomplete="email">
@error('email')
<span class="invalid-feedback">
{{ $message }}
</span>
@enderror
</div>

<div class="input-group mb-3"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-lock-locked') }}"></use>
</svg></span>
<input class="form-control @error('password') is-invalid @enderror" type="password"
name="password" placeholder="Password" required autocomplete="new-password">
@error('password')
<span class="invalid-feedback">
{{ $message }}
</span>
@enderror
</div>

<div class="input-group mb-4"><span class="input-group-text">
<svg class="icon">
<use xlink:href="{{ asset('icons/coreui.svg#cil-lock-locked') }}"></use>
</svg></span>
<input class="form-control @error('password_confirmation') is-invalid @enderror" type="password"
name="password_confirmation" placeholder="{{ __('Confirm Password') }}" required
autocomplete="new-password">
</div>

<button class="btn btn-block btn-success" type="submit">{{ __('Register') }}</button>

</form>
</div>
</div>
</div>

@endsection
32 changes: 32 additions & 0 deletions resources/stubs/ui/coreui/views/auth/verify.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@extends('layouts.guest')

@section('content')
<div class="col-md-6">
<div class="card mb-4 mx-4">
<div class="card-body p-4">
<h1>{{ __('Please confirm your password before continuing.') }}</h1>

@if (session('resent'))
<div class="alert alert-success" role="alert">
{{ __('A fresh verification link has been sent to your email address.') }}
</div>
@endif

<p class="text-medium-emphasis">{{ __('Before proceeding, please check your email for a verification link.') }}</p>
<p class="text-medium-emphasis">{{ __('If you did not receive the email') }},</p>

<form method="POST" action="{{ route('verification.resend') }}">
@csrf

<div class="row">
<div class="col-12">
<button class="btn btn-primary px-4"
type="submit">{{ __('click here to request another') }}</button>
</div>
</div>
</form>

</div>
</div>
</div>
@endsection
12 changes: 12 additions & 0 deletions resources/stubs/ui/coreui/views/home.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@extends('layouts.app')

@section('content')
<div class="card mb-4">
<div class="card-header">
{{ __('Dashboard') }}
</div>
<div class="card-body">
{{ __('You are logged in!') }}
</div>
</div>
@endsection
Loading