Files
aranroig.com/aranroig/app/app.vue
BinarySandia04 4c561738c4
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m46s
Fix2
2026-03-12 00:47:07 +01:00

37 lines
685 B
Vue

<template>
<head>
<title>Aran Central</title>
</head>
<div>
<NuxtRouteAnnouncer />
<div class="container">
<NuxtPage></NuxtPage>
</div>
</div>
</template>
<script setup lang="ts">
import { onMounted } from 'vue';
onMounted(() => {
const isDarkMode = window.matchMedia('(prefers-color-scheme: dark)').matches;
if (isDarkMode) {
document.documentElement.setAttribute("data-theme", "dark");
} else {
document.documentElement.setAttribute("data-theme", "light");
}
});
</script>
<style lang="scss" scoped>
.container {
margin: auto auto;
margin-top: -30px;
padding-left: 20px;
padding-right: 20px;
max-width: 1100px;
}
</style>