From b8804b1588e2829a48e212f77722a8dc344246ba Mon Sep 17 00:00:00 2001 From: MichalC <103170279+wSBMichalee@users.noreply.github.com> Date: Wed, 2 Sep 2026 23:54:07 +0200 Subject: [PATCH] feat: redesign Testimonials and FinalCTA, unify WhatsApp CTA styling across homepage --- src/blocks/FinalCTA/Component.tsx | 6 +---- src/blocks/Hero/Component.tsx | 2 +- src/blocks/Testimonials/Component.tsx | 33 +++++---------------------- 3 files changed, 8 insertions(+), 33 deletions(-) diff --git a/src/blocks/FinalCTA/Component.tsx b/src/blocks/FinalCTA/Component.tsx index cb4540b..3e60fab 100644 --- a/src/blocks/FinalCTA/Component.tsx +++ b/src/blocks/FinalCTA/Component.tsx @@ -10,11 +10,7 @@ export const FinalCTABlock: React.FC = ({ eyebrow, title, subtitle, butto
- {eyebrow && ( -
- // {eyebrow} -
- )} + {/* Removed eyebrow */}

{title} diff --git a/src/blocks/Hero/Component.tsx b/src/blocks/Hero/Component.tsx index 5c3dad7..c41f648 100644 --- a/src/blocks/Hero/Component.tsx +++ b/src/blocks/Hero/Component.tsx @@ -32,7 +32,7 @@ export const HeroBlock: React.FC = ({ title, subtitle, primaryCta, second href={process.env.NEXT_PUBLIC_WHATSAPP_LINK || '#'} target="_blank" rel="noopener noreferrer" - className="btn-primary" + className="px-8 py-4 bg-green-500 hover:bg-green-600 text-white font-bold text-base sm:text-lg transition-colors flex items-center justify-center rounded-[var(--radius-button)] shadow-sm" > {primaryCta} diff --git a/src/blocks/Testimonials/Component.tsx b/src/blocks/Testimonials/Component.tsx index 3c58bb8..ce051fe 100644 --- a/src/blocks/Testimonials/Component.tsx +++ b/src/blocks/Testimonials/Component.tsx @@ -1,5 +1,5 @@ 'use client' -import React, { useState, useEffect } from 'react' +import React, { useState } from 'react' import type { Page } from '../../payload-types' type Props = Extract[0], { blockType: 'testimonials' }> @@ -7,35 +7,17 @@ type Props = Extract[0], { blockType: 'testimonials' export const TestimonialsBlock: React.FC = ({ title, testimonials }) => { const [currentIndex, setCurrentIndex] = useState(0) - useEffect(() => { - if (!testimonials || testimonials.length <= 1) return - - const timer = setInterval(() => { - setCurrentIndex((prev) => (prev + 1) % testimonials.length) - }, 7000) - - return () => clearInterval(timer) - }, [testimonials]) - if (!testimonials || testimonials.length === 0) return null return (
- {/* Background Image */} -
- Biuro, abstrakcyjne tło -
-
-
-
- // {title} -
+ {title && ( +

+ {title} +

+ )}
@@ -46,9 +28,6 @@ export const TestimonialsBlock: React.FC = ({ title, testimonials }) => { index === currentIndex ? 'opacity-100 z-10' : 'opacity-0 z-0 pointer-events-none' }`} > -
- " -

{t.quote}