import type { Metadata } from 'next'; import Image from 'next/image'; import { notFound } from 'next/navigation'; import { absoluteUrl } from '@/lib/site'; import { getFlags } from '@/lib/flags'; import { personJsonLd, organizationJsonLd } from '@/lib/jsonld'; import styles from './About.module.css'; export const metadata: Metadata = { title: 'About', description: 'Who builds schoolcompare, why it exists, and where its numbers come from.', alternates: { canonical: absoluteUrl('/about') }, }; /* * Gated on about_page. The default 300s read is the right floor here: this * page declares no revalidate of its own, so nothing is lost by it, and a flip * lands within five minutes. * * notFound(), not a redirect: while the flag is dark this URL does not exist, * and a 404 is what tells a crawler not to keep it. */ export default async function AboutPage() { const flags = await getFlags(); if (flags.about_page !== true) notFound(); const jsonLd = { '@context': 'https://schema.org', '@graph': [personJsonLd(), organizationJsonLd()], }; return (