Files
sweet/www/routes/_404.tsx
T
2023-07-22 13:03:03 +02:00

36 lines
871 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import LemonDrop from "../islands/LemonDrop.tsx";
export function ServerCodePage(
props: { serverCode: number; codeDescription: string },
) {
return (
<>
<section>
<div class="w-full flex justify-center items-center flex-col bg-green-300">
<LemonDrop />
</div>
<div class="text-center">
<h1 class="text(6xl) md:text(9xl) font-extrabold">
{props.serverCode}
</h1>
<p class="p-4 text(2xl) md:text(3xl)">
{props.codeDescription}
</p>
<p class="p-4">
<a href="/" class="hover:underline">Back to the Homepage</a>
</p>
</div>
</section>
</>
);
}
export default function PageNotFound() {
return ServerCodePage({
serverCode: 404,
codeDescription: "Couldn’t find what you’re looking for.",
});
}