From 3d1f64d8e528ab297cf7306e2112740f0cf0eb37 Mon Sep 17 00:00:00 2001 From: becarta Date: Fri, 16 May 2025 01:12:01 +0200 Subject: [PATCH] Refactor testimonial navigation handlers and improve timer management in Testimonials component --- src/components/Testimonials.svelte | 44 ++++++++++++++++++------------ 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/src/components/Testimonials.svelte b/src/components/Testimonials.svelte index 3e5e2a76..437bdd4a 100644 --- a/src/components/Testimonials.svelte +++ b/src/components/Testimonials.svelte @@ -1,5 +1,6 @@ @@ -56,29 +64,31 @@
-
-
{testimonials[currentIndex].avatar}
-

- "{testimonials[currentIndex].content}" -

-
-

- {testimonials[currentIndex].name} -

-

- {testimonials[currentIndex].role} + {#if testimonials[currentIndex]} +

+
{testimonials[currentIndex].avatar}
+

+ "{testimonials[currentIndex].content}"

+
+

+ {testimonials[currentIndex].name} +

+

+ {testimonials[currentIndex].role} +

+
-
+ {/if}