diff --git a/src/lib/components/sections/Testimonials.svelte b/src/lib/components/sections/Testimonials.svelte index cf5cb806..3357c536 100644 --- a/src/lib/components/sections/Testimonials.svelte +++ b/src/lib/components/sections/Testimonials.svelte @@ -1,4 +1,5 @@ - - + + + + + {#each testimonials as testimonial, index} + {#if index === currentSlide} + + + {testimonial.text} + + {#if testimonial.image} + + + + {:else} + + + {testimonial.author[0]} + + + {/if} + + {testimonial.author} + {testimonial.role} {testimonial.company} + + + + + {/if} + {/each} + + + + + + + + + + + + + + + + + + {#each testimonials as _, index} + goToSlide(index)} + aria-label="Go to slide {index + 1}" + > + {/each} + + + + + {#each testimonials as testimonial} - - {testimonial.text} + + {testimonial.text} {#if testimonial.image}
{testimonial.text}