Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

Answer Codacy on the catalog and the moving colours

- The keyframes of the moving accents have an empty line before each
  rule, as the rest of the style sheet does.
- The latest releases read a product's accent through productFacts(),
  as the rest of the site does, not by indexing the catalog with a slug.
Commit
27b288f47f967f0eb43bea2dea25a144d8bf88d3
Author
Leitwolf11 ·
Parents
5968b8155b8c

Files · Download .tar.gz

Changes

 apps/web/app/globals.css       | 2 ++
 apps/web/app/products/page.tsx | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 91ce6ed..cc7b28b 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -1721,6 +1721,7 @@ textarea {
   from {
     background-position: 0% 40%;
   }
+
   to {
     background-position: 100% 60%;
   }
@@ -1730,6 +1731,7 @@ textarea {
   from {
     background-position: 50% 0%;
   }
+
   to {
     background-position: 50% 100%;
   }
diff --git a/apps/web/app/products/page.tsx b/apps/web/app/products/page.tsx
index 8452170..6b89599 100644
--- a/apps/web/app/products/page.tsx
+++ b/apps/web/app/products/page.tsx
@@ -17,6 +17,7 @@ import {
   getCatalogMessages,
   parseProductFilter,
   productCategories,
+  productFacts,
   productLanguages,
   productSlugs,
   productStatuses,
@@ -150,7 +151,7 @@ export default async function ProductsPage({ searchParams }: CatalogProps) {
                   <li key={`${slug}-${release.version}`}>
                     <span
                       className="pm-release-dot pm-live-accent"
-                      style={accentStyle(products[slug].accent)}
+                      style={accentStyle(productFacts(slug).accent)}
                       aria-hidden="true"
                     />
                     <a href={release.url}>