+Playfair, +ETag

This commit is contained in:
Simon Martens
2025-04-28 20:35:02 +02:00
parent bb4fa12ea1
commit aec47c73f1
31 changed files with 90 additions and 7 deletions

View File

@@ -8,6 +8,7 @@ import (
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/compress" "github.com/gofiber/fiber/v2/middleware/compress"
"github.com/gofiber/fiber/v2/middleware/etag"
) )
const ( const (
@@ -27,6 +28,7 @@ func Register(server server.Server, cfg config.Config) {
server.Server.Use(ASSETS_URL, compress.New(compress.Config{ server.Server.Use(ASSETS_URL, compress.New(compress.Config{
Level: compress.LevelBestSpeed, Level: compress.LevelBestSpeed,
})) }))
server.Server.Use(ASSETS_URL, etag.New())
server.Server.Use(ASSETS_URL, middleware.StaticHandler(&views.StaticFS)) server.Server.Use(ASSETS_URL, middleware.StaticHandler(&views.StaticFS))
server.Server.Use(func(ctx *fiber.Ctx) error { server.Server.Use(func(ctx *fiber.Ctx) error {

View File

@@ -1,5 +1,4 @@
TODO TODO
- <b> <i>
- Überlieferung - Überlieferung
- Nummern weg - Nummern weg
@@ -15,6 +14,6 @@ TODO
extent bei nr extent bei nr
Mouseover hand sidenote Mouseover hand sidenote
HAND ANDERE TYPE
NOTE ANDERS NOTE ANDERS
-Tab ist falsch

View File

@@ -53,3 +53,35 @@
font-display: swap; font-display: swap;
src: url(/assets/fonts/LinBiolinum_RB_G.ttf) format("truetype"); src: url(/assets/fonts/LinBiolinum_RB_G.ttf) format("truetype");
} }
@font-face {
font-family: "Playfair";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-Regular.ttf) format("truetype");
}
@font-face {
font-family: "Playfair";
font-style: italic;
font-weight: 500;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-Italic.ttf) format("truetype");
}
@font-face {
font-family: "Playfair";
font-style: normal;
font-weight: bold;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-Bold.ttf) format("truetype");
}
@font-face {
font-family: "Playfair";
font-style: italic;
font-weight: bold;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-BoldItalic.ttf) format("truetype");
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -53,3 +53,35 @@
font-display: swap; font-display: swap;
src: url(/assets/fonts/LinBiolinum_RB_G.ttf) format("truetype"); src: url(/assets/fonts/LinBiolinum_RB_G.ttf) format("truetype");
} }
@font-face {
font-family: "Playfair";
font-style: normal;
font-weight: 500;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-Regular.ttf) format("truetype");
}
@font-face {
font-family: "Playfair";
font-style: italic;
font-weight: 500;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-Italic.ttf) format("truetype");
}
@font-face {
font-family: "Playfair";
font-style: normal;
font-weight: bold;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-Bold.ttf) format("truetype");
}
@font-face {
font-family: "Playfair";
font-style: italic;
font-weight: bold;
font-display: swap;
src: url(/assets/fonts/PlayfairDisplay-BoldItalic.ttf) format("truetype");
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -2,9 +2,11 @@
<div class="flex flex-row grow"> <div class="flex flex-row grow">
<!--
<div class="mr-4 text-6xl">{{ $model.Letter }}</div> <div class="mr-4 text-6xl">{{ $model.Letter }}</div>
-->
<div class="pt-0.5"> <div class="pt-0.5">
<div>{{ $model.Earliest.Text -}}</div> <div class="italic">{{ $model.Earliest.Text -}}</div>
{{- range $sr := $model.SendReceivedPairs -}} {{- range $sr := $model.SendReceivedPairs -}}
<div class="flex flex-row"> <div class="flex flex-row">
<div> <div>

View File

@@ -3,6 +3,7 @@
--font-script: Rancho, ui-serif; --font-script: Rancho, ui-serif;
--font-sans: "Linux Biolinum", "Merriweather Sans", ui-sans-serif; --font-sans: "Linux Biolinum", "Merriweather Sans", ui-sans-serif;
--font-serif: "Linux Libertine", ui-serif; --font-serif: "Linux Libertine", ui-serif;
--font-didone: "Playfair", ui-serif;
--color-background: oklch(0.985 0.001 106.423); --color-background: oklch(0.985 0.001 106.423);
--color-background-darker: oklch(0.97 0.001 106.424); --color-background-darker: oklch(0.97 0.001 106.424);
@@ -41,18 +42,22 @@
@utility font-variant-small-caps { @utility font-variant-small-caps {
font-variant-caps: small-caps; font-variant-caps: small-caps;
font-variant: small-caps;
display: inline-block;
} }
@layer components { @layer components {
html { html {
font-size: 16px; font-size: 20px;
scroll-behavior: auto !important; scroll-behavior: auto !important;
} }
@media (max-width: 1280px) { @media (max-width: 1280px) {
html { html {
font-size: 14px; font-size: 16px;
} }
} }
@media (max-width: 640px) { @media (max-width: 640px) {
html { html {
font-size: 12px; font-size: 12px;
@@ -89,6 +94,8 @@
.text .hb, .text .hb,
.text .nr, .text .nr,
.text .align, .text .align,
.text .b,
.text .i,
.text .insertion, .text .insertion,
.text .del, .text .del,
.text .fn, .text .fn,
@@ -96,6 +103,14 @@
@apply inline; @apply inline;
} }
.text .b {
@apply font-bold;
}
.text .i {
@apply italic;
}
.text .aq { .text .aq {
@apply font-sans; @apply font-sans;
} }
@@ -178,6 +193,7 @@
} }
.text .insertion::after { .text .insertion::after {
padding-left: 0.5em;
content: "⌟"; content: "⌟";
} }
@@ -224,6 +240,6 @@
} }
.text .hand { .text .hand {
@apply inline text-blue-950; @apply inline text-blue-950 font-didone;
} }
} }