commit 7d73a0a0480aaa4b7968b5ec0364b9d271fcc69b
parent 57d4f9bbbaed890a48191cab942ea89c49addd9b
Author: Demonstrandum <samuel@knutsen.co>
Date: Sun, 7 Jul 2024 21:25:31 +0100
Store custom fonts locally.
Diffstat:
16 files changed, 35 insertions(+), 21 deletions(-)
diff --git a/.gitattributes b/.gitattributes
@@ -0,0 +1,9 @@
+*.jpeg filter=lfs diff=lfs merge=lfs -text
+*.jpg filter=lfs diff=lfs merge=lfs -text
+*.png filter=lfs diff=lfs merge=lfs -text
+*.webp filter=lfs diff=lfs merge=lfs -text
+*.mp4 filter=lfs diff=lfs merge=lfs -text
+*.mp3 filter=lfs diff=lfs merge=lfs -text
+*.pdf filter=lfs diff=lfs merge=lfs -text
+*.woff2 filter=lfs diff=lfs merge=lfs -text
+*.ico filter=lfs diff=lfs merge=lfs -text
diff --git a/components/date-mark.sex b/components/date-mark.sex
@@ -4,6 +4,6 @@
(style
(#date
- :font-family ("IBM Plex Mono", monospace)
+ :font-family ("iA Writer Mono", monospace)
:font-size 0.9em
:color (rgba 0 0 0 0.4)))
diff --git a/favicon.ico b/favicon.ico
Binary files differ.
diff --git a/favicon.png b/favicon.png
Binary files differ.
diff --git a/media/email-thunderbird.png b/media/email-thunderbird.png
Binary files differ.
diff --git a/media/favicon-dark.png b/media/favicon-dark.png
Binary files differ.
diff --git a/media/favicon-dark.svg b/media/favicon-dark.svg
@@ -10,6 +10,9 @@
xml:space="preserve"
sodipodi:docname="favicon-dark.svg"
inkscape:version="1.2.2 (b0a84865, 2022-12-01)"
+ inkscape:export-filename="favicon-dark.png"
+ inkscape:export-xdpi="96"
+ inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
diff --git a/media/favicon-light.png b/media/favicon-light.png
Binary files differ.
diff --git a/media/favicon-light.svg b/media/favicon-light.svg
@@ -10,6 +10,9 @@
xml:space="preserve"
sodipodi:docname="favicon-light.svg"
inkscape:version="1.2.2 (b0a84865, 2022-12-01)"
+ inkscape:export-filename="favicon-light.png"
+ inkscape:export-xdpi="96"
+ inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
@@ -26,11 +29,11 @@
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.56484884"
- inkscape:cx="150.48274"
+ inkscape:cx="43.374436"
inkscape:cy="403.64781"
- inkscape:window-width="1471"
+ inkscape:window-width="1290"
inkscape:window-height="904"
- inkscape:window-x="41"
+ inkscape:window-x="222"
inkscape:window-y="38"
inkscape:window-maximized="0"
inkscape:current-layer="layer1" /><defs
diff --git a/media/fonts/darwin-serif-regular.woff2 b/media/fonts/darwin-serif-regular.woff2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:153bf24b0c131380ebbd272b362ad921d37759e776fd0735562c07f99d10f867
+size 76536
diff --git a/media/fonts/writer-mono-regular.woff2 b/media/fonts/writer-mono-regular.woff2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:5a0e1e2ca42330ec3edfb30385566ba5963cdc7f8c9a3f3e164baf207ee534d0
+size 36952
diff --git a/media/fonts/writer-quattro-bold.woff2 b/media/fonts/writer-quattro-bold.woff2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:a65d4271cc91ac6d7cc39780dcc35891ce40ce27f6fbb7067a2eff26a67a4571
+size 45252
diff --git a/media/fonts/writer-quattro-regular.woff2 b/media/fonts/writer-quattro-regular.woff2
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c8d49e112617397e4565fdd3d2c3b725ffacd0dc52ef18254785aa3d6c1ec1ae
+size 44416
diff --git a/media/k-black.png b/media/k-black.png
Binary files differ.
diff --git a/media/k-white.png b/media/k-white.png
Binary files differ.
diff --git a/styles/main.sex b/styles/main.sex
@@ -86,44 +86,31 @@
:border (1px solid #0002)
:filter (drop-shadow 0 2pt 5pt #0002))
-(%define quattro-regular-url "https://raw.githubusercontent.com/iaolo/iA-Fonts/master/iA%20Writer%20Quattro/Webfonts/iAWriterQuattroS-Regular.woff2")
-(%define quattro-bold-url "https://raw.githubusercontent.com/iaolo/iA-Fonts/master/iA%20Writer%20Quattro/Webfonts/iAWriterQuattroS-Bold.woff2")
-(%define mono-url "https://raw.githubusercontent.com/iaolo/iA-Fonts/master/iA%20Writer%20Mono/Webfonts/iAWriterMonoS-Regular.woff2")
-(%define header-url "https://darwintypeface.com/DarwinSerif-Regular.woff2")
-
(@font-face
:font-family "iA Writer Quattro"
- :src ((url %quattro-regular-url) (format "woff2"))
+ :src ((url "/media/fonts/writer-quattro-regular.woff2") (format "woff2"))
:font-display swap
:font-weight 400
:font-style normal)
(@font-face
:font-family "iA Writer Quattro"
- :src ((url %quattro-bold-url) (format "woff2"))
+ :src ((url "/media/fonts/writer-quattro-bold.woff2") (format "woff2"))
:font-display swap
:font-weight 700
:font-style normal)
(@font-face
:font-family "iA Writer Mono"
- :src ((url %mono-url) (format "woff2"))
+ :src ((url "/media/fonts/writer-mono-regular.woff2") (format "woff2"))
:font-display swap
:font-weight 400
:font-style normal)
(@font-face
:font-family "Darwin Serif"
- :src ((url %header-url) (format "woff2"))
+ :src ((url "/media/fonts/darwin-serif-regular.woff2") (format "woff2"))
:font-display swap
:font-weight 400
:font-style normal)
-
-
-
-
-
-
-
-