This commit is contained in:
LogolicusYZ 2023-09-06 14:11:18 +02:00
parent 45f05d379d
commit 834bf7165b
3 changed files with 62 additions and 6 deletions

View file

@ -18,6 +18,8 @@
</ul> </ul>
</div> </div>
</nav> </nav>
<div id="blob"></div>
<div id="blur"></div>
<nav id="hamburger-nav"> <nav id="hamburger-nav">
<div class="logo">LogolicusZ</div> <div class="logo">LogolicusZ</div>
<div class="hamburger-menu"> <div class="hamburger-menu">
@ -79,7 +81,7 @@
class="icon" class="icon"
/> />
<h3>Education</h3> <h3>Education</h3>
<p>B.Sc. Bachelors Degree<br />M.Sc. Masters Degree</p> <p><br />M.Sc. Masters Degree</p>
</div> </div>
</div> </div>
<div class="text-container"> <div class="text-container">

View file

@ -4,3 +4,14 @@ function toggleMenu() {
menu.classList.toggle("open"); menu.classList.toggle("open");
icon.classList.toggle("open"); icon.classList.toggle("open");
} }
const blob = document.getElementById("blob");
window.onpointermove = event => {
const { clientX, clientY } = event;
blob.animate({
left: `${clientX}px`,
top: `${clientY}px`
}, { duration: 3000, fill: "forwards" });
}

View file

@ -19,7 +19,7 @@ html {
} }
p { p {
color: rgb(85, 85, 85); color: white;
} }
/* TRANSITION */ /* TRANSITION */
@ -27,6 +27,7 @@ p {
a, a,
.btn { .btn {
transition: all 300ms ease; transition: all 300ms ease;
} }
/* DESKTOP NAV */ /* DESKTOP NAV */
@ -34,12 +35,14 @@ a,
nav, nav,
.nav-links { .nav-links {
display: flex; display: flex;
} }
nav { nav {
justify-content: space-around; justify-content: space-around;
align-items: center; align-items: center;
height: 17vh; height: 17vh;
color: white;
} }
.nav-links { .nav-links {
@ -49,7 +52,7 @@ nav {
} }
a { a {
color: black; color: white;
text-decoration: none; text-decoration: none;
text-decoration-color: white; text-decoration-color: white;
} }
@ -58,7 +61,7 @@ a:hover {
color: grey; color: grey;
text-decoration: underline; text-decoration: underline;
text-underline-offset: 1rem; text-underline-offset: 1rem;
text-decoration-color: rgb(181, 181, 181); text-decoration-color: #ccd5ae;
} }
.logo { .logo {
@ -244,7 +247,7 @@ section {
.btn-color-1, .btn-color-1,
.btn-color-2:hover { .btn-color-2:hover {
background: rgb(53, 53, 53); background: #ccd5ae;
color: white; color: white;
} }
@ -433,3 +436,43 @@ footer {
footer p { footer p {
text-align: center; text-align: center;
} }
@keyframes rotate {
from {
rotate: 0deg;
}
50% {
scale: 1 1.5;
}
to {
rotate: 360deg;
}
}
#blob {
background-color: white;
height: 24vmax;
aspect-ratio: 1;
position: absolute;
left: 50%;
top: 50%;
translate: -50% -50%;
border-radius: 50%;
background: linear-gradient(to right, #FFFFFF, #6541A5);
animation: rotate 20s infinite;
opacity: 0.8;
z-index: -2;
}
#blur {
top: 0;
left: 0;
height: 100vw;
width: 100vw;
position: absolute;
backdrop-filter: blur(5vmax);
z-index: -1;
}