diff options
-rw-r--r-- | app/Http/Controllers/PagesController.php | 17 | ||||
-rw-r--r-- | resources/views/inc/navbar.blade.php | 6 | ||||
-rw-r--r-- | resources/views/pages/gallery.blade.php | 4 | ||||
-rw-r--r-- | resources/views/pages/login.blade.php | 4 | ||||
-rw-r--r-- | resources/views/pages/news.blade.php | 4 |
5 files changed, 33 insertions, 2 deletions
diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index 8a3cfcc..7a7b184 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -16,6 +16,23 @@ class PagesController extends Controller return view('pages.sponsoring'); } + //-------------------------------------- + + public function news(Request $request) + { + return view('pages.news'); + } + + public function gallery(Request $request) + { + return view('pages.gallery'); + } + + public function login(Request $request) + { + return view('pages.login'); + } + //public function services() //{ ////$title = 'Some title'; diff --git a/resources/views/inc/navbar.blade.php b/resources/views/inc/navbar.blade.php index be61c5d..78421a9 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"> - <a href="http://yota.yu1srs.org.rs" class="navbar-brand">YOTA</a> + <span class="navbar-brand">YOTA</span> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse"> <span class="navbar-toggler-icon"></span> </button> @@ -7,10 +7,12 @@ <div class="collapse navbar-collapse" id="navbarCollapse"> <div class="navbar-nav"> <a href="{{ route('home') }}" class="nav-item nav-link {{ request()->routeIs('home') ? 'active' : '' }}">Home</a> + <a href="{{ route('news') }}" class="nav-item nav-link {{ request()->routeIs('news') ? 'active' : '' }}">News</a> + <a href="{{ route('gallery') }}" class="nav-item nav-link {{ request()->routeIs('gallery') ? 'active' : '' }}">Gallery</a> <a href="{{ route('sponsoring') }}" class="nav-item nav-link {{ request()->routeIs('sponsoring') ? 'active' : '' }}">Sponsoring</a> </div> <div class="navbar-nav ml-auto"> - <a href="#" class="nav-item nav-link">Login</a> + <a href="{{ route('login') }}" class="nav-item nav-link {{ request()->routeIs('login') ? 'active' : '' }}">Login</a> </div> </div> </nav> diff --git a/resources/views/pages/gallery.blade.php b/resources/views/pages/gallery.blade.php new file mode 100644 index 0000000..b4a9f19 --- /dev/null +++ b/resources/views/pages/gallery.blade.php @@ -0,0 +1,4 @@ +@extends('layouts.app') + +@section('content') +@endsection() diff --git a/resources/views/pages/login.blade.php b/resources/views/pages/login.blade.php new file mode 100644 index 0000000..b4a9f19 --- /dev/null +++ b/resources/views/pages/login.blade.php @@ -0,0 +1,4 @@ +@extends('layouts.app') + +@section('content') +@endsection() diff --git a/resources/views/pages/news.blade.php b/resources/views/pages/news.blade.php new file mode 100644 index 0000000..b4a9f19 --- /dev/null +++ b/resources/views/pages/news.blade.php @@ -0,0 +1,4 @@ +@extends('layouts.app') + +@section('content') +@endsection() |