@@ -70,225 +70,29 @@ class="-mt-px size-3.5"
7070
7171 {{-- Right side --}}
7272 <div class =" flex items-center gap-2.5" >
73- {{-- Mobile menu --}}
74- <x-navbar .mobile-menu />
73+ {{-- Theme toggle (visible on large screens) --}}
74+ <div class =" hidden lg:block" >
75+ <x-navbar .theme-toggle />
76+ </div >
7577
76- {{-- Desktop menu --}}
78+ {{-- Doc search (visible on large screens) --}}
7779 <div
78- class =" hidden items-center gap-2.5 text-sm xl:flex"
79- aria-label =" Primary navigation"
80+ class =" hidden -mr-0.5 transition-all duration-200 ease-in-out will-change-transform lg:block"
8081 >
81- {{-- Link --}}
82- <a
83- href =" {{ route (' blog' ) } }"
84- @class ([
85- ' transition duration-200' ,
86- ' font-medium' => request ()-> routeIs (' blog*' ),
87- ' opacity-60 hover:opacity-100' => ! request ()-> routeIs (' blog*' ),
88- ] )
89- aria-current =" {{ request ()-> routeIs (' blog*' ) ? ' page' : ' false' } }"
90- >
91- Blog
92- </a >
93-
94- {{-- Decorative circle --}}
95- <div
96- class =" size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
97- aria-hidden =" true"
98- ></div >
99-
100- {{-- Link --}}
101- {{-- <a
102- href="https://shop.nativephp.com/"
103- class="opacity-60 transition duration-200 hover:opacity-100"
104- >
105- Swag
106- </a> --}}
107-
108- {{-- Decorative circle --}}
109- {{-- <div
110- class="size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
111- aria-hidden="true"
112- ></div> --}}
113-
114- {{-- Link --}}
115- <a
116- href =" /partners"
117- @class ([
118- ' transition duration-200' ,
119- ' font-medium' => request ()-> routeIs (' partners' ),
120- ' opacity-60 hover:opacity-100' => ! request ()-> routeIs (' partners' ),
121- ] )
122- aria-current =" {{ request ()-> routeIs (' partners' ) ? ' page' : ' false' } }"
123- >
124- Partners
125- </a >
126-
127- {{-- Decorative circle --}}
128- <div
129- class =" size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
130- aria-hidden =" true"
131- ></div >
132-
133- {{-- Link --}}
134- <a
135- href =" /sponsor"
136- @class ([
137- ' transition duration-200' ,
138- ' font-medium' => request ()-> routeIs (' sponsoring' ),
139- ' opacity-60 hover:opacity-100' => ! request ()-> routeIs (' sponsoring' ),
140- ] )
141- aria-current =" {{ request ()-> routeIs (' sponsoring' ) ? ' page' : ' false' } }"
142- >
143- Sponsor
144- </a >
145-
146- {{-- Decorative circle --}}
147- <div
148- class =" size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
149- aria-hidden =" true"
150- ></div >
151-
152- {{-- Link --}}
153- <a
154- href =" {{ route (' build-my-app' ) } }"
155- @class ([
156- ' transition duration-200' ,
157- ' font-medium' => request ()-> routeIs (' build-my-app' ),
158- ' opacity-60 hover:opacity-100' => ! request ()-> routeIs (' build-my-app' ),
159- ] )
160- aria-current =" {{ request ()-> routeIs (' build-my-app' ) ? ' page' : ' false' } }"
161- >
162- Develop
163- </a >
164-
165- {{-- Decorative circle --}}
16682 <div
167- class =" size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
168- aria-hidden =" true"
83+ id =" docsearch-desktop"
84+ x-on:click =" if (window.innerWidth < 640) window.scrollTo({ top: 0, behavior: 'instant' })"
85+ aria-label =" Search documentation"
16986 ></div >
87+ </div >
17088
171- {{-- Link --}}
172- <a
173- href =" {{ route (' pricing' ) } }"
174- @class ([
175- ' transition duration-200' ,
176- ' font-medium' => request ()-> routeIs (' pricing' ),
177- ' opacity-60 hover:opacity-100' => ! request ()-> routeIs (' pricing' ),
178- ] )
179- aria-current =" {{ request ()-> routeIs (' pricing' ) ? ' page' : ' false' } }"
180- >
181- <span class =" inline-flex items-center gap-1.5" >
182- Ultra
183- <span class =" rounded-full bg-emerald-500 px-1.5 py-px text-[10px] font-bold leading-tight text-white" >New</span >
184- </span >
185- </a >
186-
187- {{-- Decorative circle --}}
188- <div
189- class =" size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
190- aria-hidden =" true"
191- ></div >
192-
193- {{-- Link --}}
194- <a
195- href =" {{ route (' course' ) } }"
196- @class ([
197- ' transition duration-200' ,
198- ' font-medium' => request ()-> routeIs (' course' ),
199- ' opacity-60 hover:opacity-100' => ! request ()-> routeIs (' course' ),
200- ] )
201- aria-current =" {{ request ()-> routeIs (' course' ) ? ' page' : ' false' } }"
202- >
203- <span class =" inline-flex items-center gap-1.5" >
204- Learn
205- <span class =" rounded-full bg-emerald-500 px-1.5 py-px text-[10px] font-bold leading-tight text-white" >New</span >
206- </span >
207- </a >
208-
209- {{-- Decorative circle --}}
210- <div
211- class =" size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
212- aria-hidden =" true"
213- ></div >
214-
215- {{-- Link --}}
216- <a
217- href =" {{ route (' support.index' ) } }"
218- @class ([
219- ' transition duration-200' ,
220- ' font-medium' => request ()-> routeIs (' support.*' ),
221- ' opacity-60 hover:opacity-100' => ! request ()-> routeIs (' support.*' ),
222- ] )
223- aria-current =" {{ request ()-> routeIs (' support.*' ) ? ' page' : ' false' } }"
224- >
225- <span class =" inline-flex items-center gap-1.5" >
226- Support
227- <span class =" rounded-full bg-emerald-500 px-1.5 py-px text-[10px] font-bold leading-tight text-white" >New</span >
228- </span >
229- </a >
230-
231- {{-- Login/Logout --}}
232- @feature (App \Features \ShowAuthButtons:: class )
233- {{-- Decorative circle --}}
234- <div
235- class =" size-[3px] rotate-45 rounded-xs bg-gray-400 transition duration-200 dark:opacity-60"
236- aria-hidden =" true"
237- ></div >
238-
239- @auth
240- <a
241- href =" {{ route (' dashboard' ) } }"
242- class =" opacity-60 transition duration-200 hover:opacity-100"
243- title =" Logged in as {{ auth ()-> user ()-> email } }"
244- >
245- Dashboard
246- </a >
247- @else
248- <a
249- href =" {{ route (' customer.login' ) } }"
250- class =" opacity-60 transition duration-200 hover:opacity-100"
251- >
252- Dashboard
253- </a >
254- @endauth
255- @endfeature
256-
257- {{-- Cart Icon --}}
258- @feature (App \Features \ShowPlugins:: class )
259- @if ($cartCount > 0 )
260- <a
261- href =" {{ route (' cart.show' ) } }"
262- class =" relative opacity-60 transition duration-200 hover:opacity-100"
263- title =" View cart"
264- >
265- <svg xmlns =" http://www.w3.org/2000/svg" fill =" none" viewBox =" 0 0 24 24" stroke-width =" 1.5" stroke =" currentColor" class =" size-5" >
266- <path stroke-linecap =" round" stroke-linejoin =" round" d =" M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25 5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z" />
267- </svg >
268- <span class =" absolute -top-1.5 -right-1.5 flex size-4 items-center justify-center rounded-full bg-indigo-600 text-[10px] font-bold text-white" >
269- {{ $cartCount > 9 ? ' 9+' : $cartCount } }
270- </span >
271- <span class =" sr-only" >Cart ({{ $cartCount } } items)</span >
272- </a >
273- @endif
274- @endfeature
275-
276- {{-- Theme toggle --}}
277- <x-navbar .theme-toggle />
278-
279- {{-- Doc search --}}
280- <div
281- class =" -mr-0.5 transition-all duration-200 ease-in-out will-change-transform"
282- >
283- <div
284- id =" docsearch-desktop"
285- x-on:click =" if (window.innerWidth < 640) window.scrollTo({ top: 0, behavior: 'instant' })"
286- aria-label =" Search documentation"
287- ></div >
288- </div >
289-
89+ {{-- Bifrost button (visible on large screens) --}}
90+ <div class =" hidden lg:block" >
29091 <x-bifrost-button small />
29192 </div >
93+
94+ {{-- Menu --}}
95+ <x-navbar .mobile-menu />
29296 </div >
29397 </div >
29498</nav >
0 commit comments