mirror of
https://github.com/NotXia/notxia.github.io.git
synced 2025-12-16 11:31:49 +01:00
Moved background color to body tag
This commit is contained in:
8
app.vue
8
app.vue
@ -1,8 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<div v-if="init"
|
<div v-if="init"
|
||||||
class="bg-gray-100 text-gray-900 min-h-screen h-full
|
class="min-h-screen h-full"
|
||||||
dark:bg-gray-900 dark:text-slate-50"
|
|
||||||
style="font-family: 'Comfortaa'; overflow-x: hidden; ">
|
style="font-family: 'Comfortaa'; overflow-x: hidden; ">
|
||||||
|
|
||||||
<!-- Prevents scrollbar shift -->
|
<!-- Prevents scrollbar shift -->
|
||||||
@ -36,7 +35,10 @@
|
|||||||
init.value = true;
|
init.value = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
useHead({ htmlAttrs: { lang: locale.value } });
|
useHead({
|
||||||
|
htmlAttrs: { lang: locale.value },
|
||||||
|
bodyAttrs: { class: "dark:bg-gray-900 dark:text-slate-50 bg-gray-100 text-gray-900"}
|
||||||
|
});
|
||||||
watch(locale, (new_locale) => {
|
watch(locale, (new_locale) => {
|
||||||
useHead({ htmlAttrs: { lang: new_locale } });
|
useHead({ htmlAttrs: { lang: new_locale } });
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user