import { FreshContext, Handlers, PageProps } from "$fresh/server.ts"; import { ProjectCard } from "../../islands/ProjectCard.tsx"; interface ProjectData { project_id: number; title: string; repo?: string; summary: string; description?: string; tech: string; wip?: boolean; created_at: string; images: Array; } export const handler: Handlers> = { async GET(_req: Request, ctx: FreshContext) { const projectResult = await fetch( `${Deno.env.get("BASE_URI_API")}/projects`, ); const projectData = await projectResult.json(); return ctx.render(projectData); }, }; export default function Projects(props: PageProps>) { const projects = props.data; return (

Projects

Here's a collection of software and electronics projects I've been tinkering with during my free time - some are ongoing adventures, others are finished experiments, but they've all been exciting challenges that keep me busy when I'm not doing "real work" stuff!

{projects.map((project: ProjectData) => { return ( ); })}
); }