36 lines
645 B
Vue
36 lines
645 B
Vue
<template>
|
|
<div class="layout">
|
|
<YalHeader />
|
|
<main class="main-content">
|
|
<slot />
|
|
</main>
|
|
<YalFooter />
|
|
<BottomNav />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import YalHeader from '~/components/layout/YalHeader.vue'
|
|
import YalFooter from '~/components/layout/YalFooter.vue'
|
|
import BottomNav from '~/components/layout/BottomNav.vue'
|
|
</script>
|
|
|
|
<style scoped>
|
|
.layout {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.main-content {
|
|
flex: 1;
|
|
padding-top: var(--header-height);
|
|
}
|
|
|
|
@media (max-width: 744px) {
|
|
.main-content {
|
|
padding-bottom: var(--bottom-nav-height);
|
|
}
|
|
}
|
|
</style>
|