refactor: improve project page

This commit is contained in:
Stefan Imhoff
2026-01-25 13:50:03 +01:00
committed by Stefan Imhoff
parent adf4084a42
commit ae5249359d
4 changed files with 17 additions and 29 deletions

View File

@@ -3,7 +3,7 @@ import Title from './Title.astro';
export interface Props {
class?: string;
grid?: 'wide' | 'narrow';
grid?: 'fullsize' | 'wide' | 'narrow';
innerGrid?: boolean;
}
@@ -14,6 +14,7 @@ const { class: className, grid = 'narrow', innerGrid } = Astro.props;
class:list={[
'col-start-2 col-end-18 !mbe-0',
{
'col-start-1 col-end-18': grid === 'fullsize',
'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,