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.b(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.b(Footer, { path, title })} ` const styles = css` main { background-color: #fff; } ` export async function AboutPage (ctx, { path, title }) { ctx.css.add(base) ctx.css.add(styles) ctx.head.add(head({ title })) ctx.body = await body(ctx, { path, title }) return ctx }