@@ -11,7 +11,9 @@ const route = useRoute();
1111 <div class =" flex items-center space-x-2" >
1212 <HeadlessMenu as =" div" class =" relative z-50 inline-block text-left" >
1313 <div >
14- <HeadlessMenuButton class =" text-gray-700 dark:text-white hover:text-orange-500" >
14+ <HeadlessMenuButton
15+ class =" text-gray-700 hover:text-orange-500 dark:text-white"
16+ >
1517 <div class =" text-2xl" >&bull ;&bull ;&bull ; </div >
1618 </HeadlessMenuButton >
1719 </div >
@@ -25,14 +27,16 @@ const route = useRoute();
2527 leave-to-class =" transform scale-95 opacity-0"
2628 >
2729 <HeadlessMenuItems
28- class =" absolute right-0 mt-2 w-36 origin-top-right divide-y divide-gray-100 dark:divide-gray-100 rounded-md bg-white/90 dark:bg-black/80 text-gray-900 dark:text-white shadow-lg ring-1 ring-black ring-opacity-5 backdrop-blur-sm focus:outline-none"
30+ class =" absolute right-0 mt-2 w-36 origin-top-right divide-y divide-gray-100 rounded-md bg-white/90 text-gray-900 shadow-lg ring-1 ring-black ring-opacity-5 backdrop-blur-sm focus:outline-none dark:divide-gray-100 dark:bg-black/80 dark:text-white "
2931 >
3032 <div class =" px-1 py-1" >
3133 <HeadlessMenuItem v-slot =" { active }" >
3234 <NuxtLink to =" /" >
3335 <button
3436 :class =" [
35- active ? 'bg-orange-500/50 text-white dark:text-white' : 'text-gray-700 dark:text-white',
37+ active
38+ ? 'bg-orange-500/50 text-white dark:text-white'
39+ : 'text-gray-700 dark:text-white',
3640 $route.path === '/' ? 'bg-orange-500' : '',
3741 'group flex w-full items-center rounded-md px-2 py-2 text-sm',
3842 ]"
@@ -84,7 +88,9 @@ const route = useRoute();
8488 <a href =" /articles" >
8589 <button
8690 :class =" [
87- active ? 'bg-orange-500/50 text-white dark:text-white' : 'text-gray-700 dark:text-white',
91+ active
92+ ? 'bg-orange-500/50 text-white dark:text-white'
93+ : 'text-gray-700 dark:text-white',
8894 $route.path === '/articles' ? 'bg-orange-500' : '',
8995 'group flex w-full items-center rounded-md px-2 py-2 text-sm',
9096 ]"
@@ -112,7 +118,9 @@ const route = useRoute();
112118 <a href =" /playground" >
113119 <button
114120 :class =" [
115- active ? 'bg-orange-500/50 text-white dark:text-white' : 'text-gray-700 dark:text-white',
121+ active
122+ ? 'bg-orange-500/50 text-white dark:text-white'
123+ : 'text-gray-700 dark:text-white',
116124 $route.path === '/playground' ? 'bg-orange-500' : '',
117125 'group flex w-full items-center rounded-md px-2 py-2 text-sm',
118126 ]"
@@ -140,7 +148,9 @@ const route = useRoute();
140148 <a href =" /talks" >
141149 <button
142150 :class =" [
143- active ? 'bg-orange-500/50 text-white dark:text-white' : 'text-gray-700 dark:text-white',
151+ active
152+ ? 'bg-orange-500/50 text-white dark:text-white'
153+ : 'text-gray-700 dark:text-white',
144154 $route.path === '/talks' ? 'bg-orange-500' : '',
145155 'group flex w-full items-center rounded-md px-2 py-2 text-sm',
146156 ]"
@@ -166,7 +176,9 @@ const route = useRoute();
166176 <a href =" https://github.com/cmpadden" >
167177 <button
168178 :class =" [
169- active ? 'bg-orange-500/50 text-white dark:text-white' : 'text-gray-700 dark:text-white',
179+ active
180+ ? 'bg-orange-500/50 text-white dark:text-white'
181+ : 'text-gray-700 dark:text-white',
170182 'group flex w-full items-center rounded-md px-2 py-2 text-sm',
171183 ]"
172184 >
@@ -189,7 +201,9 @@ const route = useRoute();
189201 <a href =" https://bsky.app/profile/colton.boo" >
190202 <button
191203 :class =" [
192- active ? 'bg-orange-500/50 text-white dark:text-white' : 'text-gray-700 dark:text-white',
204+ active
205+ ? 'bg-orange-500/50 text-white dark:text-white'
206+ : 'text-gray-700 dark:text-white',
193207 'group flex w-full items-center rounded-md px-2 py-2 text-sm',
194208 ]"
195209 >
@@ -208,17 +222,22 @@ const route = useRoute();
208222 </a >
209223 </HeadlessMenuItem >
210224 </div >
211-
225+
212226 <!-- Divider -->
213227 <div class =" border-t border-gray-300 dark:border-gray-600" ></div >
214-
228+
215229 <!-- Theme Toggle Section -->
216230 <div class =" px-1 py-1" >
217231 <HeadlessMenuItem v-slot =" { active }" >
218232 <button
219- @click =" $colorMode.preference = $colorMode.value === 'dark' ? 'light' : 'dark'"
233+ @click ="
234+ $colorMode.preference =
235+ $colorMode.value === 'dark' ? 'light' : 'dark'
236+ "
220237 :class =" [
221- active ? 'bg-orange-500/50 text-white dark:text-white' : 'text-gray-700 dark:text-white',
238+ active
239+ ? 'bg-orange-500/50 text-white dark:text-white'
240+ : 'text-gray-700 dark:text-white',
222241 'group flex w-full items-center rounded-md px-2 py-2 text-sm',
223242 ]"
224243 >
@@ -238,7 +257,7 @@ const route = useRoute();
238257 d =" M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"
239258 />
240259 </svg >
241-
260+
242261 <!-- Moon icon for when we're in light mode (clicking switches to dark) -->
243262 <svg
244263 v-else
@@ -255,7 +274,9 @@ const route = useRoute();
255274 d =" M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"
256275 />
257276 </svg >
258- <span class =" translate-y-0.5" >{{ $colorMode.value === 'dark' ? 'Light Mode' : 'Dark Mode' }}</span >
277+ <span class =" translate-y-0.5" >{{
278+ $colorMode.value === "dark" ? "Light Mode" : "Dark Mode"
279+ }}</span >
259280 </button >
260281 </HeadlessMenuItem >
261282 </div >
0 commit comments