This commit is contained in:
hexlocation 2025-01-02 22:06:49 +01:00
parent d91bd9d9e2
commit 3090a6c2f9
Signed by: hex
GPG key ID: A19EFFAAF8C00FCF
2 changed files with 129 additions and 145 deletions

61
global.css Normal file
View file

@ -0,0 +1,61 @@
@font-face {
font-family: heartFont;
src: url("ttf/rainyhearts.ttf");
}
@keyframes rainbow_anim {
0%,
100% {
background-position: 0 0;
}
50% {
background-position: 100% 0;
}
}
img {
border: 1px solid white;
}
.rainbow-text {
text-align: center;
background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
background-clip: text;
color: transparent !important;
animation: rainbow_anim 15s ease-in-out infinite;
background-size: 400% 100%;
}
#main-content {
grid-area: a;
}
#additional-content {
grid-area: b;
}
#contact-content {
grid-area: c;
}
#nav-content {
grid-area: d;
}
#main-box {
display: grid;
grid-template-areas:
"a a a b"
"a a a c"
"a a a d";
}
body {
font-family: heartFont;
color: white;
font-weight: 800;
font-size: 23px;
background-color: #0f0f0f;
}

View file

@ -1,8 +1,8 @@
<html>
<div id="flex-container">
<div id="main-flex">
<h1 style="text-align: center;">hello world</h1>
<div id="main-box">
<head>
<link rel="stylesheet" href="global.css"/>
</head>
<div id="main-box">
<div class="main-content">
<h3>whoami</h3>
<p>I'm <b class="rainbow-text">hex</b>, short for hexlocation.</p>
@ -79,82 +79,5 @@
<img src="img/design.png"></img>
</a>
</div>
</div>
</div>
</div>
</html>
<style>
@font-face {
font-family: heartFont;
src: url("ttf/rainyhearts.ttf");
}
@keyframes rainbow_anim {
0%,
100% {
background-position: 0 0;
}
50% {
background-position: 100% 0;
}
}
@keyframes border_amim {
0%,
100% {
background-position: 0 0;
}
50% {
background-position: 100% 0;
}
}
img {
border: 1px solid white;
}
.rainbow-text {
text-align: center;
background: linear-gradient(to right, #6666ff, #0099ff, #00ff00, #ff3399, #6666ff);
background-clip: text;
color: transparent !important;
animation: rainbow_anim 15s ease-in-out infinite;
background-size: 400% 100%;
}
#main-box {
display: inline-grid;
grid-template-columns: 50vw 20vw;
grid-auto-flow: row;
grid-gap: 20px;
}
#main-flex {
padding: 30px;
border: 3px solid white;
border-radius: 10px;
box-shadow: 0px 0px 20px white;
color: white;
}
#flex-container {
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
body {
font-family: heartFont;
font-weight: 800;
font-size: 23px;
background-color: black;
}
</style>