diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2022-11-27 22:49:16 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2022-11-27 22:49:16 -0400 |
commit | 5206ac7188c9eefd6f1d18050e2831b0f10be8ef (patch) | |
tree | 75c0f8ad55cd7771182ba64aa146104e5a5049ef /src/page/flash.js | |
parent | fb5859f083687b477b8e65e0e4de56baf4b35a98 (diff) |
redesign & refinements for sticky layouting
Diffstat (limited to 'src/page/flash.js')
-rw-r--r-- | src/page/flash.js | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/page/flash.js b/src/page/flash.js index be07039b..1e818ae9 100644 --- a/src/page/flash.js +++ b/src/page/flash.js @@ -28,22 +28,27 @@ export function write(flash, {wikiData}) { language, }) => ({ title: language.$('flashPage.title', {flash: flash.name}), - theme: getThemeString(flash.color, [ - `--flash-directory: ${flash.directory}`, - ]), + + themeColor: flash.color, + theme: + getThemeString(flash.color, { + additionalVariables: [ + `--flash-directory: ${flash.directory}`, + ], + }), main: { content: [ - html.tag('h1', - language.$('flashPage.title', { - flash: flash.name, - })), - generateCoverLink({ src: getFlashCover(flash), alt: language.$('misc.alt.flashArt'), }), + html.tag('h1', + language.$('flashPage.title', { + flash: flash.name, + })), + html.tag('p', language.$('releaseInfo.released', { date: language.formatDate(flash.date), |