Compare commits

...

4 commits

Author SHA1 Message Date
5e2535e547
static: optimize images 2024-09-27 21:13:13 +03:00
8f2dc3883a
minimal animations 2024-09-27 21:13:12 +03:00
ece6ff813b
move scripts to standalone file; add favicon 2024-09-27 21:13:11 +03:00
a6f7597fb3
initial commit 2024-09-27 21:13:10 +03:00
5 changed files with 214 additions and 0 deletions

75
index.html Normal file
View file

@ -0,0 +1,75 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
href="static/favicon.ico"
type="image/x-icon"
sizes="32x32"
/>
<link
rel="icon"
href="static/favicon.ico"
type="image/x-icon"
sizes="16x16"
/>
<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="static/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 src="script.js"></script>
</body>
</html>

22
script.js Normal file
View file

@ -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";
});
});

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
static/pfp-angel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

117
styles.css Normal file
View file

@ -0,0 +1,117 @@
body {
background-color: #0a0a0a;
color: #f8fafc;
font-family:
system-ui,
-apple-system,
"Segoe UI",
Roboto,
Oxygen,
Ubuntu,
Cantarell,
"Open Sans",
sans-serif;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
min-height: 100vh;
}
.container {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.card {
background-color: #18181b;
border-radius: 10px;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
padding: 20px;
width: 80%;
max-width: 500px;
position: relative;
overflow: hidden;
transition:
transform 0.3s,
box-shadow 0.3s;
}
.card:hover {
transform: translateY(-10px);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.profile-picture {
width: 198px;
height: 198px;
border-radius: 50%;
object-fit: cover;
object-position: center;
transition: transform 0.3s;
}
.profile-picture:hover {
transform: scale(1.1);
}
.card h2 {
color: #f8fafc;
text-align: center;
margin-top: 20px;
margin-bottom: 20px;
}
.card p {
line-height: 1.6;
font-size: 16px;
padding: 5px 15px;
}
.divider {
width: 50%;
height: 2px;
background-color: #f8fafc;
margin: 10px auto;
}
.bullshit {
font-style: italic;
letter-spacing: 0.6px;
}
footer {
padding: 10px;
text-align: center;
position: sticky;
bottom: 0;
width: 100%;
}
.footer-text {
font-size: 14px;
color: #e5e5e5;
}
.tooltip {
position: absolute;
background-color: #18181b;
color: #d4d4d8;
padding: 8px 10px;
border-radius: 5px;
display: none;
z-index: 1000;
transform: translateX(-50%);
max-width: 200px;
word-wrap: break-word;
white-space: normal;
}
.hover-item {
position: relative;
cursor: pointer;
margin: 0 5px;
}