FEAT: Beta for about section.

This commit is contained in:
MajorDroolz
2022-12-22 21:30:44 -05:00
parent b7c7e0dd9c
commit 2fc2271221
4 changed files with 88 additions and 12 deletions

View File

@@ -23,17 +23,19 @@
/*----------------------------------------------------------------------------*/ /*----------------------------------------------------------------------------*/
html { html {
background: var(--dark);
scroll-behavior: smooth; scroll-behavior: smooth;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
overflow-y: scroll; overflow-y: scroll;
overflow-x: hidden;
padding: 100vh 0; padding: 100vh 0;
color: white;
} }
header { header {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw;
z-index: 1000; z-index: 1000;
filter: drop-shadow(0px 0px 100px #000); filter: drop-shadow(0px 0px 100px #000);
} }
@@ -112,7 +114,7 @@ header {
color: transparent; color: transparent;
-webkit-background-clip: text; -webkit-background-clip: text;
background-clip: text; background-clip: text;
background-image: linear-gradient(45deg, #F008, #00F8); background-image: var(--grad);
transform: translateZ(0); transform: translateZ(0);
} }
@@ -220,4 +222,67 @@ header {
-webkit-clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%); -webkit-clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%); clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
background-color: var(--light); background-color: var(--light);
}
/*----------------------------------------------------------------------------*/
.body {
font-family: "Source Code Pro", monospace;
}
.head {
font-family: "Open Sans", sans-serif;
font-weight: 900;
}
#about-me {
width: 100vw;
min-height: 100vh;
margin: 10vh 0;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
align-content: center;
flex-wrap: wrap;
}
#about-me__title {
text-align: right;
margin-right: 10vmin;
margin-bottom: 10vmin;
font-size: 15vmin;
flex-basis: 60vmin;
z-index: 100;
line-height: 15vmin;
}
#about-me__text-outer {
filter: drop-shadow(0px 20px 20px #0009);
flex-basis: 80vmin;
}
#about-me__text {
--x: 50%;
--y: 30%;
--path: polygon(
-25% -50%,
155% -30%,
150% 150%,
-30% 130%
);
font-size: 4vmin;
background: var(--red);
outline: 100vmax solid var(--red);
-webkit-clip-path: var(--path);
clip-path: var(--path);
position: relative;
}
.back-text {
position: absolute;
bottom: -50%;
left: 50%;
transform: translateX(-50%);
} }

View File

@@ -43,15 +43,24 @@
</header> </header>
<section id="about-me"> <section id="about-me">
<div id="about-me-back"></div> <div id="about-me__back"></div>
<h2>About Me</h2> <h2 id="about-me__title" class="head">About<br>Me</h2>
<p> <div id="about-me__text-outer">
Passionate computer science student skilled in building <strong> <div id="about-me__text">
responsive, full-stack applications</strong>. Motivated to learn from <div class="back-text">
colleagues and <strong>teach future developers</strong>. Seeks role to <div class="fade-text fade1" data-t="About Me"></div>
fashion software solutions, focused on <strong>teamwork and creativity <div class="fade-text fade2" data-t="About Me"></div>
</strong>. <div class="fade-text fade3" data-t="About Me"></div>
</p> </div>
<p class="body">
Passionate computer science student skilled in building <strong>
responsive, full-stack applications</strong>. Motivated to learn from
colleagues and <strong>teach future developers</strong>. Seeks role to
fashion software solutions, focused on <strong>teamwork and
creativity</strong>.
</p>
</div>
</div>
</section> </section>
<section id="projects"> <section id="projects">

View File

@@ -26,6 +26,8 @@ function main() {
if (menu == null) return; if (menu == null) return;
menu.addEventListener("click", clickMenuModal); menu.addEventListener("click", clickMenuModal);
menu.addEventListener("touchstart", clickMenuModal); menu.addEventListener("touchstart", clickMenuModal);
calcScroll();
} }
function clickMenuModal(e) { function clickMenuModal(e) {

View File

@@ -147,7 +147,7 @@ article {
} }
body::before { body::before {
background: lightsteelblue linear-gradient(45deg, #F008, #00F8); background: lightsteelblue var(--grad);
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
content: ""; content: "";