jointrashposs/layouts/slim.vue

27 lines
606 B
Vue
Raw Normal View History

2023-09-24 11:35:25 +02:00
<script setup lang="ts">
const isNavOpen = ref<boolean>(false);
useHead({
htmlAttrs: {
class: 'scroll-pt-32 lg:scroll-pt-20',
},
});
</script>
<template>
<div class="bg-white dark:bg-slate-950">
2023-12-13 11:49:01 +01:00
<GNav @toggleNav="isNavOpen = !isNavOpen" :is-open="isNavOpen" :slim="true" :disable-shadow="true" :hasBorder="true" />
2023-09-24 11:35:25 +02:00
<div class="main-content" :class="$style.slimPageRoot">
<slot />
</div>
<GFooter class="bg-slate-100 dark:bg-gray-900" />
</div>
</template>
<style module>
.slimPageRoot {
min-height: calc(100vh - 4rem);
}
</style>