mirror of
https://github.com/DiscordFactory/website-documentation.git
synced 2026-01-27 15:20:27 +01:00
🚧 Work in progress
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user