aboutsummaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-10-17 19:40:30 +0200
committerMateja <mail@matejamaric.com>2020-10-17 19:40:30 +0200
commit21f999346f5bdf1d95da13f30261e94520d0f27c (patch)
tree8500fe90a8be495f8b2c255f00f5f65139e619a6 /resources/views
parent97515e3dec78c2b785d19d4b0e5c31a037c360dd (diff)
downloadyota-laravel-21f999346f5bdf1d95da13f30261e94520d0f27c.tar.gz
yota-laravel-21f999346f5bdf1d95da13f30261e94520d0f27c.zip
Dropdowns
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/inc/navbar.blade.php23
-rw-r--r--resources/views/layouts/app.blade.php1
-rw-r--r--resources/views/pages/index.blade.php10
3 files changed, 29 insertions, 5 deletions
diff --git a/resources/views/inc/navbar.blade.php b/resources/views/inc/navbar.blade.php
index 0c5f4cd..01b73f1 100644
--- a/resources/views/inc/navbar.blade.php
+++ b/resources/views/inc/navbar.blade.php
@@ -1,5 +1,5 @@
-<nav class="navbar navbar-expand-md navbar-light bg-light">
- <span class="navbar-brand">YOTA</span>
+<nav class="navbar navbar-expand-md navbar-dark bg-dark">
+ <div class="container">
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
@@ -13,10 +13,23 @@
<a href="{{ route('activities') }}" class="nav-item nav-link {{ request()->routeIs('activities') ? 'active' : '' }}">Activities</a>
<a href="{{ route('reserve') }}" class="nav-item nav-link {{ request()->routeIs('reserve') ? 'active' : '' }}">Make reservation</a>
</div>
- @if (!Auth::check())
<div class="navbar-nav ml-auto">
- <a href="{{ route('login') }}" class="nav-item nav-link {{ request()->routeIs('login') ? 'active' : '' }}">Login</a>
- </div>
+ @if (Auth::check())
+ <div class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
+ Administration
+ </a>
+ <div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
+ <a class="dropdown-item" href="#">Posts</a>
+ <a class="dropdown-item" href="#">Callsigns</a>
+ <a class="dropdown-item" href="#">Reservations</a>
+ </div>
+ </div>
+ <a href="#" class="nav-item nav-link">Logout</a>
+ @else
+ <a href="{{ route('login') }}" class="nav-item nav-link {{ request()->routeIs('login') ? 'active' : '' }}">Login</a>
@endif
+ </div>
+ </div>
</div>
</nav>
diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php
index 039d188..77220f9 100644
--- a/resources/views/layouts/app.blade.php
+++ b/resources/views/layouts/app.blade.php
@@ -15,6 +15,7 @@
</head>
<body>
@include('inc.navbar')
+ @yield('jumbotron')
<div class="container pt-3">
@yield('content')
</div>
diff --git a/resources/views/pages/index.blade.php b/resources/views/pages/index.blade.php
index 91b7557..1b7974f 100644
--- a/resources/views/pages/index.blade.php
+++ b/resources/views/pages/index.blade.php
@@ -1,5 +1,15 @@
@extends('layouts.app')
+@section('jumbotron')
+{{--<div class="jumbotron jumbotron-fluid bg-cover" style="background-image: url('/imgs/yota.jpg'); background-size: cover; background-repeat: no-repeat;">--}}
+<div class="jumbotron">
+ {{--<img src="/imgs/yota.jpg" class="img-fluid" alt="YOTA Serbia Camp"/>--}}
+ <div class="container">
+ <h1 class="display-3">Youngsters On The Air</h1>
+ </div>
+</div>
+@endsection
+
@section('content')
<p>
Educational Center “Čardak“,