From b3d7cc2cdf4a166f01411fa4d23bef1e15ecfed6 Mon Sep 17 00:00:00 2001 From: gabrieluizramos Date: Fri, 29 Mar 2024 19:54:52 -0300 Subject: [PATCH] adiciona contagem de shows --- src/index.pug | 14 ++++++++++++-- src/style.css | 4 ++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/index.pug b/src/index.pug index de79aa3..297387e 100644 --- a/src/index.pug +++ b/src/index.pug @@ -74,8 +74,15 @@ html(lang="pt-BR") const rest = values.filter(c => !c.highlighted); const currentHighlights = values.filter(c => c.highlighted); let highlights = concerts.highlights ? [...concerts.highlights, ...currentHighlights] : currentHighlights; - - return { ...concerts, [name]: rest, highlights} + let count = concerts.count || 0; + count += currentHighlights.length + rest.length + + return { + ...concerts, + [name]: rest, + highlights, + count, + } }, {}) h4.subtitle.subdivision span Destaques ⭐️ @@ -87,6 +94,9 @@ html(lang="pt-BR") +archive(concerts.archived) + .count + p.text.count Já são !{concerts.count} eventos cobertos e seguimos contando + hr div.section.ebook .wrapper diff --git a/src/style.css b/src/style.css index a87063b..d17a05b 100644 --- a/src/style.css +++ b/src/style.css @@ -78,6 +78,10 @@ .text { line-height: 1.7; } +.count { + font-size: var(--font-size-smaller); + margin-top: var(--spacing-double); +} .text:not(:last-child), .section .title { margin-bottom: var(--spacing-default);