From 6cb971b5a5ffd5d8f4f07b033d76b6c6f86ab892 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Sun, 2 Jun 2024 09:59:03 +0200 Subject: [PATCH] Limit attributes count on preview cards + fix media pages title --- TODO.md | 4 +- .../AppLayout/components/Html.astro | 25 ++++++++++ src/components/HeaderTitle.astro | 12 ++--- src/components/Lightbox.astro | 6 +-- .../Previews/CollectiblePreview.astro | 49 +++++++++++++++++-- src/components/Previews/GenericPreview.astro | 48 +++++++++++++++--- src/components/Previews/PagePreview.astro | 18 +++++-- src/pages/[locale]/audios/[id].astro | 10 +--- .../collectibles/[slug]/gallery/[index].astro | 1 + .../collectibles/[slug]/scans/[index].astro | 1 + src/pages/[locale]/dev/index.astro | 35 +++++++++++++ src/pages/[locale]/images/[id].astro | 1 + src/pages/[locale]/timeline/index.astro | 6 +-- src/pages/[locale]/videos/[id].astro | 9 +--- 14 files changed, 181 insertions(+), 44 deletions(-) create mode 100644 src/pages/[locale]/dev/index.astro diff --git a/TODO.md b/TODO.md index 6407752..3e7de78 100644 --- a/TODO.md +++ b/TODO.md @@ -9,7 +9,6 @@ ## Short term - [Feat] 404, 500 pages -- [Bugs] [iOS] Video doesn't seem to start - [Feat] Add languages to collectibles and pages previews - [Feat] [RichTextContent] Handle relationship - [Bugs] Vollkorn doesn't support many languages @@ -21,7 +20,6 @@ ## Mid term -- [Feat] [Payload] Home as parent folders for home folders - [Bugs] [Timeline] Error if collectible not published? - [Feat] [Timeline] display source language - [Feat] [Timeline] Add details button in footer with credits + last updated / created @@ -32,6 +30,8 @@ ## Long term +- [Bugs] [iOS] Video doesn't seem to start +- [Feat] [Folders] Provide a list view, and a list/grid toggle - [Feat] [Payload] Endpoints should provide a simple text-based version of the content (for OG purposes) - [Feat] [WebManifest] Add shortcuts https://web.dev/patterns/web-apps/shortcuts - [Feat] [PWA] Rich install UI https://web.dev/patterns/web-apps/richer-install-ui/ diff --git a/src/components/AppLayout/components/Html.astro b/src/components/AppLayout/components/Html.astro index 9fbc4b2..6463a07 100644 --- a/src/components/AppLayout/components/Html.astro +++ b/src/components/AppLayout/components/Html.astro @@ -701,6 +701,31 @@ const { currentTheme } = Astro.locals; > h5 + h6 { margin-top: -0.75em; } + + h2 { + font-size: var(--font-size-4xl); + font-variation-settings: "wght" 800; + } + + h3 { + font-size: var(--font-size-3xl); + font-variation-settings: "wght" 750; + } + + h4 { + font-size: var(--font-size-2xl); + font-variation-settings: "wght" 700; + } + + h5 { + font-size: var(--font-size-xl); + font-variation-settings: "wght" 600; + } + + h6 { + font-size: var(--font-size-l); + font-variation-settings: "wght" 500; + } } @view-transition { diff --git a/src/components/HeaderTitle.astro b/src/components/HeaderTitle.astro index 2e7cc05..5f7aad6 100644 --- a/src/components/HeaderTitle.astro +++ b/src/components/HeaderTitle.astro @@ -11,27 +11,27 @@ const { header, id } = Astro.props; { header === 1 ? ( -