File tree Expand file tree Collapse file tree 3 files changed +43
-13
lines changed
resources/views/components Expand file tree Collapse file tree 3 files changed +43
-13
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ class="flex flex-1 flex-col items-start text-xl"
180
180
$isHomeActive = request ()-> routeIs (' welcome*' );
181
181
$isMobileActive = request ()-> routeIs (' early-adopter*' );
182
182
$isDocsActive = request ()-> is (' docs*' );
183
+ $isBlogActive = request ()-> routeIs (' blog*' );
183
184
$isSponsorActive = request ()-> routeIs (' sponsoring*' );
184
185
@endphp
185
186
@@ -264,6 +265,33 @@ class="gsap-mobile-menu-divider h-0.5 w-full rounded-full bg-current opacity-5"
264
265
role =" presentation"
265
266
></div >
266
267
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
+
267
295
{{-- Sponsor Link --}}
268
296
<div class =" gsap-mobile-menu-link w-full" >
269
297
<a
Original file line number Diff line number Diff line change @@ -161,25 +161,24 @@ class="size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:
161
161
aria-hidden =" true"
162
162
></div >
163
163
164
- {{--
165
- Link
166
- <a
164
+ {{-- Link --}}
165
+ <a
167
166
href =" {{ route (' blog' ) } }"
168
167
@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*' ),
172
171
] )
173
172
aria-current =" {{ request ()-> routeIs (' blog*' ) ? ' page' : ' false' } }"
174
- >
173
+ >
175
174
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"
180
180
aria-hidden =" true"
181
- ></div>
182
- --}}
181
+ ></div >
183
182
184
183
{{-- Link --}}
185
184
<a
Original file line number Diff line number Diff line change 61
61
})->name ('docs ' )->where ('page ' , '.* ' );
62
62
63
63
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 ' );
You can’t perform that action at this time.
0 commit comments