`;
}
/**
* Render the tagline section
*/
private renderTagline() {
if (this.hasSlotContent('tagline')) {
return html``;
}
// Only render default tagline if we have content
if (!this.taglineHeading && !this.taglineDescription) {
return nothing;
}
return html`
${this.taglineHeading}
${this.taglineDescription}
`;
}
/**
* Render the graphics list section
*/
private renderGraphics() {
if (this.hasSlotContent('graphics')) {
return html``;
}
// Only render default graphics if we have items
if (!this.graphics?.length) {
return nothing;
}
// Group graphics into rows of 2
const rows: GraphicItem[][] = [];
for (let i = 0; i < this.graphics.length; i += 2) {
rows.push(this.graphics.slice(i, i + 2));
}
return html`
${rows.map(
(row) => html`
${row.map(
(item) => html`
${item.imageSrc
? html``
: nothing}
${item.heading}
${item.description}
`
)}
`
)}
`;
}
/**
* Render the CTA section
*/
private renderCta() {
if (this.hasSlotContent('cta')) {
return html``;
}
// Only render default CTA if we have content
if (!this.ctaHeading && !this.ctaDescription) {
return nothing;
}
return html`