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>
|
2022-08-07 21:27:35 -04:00
|
|
|
<p>Proudly accessible without JavaScript</p>
|
2022-07-22 17:03:59 -04:00
|
|
|
<p>
|
2022-08-07 21:27:35 -04:00
|
|
|
Licensed under the AGPL-3.0 on
|
2022-07-22 17:03:59 -04:00
|
|
|
<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-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);
|
2022-08-07 21:25:30 -04:00
|
|
|
margin-top: 2rem;
|
2022-08-07 20:25:25 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
html.dark footer {
|
|
|
|
--footer-drop-color: black;
|
2022-07-22 17:10:03 -04:00
|
|
|
}
|
2022-07-21 22:03:35 -04:00
|
|
|
</style>
|