fix: downgrade away from nuxt 3.4.1

borks nuxt content
This commit is contained in:
eggy
2023-04-18 15:20:35 -04:00
parent 7a78a89393
commit 9d55a16040
4 changed files with 101 additions and 132 deletions

View File

@@ -10,7 +10,11 @@ const toggle = () => {
</script>
<template>
<label for="dark-toggle" class="toggle-wrapper">
<label
for="dark-toggle"
class="toggle-wrapper"
aria-label="Dark mode indicator label"
>
<div class="toggle">
<div class="icons">
<IconMoon />
@@ -21,6 +25,7 @@ const toggle = () => {
name="dark-toggle"
type="checkbox"
ref="darkToggleEl"
aria-label="Toggle dark mode"
@click="toggle"
/>
</div>

View File

@@ -11,8 +11,17 @@ const getSvgIcon = async (name: string) => {
<template>
<div class="hamburger">
<input class="checkbox" type="checkbox" id="checkbox" />
<label class="checkbox-label" for="checkbox">
<input
class="checkbox"
type="checkbox"
id="checkbox"
aria-label="Hamburger menu toggle"
/>
<label
class="checkbox-label"
for="checkbox"
aria-label="Hamburger menu indicator label"
>
<svg class="ham ham-rotate" viewBox="0 0 100 100" width="60">
<path
class="line top"
@@ -25,7 +34,7 @@ const getSvgIcon = async (name: string) => {
/>
</svg>
</label>
<div class="drawer prose dark:prose-invert">
<ul class="drawer prose dark:prose-invert">
<li class="m-0" v-for="(item, index) in navItems" :key="index">
<!-- stupid vite doesn't let require work
i should have just hardcoded the navbar items -->
@@ -40,7 +49,7 @@ const getSvgIcon = async (name: string) => {
</a>
<hr class="m-2" v-if="index !== navItems.length - 1" />
</li>
</div>
</ul>
</div>
</template>