Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/thatdeveloperguy-website / app/routes/not-found.tsx |
| Date | Not specified in source |
| Repository | Janady13/thatdeveloperguy-website |
| Revision | 2bea2ebdff0e34494bff597d4fa9c8422a0c3a94 |
| Branch | main |
| Path or archive member | app/routes/not-found.tsx |
| Original SHA-256 | a1086b3f7982083c79af82ea3f27b6fafd9d3497f3c06daad16ccb96803a3f66 |
| Git blob SHA | cfcef0d52384f8f5a7edca908d5628fba8e39538 |
| Reading-copy SHA-256 | a1086b3f7982083c79af82ea3f27b6fafd9d3497f3c06daad16ccb96803a3f66 |
Recovered source transcript
Download complete source text ↓19 lines · 0.9 KB
import { Link } from 'react-router';
import navigation from '../../content/site/navigation.json';
import { pagesById } from '../../src/generated';
import { truth } from '../../src/authority/select-public-facts';
export function meta() { return [{ title: `Page not found — ${truth.org.name}` }, { name: 'robots', content: 'noindex' }]; }
export function NotFoundContent() {
const items = navigation.primary.flatMap(id => pagesById[id] ? [pagesById[id]!] : []);
return (
<section className="page-body not-found" aria-labelledby="nf-heading">
<h1 id="nf-heading">Page not found</h1>
<p>There is no page at this address. The rooms are here:</p>
<ul>{items.map(page => <li key={page.id}><Link to={page.path}>{page.heading}</Link></li>)}<li><Link to="/">The lobby</Link></li></ul>
</section>
);
}
export default function NotFound() { return <NotFoundContent />; }