← Public packages
@kentcdodds/photo-portfolio
A fast, photo-first portfolio site you update by chatting with your agent: galleries, about, contact, and one-step rollback.
Files
/** @jsxRuntime automatic */
/** @jsxImportSource remix/component */
import type { Site } from '../data/site.ts'
import { routes } from '../routes.ts'
import { render } from './render.tsx'
export function notFound(site: Site, what = 'That page') {
return render(
site,
{ title: 'Not found', canonical: site.requestUrl.href, noindex: true },
<section class="wrap narrow page-head">
<h1>Not found</h1>
<p class="lede">{what} isn't here. It may have moved or been removed.</p>
<p class="actions">
<a class="button" href={routes.galleries.href()}>
Browse galleries
</a>
</p>
</section>,
{ status: 404 },
)
}