import { html, css, sanitize } from '../templater.js' import { Header } from '../components/Header.js' import { Footer } from '../components/Footer.js' import base from '../styles/base.js' const head = ({ title }) => html` About Page - ${sanitize(title)} ` const body = async (ctx, { path, title }) => html` ${await ctx.renderBody(Header, { path, title })}

About Page - ${sanitize(title)}

Veniam quis commodo ad Lorem do proident et elit labore amet incididunt et culpa. Non ex in deserunt veniam minim pariatur incididunt consectetur. Aliqua occaecat irure eu est.

${await ctx.renderBody(Footer, { path, title })} ` const styles = css` main { background-color: #fff; } ` export async function AboutPage (ctx, { path, title }) { ctx.addCSS(base) ctx.addCSS(styles) ctx.addHead(head({ title })) ctx.setBody(await body(ctx, { path, title })) return ctx }