Skip to content

Commit

Permalink
chore: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed May 12, 2024
1 parent 6638f06 commit b11c0f5
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions resources/layouts/dashboard/default.vue
Expand Up @@ -7,9 +7,19 @@
<div class="lg:pl-64">
<Navbar />

<main class="bg-blue-gray-50 dark:bg-blue-gray-900">
<RouterView />
</main>
<router-view v-slot="{ Component }">
<main v-if="Component" class="bg-blue-gray-50 dark:bg-blue-gray-900">
<Transition mode="out-in">
<Suspense timeout="0">
<Component :is="Component" />
<template #fallback>
Loading...
</template>
</Suspense>
</Transition>
</main>
</router-view>
<!-- <RouterView /> -->

<Toast />
</div>
Expand All @@ -20,4 +30,14 @@
body {
@apply dark:bg-blue-gray-900 bg-blue-gray-50;
}
.v-enter-active,
.v-leave-active {
transition: opacity 0.1s ease-in-out;
}
.v-enter-from,
.v-leave-to {
opacity: 0;
}
</style>

0 comments on commit b11c0f5

Please sign in to comment.