diff --git a/web/src/routes/projects/+page.server.ts b/web/src/routes/projects/+page.server.ts deleted file mode 100644 index 2987048..0000000 --- a/web/src/routes/projects/+page.server.ts +++ /dev/null @@ -1,43 +0,0 @@ -import type { PageServerLoad } from "./$types"; -import { apiFetch } from "$lib/api.server"; -import { getOGImageUrl } from "$lib/og-types"; -import { renderIconSVG } from "$lib/server/icons"; - -interface ProjectLink { - url: string; - title?: string; -} - -export interface Project { - id: string; - slug: string; - name: string; - shortDescription: string; - icon?: string; - iconSvg?: string; - links: ProjectLink[]; -} - -export const load: PageServerLoad = async ({ url }) => { - const projects = await apiFetch("/api/projects"); - - // Render icon SVGs server-side - const projectsWithIcons = await Promise.all( - projects.map(async (project) => ({ - ...project, - iconSvg: await renderIconSVG(project.icon ?? "lucide:heart", { - class: "text-3xl opacity-80 saturate-0", - }), - })), - ); - - return { - projects: projectsWithIcons, - metadata: { - title: "Projects | Xevion.dev", - description: "...", - ogImage: getOGImageUrl({ type: "projects" }), - url: url.toString(), - }, - }; -}; diff --git a/web/src/routes/projects/+page.svelte b/web/src/routes/projects/+page.svelte deleted file mode 100644 index 0177992..0000000 --- a/web/src/routes/projects/+page.svelte +++ /dev/null @@ -1,57 +0,0 @@ - - - -
-
-

- Projects -

-

- created, maintained, or contributed to by me... -

-
- - {#each data.projects as project (project.id)} - {@const links = project.links} - {@const useAnchor = links.length > 0} - {@const href = useAnchor ? links[0].url : undefined} - {@const iconSvg = project.iconSvg} - -
- -
- - {@html iconSvg} -
-
- - {project.name} - -

- {project.shortDescription} -

-
-
-
- {/each} -
-