🚧 Work in progress

This commit is contained in:
Freeze455
2021-09-06 02:25:57 +02:00
parent 22a5141daf
commit d7fac5de9f
11 changed files with 43 additions and 9 deletions

View File

@@ -21,15 +21,20 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { useRoute } from 'vue-router'
import Navbar from '../../components/Navbar.vue'
import Footer from '../../components/Footer.vue'
let htmlStatut = ref(false)
onMounted(() => {
htmlStatut.value = document.documentElement.classList.contains('dark')
})
const route = useRoute()
onMounted(() => $route.path, () => {
console.log('test')
})
function toggle () {
const htmlRoot = document.documentElement as HTMLElement
htmlRoot.classList.contains('dark')
@@ -50,4 +55,5 @@ html, body {
font-family: 'Public Sans', sans-serif;
scroll-behavior: smooth;
}
</style>