Files
gw-svelte/src/test/fixtures.ts
T

29 lines
736 B
TypeScript
Raw Normal View History

2026-05-02 08:26:18 +12:00
import { homepageContent } from '$lib/content/homepage';
import { staticPages, type StaticPageSlug } from '$lib/content/static-pages';
export const sharedPageContent = {
navigation: homepageContent.navigation,
services: homepageContent.services,
testimonials: homepageContent.testimonials,
booking: homepageContent.booking,
2026-05-06 11:36:19 +12:00
info: homepageContent.info,
2026-05-02 08:26:18 +12:00
footer: homepageContent.footer
};
export function createHomepageRouteData() {
return {
siteVariant: 'marketing',
content: homepageContent,
howItWorksEnabled: false
2026-05-02 08:26:18 +12:00
};
}
export function createStaticRouteData(slug: StaticPageSlug) {
return {
content: sharedPageContent,
2026-05-04 20:32:24 +12:00
generalEnquiryEnabled: false,
2026-05-02 08:26:18 +12:00
page: staticPages[slug],
slug
};
}