Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 39 additions & 28 deletions web/app/not-found.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import type { Metadata } from 'next';
import Link from 'next/link';
import { ArrowLeft, BookOpen } from 'lucide-react';

import { AgentToolLogo } from '../components/AgentToolLogos';
import { LogoIcon, LogoWordmark } from '../components/SiteNav';
import { LostMessages } from './not-found/LostMessages';
import { LostField } from './not-found/LostField';
import { RouteReadout } from './not-found/RouteReadout';
import s from './not-found/not-found.module.css';

export const metadata: Metadata = {
title: 'Message not delivered',
title: 'Lost in the relay',
description: 'This Agent Relay route could not be found.',
robots: {
index: false,
Expand All @@ -18,42 +20,51 @@ export const metadata: Metadata = {
export default function NotFound() {
return (
<main className={s.page}>
<LostField />
<div aria-hidden="true" className={s.vignette} />

<header className={s.nav}>
<Link href="/" className={s.brand} aria-label="Agent Relay home">
<LogoIcon />
<LogoWordmark />
</Link>

<span className={s.routeCode}>ERR_ROUTE_NOT_FOUND</span>
</header>

<div className={s.layout}>
<section className={s.copy}>
<div className={s.errorCode} aria-hidden="true">
404
</div>
<p className={s.kicker}>Delivery failed</p>
<h1>Message sent. Page never joined.</h1>
<p className={s.lede}>A few agents are looking for it. They are not doing a great job.</p>

<div className={s.actions}>
<Link href="/" className={s.primaryAction}>
<ArrowLeft aria-hidden="true" size={18} strokeWidth={1.8} />
Back to safety
</Link>
<Link href="/docs" className={s.secondaryAction}>
<BookOpen aria-hidden="true" size={18} strokeWidth={1.8} />
Read the docs
</Link>
</div>
</section>

<LostMessages />
</div>
<section className={s.content}>
<div className={s.code} aria-hidden="true">
<span className={s.digit} data-text="4">
4
</span>
<span className={s.zero}>
<AgentToolLogo className={s.zeroMark} idPrefix="" provider="claude" />
</span>
<span className={s.digit} data-text="4">
4
</span>
</div>

<h1 className={s.title}>This page wandered off the relay.</h1>
<p className={s.lede}>
We sent every agent we had to find it. As you can see, they are lost too.
</p>

<RouteReadout />

<div className={s.actions}>
<Link href="/" className={s.primaryAction}>
<ArrowLeft aria-hidden="true" size={18} strokeWidth={1.8} />
Back to home
</Link>
<Link href="/docs" className={s.secondaryAction}>
<BookOpen aria-hidden="true" size={18} strokeWidth={1.8} />
Read the docs
</Link>
</div>
</section>

<footer className={s.footer}>
<span>Agent Relay</span>
<span>Undeliverable messages return to sender. Eventually.</span>
<span className={s.hint}>psst · click anywhere</span>
</footer>
</main>
);
Expand Down
Loading
Loading