This commit adds support for JSX automatic mode instead of the default mode that requires the presence of the JSX pragma in each file. This commit also adds the config file to the `fresh.gen.ts` manifest, which is used to determine if the client emit should use automatic mode. The minimum Deno version has also been bumped to 1.25.0.
36 lines
867 B
TypeScript
36 lines
867 B
TypeScript
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.",
|
|
});
|
|
}
|