1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-07 03:42:27 +04:00
Files
tabler/shared/layouts/SingleLayout.astro

31 lines
629 B
Plaintext

---
import BaseLayout from './BaseLayout.astro'
import NavbarLogo from '@shared/components/navbar/NavbarLogo.astro'
interface Props {
title?: string
containerSize?: string
hideLogo?: boolean
}
const { title, containerSize = 'tight', hideLogo } = Astro.props
---
<BaseLayout title={title}>
<!-- BEGIN PAGE BODY -->
<div class="page page-center">
<div class={`container container-${containerSize} py-4`}>
{
!hideLogo && (
<div class="text-center mb-4">
<NavbarLogo />
</div>
)
}
<slot />
</div>
</div>
<!-- END PAGE BODY -->
</BaseLayout>