diff --git a/TODO.md b/TODO.md index e4830d8..b7c0b9c 100644 --- a/TODO.md +++ b/TODO.md @@ -3,13 +3,10 @@ ## Short term - [Timeline] inline links to pages not working (timeline 2026/06) -- Save cookies for longer than just the session -- [Image] media page -- [Video] media page -- [Audio] media page ## Mid term +- Save cookies for longer than just the session - [Scripts] Can't run the scripts using node (ts-node?) - Support for nameless section - [Timeline] Error if collectible not published? @@ -34,6 +31,7 @@ - Consider official search plugin for payload https://payloadcms.com/docs/plugins/search - Convert Rich text to simple text for indexing and open graph purposes - Anonymous comments +- [Images] add images group (which could be named or not) ## Bonus diff --git a/src/components/AudioPlayer.astro b/src/components/AudioPlayer.astro new file mode 100644 index 0000000..3e1bc00 --- /dev/null +++ b/src/components/AudioPlayer.astro @@ -0,0 +1,27 @@ +--- +import type { EndpointAudio } from "src/shared/payload/payload-sdk"; + +interface Props { + audio: EndpointAudio; +} + +const { + audio: { url, mimeType }, +} = Astro.props; +--- + +{/* ------------------------------------------- HTML ------------------------------------------- */} + + + +{/* ------------------------------------------- CSS -------------------------------------------- */} + + diff --git a/src/components/Button.astro b/src/components/Button.astro index fe61371..74ed15b 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -46,9 +46,13 @@ const { title, icon, class: className, ariaLabel, id } = Astro.props; transition-duration: 250ms; transition-property: padding-top, box-shadow, background-color, color, border-color; - &.with-title > svg { - width: 1.2em; - height: 1.2em; + &.with-title { + padding-right: 1.2em; + + & > svg { + width: 1.2em; + height: 1.2em; + } } > svg { diff --git a/src/components/DownloadButton.astro b/src/components/DownloadButton.astro new file mode 100644 index 0000000..f51808e --- /dev/null +++ b/src/components/DownloadButton.astro @@ -0,0 +1,44 @@ +--- +import { getI18n } from "src/i18n/i18n"; +import Button from "./Button.astro"; + +interface Props { + href: string; + filename: string; +} + +const { href, filename } = Astro.props; + +const { t } = await getI18n(Astro.locals.currentLocale); +--- + +{/* ------------------------------------------- HTML ------------------------------------------- */} + + +