summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2020-05-10 18:44:29 -0500
committerBlaise Thompson <blaise@untzag.com>2020-05-10 18:44:29 -0500
commitb43db726af5e87e7e483b5174d3d878203b4df6a (patch)
tree71247ff0943518bb8adc900674c0653d33058adc
parent0b2f52af28f3c0a3b925ab904cbe1715fb7b68ac (diff)
update style
-rw-r--r--build_html.py10
-rw-r--r--public/style.css8
2 files changed, 12 insertions, 6 deletions
diff --git a/build_html.py b/build_html.py
index 211eb94..fd577b8 100644
--- a/build_html.py
+++ b/build_html.py
@@ -48,6 +48,8 @@ with open(org_fp, "r") as org:
continue
if ":private:" in line:
continue
+ if ":info:" in line:
+ continue
events.append(Event(line))
@@ -61,7 +63,7 @@ if not os.path.isdir(__here__ / "public"):
head = """<html>
<head>
- <meta charset="utf-8">
+ <meta charset="utf-8" name="viewport" content="width=80ch">
<title>agenda.blaise.zone</title>
<link rel="stylesheet" href="style.css">
</head>
@@ -72,14 +74,16 @@ with open(__here__ / "public" / "index.html", "w") as html:
html.write("<!DOCTYPE html>\n")
html.write(head)
html.write("<body>\n")
- html.write("<h1>agenda.blaise.zone</h1>\n")
+ html.write("<h1><a href='http://blaise.zone'>blaise</a>-agenda</h1>\n")
+ html.write("<hr>")
+ html.write("<p>")
html.write("Welcome to my public agenda!<br>\n")
html.write("All timestamps are in 'blaise-local-time'.<br>\n")
html.write("Thanks for stopping by! —Blaise\n")
+ html.write("</p>")
# body
monday = today - datetime.timedelta(days=today.weekday())
while True:
- html.write("<hr>")
year, week, day = monday.isocalendar()
id = f"{year}-w{week}"
html.write(
diff --git a/public/style.css b/public/style.css
index 8a1a7d6..9cff696 100644
--- a/public/style.css
+++ b/public/style.css
@@ -4,13 +4,15 @@ a {
}
body {
- font-family: sans-serif;
+ font-family: 'DejaVu Sans Mono', monospace;
margin: 40px auto;
- max-width: 650px;
- line-height: 1.6;
+ min-width: 80ch;
+ max-width: 80ch;
+ line-height: 1.5;
font-size: 16px;
background-color: #1d1f21;
color: #c5c8c6;
padding: 0 10px;
text-align: left;
+ overflow-y: scroll;
}