From 594492e0679d58ecd68fcd4056655ac858c53982 Mon Sep 17 00:00:00 2001 From: Jimmy Hoenderdaal Date: Mon, 16 Sep 2024 13:54:58 +0200 Subject: [PATCH 1/8] Add desktop/mobile navigation --- .../views/components/nav-layer.blade.php | 57 +++++++++++++++++++ .../views/navigation/header-button.blade.php | 2 + resources/views/navigation/nav.blade.php | 54 ++++++++++++++++++ 3 files changed, 113 insertions(+) create mode 100644 resources/views/components/nav-layer.blade.php create mode 100644 resources/views/navigation/header-button.blade.php create mode 100644 resources/views/navigation/nav.blade.php diff --git a/resources/views/components/nav-layer.blade.php b/resources/views/components/nav-layer.blade.php new file mode 100644 index 0000000..774abf0 --- /dev/null +++ b/resources/views/components/nav-layer.blade.php @@ -0,0 +1,57 @@ +@props(['id', 'children', 'title' => __('Menu'), 'hasParent' => false, 'tag' => 'form', 'parentUrl' => '']) +@slots(['headerbutton']) + + + +
+ @include('rapidez-statamic::navigation.header-button') +
+
+
+ + {{ $slot }} +
+
diff --git a/resources/views/navigation/header-button.blade.php b/resources/views/navigation/header-button.blade.php new file mode 100644 index 0000000..a918753 --- /dev/null +++ b/resources/views/navigation/header-button.blade.php @@ -0,0 +1,2 @@ +{{-- This is shown on the first slideover of the mobile menu, you can leave this empty if you don't want it. By default this is a search button --}} + diff --git a/resources/views/navigation/nav.blade.php b/resources/views/navigation/nav.blade.php new file mode 100644 index 0000000..c1748a8 --- /dev/null +++ b/resources/views/navigation/nav.blade.php @@ -0,0 +1,54 @@ + +@php + $baseUrl = \Statamic\Facades\Site::current()->absoluteUrl(); +@endphp + From 3e263880647d4072a1aeaa69ac3c553c2722e8d9 Mon Sep 17 00:00:00 2001 From: Jimmy Hoenderdaal Date: Mon, 16 Sep 2024 15:29:51 +0200 Subject: [PATCH 2/8] Change gap --- resources/views/navigation/nav.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/navigation/nav.blade.php b/resources/views/navigation/nav.blade.php index c1748a8..90a3b0e 100644 --- a/resources/views/navigation/nav.blade.php +++ b/resources/views/navigation/nav.blade.php @@ -9,7 +9,7 @@ $baseUrl = \Statamic\Facades\Site::current()->absoluteUrl(); @endphp