aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/nuldoc/nuldoc-src/components/SlidesGlobalHeader.ts
blob: 666ca0e3563c41953d365b7092d04795be1a3625 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Config } from "../config.ts";
import { a, div, Element, header, li, nav, ul } from "../dom.ts";

export default function GlobalHeader({ config }: { config: Config }): Element {
  return header(
    { class: "header" },
    div(
      { class: "site-logo" },
      a(
        { href: `https://${config.sites.default.fqdn}/` },
        "nsfisis.dev",
      ),
    ),
    nav(
      { class: "nav" },
      ul(
        {},
        li(
          {},
          a({ href: `https://${config.sites.about.fqdn}/` }, "About"),
        ),
        li({}, a({ href: "/slides/" }, "Slides")),
        li({}, a({ href: "/tags/" }, "Tags")),
      ),
    ),
  );
}