To make it simpler, i will just skip the javascript part and the others that doesnt matter for the example, since the problem is on loading the html properly ( background image ).
Whats happening is, my carousel is setting the first slide background image properly, but all the other ones not, and i have no idea why. Some help would be much appreciated
All the images are on the same file, one below each other, so the problem isnt the path for them. Also, all other bindings inside my map is working for all slides inside my carousel properly.
I will put only 2 items inside my "slides" variable to make the example simpler.
---
import StandardButton from "./small-components/StandardButton.astro"
let slides = [
{
bgImage: '/images/team-1.webp',
h1: 'Venda seus serviços <span class="text-primary-color">online</span>',
paragrafo: 'Ao se tornar <span class="underline underline-offset-2 decoration-primary-color decoration-[3px] font-bold">parceiro</span> do nexo, você ganha um sistema completo para a gestão do seu escritório',
labelBtn: 'VENHA PARA O DIGITAL'
},
{
bgImage: '/images/team-2.webp',
h1: '<span class="text-primary-color">Monetize</span> com seu próprio software',
paragrafo: 'Ao se tornar <span class="underline underline-offset-2 decoration-primary-color decoration-[3px] font-bold">parceiro</span> do nexo, você ganha um sistema completo para a gestão do seu escritório',
labelBtn: 'VENHA PARA O DIGITAL'
},
]
---