diff --git a/index.html b/index.html index ab55a27..38f272c 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,19 @@ - ~raf | frzn.dev + + + ~raf @ frzn.dev
- NotAShelf + NotAShelf

About Me

@@ -54,30 +70,6 @@

- - + diff --git a/script.js b/script.js new file mode 100644 index 0000000..3c44d15 --- /dev/null +++ b/script.js @@ -0,0 +1,22 @@ +const currentYear = new Date().getFullYear(); +const footerText = + currentYear === 2024 + ? "© 2024 NotAShelf" + : `© 2024-${currentYear} NotAShelf`; +document.getElementById("footer-text").textContent = footerText; + +const tooltip = document.querySelector(".tooltip"); +const hoverItems = document.querySelectorAll(".hover-item"); + +hoverItems.forEach((item) => { + item.addEventListener("mouseenter", (e) => { + tooltip.innerText = e.target.dataset.content; + tooltip.style.display = "block"; + tooltip.style.left = e.pageX + "px"; + tooltip.style.top = e.pageY - tooltip.offsetHeight - 35 + "px"; + }); + + item.addEventListener("mouseleave", () => { + tooltip.style.display = "none"; + }); +}); diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..3bf5144 Binary files /dev/null and b/static/favicon.ico differ diff --git a/pfp-angel.png b/static/pfp-angel.png similarity index 100% rename from pfp-angel.png rename to static/pfp-angel.png