diff --git a/src/modules/headerHertzblatt.ts b/src/modules/headerHertzblatt.ts index 505c12c..c926ae6 100644 --- a/src/modules/headerHertzblatt.ts +++ b/src/modules/headerHertzblatt.ts @@ -6,7 +6,7 @@ export default function HeaderHertzschlag() {

hertz heute / HertzBLATT Archiv

`; diff --git a/src/modules/headerHertzschlag.ts b/src/modules/headerHertzschlag.ts index 3290ac7..5951822 100644 --- a/src/modules/headerHertzschlag.ts +++ b/src/modules/headerHertzschlag.ts @@ -6,7 +6,7 @@ export default function HeaderHertzschlag() {

HertzSCHLAG Archiv

`; diff --git a/src/modules/liste.ts b/src/modules/liste.ts index e8b6f9d..0eabf54 100644 --- a/src/modules/liste.ts +++ b/src/modules/liste.ts @@ -9,13 +9,13 @@ export default function Liste() { json.hertzschlag.forEach((i) => { listehtml = listehtml + - "" + i["Ausgabe"] + - "" + i["Thema"] + diff --git a/src/modules/router.ts b/src/modules/router.ts index 38c06c3..3831d5a 100644 --- a/src/modules/router.ts +++ b/src/modules/router.ts @@ -44,11 +44,9 @@ export default class Router { } if (rigthRoute) { - if ( - this.el.getAttribute("currentroute") != routeSplit[0] || - !this.lazy - ) { - this.el.setAttribute("currentroute", routeSplit[0]); + const routeName = routeSplit[0] == "hertzschlag" ? "" : routeSplit[0]; + if (this.el.getAttribute("currentroute") != routeName || !this.lazy) { + this.el.setAttribute("currentroute", routeName); let neww = this.routes[route](params); this.el.innerHTML = ""; this.el.appendChild(neww); diff --git a/src/script.ts b/src/script.ts index 79bbe2d..35daf1d 100644 --- a/src/script.ts +++ b/src/script.ts @@ -28,6 +28,7 @@ new Router( document.querySelector("#home"), { "": Home, + hertzschlag: Home, "hertzschlag/::": Home, hertzblatt: HomeHertzblatt, "hertzblatt/::": HomeHertzblatt, @@ -46,6 +47,7 @@ new Router( document.querySelector("#innerHeader"), { "": HeaderHertzschlag, + hertzschlag: HeaderHertzschlag, "hertzschlag/::": HeaderHertzschlag, hertzblatt: HeaderHertzblatt, "hertzblatt/::": HeaderHertzblatt, diff --git a/src/style.css b/src/style.css index 4a42624..f40fe43 100644 --- a/src/style.css +++ b/src/style.css @@ -84,12 +84,12 @@ body { font-weight: 400 !important; font-size: 20px; margin-left: 15px; - transition: transform 0.2s ease; - transform: translateY(0); + transition: color 0.2s ease; + color: rgba(255, 255, 255, 1); } #header nav a:hover { - transform: translateY(-2px); + color: rgba(255, 255, 255, 0.8); } .welle-l { @@ -122,7 +122,8 @@ body { overflow-x: hidden; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-gap: 0; - height: 100%; + height: calc(100% - 5em); + padding-top: 5em; } .module { @@ -377,7 +378,6 @@ i { #home { position: fixed; - padding-top: 5em; top: 0; bottom: 0; left: 0;