aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJan Tuomi <jans.tuomi@gmail.com>2024-08-23 11:46:12 +0300
committerJan Tuomi <jan@jantuomi.fi>2024-12-21 19:43:13 +0200
commite99cf8703ed1f1ff372b3e7e586ae3952b9299a5 (patch)
treec8a51879f4d87a7d6b795ee344b23fd99fc0ad51 /templates
parent3ea6154a9e75011c194820456b66fa00f12a55b7 (diff)
Improvements
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html.j21
-rw-r--r--templates/index.html.j23
-rw-r--r--templates/poll.html.j24
3 files changed, 5 insertions, 3 deletions
diff --git a/templates/base.html.j2 b/templates/base.html.j2
index 1e2ab74..c7e03d7 100644
--- a/templates/base.html.j2
+++ b/templates/base.html.j2
@@ -5,6 +5,7 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="diddle is a minimalist, mobile friendly, fast and self-hosted scheduling tool, licensed under Apache 2.0.">
+ <link rel="preload" href="/static/InclusiveSans-Regular.ttf" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="stylesheet" href="/static/styles.css"></link>
</head>
<body>
diff --git a/templates/index.html.j2 b/templates/index.html.j2
index 0512039..a9fffc1 100644
--- a/templates/index.html.j2
+++ b/templates/index.html.j2
@@ -26,6 +26,7 @@
licensed under <a href="https://github.com/jantuomi/diddle/blob/main/LICENSE">Apache 2.0.</a>
</p>
<p>
- Find <i>diddle</i> on <a href="https://github.com/jantuomi/diddle">GitHub</a>. © {{ now.year }} Jan Tuomi. All rights reserved.
+ Find <i>diddle</i> on <a href="https://github.com/jantuomi/diddle">GitHub</a>. © {{ now.year }} Jan Tuomi. All rights reserved.<br>
+ This site uses the <a href="https://www.oliviaking.com/inclusive-sans">Inclusive Sans</a> typeface.
</p>
{% endblock %}
diff --git a/templates/poll.html.j2 b/templates/poll.html.j2
index b3975cf..c09f089 100644
--- a/templates/poll.html.j2
+++ b/templates/poll.html.j2
@@ -4,11 +4,11 @@
<h2><span class="contrast">{{ poll.title }}</span> by <i>{{ poll.author_name }}</i></h2>
{% if poll.description %}
- <p>{{ poll.description }}</p>
+ <pre class="poll-description">{{ poll.description }}</pre>
{% endif %}
{% if poll.choices | length == 0 %}
-<p>No options available.</p>
+<p style="margin-top: 20px;">No options available.</p>
{% else %}
<div class="display-mode-section">