diff --git a/TODO.md b/TODO.md
index 15bb6d9..1c8e386 100644
--- a/TODO.md
+++ b/TODO.md
@@ -12,7 +12,6 @@
- [Collectibles] Create page for scans
- When the tags overflow, the tag group name should be align start (see http://localhost:12499/en/pages/magnitude-negative-chapter-1)
- [SDK] create a initPayload() that return a payload sdk (and stop hard wirring to ENV or node-cache)
-- [Payload] Compare current package.json with fresh install of create-payload-app
## Long term
@@ -21,7 +20,6 @@
- Grid view (all files)
- Web archives
- Videos
-- Timeline page
- Contact page
- About us page
- Global search function
diff --git a/public/img/timeline-background.webp b/public/img/timeline-background.webp
new file mode 100644
index 0000000..d7ef7b4
Binary files /dev/null and b/public/img/timeline-background.webp differ
diff --git a/src/components/AppLayout/components/Footer.astro b/src/components/AppLayout/components/Footer.astro
index 8395eb7..c32ea9d 100644
--- a/src/components/AppLayout/components/Footer.astro
+++ b/src/components/AppLayout/components/Footer.astro
@@ -48,7 +48,7 @@ const contactLabel = `${t("footer.socials.contact.title")} - ${t(
{"Changelog"}
- +{t("footer.links.timeline.title")}
diff --git a/src/components/AppLayout/components/Html.astro b/src/components/AppLayout/components/Html.astro index b766dbf..37e5ce0 100644 --- a/src/components/AppLayout/components/Html.astro +++ b/src/components/AppLayout/components/Html.astro @@ -499,6 +499,10 @@ const { currentTheme } = Astro.locals; font-size: 24px; } + > h4 { + font-size: 18px; + } + > h2, > h3, > h4, @@ -548,3 +552,17 @@ const { currentTheme } = Astro.locals; Array.from(newDocument.querySelectorAll(".when-no-js")).forEach((node) => node.remove()); }); + + diff --git a/src/components/InlineCredits.astro b/src/components/InlineCredits.astro new file mode 100644 index 0000000..fe4b4c4 --- /dev/null +++ b/src/components/InlineCredits.astro @@ -0,0 +1,71 @@ +--- +import type { EndpointRecorder } from "src/shared/payload/payload-sdk"; +import { getI18n } from "src/i18n/i18n"; + +interface Props { + translators?: EndpointRecorder[] | undefined; + transcribers?: EndpointRecorder[] | undefined; + proofreaders?: EndpointRecorder[] | undefined; +} + +const { translators = [], transcribers = [], proofreaders = [] } = Astro.props; +const { t } = await getI18n(Astro.locals.currentLocale); + +const tagGroups = []; + +if (translators.length > 0) { + tagGroups.push({ + name: t("global.credits.translators"), + values: translators, + }); +} + +if (transcribers.length > 0) { + tagGroups.push({ + name: t("global.credits.transcribers"), + values: transcribers, + }); +} + +if (proofreaders.length > 0) { + tagGroups.push({ + name: t("global.credits.proofreaders"), + values: proofreaders, + }); +} +--- + +{/* ------------------------------------------- HTML ------------------------------------------- */} + + + +{/* ------------------------------------------- CSS -------------------------------------------- */} + + diff --git a/src/components/TableOfContent/components/TableOfContentItem.astro b/src/components/TableOfContent/components/TableOfContentItem.astro index 20d09ed..87f897e 100644 --- a/src/components/TableOfContent/components/TableOfContentItem.astro +++ b/src/components/TableOfContent/components/TableOfContentItem.astro @@ -28,7 +28,7 @@ const title = (() => { {/* ------------------------------------------- HTML ------------------------------------------- */}+ {formatLocale(id)} +
++ { + t("timeline.eventFooter.languages", { + count: availableLanguages.length, + }) + } +
+{t("timeline.eventFooter.note")}
++ {t("timeline.eventFooter.sources", { count: sources.length })} +
++ {t("timeline.description")} +
+World Inside`, + })} + /> +
World Inside`, + })} + /> +
${formatTimelineDate({ year: start })}`, + end: `${formatTimelineDate({ year: end })}`, + })} + /> + )) + } +