hornwitser.no/content/projects.tsx

30 lines
618 B
TypeScript
Raw Normal View History

import { BasePage } from "./bases.js";
import type { Page } from "./types.js";
2025-01-25 08:55:26 +01:00
import mySite from "./projects/my-site.js";
export const projects: Page[] = [
2025-01-25 08:55:26 +01:00
mySite,
].map(page => ({
title: page.title,
ref: page.ref,
content: <BasePage title={page.title}>
<h1>{page.title}</h1>
2025-01-25 08:55:26 +01:00
{page.content}
</BasePage>
}));
const title = "Hornwitser's Projects";
export const projectsIndex: Page = {
title,
ref: "/projects.html",
content: <BasePage title={title}>
<main>
<h1>{title}</h1>
<ul>
{ projects.map(project => <li><a href={project.ref}>{project.title}</a></li>)}
</ul>
</main>
</BasePage>
}