From 7323b01e42d573c12818f48e4b00ed8ff7736565 Mon Sep 17 00:00:00 2001 From: Bryson Steck Date: Tue, 27 Dec 2022 19:59:35 -0700 Subject: added contact page, blog list, redid homepage --- static/bryson-smol.png | Bin 0 -> 463124 bytes static/style.css | 24 +++++++++++++++++++----- static/time.js | 29 +++++++++++++++-------------- 3 files changed, 34 insertions(+), 19 deletions(-) create mode 100644 static/bryson-smol.png (limited to 'static') diff --git a/static/bryson-smol.png b/static/bryson-smol.png new file mode 100644 index 0000000..389f9ce Binary files /dev/null and b/static/bryson-smol.png differ diff --git a/static/style.css b/static/style.css index 6e940e0..775d6d5 100644 --- a/static/style.css +++ b/static/style.css @@ -107,10 +107,16 @@ a:hover { display: block; } -.navbar-title { +a.navbar-title { font-weight: 600; padding-right: 10px; padding-top: 2px; + text-decoration: none; + color: #ebdbb2; +} + +a.navbar-title:hover { + text-decoration: underline; } .nav { @@ -160,13 +166,15 @@ img.pfp { } .sidebar { - max-height: 13em; - min-height: 13em; - font-size: 15px; + max-width: inherit; + min-height: 13rem; + max-height: 13rem; + font-size: 13px; } -.project img { +.content img { max-width: 100%; + border-radius: 20px; } footer { @@ -174,3 +182,9 @@ footer { padding: 30px 0; color: #7c6f64; } + +@media(max-width:768px) { + .time { + display: none; + } +} diff --git a/static/time.js b/static/time.js index 3e5650d..ac093b1 100644 --- a/static/time.js +++ b/static/time.js @@ -1,27 +1,28 @@ +var colon = ":"; function updateTime(){ var date = new Date() var hours = date.getHours() var minutes = date.getMinutes() - var seconds = date.getSeconds() - var old_hours = hours; - if (hours > 12) { + if (hours > 11) + var tod = " pm"; + else + var tod = " am"; + + if (hours > 12) hours = hours - 12 - } else if (hours == 0) { + else if (hours == 0) hours = 12 - } - if (minutes < 10) { + if (minutes < 10) minutes = "0" + minutes - } - var t_str = hours + ":" + minutes; - if (old_hours > 11) { - t_str += " pm"; - } else { - t_str += " am"; - } + if (colon === ":") + colon = " "; + else if (colon === " ") + colon = ":"; + var t_str = hours + colon + minutes + tod; document.getElementById('time').innerHTML = t_str; } -setInterval(updateTime, 1); +setInterval(updateTime, 500); -- cgit v1.2.3