added verbose section in About Me

This commit is contained in:
Mateusz Pstrucha committed 2021-06-27 18:47:23 +02:00
1 parent b1a3d20de1
commit 72bb4ef3ce
3 files changed
+111 -44

No files matched your search

+14 -1
View File
@@ -28,17 +28,21 @@
</div>
</nav>
</div>
<div class="wrapper">
<div class="stripes primary">
<object type="image/svg+xml" data="/media/stripes_primary.svg"></object>
</div>
<div class="stripes secondary">
<object type="image/svg+xml" data="/media/stripes_secondary.svg"></object>
</div>
<div class="panes">
<div class="pane about" data-id="about">
<div class="header">
<div class="header main">
<div class="text big typein" data-content="Hi, I'm Mathew">&#8203;</div>
<div class="text smol">I aspire to be a developer/sysadmin</div>
<div class="text smolest">I usually work with JavaScript or Python. My sysadmin experience is currently
@@ -46,6 +50,13 @@
linux lab enviroment.
My repos are mainly smaller tools I made for myself, but I did few bigger projects, which you can see below
</div>
<div class="arrow"></div>
</div>
<div class="header verbose">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur impedit illo sequi amet quo pariatur ullam alias, corrupti fuga nam voluptas ducimus placeat a, assumenda eius blanditiis, repellat tempora hic!</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur impedit illo sequi amet quo pariatur ullam alias, corrupti fuga nam voluptas ducimus placeat a, assumenda eius blanditiis, repellat tempora hic!</p>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consequatur impedit illo sequi amet quo pariatur ullam alias, corrupti fuga nam voluptas ducimus placeat a, assumenda eius blanditiis, repellat tempora hic!</p>
</div>
<div class="socials">
@@ -76,7 +87,9 @@
<script src="/apps.js"></script>
</div>
</div>
</div>
</body>
+9
View File
@@ -31,6 +31,15 @@ window.onload = function () {
if (target) Panes.scrollTo(target)
}
// verbose about handler
document.querySelector('.about .arrow').onclick = function (e) {
let about = document.querySelector('.about')
about.classList.contains('verbose') ?
about.classList.remove('verbose') :
about.classList.add('verbose')
}
// index buttons handler
document.querySelector('.pane.index>.grid').onclick = function (e) {
+88 -43
View File
@@ -7,7 +7,6 @@
from {
transform: scale(50);
}
to {
transform: scale(1);
}
@@ -23,13 +22,12 @@ body {
}
@keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: white; }
}
@keyframes typing {
from { width: 0 }
to { width: 27rem }
from, to {
border-color: transparent
}
50% {
border-color: white;
}
}
::-webkit-scrollbar {
@@ -167,12 +165,75 @@ nav {
padding-left: 0;
padding-right: 0;
width: 100%;
display: flex;
align-items: center;
--offset: 0%;
}
.pane.about.verbose {
--offset: -100%;
}
.header {
margin-top: 21vh;
font-family: 'Courier New', Courier, monospace;
font-family: "Roboto Mono";
width: 100%;
position: absolute;
transition: margin ease-in-out .5s;
margin-bottom: 10%;
}
.header.main {
margin-left: var(--offset);
}
.arrow {
position: absolute;
right: 2em;
top: 0;
height: 100%;
width: 2em;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: right ease-in-out .5s;
}
.arrow:hover:after {
border-width: 4px;
}
.arrow:after {
content: '';
border-width: 3px;
border-color: var(--color-main);
border-radius: 2px;
border-style: none solid solid none;
width: 1em;
height: 1em;
transform: rotate(-45deg);
display: inline-block;
transition: transform ease-in-out .5s;
}
.about.verbose .arrow {
right: -4.2em;
z-index: 5;
}
.about.verbose .arrow:after {
transform: rotate(135deg);
}
.header.verbose {
width: 100%;
position: absolute;
margin-left: calc(100% + var(--offset));
box-sizing: border-box;
padding: 0 5em;
max-height: 65%;
overflow: auto;
}
.header>.big {
@@ -183,9 +244,7 @@ nav {
display: inline-block;
padding-right: 5px;
border-right: 3px solid white;
animation:
blink-caret .75s step-end infinite;
animation: blink-caret .75s step-end infinite;
}
.header>.smol {
@@ -213,13 +272,13 @@ nav {
font-size: 2rem;
}
.socials > a {
.socials>a {
color: inherit;
position: relative;
width: 100%;
}
.socials > a:before{
.socials>a:before {
content: "";
position: absolute;
z-index: -1;
@@ -235,14 +294,14 @@ nav {
transition: width .2s, height .1s;
}
.socials > a:hover:before{
.socials>a:hover:before {
height: 100%;
width: 100%;
}
/* Index */
.pane.index > .head {
.pane.index>.head {
font-family: 'Roboto Mono';
margin-bottom: 2rem;
height: 40%;
@@ -262,13 +321,13 @@ nav {
visibility: visible;
}
.description > .title {
.description>.title {
font-size: 2rem;
margin-bottom: 1rem;
display: inline-block;
}
.description > a.link {
.description>a.link {
color: inherit;
text-decoration: none;
margin-left: .5rem;
@@ -277,7 +336,7 @@ nav {
top: 1em;
}
.description > a.link:hover {
.description>a.link:hover {
color: var(--color-main);
}
@@ -290,7 +349,7 @@ nav {
user-select: none;
}
.grid > div {
.grid>div {
width: calc(50% - 1rem);
font-weight: bold;
text-transform: uppercase;
@@ -304,86 +363,72 @@ nav {
overflow-x: hidden;
}
.grid > div:nth-child(odd){
.grid>div:nth-child(odd) {
margin-right: .5rem;
}
.grid > div:nth-child(even){
.grid>div:nth-child(even) {
margin-left: .5rem;
}
.grid > div > i{
.grid>div>i {
float: right;
margin-right: -3rem;
transition: margin .2s;
pointer-events: none;
}
.grid > div:hover {
.grid>div:hover {
color: var(--color-main);
border-width: 0px 0px 1px 5px;
}
.grid > div.active {
.grid>div.active {
color: white;
border-width: 0px 0px 1px 1px;
background: var(--color-main);
}
.grid > div.active:hover {
.grid>div.active:hover {
border-width: 0px 0px 1px 5px;
}
.grid > div.active:hover > i {
.grid>div.active:hover>i {
margin-right: 0;
}
@media only screen and (max-width: 700px) {
/* navigation */
#butts {
display: flex;
width: 100%;
}
#butts>.button {
width: 100%;
}
.pane {
padding-top: 10rem;
padding-right: 0;
padding-left: 0;
}
/* about */
.header {
margin-top: 19vh;
}
.header>.big {
font-size: 9vw;
}
.header>.smol {
font-size: 5vw;
margin-top: 0.5rem;
}
.header>.smolest {
font-size: .8rem;
max-width: 75vw;
margin-top: 1.3rem;
}
/* index */
.description > .title {
.description>.title {
font-size: 1.5rem;
}
.description > .content {
.description>.content {
font-size: .9rem;
}
}