diff --git a/_bottomnav.html b/_bottomnav.html index 551eb89..b02a19c 100644 --- a/_bottomnav.html +++ b/_bottomnav.html @@ -1,5 +1,8 @@ - \ No newline at end of file +
+ + PWD: [%PATH%] +
\ No newline at end of file diff --git a/assets/index.css b/assets/global.css similarity index 85% rename from assets/index.css rename to assets/global.css index 03de644..d362021 100644 --- a/assets/index.css +++ b/assets/global.css @@ -38,16 +38,25 @@ main img { #bottomnav { display: flex; - /* width: 100dvw; */ - list-style: none; + justify-content: space-between; padding: 32px; margin: 0; - - gap: 16px; - outline: 1px solid black; } +#bottomnav span { + align-self: center; +} + +#bottomnav ul { + display: flex; + flex-direction: row; + list-style: none; + + padding: 0; + gap: 16px; +} + #bottomnav li { padding: 0px; } @@ -64,7 +73,6 @@ main img { } #bottomnav a:hover { - cursor: not-allowed; text-decoration: underline; background: black; diff --git a/assets/global.js b/assets/global.js index 6e0ebf2..b95097f 100644 --- a/assets/global.js +++ b/assets/global.js @@ -3,7 +3,11 @@ const parser = new DOMParser(); fetch("/_bottomnav.html") .then(response => response.text()) .then(text => { - const bottomNav = parser.parseFromString(text, "text/html"); + const bottomNavHTML = parser.parseFromString(text, "text/html"); + const bottomNav = bottomNavHTML.getElementById("bottomnav"); - document.body.appendChild(bottomNav.getElementById("bottomnav")); + const pathSpan = bottomNav.querySelector("span"); + pathSpan.innerText = pathSpan.innerText.replace("%PATH%", document.location.pathname); + + document.body.appendChild(bottomNav); }); \ No newline at end of file diff --git a/index.html b/index.html index d322855..20200ef 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ Im bad at naming things - + diff --git a/links.html b/links.html new file mode 100644 index 0000000..dd95bc2 --- /dev/null +++ b/links.html @@ -0,0 +1,15 @@ + + + + + + Links are pretty cool + + + + +
+ +
+ + \ No newline at end of file diff --git a/projects.html b/projects.html new file mode 100644 index 0000000..24b63ff --- /dev/null +++ b/projects.html @@ -0,0 +1,15 @@ + + + + + + Projects 'n' stuff + + + + +
+ +
+ + \ No newline at end of file