simple-fs-server/routes/index.tsx

28 lines
747 B
TypeScript
Raw Permalink Normal View History

2023-02-08 01:33:54 +09:00
import { asset, Head } from "$fresh/runtime.ts";
2023-01-05 18:18:07 +09:00
export default function Home() {
return (
<>
<Head>
<title>Simple file server</title>
2023-02-08 01:33:54 +09:00
<link rel="stylesheet" href={asset("/base.css")} />
2023-01-05 18:18:07 +09:00
</Head>
<div class="p-4 mx-auto max-w-screen-md">
<img
src="/logo.svg"
class="w-32 h-32"
alt="the fresh logo: a sliced lemon dripping with juice"
/>
<p class="my-6">
2023-01-06 18:24:27 +09:00
This is a simple file server. It serves files from the{" "}
<code>CWD</code>.
2023-01-05 18:18:07 +09:00
</p>
2023-01-06 22:17:45 +09:00
<a href="/dir/?pretty">Go To CWD</a> | <a href="/doc/">Doc</a>
2023-01-05 18:18:07 +09:00
<hr></hr>
<a href="/login">Login</a> | <a href="/api/logout">Logout</a>
</div>
</>
);
}