tethys.backend/resources/js/Layouts/LayoutAuthenticated.vue

40 lines
1.2 KiB
Vue
Raw Permalink Normal View History

2023-03-03 15:54:28 +00:00
<script lang="ts" setup>
2023-03-17 15:13:37 +00:00
import { LayoutService } from '@/Stores/layout';
import { StyleService } from '@/Stores/style';
import NavBar from '@/Components/NavBar.vue';
import AsideMenu from '@/Components/AsideMenu.vue';
import FooterBar from '@/Components/FooterBar.vue';
import NotificationToast from '@/Components/NotificationToast.vue';
2023-03-03 15:54:28 +00:00
2023-03-17 15:13:37 +00:00
const styleService = StyleService();
2023-03-03 15:54:28 +00:00
2023-03-17 15:13:37 +00:00
const layoutService = LayoutService();
2023-03-03 15:54:28 +00:00
2023-03-17 15:13:37 +00:00
// defineProps({
2023-03-03 15:54:28 +00:00
// user: {
// type: Object,
// default: () => ({}),
// }
// });
</script>
<template>
<div
2023-03-17 15:13:37 +00:00
:class="{
'dark': styleService.darkMode,
'overflow-hidden lg:overflow-visible': layoutService.isAsideMobileExpanded,
}"
2023-03-03 15:54:28 +00:00
>
2023-03-17 15:13:37 +00:00
<div
:class="{ 'ml-60 lg:ml-0': layoutService.isAsideMobileExpanded }"
class="pt-14 xl:pl-60 min-h-screen w-screen transition-position lg:w-auto bg-gray-50 dark:bg-slate-800 dark:text-slate-100"
>
<NavBar :class="{ 'ml-60 lg:ml-0': layoutService.isAsideMobileExpanded }" />
<AsideMenu />
<slot></slot>
<FooterBar />
</div>
2023-03-03 15:54:28 +00:00
</div>
<NotificationToast></NotificationToast>
2023-03-03 15:54:28 +00:00
</template>