« get me outta code hell

content: generateArtTagGalleryPage: stub message for yet unfeatured - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-10-06 01:30:09 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-10-06 01:30:09 -0300
commit3d7d9944fd74e21db64b6d3e39375c27094b5e46 (patch)
treecc2d7d48025beb59f84c48741cbbc745ef236713 /src
parente327490387c97c79fd63abc88cfee115679499ac (diff)
content: generateArtTagGalleryPage: stub message for yet unfeatured
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateArtTagGalleryPage.js16
-rw-r--r--src/static/site4.css1
-rw-r--r--src/strings-default.json4
3 files changed, 15 insertions, 6 deletions
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}…)",