Files
aranroig.com/frontend/app/app.vue
Aran Roig 5fd4b4a5e3
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 28s
Something
2026-03-18 00:46:35 +01:00

49 lines
950 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 {
align-items: stretch; /* make items grow horizontally to fill container */
margin-top: 350px;
margin-bottom: 30px;
display: flex;
flex-direction: column;
padding-left: 20px;
padding-right: 20px;
}
@media screen and (min-width: 1200px){
.container {
width: 1100px;
}
}
@media screen and (max-width: 1200px){
.container {
max-width: 1100px;
}
}
</style>