Add homepage and make bridges look nice

This commit is contained in:
2026-02-06 23:09:51 +00:00
parent d406db9d18
commit d53748f8ae
16 changed files with 818 additions and 355 deletions

17
src/routes/+page.ts Normal file
View File

@@ -0,0 +1,17 @@
import type { PageLoad } from "./$types";
export const load: PageLoad = async ({ fetch }) => {
const response = await fetch('map-index.json');
if (!response.ok) {
return { maps: [] };
}
const maps = await response.json();
return {
maps: maps.sort((a: any, b: any) => {
return Number(a.routeId) - Number(b.routeId);
})
};
};