feat: Add Footer-component
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
parent
e6b299a756
commit
40e3025af4
|
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
@ -1,5 +1,8 @@
|
|||
{
|
||||
"lock": false,
|
||||
"name": "NRSS",
|
||||
"source": "https://github.com/olaven/NRSS",
|
||||
"author": " Olav Sundfør <olav@sundfoer.com>",
|
||||
"tasks": {
|
||||
"start": "deno run -A --watch=static/,routes/ dev.ts",
|
||||
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx"
|
||||
|
|
@ -35,4 +38,4 @@
|
|||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
import { Head } from "$fresh/runtime.ts";
|
||||
import { Handlers, PageProps } from "$fresh/server.ts";
|
||||
import Footer from "../components/Footer.tsx";
|
||||
import Header from "../components/Header.tsx";
|
||||
import Search from "../components/Search.tsx";
|
||||
import SeriesCard from "../components/SeriesCard.tsx";
|
||||
|
|
@ -68,6 +69,7 @@ export default function Home({ data }: PageProps<HandlerData>) {
|
|||
</a>{" "}
|
||||
for en oversikt over hvordan det gjøres i populære podcastspillere.
|
||||
</p>
|
||||
<Footer />
|
||||
</div>
|
||||
</>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue