Files
website-astro-stefanimhoff.de/src/components/PageTitle.astro
2026-01-20 13:16:24 +01:00

26 lines
490 B
Plaintext

---
import Title from './Title.astro';
export interface Props {
class?: string;
grid?: 'wide' | 'narrow';
innerGrid?: boolean;
}
const { class: className, grid = 'narrow', innerGrid } = Astro.props;
---
<Title
class:list={[
'col-start-2 col-end-18 !mbe-0',
{
'md:col-start-3 md:col-end-17': grid === 'wide',
'md:col-start-3 md:col-end-15 xl:col-end-14 3xl:col-end-13': grid === 'narrow',
'!col-start-1 row-start-1': innerGrid,
},
className,
]}
>
<slot />
</Title>