404 page, robots- and security.txt

This commit is contained in:
Martin Berg Alstad
2022-12-23 14:57:53 +01:00
parent 91efb8e14e
commit 79887d55ba
11 changed files with 93 additions and 3 deletions

22
src/404.tsx Normal file
View File

@ -0,0 +1,22 @@
/* @refresh reload */
import { type Component } from "solid-js";
import { render } from "solid-js/web";
import Layout from "./components/layout";
import { Link } from "./components/link";
const PageNotFound: Component = () => {
return (
<Layout title={ "Siden ble ikke funnet" }>
<div class={ "text-center" }>
<h4>Error 404 - Siden ble ikke funnet</h4>
<p>
<Link to={ "/" } newTab={ false } className={ "mx-auto relative w-max" }>
tilbake til forsiden
</Link>
</p>
</div>
</Layout>
);
};
render(() => <PageNotFound />, document.getElementById("root") as HTMLElement);