-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
279c6cb
commit fc29d42
Showing
11 changed files
with
265 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,49 +13,49 @@ | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"> | ||
@vite(['resources/css/app.css', 'resources/js/app.js']) | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="{{ route('home') }}">PokeTeams</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{ route('pokemons.index') }}">Pokemons</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{ route('teams.index') }}">Teams</a> | ||
</li> | ||
</ul> | ||
<div class="navbar-nav ms-auto d-flex align-items-center"> | ||
@auth | ||
<span class="navbar-text text-white d-none d-lg-block me-3">{{ \Illuminate\Support\Facades\Auth::user()->name }}</span> | ||
<form class="d-inline d-none d-lg-block" action="{{ route('logout') }}" method="post"> | ||
@method("delete") | ||
@csrf | ||
<button class="btn btn-outline-danger btn-sm">Logout</button> | ||
</form> | ||
<div class="d-lg-none navbar-text text-white me-3"> | ||
{{ \Illuminate\Support\Facades\Auth::user()->name }} | ||
</div> | ||
<form class="d-inline d-lg-none" action="{{ route('logout') }}" method="post"> | ||
@method("delete") | ||
@csrf | ||
<button class="btn btn-outline-danger btn-sm">Logout</button> | ||
</form> | ||
@endauth | ||
@guest | ||
<a class="btn btn-outline-primary btn-sm ms-3" href="{{ route('login') }}">Sign in</a> | ||
<a class="btn btn-outline-success btn-sm ms-3" href="{{ route('register') }}">Sign up</a> | ||
@endguest | ||
<body class="d-flex flex-column min-vh-100"> | ||
<nav class="navbar navbar-expand-lg navbar-dark bg-dark"> | ||
<div class="container-fluid"> | ||
<a class="navbar-brand" href="{{ route('home') }}">PokeTeams</a> | ||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav mr-auto"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{ route('pokemons.index') }}">Pokemons</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="{{ route('teams.index') }}">Teams</a> | ||
</li> | ||
</ul> | ||
<div class="navbar-nav ms-auto d-flex align-items-center"> | ||
@auth | ||
<span class="navbar-text text-white d-none d-lg-block me-3">{{ \Illuminate\Support\Facades\Auth::user()->name }}</span> | ||
<form class="d-inline d-none d-lg-block" action="{{ route('logout') }}" method="post"> | ||
@method("delete") | ||
@csrf | ||
<button class="btn btn-outline-danger btn-sm">Logout</button> | ||
</form> | ||
<div class="d-lg-none navbar-text text-white me-3"> | ||
{{ \Illuminate\Support\Facades\Auth::user()->name }} | ||
</div> | ||
<form class="d-inline d-lg-none" action="{{ route('logout') }}" method="post"> | ||
@method("delete") | ||
@csrf | ||
<button class="btn btn-outline-danger btn-sm">Logout</button> | ||
</form> | ||
@endauth | ||
@guest | ||
<a class="btn btn-outline-primary btn-sm ms-3" href="{{ route('login') }}">Sign in</a> | ||
<a class="btn btn-outline-success btn-sm ms-3" href="{{ route('register') }}">Sign up</a> | ||
@endguest | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</nav> | ||
</nav> | ||
|
||
<div class="container mt-3"> | ||
<div class="container mt-3 flex-grow-1"> | ||
@if ($message = Session::get('success')) | ||
<div class="alert alert-success"> | ||
<p>{{ $message }}</p> | ||
|
@@ -71,10 +71,24 @@ | |
@yield('content') | ||
</div> | ||
|
||
<footer class="bg-dark text-white text-center text-lg-start mt-4 py-3"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-6 mb-3 mb-md-0"> | ||
<h5>PokeTeams</h5> | ||
</div> | ||
</div> | ||
<div class="text-center py-3"> | ||
© {{ date('Y') }} PokeTeams. All rights reserved. | ||
</div> | ||
</div> | ||
</footer> | ||
</body> | ||
|
||
|
||
<!-- Bootstrap JS --> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script> | ||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.