feat: add root and public layouts with config-driven theming

This commit is contained in:
2026-03-26 12:03:31 -05:00
parent a30205fa28
commit 2fa3d4ec67
4 changed files with 56 additions and 5 deletions
+16
View File
@@ -0,0 +1,16 @@
import { db } from '$lib/server/db';
import { sponsors } from '$lib/server/schema';
import { eq, asc } from 'drizzle-orm';
import type { LayoutServerLoad } from './$types';
export const load: LayoutServerLoad = async ({ parent }) => {
const parentData = await parent();
const allSponsors = await db
.select()
.from(sponsors)
.where(eq(sponsors.active, true))
.orderBy(asc(sponsors.sortOrder));
return { ...parentData, sponsors: allSponsors };
};