Completes the front-end shell with footer, status pages and SEO
Adds the footer, back-to-top button, skip link, placeholder routes, 404 and error pages inside the shell, plus per-page SEO from a single page registry (canonical URLs, Open Graph image, JSON-LD, generated sitemap.xml and robots.txt). Theme tokens and recipes replace repeated styling, the hero loads only the active and neighbouring slides, and the e-mail address is joined in the browser to keep it out of the HTML and bundle. Adds Vitest with property-based (fast-check) and axe tests, ESLint, security headers for dev and preview, Lighthouse CI and a `pnpm check` script that runs all quality gates. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import { Container, Flex, Heading, Text } from '@chakra-ui/react';
|
||||
import LinkButton from '../LinkButton';
|
||||
|
||||
type StatusPageProps = {
|
||||
title: string;
|
||||
children: ReactNode;
|
||||
// Standaard één knop terug naar home
|
||||
actions?: ReactNode;
|
||||
};
|
||||
|
||||
// Gedeelde opmaak van de 404- en de foutpagina
|
||||
export default function StatusPage({
|
||||
title,
|
||||
children,
|
||||
actions,
|
||||
}: StatusPageProps) {
|
||||
return (
|
||||
<Container
|
||||
as="section"
|
||||
maxW="2xl"
|
||||
pt="pageTop"
|
||||
pb={{ base: 16, md: 24 }}
|
||||
textAlign="center"
|
||||
>
|
||||
<Heading as="h1" textStyle="pageTitle" mb={4}>
|
||||
{title}
|
||||
</Heading>
|
||||
<Text color="ink.soft" mb={8}>
|
||||
{children}
|
||||
</Text>
|
||||
<Flex gap={4} justifyContent="center" wrap="wrap">
|
||||
{actions ?? (
|
||||
<LinkButton to="/" data-testid="status-page-home-link">
|
||||
Terug naar home
|
||||
</LinkButton>
|
||||
)}
|
||||
</Flex>
|
||||
</Container>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user