feature/services-pages (#7)
Reviewed-on: #7 Co-authored-by: mifi <badmf@mifi.dev> Co-committed-by: mifi <badmf@mifi.dev>
This commit was merged in pull request #7.
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
import type { PageLoad } from './$types';
|
||||
import type { PageMeta } from '$lib/seo';
|
||||
import { defaultJsonLdGraph } from '$lib/data/home/json-ld';
|
||||
import { pageContent } from '$lib/data/services/hands-on-saas-architecture-consultant/content';
|
||||
import { faqItems } from '$lib/data/services/hands-on-saas-architecture-consultant/faq';
|
||||
|
||||
const BASE = 'https://mifi.ventures';
|
||||
const PAGE_URL = `${BASE}/services/hands-on-saas-architecture-consultant/`;
|
||||
|
||||
function buildFaqPageJsonLd(): Record<string, unknown> {
|
||||
return {
|
||||
'@type': 'FAQPage',
|
||||
'@id': `${PAGE_URL}#faq`,
|
||||
mainEntity: faqItems.map((item) => ({
|
||||
'@type': 'Question',
|
||||
name: item.question,
|
||||
acceptedAnswer: {
|
||||
'@type': 'Answer',
|
||||
text: item.answer,
|
||||
},
|
||||
})),
|
||||
};
|
||||
}
|
||||
|
||||
export const load: PageLoad = () => {
|
||||
const { meta } = pageContent;
|
||||
const servicePageMeta: PageMeta = {
|
||||
title: meta.title,
|
||||
description: meta.description,
|
||||
jsonLd: [
|
||||
...defaultJsonLdGraph,
|
||||
{
|
||||
'@type': 'ProfessionalService',
|
||||
'@id': `${BASE}/services/hands-on-saas-architecture-consultant/#service`,
|
||||
name: 'mifi Ventures',
|
||||
url: PAGE_URL,
|
||||
description: meta.jsonLdServiceDescription ?? meta.description,
|
||||
serviceType: [
|
||||
'Product Architecture',
|
||||
'SaaS Engineering Consulting',
|
||||
'Frontend Systems Architecture',
|
||||
],
|
||||
provider: { '@id': `${BASE}/#organization` },
|
||||
areaServed: { '@type': 'Country', name: 'United States' },
|
||||
},
|
||||
buildFaqPageJsonLd(),
|
||||
],
|
||||
};
|
||||
return { meta: servicePageMeta };
|
||||
};
|
||||
Reference in New Issue
Block a user