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:
@@ -10,43 +10,102 @@
|
||||
|
||||
import { Route as rootRouteImport } from './routes/__root'
|
||||
import { Route as IndexRouteImport } from './routes/index'
|
||||
import { Route as ContactRouteImport } from './routes/contact'
|
||||
import { Route as OverMijRouteImport } from './routes/over-mij'
|
||||
import { Route as PortfolioRouteImport } from './routes/portfolio'
|
||||
import { Route as PrivacyverklaringRouteImport } from './routes/privacyverklaring'
|
||||
import { Route as SoortenFotoshootsRouteImport } from './routes/soorten-fotoshoots'
|
||||
|
||||
const IndexRoute = IndexRouteImport.update({
|
||||
id: '/',
|
||||
path: '/',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const ContactRoute = ContactRouteImport.update({
|
||||
id: '/contact',
|
||||
path: '/contact',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const OverMijRoute = OverMijRouteImport.update({
|
||||
id: '/over-mij',
|
||||
path: '/over-mij',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const PortfolioRoute = PortfolioRouteImport.update({
|
||||
id: '/portfolio',
|
||||
path: '/portfolio',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const PrivacyverklaringRoute = PrivacyverklaringRouteImport.update({
|
||||
id: '/privacyverklaring',
|
||||
path: '/privacyverklaring',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
const SoortenFotoshootsRoute = SoortenFotoshootsRouteImport.update({
|
||||
id: '/soorten-fotoshoots',
|
||||
path: '/soorten-fotoshoots',
|
||||
getParentRoute: () => rootRouteImport,
|
||||
} as any)
|
||||
|
||||
export interface FileRoutesByFullPath {
|
||||
'/': typeof IndexRoute
|
||||
'/contact': typeof ContactRoute
|
||||
'/over-mij': typeof OverMijRoute
|
||||
'/portfolio': typeof PortfolioRoute
|
||||
'/privacyverklaring': typeof PrivacyverklaringRoute
|
||||
'/soorten-fotoshoots': typeof SoortenFotoshootsRoute
|
||||
}
|
||||
export interface FileRoutesByTo {
|
||||
'/': typeof IndexRoute
|
||||
'/contact': typeof ContactRoute
|
||||
'/over-mij': typeof OverMijRoute
|
||||
'/portfolio': typeof PortfolioRoute
|
||||
'/privacyverklaring': typeof PrivacyverklaringRoute
|
||||
'/soorten-fotoshoots': typeof SoortenFotoshootsRoute
|
||||
}
|
||||
export interface FileRoutesById {
|
||||
__root__: typeof rootRouteImport
|
||||
'/': typeof IndexRoute
|
||||
'/contact': typeof ContactRoute
|
||||
'/over-mij': typeof OverMijRoute
|
||||
'/portfolio': typeof PortfolioRoute
|
||||
'/privacyverklaring': typeof PrivacyverklaringRoute
|
||||
'/soorten-fotoshoots': typeof SoortenFotoshootsRoute
|
||||
}
|
||||
export interface FileRouteTypes {
|
||||
fileRoutesByFullPath: FileRoutesByFullPath
|
||||
fullPaths: '/' | '/over-mij'
|
||||
fullPaths:
|
||||
| '/'
|
||||
| '/contact'
|
||||
| '/over-mij'
|
||||
| '/portfolio'
|
||||
| '/privacyverklaring'
|
||||
| '/soorten-fotoshoots'
|
||||
fileRoutesByTo: FileRoutesByTo
|
||||
to: '/' | '/over-mij'
|
||||
id: '__root__' | '/' | '/over-mij'
|
||||
to:
|
||||
| '/'
|
||||
| '/contact'
|
||||
| '/over-mij'
|
||||
| '/portfolio'
|
||||
| '/privacyverklaring'
|
||||
| '/soorten-fotoshoots'
|
||||
id:
|
||||
| '__root__'
|
||||
| '/'
|
||||
| '/contact'
|
||||
| '/over-mij'
|
||||
| '/portfolio'
|
||||
| '/privacyverklaring'
|
||||
| '/soorten-fotoshoots'
|
||||
fileRoutesById: FileRoutesById
|
||||
}
|
||||
export interface RootRouteChildren {
|
||||
IndexRoute: typeof IndexRoute
|
||||
ContactRoute: typeof ContactRoute
|
||||
OverMijRoute: typeof OverMijRoute
|
||||
PortfolioRoute: typeof PortfolioRoute
|
||||
PrivacyverklaringRoute: typeof PrivacyverklaringRoute
|
||||
SoortenFotoshootsRoute: typeof SoortenFotoshootsRoute
|
||||
}
|
||||
|
||||
declare module '@tanstack/react-router' {
|
||||
@@ -58,6 +117,13 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof IndexRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/contact': {
|
||||
id: '/contact'
|
||||
path: '/contact'
|
||||
fullPath: '/contact'
|
||||
preLoaderRoute: typeof ContactRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/over-mij': {
|
||||
id: '/over-mij'
|
||||
path: '/over-mij'
|
||||
@@ -65,12 +131,37 @@ declare module '@tanstack/react-router' {
|
||||
preLoaderRoute: typeof OverMijRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/portfolio': {
|
||||
id: '/portfolio'
|
||||
path: '/portfolio'
|
||||
fullPath: '/portfolio'
|
||||
preLoaderRoute: typeof PortfolioRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/privacyverklaring': {
|
||||
id: '/privacyverklaring'
|
||||
path: '/privacyverklaring'
|
||||
fullPath: '/privacyverklaring'
|
||||
preLoaderRoute: typeof PrivacyverklaringRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
'/soorten-fotoshoots': {
|
||||
id: '/soorten-fotoshoots'
|
||||
path: '/soorten-fotoshoots'
|
||||
fullPath: '/soorten-fotoshoots'
|
||||
preLoaderRoute: typeof SoortenFotoshootsRouteImport
|
||||
parentRoute: typeof rootRouteImport
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const rootRouteChildren: RootRouteChildren = {
|
||||
IndexRoute: IndexRoute,
|
||||
ContactRoute: ContactRoute,
|
||||
OverMijRoute: OverMijRoute,
|
||||
PortfolioRoute: PortfolioRoute,
|
||||
PrivacyverklaringRoute: PrivacyverklaringRoute,
|
||||
SoortenFotoshootsRoute: SoortenFotoshootsRoute,
|
||||
}
|
||||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
|
||||
Reference in New Issue
Block a user