Files
aranroig.com/frontend/app/components/layouts/AdminLayout.vue
Aran Roig 42084aeeb4
All checks were successful
Build and Deploy Nuxt / build (push) Successful in 1m46s
More things
2026-09-21 23:02:37 +02:00

41 lines
634 B
Vue

<script setup lang="ts">
import AdminSidebar from '~/components/parts/AdminSidebar.vue';
</script>
<template>
<div class="admin-shell">
<AdminSidebar />
<main class="admin-main">
<slot />
</main>
</div>
</template>
<style lang="scss" scoped>
.admin-shell {
position: fixed;
inset: 0;
z-index: 1000;
display: flex;
background: var(--color-background);
}
.admin-main {
flex: 1;
min-width: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.admin-main :slotted(*) {
flex: 1;
}
@media screen and (max-width: 900px) {
.admin-shell {
flex-direction: column;
}
}
</style>