From 8f658a0d693a8de475a4116e77d1976b647e5e6e Mon Sep 17 00:00:00 2001 From: Jayam Srivastava Date: Sat, 23 May 2026 19:46:30 +0530 Subject: [PATCH] Fixed dark mode readability issue --- .../testimonials/TestimonialCard.tsx | 22 +- .../testimonials/TestimonialCarousel.tsx | 7 +- src/css/custom.css | 80 ++++++- src/pages/careers/index.tsx | 223 +++++++++++------- 4 files changed, 241 insertions(+), 91 deletions(-) diff --git a/src/components/testimonials/TestimonialCard.tsx b/src/components/testimonials/TestimonialCard.tsx index fea7aeca..730e6fdc 100644 --- a/src/components/testimonials/TestimonialCard.tsx +++ b/src/components/testimonials/TestimonialCard.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useEffect, useState } from "react"; import { motion } from "framer-motion"; import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar"; import { useSafeColorMode } from "../../utils/useSafeColorMode"; @@ -54,9 +54,12 @@ const TestimonialCard: React.FC = ({ }; }; + const [mounted, setMounted] = useState(false); + useEffect(() => setMounted(true), []); + return ( = ({
-

+

{name}

{username !== "AryanGupta" && username !== "DonaldAnyamba" && ( -

+

{username === "VivienChen" ? "Founder @ Toastie (BC Y24)" : username === "DanielHan" ? "Founder @ Unsloth AI (YC W24, BC Y24)" : "AI Engineer @ Relevance AI"}

)} -
+
{date}
diff --git a/src/components/testimonials/TestimonialCarousel.tsx b/src/components/testimonials/TestimonialCarousel.tsx index 2b23f7fb..d11b46ca 100644 --- a/src/components/testimonials/TestimonialCarousel.tsx +++ b/src/components/testimonials/TestimonialCarousel.tsx @@ -72,6 +72,9 @@ export function TestimonialCarousel() { const [current, setCurrent] = useState(0); const [count, setCount] = useState(0); const { colorMode } = useSafeColorMode(); + const [mounted, setMounted] = useState(false); + + useEffect(() => setMounted(true), []); useEffect(() => { if (!api) { @@ -106,7 +109,7 @@ export function TestimonialCarousel() {
diff --git a/src/css/custom.css b/src/css/custom.css index cf38fd64..994d6b93 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -5,6 +5,82 @@ color: inherit; } +/* Careers testimonials */ +.testimonials-section .testimonial-carousel { + background: #ffffff; + border: 1px solid rgba(15, 23, 42, 0.06); + color: #111827; +} + +/* Ensure testimonial cards are visible by default (override animation initial states) */ +.testimonials-section .testimonial-carousel { + opacity: 1 !important; + transform: none !important; +} + +.testimonials-section .testimonial-carousel--light { + background: #ffffff; + border: 1px solid rgba(15, 23, 42, 0.06); + box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); +} + +.testimonials-section .testimonial-content { + color: #0f172a; +} + +.testimonials-section .testimonial-content blockquote { + color: #0f172a; +} + +.testimonials-section .testimonial-author { + display: inline-flex; + flex-direction: column; + align-items: center; + gap: 0.25rem; + padding: 0.85rem 1.1rem; + border-radius: 1rem; + background: rgba(255, 255, 255, 0.98); + border: 1px solid rgba(15, 23, 42, 0.08); + box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16); + opacity: 1; + mix-blend-mode: normal; + isolation: isolate; +} + +/* Strong override to ensure author text is always visible */ +.testimonials-section .testimonial-author { + background: rgba(255, 255, 255, 0.98) !important; + border: 1px solid rgba(15, 23, 42, 0.08) !important; + box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16) !important; + opacity: 1 !important; + mix-blend-mode: normal !important; +} + +.testimonials-section .testimonial-author-name, +.testimonials-section .testimonial-author-role { + color: #111827 !important; + -webkit-text-fill-color: #111827 !important; + opacity: 1 !important; + mix-blend-mode: normal !important; + text-shadow: none !important; +} + +.testimonials-section .testimonial-author-name { + color: #111827; + -webkit-text-fill-color: #111827; + text-shadow: none; + opacity: 1; + mix-blend-mode: normal; + font-weight: 900; +} + +.testimonials-section .testimonial-author-role { + color: #334155; + -webkit-text-fill-color: #334155; + opacity: 1; + mix-blend-mode: normal; +} + /* You can override the default Infima variables here. */ @import "tailwindcss"; @@ -2099,7 +2175,7 @@ html[data-theme="dark"] { } /* TOC inner wrapper — sticky */ -.blog-wrapper .col.col--2 > div { +.blog-wrapper .col.col--2>div { position: sticky !important; top: calc(var(--ifm-navbar-height, 60px) + 1rem) !important; max-height: calc(100vh - var(--ifm-navbar-height, 60px) - 2rem) !important; @@ -2232,7 +2308,7 @@ html[data-theme="dark"] .blog-post-page .markdown { border-left: none !important; } - .blog-wrapper .col.col--2 > div { + .blog-wrapper .col.col--2>div { position: static !important; max-height: none !important; overflow-y: visible !important; diff --git a/src/pages/careers/index.tsx b/src/pages/careers/index.tsx index 0c2e0298..aee69158 100644 --- a/src/pages/careers/index.tsx +++ b/src/pages/careers/index.tsx @@ -110,7 +110,6 @@ const perks = [ "Clear career progression paths with mentorship and leadership opportunities.", }, ]; - const cultureValues = [ { title: "Innovation First", @@ -216,9 +215,8 @@ function CareersContent() {
{/* Hero Section */}
{job.department} {job.location} {job.type} @@ -550,80 +545,144 @@ function CareersContent() { variants={staggerContainer} >
- -

- What Our Team Says -

-

- Hear from our team members about their experience at recode - hive. -

-
- - -
-
- -
-
+

+ What Our Team Says +

+

+ Hear from our team members about their experience at recode + hive. +

+ + ) : ( +
+

+ What Our Team Says +

+

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

-
-

+

+ )} + + {mounted ? ( + +
+
+ +
+
+ "{testimonials[activeTestimonial].content}" +
+
- {testimonials[activeTestimonial].name} - -

+ {testimonials[activeTestimonial].name} + +

+ {testimonials[activeTestimonial].role} +

+
+ +
+ {testimonials.map((_, index) => ( +
+
+
+ ) : ( +
+
+
+ +
+
+ "{testimonials[activeTestimonial].content}" +
+
- {testimonials[activeTestimonial].role} -

-
-
+

+ {testimonials[activeTestimonial].name} +

+

+ {testimonials[activeTestimonial].role} +

+
-
- {testimonials.map((_, index) => ( -
+
- + )}