feat: add description_html to tenant heroConfig and update tests for hero banner rendering

This commit is contained in:
2026-08-03 15:08:13 -03:00
parent ffb586c348
commit cc884e3cc0
2 changed files with 22 additions and 31 deletions

View File

@@ -1,6 +1,8 @@
<div class="hero-banner-container">
<div [class.hero-banner-container]="heroConfig">
<div
class="hero-banner position-relative rounded"
[class.hero-banner]="heroConfig"
[class.position-relative]="heroConfig"
[class.rounded]="heroConfig"
[ngStyle]="{
'background-image': heroConfig?.background_image_id
? 'url(' + heroConfig.background_image_id + ')'
@@ -33,7 +35,10 @@
}
@if (eventConfig) {
<div class="event-card-container position-absolute w-100 d-flex justify-content-center">
<div
class="event-card-container w-100 d-flex justify-content-center"
[class.position-absolute]="heroConfig"
>
<div class="event-card bg-white shadow rounded p-3 p-md-4 text-center">
@if (eventConfig.title) {
<h3 class="event-title text-primary fw-bold mb-3">{{ eventConfig.title }}</h3>