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,10 +1,8 @@
|
||||
import { chakra, useRecipe, type RecipeVariantProps } from '@chakra-ui/react';
|
||||
import { Link } from '@tanstack/react-router';
|
||||
import { useRecipe, type RecipeVariantProps } from '@chakra-ui/react';
|
||||
import type linkButtonRecipe from '../recipes/linkButton';
|
||||
import RouterLink from './RouterLink';
|
||||
|
||||
const ChakraLink = chakra(Link);
|
||||
|
||||
type LinkButtonProps = React.ComponentProps<typeof ChakraLink> &
|
||||
type LinkButtonProps = React.ComponentProps<typeof RouterLink> &
|
||||
RecipeVariantProps<typeof linkButtonRecipe>;
|
||||
|
||||
// Router-link in de knopstijl uit het design. Styling komt uit de
|
||||
@@ -13,5 +11,5 @@ export default function LinkButton(props: LinkButtonProps) {
|
||||
const recipe = useRecipe({ key: 'linkButton' });
|
||||
const [variantProps, rest] = recipe.splitVariantProps(props);
|
||||
|
||||
return <ChakraLink css={recipe(variantProps)} {...rest} />;
|
||||
return <RouterLink css={recipe(variantProps)} {...rest} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user