2023-09-11 22:15:53 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import 'iconify-icon';
|
2023-09-19 00:48:39 +00:00
|
|
|
import Transition from '$lib/components/transition.svelte';
|
2023-09-11 22:15:53 +00:00
|
|
|
import Header from '$lib/components/header/index.svelte';
|
|
|
|
|
import Footer from '$lib/components/footer.svelte';
|
|
|
|
|
|
|
|
|
|
export let data;
|
|
|
|
|
</script>
|
|
|
|
|
|
2023-09-17 21:28:15 +00:00
|
|
|
<Header user={data.user} />
|
2023-09-11 22:15:53 +00:00
|
|
|
|
2023-09-17 21:28:15 +00:00
|
|
|
<main>
|
|
|
|
|
<Transition url={data.url} transition={{ type: 'page' }}>
|
|
|
|
|
<slot />
|
|
|
|
|
</Transition>
|
|
|
|
|
</main>
|
2023-09-11 22:15:53 +00:00
|
|
|
|
2023-09-17 21:28:15 +00:00
|
|
|
<Footer />
|
2023-09-11 22:15:53 +00:00
|
|
|
|
|
|
|
|
<style lang="postcss">
|
|
|
|
|
.background {
|
|
|
|
|
background: black;
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
cursor: none;
|
|
|
|
|
inset: 0;
|
|
|
|
|
position: fixed;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
}
|
|
|
|
|
|
2023-09-12 00:29:15 +00:00
|
|
|
/* .wrapper {
|
2023-09-11 22:15:53 +00:00
|
|
|
display: grid;
|
|
|
|
|
grid-template-rows: auto 1fr auto;
|
|
|
|
|
min-height: 100vh;
|
2023-09-12 00:29:15 +00:00
|
|
|
} */
|
2023-09-11 22:15:53 +00:00
|
|
|
|
|
|
|
|
main {
|
|
|
|
|
flex: 1;
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
max-width: 850px;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 2rem 0rem;
|
|
|
|
|
max-width: 80vw;
|
|
|
|
|
|
|
|
|
|
@media (min-width: 1600px) {
|
|
|
|
|
max-width: 70vw;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:global(.dialog-overlay) {
|
|
|
|
|
position: fixed;
|
|
|
|
|
inset: 0;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
background-color: rgb(0 0 0);
|
|
|
|
|
opacity: 0.8;
|
|
|
|
|
}
|
|
|
|
|
</style>
|