rebuild home padding

This commit is contained in:
2024-02-23 15:37:11 -06:00
parent 01ac070b40
commit 6deb4ee147
3 changed files with 94 additions and 52 deletions

View File

@@ -89,10 +89,14 @@ h2 {
margin-bottom: 2rem; margin-bottom: 2rem;
} }
h3, h4 { h3, h4, h5 {
color: #a8a8a8; color: #a8a8a8;
} }
h5 {
margin: 0;
}
strong { strong {
color: #ecebeb; color: #ecebeb;
} }
@@ -107,6 +111,14 @@ a {
text-decoration: none; text-decoration: none;
} }
.transparent {
opacity: 0 !important;
}
.unsetPos {
position: unset !important;
}
.header h1 { .header h1 {
display: inline-block; display: inline-block;
transition: .4s; transition: .4s;
@@ -268,12 +280,13 @@ a {
text-align: center; text-align: center;
} }
#HomeContentContainer { #HomeContent {
display: inline-block; display: inline-block;
flex-grow: 1; flex-grow: 1;
min-width: 65em;
} }
#HomeContent { #nametag {
padding: 3rem; padding: 3rem;
display: inline-block; display: inline-block;
background-color: rgb(44, 44, 44, .75); background-color: rgb(44, 44, 44, .75);
@@ -281,14 +294,23 @@ a {
border: solid black 4px; border: solid black 4px;
text-align: center; text-align: center;
text-shadow: .15em .15em rgba(255, 255, 255, 0.2); text-shadow: .15em .15em rgba(255, 255, 255, 0.2);
max-width: 30em;
} }
#HomeContent p { #nametag p {
text-shadow: none; text-shadow: none;
color: #a8a8a8; color: #a8a8a8;
margin: 0; margin: 0;
} }
#nametagContainer {
display: flex;
width: 100vw;
position: absolute;
left: 0;
justify-content: center;
}
.nomargin { .nomargin {
margin: 0; margin: 0;
} }
@@ -326,8 +348,7 @@ a {
} }
.onRight>* { .onRight>* {
margin-left: auto; margin: auto;
margin-right: 1em;
margin-bottom: 5px; margin-bottom: 5px;
} }
@@ -829,12 +850,22 @@ a {
src: url('https://www.chess.com/bundles/web/fonts/chessglyph-new.0cc8115c.woff2'); src: url('https://www.chess.com/bundles/web/fonts/chessglyph-new.0cc8115c.woff2');
} }
@media screen and (max-width: 1200px) { @media screen and (max-width: 600) {
#nametagContainer {
width: unset;
}
}
@media screen and (max-width: 1400px) {
#homepage { #homepage {
flex-direction: column; flex-direction: column;
} }
#HomeContent {
min-width: 0;
}
.mobileV { .mobileV {
flex-direction: column; flex-direction: column;
} }
@@ -893,7 +924,7 @@ a {
margin-top: 3rem; margin-top: 3rem;
} }
.onRight > * { .onRight>* {
margin: auto; margin: auto;
} }

View File

@@ -9,7 +9,7 @@ function onLoaded() {
resizer(); resizer();
}; };
resizer(); resizer();
if (window.innerWidth < 1200) { if (window.innerWidth < 1400) {
const e = document.querySelector(".navControl"); const e = document.querySelector(".navControl");
e.style.maxHeight = "0px"; e.style.maxHeight = "0px";
} }
@@ -17,7 +17,7 @@ function onLoaded() {
function resizer() { function resizer() {
const e = document.querySelector(".navControl"); const e = document.querySelector(".navControl");
if (window.innerWidth > 1200) { if (window.innerWidth > 1400) {
// desktop view // desktop view
scrollFunction(); scrollFunction();
window.onscroll = function () { window.onscroll = function () {
@@ -68,7 +68,7 @@ function scrollFunction() {
} }
function toggleMenu() { function toggleMenu() {
if (window.innerWidth < 1200) { if (window.innerWidth < 1400) {
const e = document.querySelector(".navControl"); const e = document.querySelector(".navControl");
const bar = document.querySelector(".header"); const bar = document.querySelector(".header");
if (e.style.maxHeight === "0px") { if (e.style.maxHeight === "0px") {

View File

@@ -3,50 +3,61 @@
<div class="foregroundContent homegroundContent"> <div class="foregroundContent homegroundContent">
<div class="relative"> <div class="relative">
<div id="homepage" class="flex"> <div id="homepage" class="flex">
<div id="HomeContentContainer"> <div id="HomeContent">
<div class="flex">
<div id="HomeContent" data-aos="fade-up">
<h1>Andrew Simonson</h1>
<h3>Computer Science student at Rochester Institute of Technology</h3>
</div>
</div>
</div>
<div class="onRight" data-aos="fade-up">
<img
src="{{ url_for('static', filename='readme-stats-vercel-01-25-2023.svg') }}"
class="langstats"
alt="Language stats"
/>
<br />
<div class="chess">
{% from 'partials/chess.html' import chess %} {{ chess('asimonson1125')
}}
</div>
<br />
{% from 'partials/bookshelf.html' import bookshelf %} {{
bookshelf(var.books) }}
<br />
<a href="/duck">
<div class="flex"> <div class="flex">
<img <div id="nametagContainer">
alt="duck spinning" <div id="nametag" data-aos="fade-up">
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}" <h1>Andrew Simonson</h1>
class="smallImg" <h3>
/> Computer Science student at Rochester Institute of Technology
<img </h3>
alt="duck spinning" <h5>🦅 🦅 🦅 Raahhh wtf is homepage content, we don't do that here 🦅 🦅 🦅</h5>
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}" </div>
class="smallImg" </div>
/> <div id="nametag" class="transparent unsetPos" data-aos="fade-up">
<img <h1>Andrew Simonson</h1>
alt="duck spinning" <h3>
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}" Computer Science student at Rochester Institute of Technology
class="smallImg" </h3>
/> </div>
</div> </div>
</a> </div>
<div class="onRight" data-aos="fade-up">
<img
src="{{ url_for('static', filename='readme-stats-vercel-01-25-2023.svg') }}"
class="langstats"
alt="Language stats"
/>
<br />
<div class="chess">
{% from 'partials/chess.html' import chess %} {{
chess('asimonson1125') }}
</div>
<br />
{% from 'partials/bookshelf.html' import bookshelf %} {{
bookshelf(var.books) }}
<br />
<a href="/duck">
<div class="flex">
<img
alt="duck spinning"
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
class="smallImg"
/>
<img
alt="duck spinning"
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
class="smallImg"
/>
<img
alt="duck spinning"
src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}"
class="smallImg"
/>
</div>
</a>
</div>
</div> </div>
</div> </div>
</div>
</div> </div>
{% endblock %} {% endblock %}