aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorwinter2025-03-11 18:12:10 +0000
committerwinter2025-03-11 18:12:10 +0000
commit357697ef01f5d3bd0646a242eb0d34e293217fc4 (patch)
tree6ca9d847f49afcc7fa3c3a8815d188d6d04a3f9c
parentdb29e3c45d9f6c815b077bdb48a6247be086ff4b (diff)
new fonts!!
-rw-r--r--LICENSE20
-rw-r--r--static/FairfaxHD-sitelen-pona.woff2bin0 -> 80168 bytes
-rw-r--r--static/language-support.css6
-rw-r--r--static/note.css2
-rw-r--r--static/style.css1
-rw-r--r--static/theme.css2
-rw-r--r--templates/head_tags.php2
-rw-r--r--templates/note.php9
8 files changed, 33 insertions, 9 deletions
diff --git a/LICENSE b/LICENSE
index 0ee180d..e81c2dd 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,22 @@
-Copyright 2024 winter
+--- FONTS ---
+The font "Fairfax HD", which is partially included in this software, is
+provided by KreativeKorp <https://www.kreativekorp.com/> under the SIL Open
+Font License, version 1.1. For more information, see the OFL website at
+https://openfontlicense.org/
+
+
+--- ASSETS ---
+The loading spinner animation (static/tail-spin.svg) is copyright 2014 Sam
+Herbert and is licenced under the MIT licence.
+
+Material Symbols (used for graphical icons in the user interface) is provided
+by Google under the Apache licence, version 2.0.
+
+
+--- DIGITIGRADE ITSELF ---
+is available under the MIT licence as follows:
+
+Copyright 2024-2025 winter
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
diff --git a/static/FairfaxHD-sitelen-pona.woff2 b/static/FairfaxHD-sitelen-pona.woff2
new file mode 100644
index 0000000..67951d2
--- /dev/null
+++ b/static/FairfaxHD-sitelen-pona.woff2
Binary files differ
diff --git a/static/language-support.css b/static/language-support.css
new file mode 100644
index 0000000..2906a34
--- /dev/null
+++ b/static/language-support.css
@@ -0,0 +1,6 @@
+@font-face {
+ font-family: sitelen-pona-support;
+ src: local(Fairfax HD), local(Fairfax Pona HD), local(linja pona),
+ url(FairfaxHD-sitelen-pona.woff2) format("woff2");
+ unicode-range: U+F1900-F19FF, U+F1C80-F1C9F, U+FF900-FFBFF, U+FFD00-FFEFF;
+}
diff --git a/static/note.css b/static/note.css
index 333df3b..b1453dc 100644
--- a/static/note.css
+++ b/static/note.css
@@ -130,7 +130,7 @@ article.note {
text-decoration: underline;
}
}
- .authorHandle,
+ .authorPronouns,
.timestamp {
font-size: var(--font-small-size);
text-overflow: ellipsis;
diff --git a/static/style.css b/static/style.css
index 8cd33b9..34de2d2 100644
--- a/static/style.css
+++ b/static/style.css
@@ -9,3 +9,4 @@
@import url(mobilepanes.css);
@import url(popup-menu.css);
@import url(misc.css);
+@import url(language-support.css);
diff --git a/static/theme.css b/static/theme.css
index f002669..7e8ce2a 100644
--- a/static/theme.css
+++ b/static/theme.css
@@ -35,7 +35,7 @@
--spacing-quadruple: 32px;
/* type */
- --font-family: "DM Sans", sans-serif;
+ --font-family: "Nunito Sans", sans-serif, sitelen-pona-support;
--font-normal-size: 12pt;
--font-small-size: 10pt;
--font-big-size: 16pt;
diff --git a/templates/head_tags.php b/templates/head_tags.php
index 47fcef0..395b707 100644
--- a/templates/head_tags.php
+++ b/templates/head_tags.php
@@ -1,5 +1,5 @@
<link rel="stylesheet" href="/static/style.css">
-<link rel="stylesheet" href="https://fonts.bunny.net/css?family=dm-sans:400,400i,800,800i">
+<link rel="stylesheet" href="https://fonts.bunny.net/css?family=nunito-sans:400,400i,800,800i">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#3b005e">
<script src="https://unpkg.com/htmx.org@2.0.4"></script>
diff --git a/templates/note.php b/templates/note.php
index 94edf2b..759a7c7 100644
--- a/templates/note.php
+++ b/templates/note.php
@@ -30,11 +30,10 @@ $pathToSelf = '/@/' . $note->author->getFullHandle() . '/note/' . $note->id;
<div class="infoLine">
<a class="authorName"
href="/@/<?= htmlspecialchars($note->author->getFullHandle()) ?>"><?= htmlspecialchars($note->author->displayName) ?></a>
- <span class="authorHandle">
- <?php if (isset($note->author->pronouns) && trim($note->author->pronouns) != ''): ?>
- <?= htmlspecialchars($note->author->pronouns) ?> &bullet;
- <?php endif; ?>
- @<?= htmlspecialchars($note->author->getFullHandle()) ?>
+ <span class="authorPronouns">
+ <?php if (isset($note->author->pronouns) && trim($note->author->pronouns) != '') {
+ echo htmlspecialchars($note->author->pronouns);
+ } ?>
</span>
<a class="timestamp" href="<?= htmlspecialchars($pathToSelf) ?>">
<?= format_datetime($note->created, $prefs?->get('locale.timezone'))