From 701d60a0e574243ef9e9b78e231c2dd63184c2f9 Mon Sep 17 00:00:00 2001 From: DrMint <29893320+DrMint@users.noreply.github.com> Date: Mon, 27 May 2024 15:08:07 +0200 Subject: [PATCH] Many, many changes related to fonts and spacing --- README.md | 1 - TODO.md | 6 + public/site.webmanifest | 35 +- .../AppLayout/components/AppLayoutTitle.astro | 15 +- .../AppLayout/components/Footer.astro | 276 ++++--------- .../AppLayout/components/Html.astro | 389 +++++++++++------- .../Topbar/components/ParentPagesButton.astro | 2 +- .../Topbar/components/ReturnToButton.astro | 3 +- src/components/AudioPlayer.astro | 2 +- src/components/Button.astro | 1 - src/components/Card.astro | 7 +- src/components/ErrorMessage.astro | 7 +- src/components/HeaderTitle.astro | 12 +- src/components/InlineMetadata.astro | 23 +- src/components/Lightbox.astro | 14 +- src/components/Metadata.astro | 26 +- src/components/Previews/GenericPreview.astro | 38 +- .../RTBlock/components/RTBreak.astro | 2 +- .../RTBlock/components/RTSection.astro | 3 +- .../components/OpenMediaPageButton.astro | 3 +- .../RTUpload/components/RTImage.astro | 18 +- src/components/SourceRow.astro | 19 +- .../TableOfContent/TableOfContent.astro | 28 +- src/components/TitleIcon.astro | 25 ++ src/components/VideoPlayer.astro | 2 +- .../[locale]/_components/CategoryCard.astro | 11 +- .../[locale]/_components/ChronicleCard.astro | 56 --- src/pages/[locale]/_components/LinkCard.astro | 14 +- src/pages/[locale]/api/pages/partial.astro | 13 +- .../[slug]/_components/AvailabilityInfo.astro | 19 +- .../ContentsSection/ContentsSection.astro | 34 +- .../[slug]/_components/ImageTile.astro | 16 +- .../[slug]/_components/PageInfo.astro | 18 +- .../[slug]/_components/SizeInfo.astro | 27 +- .../[slug]/_components/SubitemSection.astro | 34 +- .../[slug]/_components/WeightInfo.astro | 19 +- .../collectibles/[slug]/gallery/index.astro | 14 +- .../[locale]/collectibles/[slug]/index.astro | 19 +- .../scans/_components/ScanPreview.astro | 15 +- .../collectibles/[slug]/scans/index.astro | 29 +- .../_components/ColorShowcase.astro | 118 ++++++ .../[locale]/dev/design-system/index.astro | 71 ++++ src/pages/[locale]/folders/[slug].astro | 12 +- .../folders/_components/FolderCard.astro | 10 +- .../folders/_components/FoldersSection.astro | 2 +- src/pages/[locale]/index.astro | 72 +--- src/pages/[locale]/recorders/[id].astro | 19 +- src/pages/[locale]/timeline/index.astro | 8 +- src/pages/[locale]/videos/[id].astro | 2 - 49 files changed, 735 insertions(+), 874 deletions(-) create mode 100644 src/components/TitleIcon.astro delete mode 100644 src/pages/[locale]/_components/ChronicleCard.astro create mode 100644 src/pages/[locale]/dev/design-system/_components/ColorShowcase.astro create mode 100644 src/pages/[locale]/dev/design-system/index.astro diff --git a/README.md b/README.md index 105655f..18d37e8 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,6 @@ A parallax effect is applied on the webpages' background image. This effect can ## CSS Global Variables - `--color-base-X`: the current theme colors. X can be between 0 and 1000, available in increments of 50. -- `--font-serif`: by default, everything use sans-serif. Use this variable to make the font serif. ## Translations diff --git a/TODO.md b/TODO.md index d3623f5..7f2177c 100644 --- a/TODO.md +++ b/TODO.md @@ -3,13 +3,17 @@ ## Ongoing - [Analytics] Add analytics +- [Tooltips] Tooltip in under next element (example in timeline) +- [Language override] Maso actor is not focusable with keyboard nav ## Short term +- [Timeline] Improve layout/spacing on mobile - Display if a content has a source language - [JSLess] Display if a content is available in more than one language - Number of audio players seems limited (on Chrome and Firefox) - [RichTextContent] Handle relationship +- [Component] Make a metadata title component (combine with collectible custom info and table of content) - [RichTextContent] Add autolink block support ## Mid term @@ -25,6 +29,8 @@ ## Long term +- [WebManifest] Add shortcuts https://web.dev/patterns/web-apps/shortcuts +- [PWA] Rich install UI https://web.dev/patterns/web-apps/richer-install-ui/ - Try using CSS instead of JS for parallax effect - More data caching between the CMS and Astro - [Folders] Support for nameless section diff --git a/public/site.webmanifest b/public/site.webmanifest index 8e572d6..5f147c8 100644 --- a/public/site.webmanifest +++ b/public/site.webmanifest @@ -27,38 +27,5 @@ "name": "Accord's Library", "short_name": "Accord's Lib", - "start_url": ".", - - "shortcuts": [ - { - "name": "Library", - "url": "/library", - "description": "Browse all physical and digital media" - }, - { - "name": "Contents", - "url": "/contents", - "description": "Explore all content and filter by type or category" - }, - { - "name": "Wiki", - "url": "/wiki", - "description": "An encyclopedia for everything related to DrakeNieR" - }, - { - "name": "Chronicles", - "url": "/chronicles", - "description": "Experience all events and content in chronological order" - }, - { - "name": "News", - "url": "/news", - "description": "All the latest info" - }, - { - "name": "Gallery", - "url": "/gallery", - "description": "Thousands of offcial artworks" - } - ] + "start_url": "." } diff --git a/src/components/AppLayout/components/AppLayoutTitle.astro b/src/components/AppLayout/components/AppLayoutTitle.astro index 8c53e1a..1faf1d6 100644 --- a/src/components/AppLayout/components/AppLayoutTitle.astro +++ b/src/components/AppLayout/components/AppLayoutTitle.astro @@ -12,8 +12,14 @@ const { title, subtitle, pretitle } = Astro.props;