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

Commit

Permalink
Sistemato il login, il tfalogin e la dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxelweb committed Mar 21, 2020
1 parent e2908f8 commit 0984f7c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 45 deletions.
5 changes: 5 additions & 0 deletions resources/css/theme-edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
background-repeat: no-repeat;
background-color: #C7C6D7;
}

.form-codice-tfa{
text-align: center;
font-size: 1.1rem !important;
}
62 changes: 32 additions & 30 deletions resources/views/auth/tfaLogin.blade.php
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
@extends('layouts.app')
<!--TODO pagina tfa -->
@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="card-body">
<form method="POST" action="{{ route('login') }}">
@csrf

<div class="form-group row">
<label for="code" class="col-md-4 col-form-label text-md-right">Codice 2FA</label>

<div class="col-md-6">
<input id="code" type="text" class="form-control @error('email') is-invalid @enderror" name="code">

@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
<div class="container">
<div class="row justify-content-center">
<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">Codice TFA <i class="fab fa-telegram text-primary"></i> </h1>
<p>Accedi a <strong>Telegram</strong> e inserisci il codice che ti è stato inviato.</p>
</div>
</div>
<form class="user" method="POST" action="{{ route('login') }}">
@csrf
<div class="form-group">
<input id="code" type="text"
class="form-control form-control-user form-codice-tfa @error('email') is-invalid @enderror"
name="code" placeholder="Inserisci il codice">

<div class="form-group row mb-0">
<div class="col-md-8 offset-md-4">
<button type="submit" class="btn btn-primary">
{{ __('Login') }}
</button>
@error('email')
<span class="invalid-feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
</div>

</div>
<div class="form-group mb-0">
<button type="submit" class="btn btn-primary btn-user btn-block">
Invia codice <i class="fas fa-sign-in-alt"></i>
</button>
</div>
</form>
</div>
</form>
</div>
<div class="col-lg-6 d-none d-lg-block bg-login-image"></div>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection
8 changes: 4 additions & 4 deletions resources/views/dashboard/index.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@extends('layouts.app')

@section('content')
<div class="container">
<div class="container-fluid">

<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
<div class="d-sm-flex mb-4">
<h1 class="h3 mb-0 text-gray-800"><i class="fas fa-tachometer-alt"></i> Dashboard</h1>
</div>

<div class="row">
Expand All @@ -13,7 +13,7 @@
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">utenti attivi</div>
<div class="text-xs font-weight-bold text-primary text-uppercase mb-1">Utenti attivi</div>
<div class="h5 mb-0 font-weight-bold text-gray-800">40,000</div>
</div>
<div class="col-auto">
Expand Down
4 changes: 2 additions & 2 deletions resources/views/layouts/footer.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span><i class="fas fa-code"></i> with <i class="text-danger far fa-heart"></i>
by <a href="https://github.com/RedRoundRobin">Red Round Robin</a> <i class="fas fa-dove"></i>
- &copy; 2020</span>
by <a href="https://github.com/RedRoundRobin" class="text-secondary" target="_blank">Red Round Robin</a> <i class="fas fa-dove"></i>
&nbsp; &copy; 2020</span>
</div>
</div>
</footer>
Expand Down
18 changes: 9 additions & 9 deletions resources/views/layouts/sidebar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<li class="nav-item">
<a class="nav-link" href="{{ route('devices.index') }}">
<i class="fas fa-fw fa-list-ul"></i>
<i class="fas fa-fw fa-microchip"></i>
<span>Dispositivi e sensori</span></a>
</li>

Expand All @@ -65,9 +65,9 @@
</a>
<div id="collapseMod" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<a class="collapse-item" href="{{ route('users.index') }}">Gestione Utenti</a>
<a class="collapse-item" href="{{ route('devices.index') }}">Gestione Dispositivi</a>
<a class="collapse-item" href="#">Gestione Alert</a>
<a class="collapse-item" href="{{ route('users.index') }}"><i class="fas fa-users"></i> Utenti</a>
<a class="collapse-item" href="{{ route('devices.index') }}"><i class="fas fa-microchip"></i> Gestione Dispositivi</a>
<a class="collapse-item" href="#"><i class="fas fa-bell"></i> Gestione Alert</a>
</div>
</div>
</li>
Expand All @@ -81,11 +81,11 @@
</a>
<div id="collapseAdmin" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<a class="collapse-item" href="#">Gestione Alert</a>
<a class="collapse-item" href="{{ route('users.index') }}">Gestione Utenti</a>
<a class="collapse-item" href="#">Gestione Enti</a>
<a class="collapse-item" href="{{ route('devices.index') }}">Gestione Dispositivi</a>
<a class="collapse-item" href="{{ route('gateway.index') }}">Gestione Gateway</a>
<a class="collapse-item" href="#"><i class="fas fa-bell"></i> Gestione Alert</a>
<a class="collapse-item" href="{{ route('users.index') }}"><i class="fas fa-users"></i> Gestione Utenti</a>
<a class="collapse-item" href="#"><i class="far fa-building"></i> Gestione Enti</a>
<a class="collapse-item" href="{{ route('devices.index') }}"><i class="fas fa-microchip"></i> Gestione Dispositivi</a>
<a class="collapse-item" href="{{ route('gateway.index') }}"><i class="fas fa-dungeon"></i> Gestione Gateway</a>
</div>
</div>
</li>
Expand Down

0 comments on commit 0984f7c

Please sign in to comment.