feat: Add Footer-component

Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-03-30 15:55:08 +01:00
parent e6b299a756
commit 40e3025af4
No known key found for this signature in database
GPG Key ID: E59C7734F0E10EB5
3 changed files with 15 additions and 1 deletions

9
components/Footer.tsx Normal file
View File

@ -0,0 +1,9 @@
import config from "../deno.json" with { type: "json" };
export default function Footer() {
return (
<div className="mt-4 border-t-2 pt-4">
<a class="text-blue-500 hover:underline" href={config.source}>Kildekode</a>
</div>
);
}

View File

@ -1,5 +1,8 @@
{ {
"lock": false, "lock": false,
"name": "NRSS",
"source": "https://github.com/olaven/NRSS",
"author": " Olav Sundfør <olav@sundfoer.com>",
"tasks": { "tasks": {
"start": "deno run -A --watch=static/,routes/ dev.ts", "start": "deno run -A --watch=static/,routes/ dev.ts",
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx" "check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx"

View File

@ -1,5 +1,6 @@
import { Head } from "$fresh/runtime.ts"; import { Head } from "$fresh/runtime.ts";
import { Handlers, PageProps } from "$fresh/server.ts"; import { Handlers, PageProps } from "$fresh/server.ts";
import Footer from "../components/Footer.tsx";
import Header from "../components/Header.tsx"; import Header from "../components/Header.tsx";
import Search from "../components/Search.tsx"; import Search from "../components/Search.tsx";
import SeriesCard from "../components/SeriesCard.tsx"; import SeriesCard from "../components/SeriesCard.tsx";
@ -68,6 +69,7 @@ export default function Home({ data }: PageProps<HandlerData>) {
</a>{" "} </a>{" "}
for en oversikt over hvordan det gjøres i populære podcastspillere. for en oversikt over hvordan det gjøres i populære podcastspillere.
</p> </p>
<Footer />
</div> </div>
</> </>
); );