Something went wrong. Try again.
My website. cameron.stream
Something went wrong. Try again.
860 B · 34 lines
TSX
1234567891011121314151617181920212223242526272829303132333435// About page component — renders stream.cameron.about record.
import { raw } from "hono/html";import { getProfile } from "../data.ts";import { getAboutDocument } from "../about-content.ts";import { renderMarkdown } from "../markdown.ts";import { PageNav } from "./page-nav.tsx";
export async function About() { const [document, profile] = await Promise.all([ getAboutDocument(), getProfile(), ]);
const html = await renderMarkdown(document.body);
return ( <div> <PageNav profile={profile} active="about" /> <div class="blog-content about-content"> {raw(html)} </div> <footer class="page-footer"> <a href={`https://pdsls.dev/${document.uri}`} target="_blank" rel="noopener" > View record on PDS </a> </footer> </div> );}