@@ -11,7 +11,9 @@ const route = useRoute();
11
11
<div class =" flex items-center space-x-2" >
12
12
<HeadlessMenu as =" div" class =" relative z-50 inline-block text-left" >
13
13
<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
+ >
15
17
<div class =" text-2xl" >&bull ;&bull ;&bull ; </div >
16
18
</HeadlessMenuButton >
17
19
</div >
@@ -25,14 +27,16 @@ const route = useRoute();
25
27
leave-to-class =" transform scale-95 opacity-0"
26
28
>
27
29
<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 "
29
31
>
30
32
<div class =" px-1 py-1" >
31
33
<HeadlessMenuItem v-slot =" { active }" >
32
34
<NuxtLink to =" /" >
33
35
<button
34
36
: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',
36
40
$route.path === '/' ? 'bg-orange-500' : '',
37
41
'group flex w-full items-center rounded-md px-2 py-2 text-sm',
38
42
]"
@@ -84,7 +88,9 @@ const route = useRoute();
84
88
<a href =" /articles" >
85
89
<button
86
90
: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',
88
94
$route.path === '/articles' ? 'bg-orange-500' : '',
89
95
'group flex w-full items-center rounded-md px-2 py-2 text-sm',
90
96
]"
@@ -112,7 +118,9 @@ const route = useRoute();
112
118
<a href =" /playground" >
113
119
<button
114
120
: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',
116
124
$route.path === '/playground' ? 'bg-orange-500' : '',
117
125
'group flex w-full items-center rounded-md px-2 py-2 text-sm',
118
126
]"
@@ -140,7 +148,9 @@ const route = useRoute();
140
148
<a href =" /talks" >
141
149
<button
142
150
: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',
144
154
$route.path === '/talks' ? 'bg-orange-500' : '',
145
155
'group flex w-full items-center rounded-md px-2 py-2 text-sm',
146
156
]"
@@ -166,7 +176,9 @@ const route = useRoute();
166
176
<a href =" https://github.com/cmpadden" >
167
177
<button
168
178
: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',
170
182
'group flex w-full items-center rounded-md px-2 py-2 text-sm',
171
183
]"
172
184
>
@@ -189,7 +201,9 @@ const route = useRoute();
189
201
<a href =" https://bsky.app/profile/colton.boo" >
190
202
<button
191
203
: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',
193
207
'group flex w-full items-center rounded-md px-2 py-2 text-sm',
194
208
]"
195
209
>
@@ -208,17 +222,22 @@ const route = useRoute();
208
222
</a >
209
223
</HeadlessMenuItem >
210
224
</div >
211
-
225
+
212
226
<!-- Divider -->
213
227
<div class =" border-t border-gray-300 dark:border-gray-600" ></div >
214
-
228
+
215
229
<!-- Theme Toggle Section -->
216
230
<div class =" px-1 py-1" >
217
231
<HeadlessMenuItem v-slot =" { active }" >
218
232
<button
219
- @click =" $colorMode.preference = $colorMode.value === 'dark' ? 'light' : 'dark'"
233
+ @click ="
234
+ $colorMode.preference =
235
+ $colorMode.value === 'dark' ? 'light' : 'dark'
236
+ "
220
237
: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',
222
241
'group flex w-full items-center rounded-md px-2 py-2 text-sm',
223
242
]"
224
243
>
@@ -238,7 +257,7 @@ const route = useRoute();
238
257
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"
239
258
/>
240
259
</svg >
241
-
260
+
242
261
<!-- Moon icon for when we're in light mode (clicking switches to dark) -->
243
262
<svg
244
263
v-else
@@ -255,7 +274,9 @@ const route = useRoute();
255
274
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"
256
275
/>
257
276
</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 >
259
280
</button >
260
281
</HeadlessMenuItem >
261
282
</div >
0 commit comments