From 46b05e67249adb3ee66b32036aa39c785485d2ca Mon Sep 17 00:00:00 2001 From: Yisroel Baum Date: Sat, 16 May 2026 21:58:33 +0300 Subject: [PATCH] add testimonials carousel --- frontend/rabbi_gerzi/src/views/HomePage.vue | 162 ++++++++++++++++++++ 1 file changed, 162 insertions(+) diff --git a/frontend/rabbi_gerzi/src/views/HomePage.vue b/frontend/rabbi_gerzi/src/views/HomePage.vue index 7e0848d..a39481b 100644 --- a/frontend/rabbi_gerzi/src/views/HomePage.vue +++ b/frontend/rabbi_gerzi/src/views/HomePage.vue @@ -1,4 +1,5 @@ @@ -444,6 +521,91 @@ const coreTeachings = [ transform: translateY(-1px); } +.testimonials { + background: var(--color-cream); + padding: 5rem 2rem; +} + +.testimonials__inner { + max-width: 960px; + margin: 0 auto; + text-align: center; +} + +.testimonials__heading { + font-family: var(--font-serif); + font-weight: 400; + font-size: clamp(1.5rem, 2.4vw, 2rem); + color: var(--color-slate); + margin: 0 0 2.5rem 0; +} + +.testimonials__stage { + position: relative; + min-height: 220px; +} + +.testimonials__card { + background: var(--color-white); + border-radius: 14px; + padding: 2rem; + text-align: left; + max-width: 480px; + margin: 0 auto; + opacity: 0; + visibility: hidden; + position: absolute; + inset: 0; + transition: opacity 0.3s ease; +} + +.testimonials__card--active { + opacity: 1; + visibility: visible; +} + +.testimonials__name { + font-family: var(--font-serif); + font-weight: 500; + font-size: 1.15rem; + margin: 0 0 1rem 0; + color: var(--color-text); +} + +.testimonials__quote { + font-family: var(--font-serif); + font-style: italic; + font-size: 1rem; + line-height: 1.6; + color: var(--color-text-muted); + margin: 0; +} + +.testimonials__controls { + display: flex; + justify-content: center; + gap: 0.75rem; + margin-top: 2rem; +} + +.testimonials__arrow { + width: 2.5rem; + height: 2.5rem; + border-radius: 50%; + background: var(--color-text); + color: var(--color-white); + border: none; + font-size: 1.25rem; + line-height: 1; + display: inline-flex; + align-items: center; + justify-content: center; +} + +.testimonials__arrow:hover { + background: var(--color-slate); +} + @media (max-width: 768px) { .site-header { padding: 0.75rem 1rem;