public/layouts/default.vue

42 lines
659 B
Vue
Raw Normal View History

2022-07-21 22:03:35 -04:00
<script setup lang="ts">
2022-07-22 15:32:00 -04:00
import Base from "./base.vue";
2022-07-21 22:03:35 -04:00
import Navbar from "../components/Navbar.vue";
</script>
2022-07-21 16:50:03 -04:00
<template>
2022-07-22 15:32:00 -04:00
<div class="flex flex-col items-center w-full h-full">
2022-07-21 22:03:35 -04:00
<Navbar />
2022-07-22 15:32:00 -04:00
<Base>
2022-07-21 22:03:35 -04:00
<slot />
2022-07-22 15:32:00 -04:00
</Base>
2022-07-21 16:50:03 -04:00
</div>
</template>
2022-07-21 22:03:35 -04:00
<style>
html {
background: white;
color: black;
transition: color 0.2s ease, background 0.2s ease;
}
html.dark {
background: #222;
color: white;
}
html::before {
content: "";
position: fixed;
height: 100%;
width: 100%;
background: #222;
transform: translateX(-100%);
transition: transform 0.2s ease;
z-index: 0;
}
html.dark::before {
transform: translateX(0);
}
</style>