2026-02-02 20:34:35 +00:00
|
|
|
import type { Metadata } from 'next';
|
2026-02-02 21:39:40 +00:00
|
|
|
import { DM_Sans, Playfair_Display } from 'next/font/google';
|
2026-02-20 15:52:53 +00:00
|
|
|
import Script from 'next/script';
|
2026-02-02 20:34:35 +00:00
|
|
|
import { Navigation } from '@/components/Navigation';
|
|
|
|
|
import { Footer } from '@/components/Footer';
|
2026-03-05 09:33:47 +00:00
|
|
|
import { ComparisonToast } from '@/components/ComparisonToast';
|
2026-02-02 20:34:35 +00:00
|
|
|
import { ComparisonProvider } from '@/context/ComparisonProvider';
|
|
|
|
|
import './globals.css';
|
|
|
|
|
|
2026-02-02 21:39:40 +00:00
|
|
|
const dmSans = DM_Sans({
|
|
|
|
|
subsets: ['latin'],
|
|
|
|
|
weight: ['400', '500', '600', '700'],
|
|
|
|
|
variable: '--font-dm-sans',
|
|
|
|
|
display: 'swap',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const playfairDisplay = Playfair_Display({
|
|
|
|
|
subsets: ['latin'],
|
|
|
|
|
weight: ['600', '700'],
|
|
|
|
|
variable: '--font-playfair',
|
|
|
|
|
display: 'swap',
|
|
|
|
|
});
|
|
|
|
|
|
2026-02-02 20:34:35 +00:00
|
|
|
export const metadata: Metadata = {
|
|
|
|
|
title: {
|
feat: add secondary school support with KS4 data and metric tooltips
- Backend: replace INNER JOIN ks2 with UNION ALL (ks2 + ks4) so primary
and secondary schools both appear in the main DataFrame
- Backend: add /api/national-averages endpoint computing means from live
data, replacing the hardcoded NATIONAL_AVG constant on the frontend
- Backend: add phase filter param to /api/schools; return phases from
/api/filters; fix hardcoded "phase": "Primary" in school detail endpoint
- Backend: add KS4 metric definitions (Attainment 8, Progress 8, EBacc,
English & Maths pass rates) to METRIC_DEFINITIONS and RANKING_COLUMNS
- Frontend: SchoolDetailView is now phase-aware — secondary schools show
a GCSE Results section (Att8, P8, E&M, EBacc) instead of SATs; phonics
tab hidden for secondary; admissions says Year 7 instead of Year 3;
history table shows KS4 columns; chart datasets switch for secondary
- Frontend: new MetricTooltip component (CSS-only ⓘ icon) backed by
METRIC_EXPLANATIONS — added to RWM, GPS, SEN, EAL, IDACI, progress
scores and all KS4 metrics throughout SchoolDetailView and SchoolCard
- Frontend: METRIC_EXPLANATIONS extended with KS4 terms (Attainment 8,
Progress 8, EBacc) and previously missing terms (SEN, EHCP, EAL, IDACI)
- Frontend: SchoolCard expands "RWM" to "Reading, Writing & Maths" and
shows Attainment 8 / English & Maths Grade 4+ for secondary schools
- Frontend: FilterBar adds Phase dropdown (Primary / Secondary / All-through)
- Frontend: HomeView hero copy updated; compact list shows phase-aware metric
- Global metadata updated to remove "primary only" framing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 14:59:40 +00:00
|
|
|
default: 'SchoolCompare | Compare School Performance',
|
2026-02-02 20:34:35 +00:00
|
|
|
template: '%s | SchoolCompare',
|
|
|
|
|
},
|
feat: add secondary school support with KS4 data and metric tooltips
- Backend: replace INNER JOIN ks2 with UNION ALL (ks2 + ks4) so primary
and secondary schools both appear in the main DataFrame
- Backend: add /api/national-averages endpoint computing means from live
data, replacing the hardcoded NATIONAL_AVG constant on the frontend
- Backend: add phase filter param to /api/schools; return phases from
/api/filters; fix hardcoded "phase": "Primary" in school detail endpoint
- Backend: add KS4 metric definitions (Attainment 8, Progress 8, EBacc,
English & Maths pass rates) to METRIC_DEFINITIONS and RANKING_COLUMNS
- Frontend: SchoolDetailView is now phase-aware — secondary schools show
a GCSE Results section (Att8, P8, E&M, EBacc) instead of SATs; phonics
tab hidden for secondary; admissions says Year 7 instead of Year 3;
history table shows KS4 columns; chart datasets switch for secondary
- Frontend: new MetricTooltip component (CSS-only ⓘ icon) backed by
METRIC_EXPLANATIONS — added to RWM, GPS, SEN, EAL, IDACI, progress
scores and all KS4 metrics throughout SchoolDetailView and SchoolCard
- Frontend: METRIC_EXPLANATIONS extended with KS4 terms (Attainment 8,
Progress 8, EBacc) and previously missing terms (SEN, EHCP, EAL, IDACI)
- Frontend: SchoolCard expands "RWM" to "Reading, Writing & Maths" and
shows Attainment 8 / English & Maths Grade 4+ for secondary schools
- Frontend: FilterBar adds Phase dropdown (Primary / Secondary / All-through)
- Frontend: HomeView hero copy updated; compact list shows phase-aware metric
- Global metadata updated to remove "primary only" framing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 14:59:40 +00:00
|
|
|
description: 'Compare primary and secondary school SATs and GCSE performance across England',
|
|
|
|
|
keywords: 'school comparison, KS2 results, KS4 results, primary school, secondary school, England schools, SATs results, GCSE results',
|
2026-02-02 20:34:35 +00:00
|
|
|
authors: [{ name: 'SchoolCompare' }],
|
|
|
|
|
manifest: '/manifest.json',
|
2026-02-02 22:34:14 +00:00
|
|
|
icons: {
|
|
|
|
|
icon: '/favicon.svg',
|
|
|
|
|
shortcut: '/favicon.svg',
|
|
|
|
|
apple: '/favicon.svg',
|
|
|
|
|
},
|
2026-02-02 20:34:35 +00:00
|
|
|
openGraph: {
|
|
|
|
|
type: 'website',
|
feat: add secondary school support with KS4 data and metric tooltips
- Backend: replace INNER JOIN ks2 with UNION ALL (ks2 + ks4) so primary
and secondary schools both appear in the main DataFrame
- Backend: add /api/national-averages endpoint computing means from live
data, replacing the hardcoded NATIONAL_AVG constant on the frontend
- Backend: add phase filter param to /api/schools; return phases from
/api/filters; fix hardcoded "phase": "Primary" in school detail endpoint
- Backend: add KS4 metric definitions (Attainment 8, Progress 8, EBacc,
English & Maths pass rates) to METRIC_DEFINITIONS and RANKING_COLUMNS
- Frontend: SchoolDetailView is now phase-aware — secondary schools show
a GCSE Results section (Att8, P8, E&M, EBacc) instead of SATs; phonics
tab hidden for secondary; admissions says Year 7 instead of Year 3;
history table shows KS4 columns; chart datasets switch for secondary
- Frontend: new MetricTooltip component (CSS-only ⓘ icon) backed by
METRIC_EXPLANATIONS — added to RWM, GPS, SEN, EAL, IDACI, progress
scores and all KS4 metrics throughout SchoolDetailView and SchoolCard
- Frontend: METRIC_EXPLANATIONS extended with KS4 terms (Attainment 8,
Progress 8, EBacc) and previously missing terms (SEN, EHCP, EAL, IDACI)
- Frontend: SchoolCard expands "RWM" to "Reading, Writing & Maths" and
shows Attainment 8 / English & Maths Grade 4+ for secondary schools
- Frontend: FilterBar adds Phase dropdown (Primary / Secondary / All-through)
- Frontend: HomeView hero copy updated; compact list shows phase-aware metric
- Global metadata updated to remove "primary only" framing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 14:59:40 +00:00
|
|
|
title: 'SchoolCompare | Compare School Performance',
|
|
|
|
|
description: 'Compare primary and secondary school SATs and GCSE performance across England',
|
2026-02-02 20:34:35 +00:00
|
|
|
url: 'https://schoolcompare.co.uk',
|
|
|
|
|
siteName: 'SchoolCompare',
|
|
|
|
|
},
|
|
|
|
|
twitter: {
|
|
|
|
|
card: 'summary',
|
feat: add secondary school support with KS4 data and metric tooltips
- Backend: replace INNER JOIN ks2 with UNION ALL (ks2 + ks4) so primary
and secondary schools both appear in the main DataFrame
- Backend: add /api/national-averages endpoint computing means from live
data, replacing the hardcoded NATIONAL_AVG constant on the frontend
- Backend: add phase filter param to /api/schools; return phases from
/api/filters; fix hardcoded "phase": "Primary" in school detail endpoint
- Backend: add KS4 metric definitions (Attainment 8, Progress 8, EBacc,
English & Maths pass rates) to METRIC_DEFINITIONS and RANKING_COLUMNS
- Frontend: SchoolDetailView is now phase-aware — secondary schools show
a GCSE Results section (Att8, P8, E&M, EBacc) instead of SATs; phonics
tab hidden for secondary; admissions says Year 7 instead of Year 3;
history table shows KS4 columns; chart datasets switch for secondary
- Frontend: new MetricTooltip component (CSS-only ⓘ icon) backed by
METRIC_EXPLANATIONS — added to RWM, GPS, SEN, EAL, IDACI, progress
scores and all KS4 metrics throughout SchoolDetailView and SchoolCard
- Frontend: METRIC_EXPLANATIONS extended with KS4 terms (Attainment 8,
Progress 8, EBacc) and previously missing terms (SEN, EHCP, EAL, IDACI)
- Frontend: SchoolCard expands "RWM" to "Reading, Writing & Maths" and
shows Attainment 8 / English & Maths Grade 4+ for secondary schools
- Frontend: FilterBar adds Phase dropdown (Primary / Secondary / All-through)
- Frontend: HomeView hero copy updated; compact list shows phase-aware metric
- Global metadata updated to remove "primary only" framing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-28 14:59:40 +00:00
|
|
|
title: 'SchoolCompare | Compare School Performance',
|
|
|
|
|
description: 'Compare primary and secondary school SATs and GCSE performance across England',
|
2026-02-02 20:34:35 +00:00
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default function RootLayout({
|
|
|
|
|
children,
|
|
|
|
|
}: Readonly<{
|
|
|
|
|
children: React.ReactNode;
|
|
|
|
|
}>) {
|
|
|
|
|
return (
|
|
|
|
|
<html lang="en">
|
2026-02-20 15:52:53 +00:00
|
|
|
<head>
|
|
|
|
|
<Script
|
|
|
|
|
defer
|
|
|
|
|
src="https://analytics.schoolcompare.co.uk/script.js"
|
|
|
|
|
data-website-id="d7fb0c95-bb6c-4336-8209-bd10077e50dd"
|
|
|
|
|
strategy="afterInteractive"
|
|
|
|
|
/>
|
|
|
|
|
</head>
|
2026-02-02 21:39:40 +00:00
|
|
|
<body className={`${dmSans.variable} ${playfairDisplay.variable}`}>
|
|
|
|
|
<div className="noise-overlay" />
|
2026-02-02 20:34:35 +00:00
|
|
|
<ComparisonProvider>
|
2026-03-25 20:28:03 +00:00
|
|
|
<a href="#main-content" className="skip-link">Skip to main content</a>
|
2026-02-02 21:39:40 +00:00
|
|
|
<Navigation />
|
2026-03-25 20:28:03 +00:00
|
|
|
<main id="main-content" className="main">
|
2026-02-02 21:39:40 +00:00
|
|
|
{children}
|
|
|
|
|
</main>
|
2026-03-05 09:33:47 +00:00
|
|
|
<ComparisonToast />
|
2026-02-02 21:39:40 +00:00
|
|
|
<Footer />
|
2026-02-02 20:34:35 +00:00
|
|
|
</ComparisonProvider>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
);
|
|
|
|
|
}
|