tilde-raf/index.html
2024-09-27 21:13:10 +03:00

84 lines
2.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>~raf | frzn.dev</title>
<link rel="stylesheet" href="styles.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
</head>
<body>
<div class="container">
<div class="card">
<div style="display: flex; justify-content: center">
<img src="pfp-angel.png" alt="NotAShelf" class="profile-picture" />
</div>
<h2>About Me</h2>
<p>
I'm raf, most commonly known as NotAShelf on the world wide web. I am
a part-time FOSS contributor and part-time political scientist.
</p>
<p>
You are visiting my personal page hosted on frzn.dev, which I will
<a class="bullshit">definitely</a> update soon with more details.
Totally, I promise. Trust me.
</p>
</div>
</div>
<footer>
<span class="footer-text" id="footer-text"></span><br />
<span class="footer-text" id="footer-text">
Made with
<span
class="hover-item"
data-content="Seriously, I love you guys. Special thanks to Donutman (MrAureliusR) for introducing me to the world of Linux"
>
<i class="fas fa-heart"></i> </span
>,
<span
class="hover-item"
data-content="I have an unhealthy addiction. Help, please."
>
<i class="fas fa-coffee"></i> </span
>, and
<span
class="hover-item"
data-content="I maintain my own Neovim distribution!"
>
<i class="fas fa-code"></i>
</span>
</span>
</footer>
<div class="tooltip"></div>
<script>
const currentYear = new Date().getFullYear();
const footerText =
currentYear === 2024
? "© 2024 NotAShelf"
: `© 2024-${currentYear} NotAShelf`;
document.getElementById("footer-text").textContent = footerText;
</script>
<script>
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 - 10 + "px";
});
item.addEventListener("mouseleave", () => {
tooltip.style.display = "none";
});
});
</script>
</body>
</html>