diff --git a/template-components/cards/card-news.css b/template-components/cards/card-news.css index 0e14567..325cdb7 100644 --- a/template-components/cards/card-news.css +++ b/template-components/cards/card-news.css @@ -34,6 +34,15 @@ rounded-xl mb-4; } + &__thematique-tag { + @apply bg-secondary-light + text-secondary + w-fit + px-4 py-1 + rounded-xl + mb-4; + } + &__title { @apply text-2xl font-bold mb-4 text-secondary; line-height: 1.1; diff --git a/template-components/cards/card-news.php b/template-components/cards/card-news.php index 342ebfe..7a22ea9 100644 --- a/template-components/cards/card-news.php +++ b/template-components/cards/card-news.php @@ -4,6 +4,8 @@ $card_variant = $args['card_variant']; $post_thumbnail = $args['post_thumbnail']; $post_title = $args['post_title']; $news_type = $args['news_type'] ?? null; +$thematique = $args['thematique'] ?? null; +$mainThematique = getMainThematique($thematique) ?? null; ?> @@ -18,6 +20,10 @@ $news_type = $args['news_type'] ?? null;

name ?>

+ + +

name ?>

+