diff --git a/src/pages/careers/index.tsx b/src/pages/careers/index.tsx index aee69158..0392dac3 100644 --- a/src/pages/careers/index.tsx +++ b/src/pages/careers/index.tsx @@ -172,24 +172,54 @@ const testimonials = [ role: "Senior Frontend Developer", content: "recode hive has given me the opportunity to work on cutting-edge projects while maintaining an amazing work-life balance. The team is incredibly supportive and collaborative.", - avatar: "/img/testimonial-sarah.jpg", + avatar: "/icons/vivien.png", }, { name: "Marcus Johnson", role: "DevOps Engineer", content: "I love the remote-first culture here. The flexibility to work from anywhere has allowed me to travel while building my career. The learning opportunities are endless.", - avatar: "/img/testimonial-marcus.jpg", + avatar: "/icons/daniel.png", }, { name: "Priya Patel", role: "Product Manager", content: "The growth mindset at recode hive is real. I've been able to take on new challenges and expand my skill set with full support from leadership.", - avatar: "/img/testimonial-priya.jpg", + avatar: "/icons/ethan.png", }, ]; +function TestimonialAvatar({ avatar, name }: { avatar?: string; name: string }) { + const [hasError, setHasError] = useState(false); + + useEffect(() => { + setHasError(false); + }, [avatar]); + + const showFallback = !avatar || hasError; + + return ( +
+ {!showFallback ? ( + {name} setHasError(true)} + /> + ) : ( +
+ ); +} + function CareersContent() { const { colorMode, isDark, mounted } = useSafeColorMode(); const [activeTestimonial, setActiveTestimonial] = useState(0); @@ -593,9 +623,10 @@ function CareersContent() { variants={fadeIn} >
-
- -
+
"{testimonials[activeTestimonial].content}"
@@ -639,9 +670,10 @@ function CareersContent() { ) : (
-
- -
+
"{testimonials[activeTestimonial].content}"