trains: pokedex pages (builders, operators, countries, detail, random) and registrations
All checks were successful
Deploy production / deploy (push) Successful in 1m9s

This commit is contained in:
2026-10-25 00:11:50 +00:00
parent 8c0fc74283
commit 5f940e8196
28 changed files with 2630 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import { trainOverview } from '#lib/server/trains.js';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = async () => {
const { byBuilt, stats } = await trainOverview();
return {
makers: byBuilt.map(({ slug, name, types, built, logo }) => ({
slug,
name,
types,
built,
logo
})),
stats,
seo: {
title: 'Train builders',
description: `All ${stats.makers} train builders in the train pokedex with their logos, most built first.`
}
};
};