aboutsummaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/bryson-smol.pngbin0 -> 463124 bytes
-rw-r--r--static/style.css24
-rw-r--r--static/time.js29
3 files changed, 34 insertions, 19 deletions
diff --git a/static/bryson-smol.png b/static/bryson-smol.png
new file mode 100644
index 0000000..389f9ce
--- /dev/null
+++ b/static/bryson-smol.png
Binary files 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);