{/* @license CC0-1.0 */}
import { Meta } from "@storybook/blocks"; import * as HomeStories from "./HomePage.stories.tsx";
The starting page of an application generally provides a broad overview of subjects, common tasks, and recent articles.
A typical layout for a homepage:
<Page>
<SkipLink href="#main">Direct naar inhoud</SkipLink>
<PageGrid>
<PageHeader />
</PageGrid>
<PageBody as="main" id="main">
<Overlap>
<Search />
</Overlap>
<PageGrid>
<AppComponent1 />
<AppComponent2 />
<AppComponent3 />
</PageGrid>
</PageBody>
<PageFooter>
<PageGrid />
</PageFooter>
</Page>
- The Skip Link prevents users from having to pass all preceding navigation links.
- The Screen component sets a maximum width for the entire page.
- The Grid divides the available width into 4, 8, or 12 columns.
- The Header shows the logo and menus for the application.
- The main element wraps everything between Header and Footer. It carries an id for the skip link to target.
- An Overlap stacks a Search Field on a background Image. It is as wide as the Grid, hence it is a sibling of it.
- Other components in the main area are laid out on a Grid again.
- The Footer contains its own Grid. This allows its background colour to stretch to the Screen’s width.