Skip to content
This repository has been archived by the owner on Jul 1, 2020. It is now read-only.

Commit

Permalink
Rifacimento pagina di login
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxelweb committed Mar 21, 2020
1 parent 0ffa7b6 commit e2908f8
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 49 deletions.
2 changes: 1 addition & 1 deletion app/Providers/UserServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public function updateRememberToken(Authenticatable $user, $token){
* @return User|Authenticatable|RedirectResponse
*/
public function retrieveByCredentials(array $credentials){

try {
if(key_exists('code', $credentials)){
$this->request = new Client([
Expand Down
7 changes: 7 additions & 0 deletions resources/css/theme-edit.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

.bg-login-image{
background-image: url("https://www.redroundrobin.site/images/favicon.png");
background-size: 250px;
background-repeat: no-repeat;
background-color: #C7C6D7;
}
94 changes: 51 additions & 43 deletions resources/views/auth/login.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,56 +3,64 @@
@section('content')
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card">
<div class="card-header">{{ __('Login') }} <i class="fa fa-home"></i> </div>
<div class="col-xl-10 col-lg-12 col-md-9">
<div class="card o-hidden border-0 shadow-lg my-5">
<div class="card-body p-0">
<div class="row">
<div class="col-lg-6">
<div class="p-5">
<div class="text-center">
<h1 class="h4 text-gray-900 mb-4">Accesso Webapp</h1>
</div>
<form class="user" method="POST" action="{{ route('login') }}">
@csrf

<div class="card-body">
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="form-group">
<input id="email" type="email"
class="form-control form-control-user @error('email') is-invalid @enderror"
name="email" value="{{ old('email') }}" required autocomplete="email" autofocus
placeholder="Indirizzo Email">
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>

<div class="form-group row">
<label for="email" class="col-md-4 col-form-label text-md-right">{{ __('E-Mail Address') }}</label>
<div class="form-group">
<input id="password" type="password"
class="form-control form-control-user @error('password') is-invalid @enderror"
name="password" required autocomplete="current-password"
placeholder="Password">

<div class="col-md-6">
<input id="email" type="email" class="form-control @error('email') is-invalid @enderror" name="email" value="{{ old('email') }}" required autocomplete="email" autofocus>
@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>

@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>

<div class="form-group row">
<label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password') }}</label>

<div class="col-md-6">
<input id="password" type="password" class="form-control @error('password') is-invalid @enderror" name="password" required autocomplete="current-password">

@error('password')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>
</div>

<div class="form-group row mb-0">
<div class="col-md-8 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Login') }}
</button>
<div class="form-group mb-0">
<button type="submit" class="btn btn-primary btn-user btn-block">
Accedi <i class="fas fa-sign-in-alt"></i>
</button>

@if (Route::has('password.request'))
<a class="btn btn-link" href="{{ route('password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
@if (Route::has('password.request'))
<a class="btn btn-link" href="{{ route('password.request') }}">
{{ __('Forgot Your Password?') }}
</a>
@endif
</div>
</form>
<hr>
<div class="text-center">
<!-- TODO Pagina per il supporto tecnico -->
<a class="small" href="#">Password dimenticata?</a>
</div>
</div>
</div>
</form>
<div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
</div>
</div>
</div>
</div>
Expand Down
11 changes: 6 additions & 5 deletions resources/views/layouts/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,28 @@
<link href="{{ asset('css/theme.css') }}" rel="stylesheet">

</head>
<body id="page-top">
<body id="page-top" @guest class="bg-gradient-secondary" @endguest>
<div id="app">
<div id="wrapper">
@auth
@include('layouts.sidebar')
@endauth
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
@auth
@include('layouts.topbar')
@endauth

@include('layouts.topbar')
<!-- Begin Page Content -->
<div class="container-fluid">
@endauth
@yield('content')
@auth
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
@include('layouts.footer')
@endauth
</div>
<!-- End of Content Wrapper -->
</div>
Expand Down

0 comments on commit e2908f8

Please sign in to comment.