Skip to content

Commit 833db48

Browse files
committed
🎉 feat: add kawaii=true
1 parent 218b6cb commit 833db48

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

docs/components/fern/hero.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
>
212212
<img
213213
src="/assets/elysia_chan.webp"
214-
class="object-cover z-20 select-none pointer-events-none"
214+
class="object-cover z-50 select-none pointer-events-none"
215215
style="object-position: 50% 7.5%"
216216
/>
217217
</div>
@@ -231,11 +231,17 @@ const toggleKawaii = () => {
231231
}
232232
233233
onMounted(() => {
234-
if (
235-
window.location.search.includes('kawaii=true') ||
236-
window.location.search.includes('uwu=true')
237-
)
234+
const search = window.location.search
235+
236+
if (search.includes('kawaii=true') || search.includes('uwu=true')) {
237+
localStorage.setItem('kawaii', 'true')
238238
return (kawaii.value = true)
239+
}
240+
241+
if (search.includes('kawaii=false') || search.includes('uwu=false')) {
242+
localStorage.setItem('kawaii', 'false')
243+
return (kawaii.value = false)
244+
}
239245
240246
if (localStorage.getItem('kawaii') === 'true') return (kawaii.value = true)
241247
})

0 commit comments

Comments
 (0)