split javascript file into multiple

This commit is contained in:
2026-09-21 21:25:31 +02:00
parent b09f2029ed
commit cc91f7d4ff
17 changed files with 473 additions and 461 deletions
+16
View File
@@ -0,0 +1,16 @@
import { el } from "../core/dom.js";
export function renderIntroduction(data, navbar) {
const introduction = document.getElementById("introduction");
introduction.appendChild(el("h1", "", data.title_introduction));
introduction.appendChild(el("p", "", data.content_introduction));
const githubLink = el("a", "text-link introduction", "GitHub ↗");
githubLink.href = "https://github.com/marvinkrausser";
githubLink.target = "_blank";
githubLink.rel = "noopener noreferrer";
introduction.appendChild(githubLink);
navbar.addEntry(data.title_introduction, "introduction", 0);
}