public/layouts/default.vue

49 lines
744 B
Vue
Raw Normal View History

2022-07-21 22:03:35 -04:00
<script setup lang="ts">
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:36:37 -04:00
<slot />
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;
2022-07-22 16:56:33 -04:00
overflow-x: hidden;
overflow-y: scroll;
2022-07-21 22:03:35 -04:00
}
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);
}
2022-07-22 15:36:37 -04:00
2022-07-22 16:08:55 -04:00
main {
width: 80%;
max-width: 60rem;
height: 100%;
2022-07-22 16:40:52 -04:00
margin: auto;
2022-07-22 16:08:55 -04:00
padding-top: 2rem;
2022-07-22 15:36:37 -04:00
}
2022-07-21 22:03:35 -04:00
</style>