website: redesign part 13

This commit is contained in:
nym21
2026-06-07 00:54:50 +02:00
parent 6cbe09af23
commit c68d1d1fda
33 changed files with 855 additions and 341 deletions
+1 -17
View File
@@ -1,5 +1,4 @@
import { createCube } from "../cube/index.js";
import { primaryRoutes } from "../routes.js";
export function createHeader() {
const header = document.createElement("header");
@@ -12,21 +11,6 @@ export function createHeader() {
cube.append(createCube());
home.append(cube, "bitview");
const nav = document.createElement("nav");
const list = document.createElement("ul");
nav.setAttribute("aria-label", "Primary");
for (const { pathname, label } of primaryRoutes) {
const item = document.createElement("li");
const anchor = document.createElement("a");
anchor.href = pathname;
anchor.append(label);
item.append(anchor);
list.append(item);
}
nav.append(list);
header.append(home, nav);
header.append(home);
return header;
}