public/layouts/default.vue

76 lines
1.4 KiB
Vue
Raw Normal View History

2022-07-21 22:03:35 -04:00
<script setup lang="ts">
import Navbar from "../components/Navbar.vue";
2022-07-22 17:16:27 -04:00
useHead({ title: "Eggworld" });
2022-07-21 22:03:35 -04:00
</script>
2022-07-21 16:50:03 -04:00
<template>
2022-07-22 17:16:27 -04:00
<div class="flex flex-col items-center w-full h-full justify-between">
2022-07-21 22:03:35 -04:00
<Navbar />
2022-07-22 15:36:37 -04:00
<slot />
2022-07-22 17:10:03 -04:00
<footer
class="flex flex-col items-center p-3 bg-gray-100 w-full text-sm dark:bg-gray-800"
>
2022-07-22 17:03:59 -04:00
<p> 2022 Daniel Chen</p>
<p>
Available under the AGPL-3.0 on
<a class="underline" href="https://github.com/potatoeggy/public">
GitHub</a
>
and
<a class="underline" href="https://git.eggworld.tk/eggy/public">
Gitea
</a>
</p>
</footer>
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;
2022-08-07 11:37:29 -04:00
min-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-22 17:10:03 -04:00
footer {
2022-08-07 20:25:25 -04:00
--footer-drop-color: lightgray;
2022-07-22 17:10:03 -04:00
transition: background 0.2s ease;
2022-08-07 20:25:25 -04:00
box-shadow: 0 -0.05rem 0.75rem 0 var(--footer-drop-color);
}
html.dark footer {
--footer-drop-color: black;
2022-07-22 17:10:03 -04:00
}
2022-07-21 22:03:35 -04:00
</style>