From 3d7d9944fd74e21db64b6d3e39375c27094b5e46 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 6 Oct 2023 01:30:09 -0300 Subject: content: generateArtTagGalleryPage: stub message for yet unfeatured --- src/content/dependencies/generateArtTagGalleryPage.js | 16 +++++++++++----- src/static/site4.css | 1 + src/strings-default.json | 4 +++- 3 files changed, 15 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/content/dependencies/generateArtTagGalleryPage.js b/src/content/dependencies/generateArtTagGalleryPage.js index b9e0f2c5..0da62812 100644 --- a/src/content/dependencies/generateArtTagGalleryPage.js +++ b/src/content/dependencies/generateArtTagGalleryPage.js @@ -123,11 +123,17 @@ export default { .slot('infoPageLink', relations.infoPageLink), html.tag('p', {class: 'quick-info'}, - language.$('artTagGalleryPage.infoLine', { - coverArts: language.countArtworks(data.numArtworks, { - unit: true, - }), - })), + (data.numArtworks === 0 + ? [ + language.$('artTagGalleryPage.infoLine.notFeatured'), + html.tag('br'), + language.$('artTagGalleryPage.infoLine.callToAction'), + ] + : language.$('artTagGalleryPage.infoLine', { + coverArts: language.countArtworks(data.numArtworks, { + unit: true, + }), + }))), relations.ancestorLinks && html.tag('p', {class: 'quick-info'}, diff --git a/src/static/site4.css b/src/static/site4.css index 4a7bd0c8..8fb7176a 100644 --- a/src/static/site4.css +++ b/src/static/site4.css @@ -642,6 +642,7 @@ html[data-url-key="localized.home"] #content h1 { text-align: center; padding-left: 12%; padding-right: 12%; + line-height: 1.25em; } ul.quick-info { diff --git a/src/strings-default.json b/src/strings-default.json index f12fbad2..a955eef2 100644 --- a/src/strings-default.json +++ b/src/strings-default.json @@ -343,7 +343,9 @@ "artTagInfoPage.descendantTags.item.withGallery": "{TAG} ({GALLERY})", "artTagInfoPage.descendantTags.item.gallery": "Gallery", "artTagGalleryPage.title": "{TAG}", - "artTagGalleryPage.infoLine": "Appears in {COVER_ARTS}.", + "artTagGalleryPage.infoLine": "Featured in {COVER_ARTS}.", + "artTagGalleryPage.infoLine.notFeatured": "This tag hasn't been featured in any artworks yet.", + "artTagGalleryPage.infoLine.callToAction": "Maybe your track will be the first!", "artTagGalleryPage.descendsFrom": "Descends from {TAGS}.", "artTagGalleryPage.desendants": "Direct descendants: {TAGS}.", "artTagSidebar.otherTagsExempt": "(…another {TAGS}…)", -- cgit 1.3.0-6-gf8a5