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:
@@ -1,13 +1,27 @@
|
||||
import { SkipNavContent, SkipNavLink } from '@chakra-ui/react';
|
||||
import { Outlet } from '@tanstack/react-router';
|
||||
import siteContent from '@/content/siteContent';
|
||||
import useRouteFocus from '@/hooks/useRouteFocus';
|
||||
import BackToTop from './BackToTop/BackToTop';
|
||||
import Footer from './Footer/Footer';
|
||||
import NavigationBar from './NavigationBar/NavigationBar';
|
||||
import Footer from './Footer';
|
||||
|
||||
// Het frame om elke pagina (LAYOUT.md "Shell"): header, inhoud en footer.
|
||||
// Hier komt de site-brede content binnen; straks uit een loader of de API.
|
||||
export default function AppShell() {
|
||||
useRouteFocus();
|
||||
|
||||
return (
|
||||
<>
|
||||
<SkipNavLink id="main" data-testid="skip-link">
|
||||
Direct naar de inhoud
|
||||
</SkipNavLink>
|
||||
<NavigationBar />
|
||||
<Outlet />
|
||||
<Footer />
|
||||
<SkipNavContent as="main" id="main">
|
||||
<Outlet />
|
||||
</SkipNavContent>
|
||||
<Footer content={siteContent} />
|
||||
<BackToTop />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user