From 40415231fdeae8c5b57a9f6c221e27d63eb2ba31 Mon Sep 17 00:00:00 2001 From: Cod3lta Date: Sat, 10 Sep 2022 23:50:27 +0000 Subject: [PATCH 1/4] created Footer component + basic content --- resources/views/components/footer.blade.php | 37 +++++++++++++++++++++ resources/views/layouts/app.blade.php | 5 +++ routes/web.php | 5 +++ 3 files changed, 47 insertions(+) create mode 100644 resources/views/components/footer.blade.php diff --git a/resources/views/components/footer.blade.php b/resources/views/components/footer.blade.php new file mode 100644 index 0000000..dd23094 --- /dev/null +++ b/resources/views/components/footer.blade.php @@ -0,0 +1,37 @@ +@php +$links = [ + [ + 'name' => 'Accueil', + 'route' => 'home', + ], + [ + 'name' => 'À propos', + 'route' => 'about', + ], + [ + 'name' => 'Contact', + 'route' => 'contact', +], +]; +@endphp + + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 1376bfe..8d95123 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -26,6 +26,7 @@
+ @livewire('navigation-menu') @@ -41,8 +42,12 @@
{{ $slot }}
+ + +
+ @stack('modals') @stack('scripts') diff --git a/routes/web.php b/routes/web.php index b477389..c8a0f05 100644 --- a/routes/web.php +++ b/routes/web.php @@ -40,6 +40,11 @@ return view('coming-soon'); })->name('rules'); +// about +Route::get('/about', function () { + return view('about'); +})->name('about'); + Route::middleware(['auth:sanctum', 'verified'])->get('/dashboard', function () { return view('dashboard'); })->name('dashboard'); From c221ed886a822f9e2b446450a6408e465dd5ac44 Mon Sep 17 00:00:00 2001 From: Cod3lta Date: Sun, 11 Sep 2022 16:55:15 +0000 Subject: [PATCH 2/4] added links and changed style --- resources/views/components/footer.blade.php | 22 +++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/resources/views/components/footer.blade.php b/resources/views/components/footer.blade.php index dd23094..13d50a1 100644 --- a/resources/views/components/footer.blade.php +++ b/resources/views/components/footer.blade.php @@ -15,22 +15,24 @@ ]; @endphp -