Skip to content

Commit 7d073ef

Browse files
committed
add blog to menu's
1 parent 60228fe commit 7d073ef

File tree

3 files changed

+43
-13
lines changed

3 files changed

+43
-13
lines changed

resources/views/components/mobile-menu.blade.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ class="flex flex-1 flex-col items-start text-xl"
180180
$isHomeActive = request()->routeIs('welcome*');
181181
$isMobileActive = request()->routeIs('early-adopter*');
182182
$isDocsActive = request()->is('docs*');
183+
$isBlogActive = request()->routeIs('blog*');
183184
$isSponsorActive = request()->routeIs('sponsoring*');
184185
@endphp
185186

@@ -264,6 +265,33 @@ class="gsap-mobile-menu-divider h-0.5 w-full rounded-full bg-current opacity-5"
264265
role="presentation"
265266
></div>
266267

268+
{{-- Blog Link --}}
269+
<div class="gsap-mobile-menu-link w-full">
270+
<a
271+
href="{{ route('blog') }}"
272+
@class([
273+
'flex items-center justify-between py-3 transition duration-200',
274+
'font-medium' => $isBlogActive,
275+
'opacity-50 hover:translate-x-1 hover:opacity-100' => ! $isBlogActive,
276+
])
277+
aria-current="{{ $isBlogActive ? 'page' : 'false' }}"
278+
>
279+
<div>Blog</div>
280+
@if ($isBlogActive)
281+
<x-icons.right-arrow
282+
class="size-4 shrink-0"
283+
aria-hidden="true"
284+
focusable="false"
285+
/>
286+
@endif
287+
</a>
288+
</div>
289+
290+
<div
291+
class="gsap-mobile-menu-divider h-0.5 w-full rounded-full bg-current opacity-5"
292+
role="presentation"
293+
></div>
294+
267295
{{-- Sponsor Link --}}
268296
<div class="gsap-mobile-menu-link w-full">
269297
<a

resources/views/components/navigation-bar.blade.php

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -161,25 +161,24 @@ class="size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:
161161
aria-hidden="true"
162162
></div>
163163

164-
{{--
165-
Link
166-
<a
164+
{{-- Link --}}
165+
<a
167166
href="{{ route('blog') }}"
168167
@class([
169-
'transition duration-200',
170-
'font-medium' => request()->routeIs('blog*'),
171-
'opacity-60 hover:opacity-100' => ! request()->routeIs('blog*'),
168+
'transition duration-200',
169+
'font-medium' => request()->routeIs('blog*'),
170+
'opacity-60 hover:opacity-100' => ! request()->routeIs('blog*'),
172171
])
173172
aria-current="{{ request()->routeIs('blog*') ? 'page' : 'false' }}"
174-
>
173+
>
175174
Blog
176-
</a>
177-
{{-- Decorative circle -- }}
178-
<div
179-
class="size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
175+
</a>
176+
177+
{{-- Decorative circle --}}
178+
<div
179+
class="size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
180180
aria-hidden="true"
181-
></div>
182-
--}}
181+
></div>
183182

184183
{{-- Link --}}
185184
<a

routes/web.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@
6161
})->name('docs')->where('page', '.*');
6262

6363
Route::get('/order/{checkoutSessionId}', App\Livewire\OrderSuccess::class)->name('order.success');
64+
65+
Route::view('blog', 'blog')->name('blog');
66+
Route::view('article', 'article')->name('article');

0 commit comments

Comments
 (0)