From 391d5a17683b2c0702720d1494c31f18f108055d Mon Sep 17 00:00:00 2001 From: Andrew Simonson Date: Sat, 4 May 2024 19:06:11 -0500 Subject: [PATCH 1/5] Learned a fat lesson about sticky and floats --- src/app.py | 2 +- src/static/css/App.css | 18 ++++------- src/templates/about.html | 21 +++++++++++-- src/templates/duck.html | 1 - src/templates/header.html | 65 +++++++++++++++++++-------------------- src/templates/home.html | 62 ++++++++----------------------------- 6 files changed, 69 insertions(+), 100 deletions(-) diff --git a/src/app.py b/src/app.py index 8dd5587..6d715a2 100644 --- a/src/app.py +++ b/src/app.py @@ -13,7 +13,7 @@ pages = json.load(open("./static/json/pages.json", "r")) pages['about']['skillList'] = skillList pages['about']['timeline'] = timeline pages['projects']['projects'] = proj -pages['home']['books'] = books +pages['about']['books'] = books pages['books']['books'] = books app = flask.Flask(__name__) diff --git a/src/static/css/App.css b/src/static/css/App.css index 02f00e0..589a126 100644 --- a/src/static/css/App.css +++ b/src/static/css/App.css @@ -79,17 +79,15 @@ body { filter: brightness(50%); } -h1, h2 { +h1 { color: #ecebeb; } h2 { - font-size: 2rem; - margin-top: 1rem; - margin-bottom: 2rem; + font-size: medium; } -h3, h4, h5 { +h2, h3, h4, h5 { color: #a8a8a8; } @@ -134,7 +132,7 @@ a { background-color: #1a1a1a; width: 100vw; z-index: 99; - position: fixed; + position: sticky; top: 0; left: 0; transition: .4s; @@ -150,6 +148,7 @@ a { #homeName { margin-top: .25em; + margin-bottom: 0; } #name-container { @@ -257,7 +256,6 @@ a { } .foregroundContent { - padding-top: 4rem; padding-left: 8rem; max-width: calc(100%-8rem); padding-bottom: 1rem; @@ -273,7 +271,7 @@ a { } .homegroundContent { - padding-top: 5em; + padding-top: 1em; padding-left: 0em; } @@ -313,12 +311,8 @@ a { #nametag { padding: 2em 3em; - display: inline-block; background-color: rgb(44, 44, 44, .75); - border-radius: 1em; - border: solid black 4px; text-align: center; - max-width: 30em; } #nametag *:not(h1) { diff --git a/src/templates/about.html b/src/templates/about.html index 42508dc..d58bd72 100644 --- a/src/templates/about.html +++ b/src/templates/about.html @@ -2,7 +2,7 @@
-
+

About Me

I'm Andrew Simonson, a senior undergrad at @@ -15,8 +15,23 @@ Ominous positivity is kinda my thing.


-
-
+
+ {% from 'partials/chess.html' import chess %} {{ + chess('asimonson1125') }} +
+
+ {% from 'partials/bookshelf.html' import bookshelf %} {{ + bookshelf(var.books) }} +
+
+ duck spinning +
+
+

Skills

{% from 'partials/skills.html' import skills %} {{ skills(var['skillList']) }} diff --git a/src/templates/duck.html b/src/templates/duck.html index d94aaf2..12b7210 100644 --- a/src/templates/duck.html +++ b/src/templates/duck.html @@ -7,6 +7,5 @@ src="{{ url_for('static', filename='photos/gifs/duck-spinning.gif') }}" style="max-width: calc(100% - 2em);" /> -

Stop disturbing the duck, can't you see he's busy spinning?

{% endblock %} diff --git a/src/templates/header.html b/src/templates/header.html index 05f85eb..4265e23 100644 --- a/src/templates/header.html +++ b/src/templates/header.html @@ -2,7 +2,10 @@ - + @@ -62,46 +65,42 @@ -
-
-
-
-
- Andrew Simonson -
+
+
+
+
+ Andrew Simonson
+
- menu -