Adds the Over mij page
Replaces the placeholder with the page from the design and the texts from the live site: Andrea's introduction with her portrait, how it started, two photos, life outside photography and a booking button. The page is now indexed, with its own title, description, preview image and AboutPage data about Andrea. The portrait loads straight away instead of after the page, since on phones it is the largest paint. Lighthouse no longer lets every indexed page use the homepage's lower mobile performance target; it now only applies to the homepage itself. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -4,6 +4,7 @@ import type { ContactFormEvent } from '../lib/contactFormReducer';
|
||||
import type {
|
||||
EmailAddress,
|
||||
PricingPackage,
|
||||
SiteContent,
|
||||
SocialLink,
|
||||
Testimonial,
|
||||
} from '../content/types';
|
||||
@@ -55,6 +56,31 @@ export const anyEmail: fc.Arbitrary<EmailAddress> = fc.oneof(
|
||||
fc.record({ user: fc.string(), domain: fc.string() }),
|
||||
);
|
||||
|
||||
// Site-wide content as the CMS could deliver it; a valid e-mail address, so
|
||||
// tests can check it never leaks into output
|
||||
export const anySiteContent: fc.Arbitrary<SiteContent> = fc.record({
|
||||
footerIntro: fc.string(),
|
||||
socials: fc.array(socialLink, { maxLength: 4 }),
|
||||
email: validEmail,
|
||||
contactForm: fc.record({ enabled: fc.boolean() }),
|
||||
});
|
||||
|
||||
// Specialisations with padding, blanks and repeats, as an editor might type
|
||||
const specialisation = fc.oneof(
|
||||
fc.constantFrom('Newbornfotografie', 'Gezinsfotografie', '', ' '),
|
||||
fc.string({ maxLength: 20 }),
|
||||
);
|
||||
export const knowsAboutEntries = fc.array(
|
||||
fc
|
||||
.tuple(
|
||||
fc.constantFrom('', ' ', ' '),
|
||||
specialisation,
|
||||
fc.constantFrom('', ' '),
|
||||
)
|
||||
.map(([before, text, after]) => before + text + after),
|
||||
{ maxLength: 8 },
|
||||
);
|
||||
|
||||
// Package ids: a few fixed ones so lists contain duplicates, plus random slugs
|
||||
const packageId = fc.oneof(
|
||||
fc.constantFrom('newborn', 'gezin', 'zwangerschap'),
|
||||
|
||||
Reference in New Issue
Block a user