initial commit
This commit is contained in:
commit
c05ad5a34d
3 changed files with 176 additions and 0 deletions
BIN
icons.webp
Normal file
BIN
icons.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
176
index.html
Normal file
176
index.html
Normal file
|
@ -0,0 +1,176 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<link rel="preload" href="/icons.webp" as="image" type="image/webp"/>
|
||||
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'jbm';
|
||||
src: url("/jetbrainsmono-subset.woff2") format("woff2");
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: block;
|
||||
}
|
||||
|
||||
:root { font-family: 'jbm' }
|
||||
|
||||
body {
|
||||
background-color: #181818;
|
||||
color: white;
|
||||
user-select: none;
|
||||
height: 100vh;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.w-100 {
|
||||
width: 100vw!important;
|
||||
}
|
||||
|
||||
.text-black {
|
||||
color: black!important;
|
||||
}
|
||||
|
||||
.center-container {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.center-anchor {
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.text-center {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
a {
|
||||
color: white;
|
||||
}
|
||||
|
||||
.rounded-button {
|
||||
display: inline-block;
|
||||
font-size: 18pt;
|
||||
width: 2.5rem;
|
||||
height: 2.5rem;
|
||||
line-height: 2.5rem;
|
||||
border-radius: 50%;
|
||||
border: 2px solid white;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
filter: invert(0);
|
||||
transition: background-color .1s linear, filter .1s linear, border .1s linear;
|
||||
margin-left: 0.5rem;
|
||||
cursor: pointer;
|
||||
background-image: url("/icons.webp");
|
||||
background-size: auto 44px;
|
||||
background-repeat: no-repeat;
|
||||
background-position: -2px -2px;
|
||||
}
|
||||
|
||||
.rounded-button[data-id="discord"] {
|
||||
background-position: -2px -2px;
|
||||
}
|
||||
|
||||
.rounded-button[data-id="bsky"] {
|
||||
background-position: -46px -2px;
|
||||
}
|
||||
|
||||
.rounded-button[data-id="forgejo"] {
|
||||
background-position: -90px -2px;
|
||||
}
|
||||
|
||||
.rounded-button:first-child {
|
||||
margin-left: 0!important;
|
||||
}
|
||||
|
||||
.rounded-button:hover {
|
||||
background-color: black;
|
||||
border: 2px solid black;
|
||||
filter: invert(1);
|
||||
}
|
||||
|
||||
.top-left {
|
||||
position: fixed;
|
||||
left: 0px;
|
||||
top: 0px;
|
||||
padding: 2rem;
|
||||
color: #535353;
|
||||
}
|
||||
|
||||
#btnDesc {
|
||||
transition: opacity .25s linear;
|
||||
opacity: 1;
|
||||
color: white;
|
||||
padding-top: 1rem;
|
||||
}
|
||||
|
||||
.fade-out {
|
||||
opacity: 0!important;
|
||||
}
|
||||
|
||||
.fade-in {
|
||||
opacity: 1!important;
|
||||
}
|
||||
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Holly</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="center-container">
|
||||
<div class="center-anchor">
|
||||
<div class="text-center w-100">
|
||||
<h1>hey there i'm holly</h1>
|
||||
<h4>here's some places I do things. <font style="font-family:sans-serif!important;">:)</font></h4>
|
||||
<div id="buttonContainer">
|
||||
<a class="rounded-button" data-id="discord" onclick="alert('because discord doesn\'t have functionality for invite to chat (at least I think it doesn\'t) you can contact me at: tgpholly')"></a>
|
||||
<a class="rounded-button" data-id="bsky" href="https://bsky.app/profile/holly.lgbt" target="_blank"></a>
|
||||
<a class="rounded-button" data-id="forgejo" href="https://git.eusv.net/tgpholly" target="_blank"></a>
|
||||
</div>
|
||||
|
||||
<h3 id="btnDesc"> </h3>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="top-left">
|
||||
<b>Last Updated:</b> 21/03/2023 <font style="font-size:10pt">11:21PM</font>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
const btnDesc = document.getElementById("btnDesc");
|
||||
const hoverEvent = (id) => {
|
||||
switch (id) {
|
||||
case "discord": btnDesc.innerHTML = "Discord - This is where I'm most active."; break;
|
||||
case "twitter": btnDesc.innerHTML = "Twitter - I don't like social media, inactive."; break;
|
||||
case "github": btnDesc.innerHTML = "GitHub - Come check out some of my stuff!"; break;
|
||||
}
|
||||
|
||||
btnDesc.classList.remove("fade-out");
|
||||
btnDesc.classList.add("fade-in");
|
||||
};
|
||||
|
||||
const hoverLeaveEvent = (e) => {
|
||||
btnDesc.classList.remove("fade-in");
|
||||
btnDesc.classList.add("fade-out");
|
||||
};
|
||||
|
||||
const buttons = document.getElementById("buttonContainer");
|
||||
for (let child of buttons.children) {
|
||||
child.onmouseenter = () => hoverEvent(child.dataset.id);
|
||||
child.onmouseleave = hoverLeaveEvent;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
BIN
jetbrainsmono-subset.woff2
Normal file
BIN
jetbrainsmono-subset.woff2
Normal file
Binary file not shown.
Loading…
Reference in a new issue