Skip to content

Commit 4ea2653

Browse files
authored
Merge pull request #1876 from garima-agarwall/fix/careers-uiux-improvement
fix: improve careers page UI/UX - button states, focus rings, accessi…
2 parents fdea286 + dd0b34e commit 4ea2653

2 files changed

Lines changed: 33 additions & 40 deletions

File tree

src/pages/careers/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* Testimonial blockquote reset */
2+
.testimonial-carousel blockquote {
3+
border-left: none !important;
4+
padding-left: 0 !important;
5+
}

src/pages/careers/index.tsx

Lines changed: 28 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { motion } from "framer-motion";
55
import Link from "@docusaurus/Link";
66
// removed useColorMode import to avoid provider + SSR issues
77
import ExecutionEnvironment from "@docusaurus/ExecutionEnvironment";
8+
import "./index.css";
89
import {
910
Home,
1011
CircleDollarSign,
@@ -276,14 +277,16 @@ function CareersContent() {
276277
>
277278
<Link
278279
to="#openings"
279-
className="group flex items-center justify-center gap-2 transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-blue-50"
280+
className="group flex items-center justify-center gap-2 transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-600 cursor-pointer careers-btn-primary"
281+
style={{ color: "#2563eb", textDecoration: "none" }}
280282
>
281283
View Open Positions
282284
<ArrowRight className="h-5 w-5 transition-transform duration-300 group-hover:translate-x-1" />
283285
</Link>
284286
<Link
285287
to="#culture"
286-
className="group flex items-center justify-center gap-2 transform rounded-lg bg-transparent border-2 border-white px-8 py-4 font-semibold text-white shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-white/10"
288+
className="group flex items-center justify-center gap-2 transform rounded-lg bg-transparent border-2 border-white px-8 py-4 font-semibold text-white shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-600 cursor-pointer careers-btn-outline"
289+
style={{ color: "#ffffff", textDecoration: "none" }}
287290
>
288291
Learn About Our Culture
289292
</Link>
@@ -427,7 +430,7 @@ function CareersContent() {
427430
}}
428431
variants={fadeIn}
429432
>
430-
<div className={`mb-6 flex h-16 w-16 items-center justify-center rounded-2xl transition-transform duration-500 group-hover:scale-110 group-hover:rotate-6 ${isDark ? 'bg-gray-800' : 'bg-blue-50'}`}>
433+
<div className={`mb-6 flex h-16 w-16 items-center justify-center rounded-2xl transition-all duration-500 group-hover:scale-110 group-hover:rotate-6 group-hover:shadow-md ${isDark ? 'bg-gray-700' : 'bg-blue-50'}`}>
431434
{perk.icon}
432435
</div>
433436
<h3
@@ -546,7 +549,7 @@ function CareersContent() {
546549
<div className="md:ml-6">
547550
<Link
548551
to="/contact-us"
549-
className="inline-flex items-center gap-2 transform rounded-lg bg-blue-600 px-6 py-3 font-semibold shadow-md transition-all duration-300 hover:-translate-y-1 hover:shadow-lg active:scale-95 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
552+
className="inline-flex items-center gap-2 transform rounded-lg bg-blue-600 px-6 py-3 font-semibold shadow-md transition-all duration-300 hover:-translate-y-1 hover:shadow-lg active:scale-95 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 cursor-pointer whitespace-nowrap careers-btn-apply"
550553
style={{
551554
color: "#ffffff",
552555
textDecoration: "none",
@@ -619,7 +622,8 @@ function CareersContent() {
619622

620623
{mounted ? (
621624
<motion.div
622-
className="testimonial-carousel testimonial-carousel--light rounded-xl p-8 shadow-lg"
625+
className="testimonial-carousel rounded-xl p-8 shadow-lg"
626+
style={{ backgroundColor: isDark ? "#1e293b" : "#ffffff" }}
623627
variants={fadeIn}
624628
>
625629
<div className="testimonial-content relative z-10 text-center">
@@ -630,23 +634,13 @@ function CareersContent() {
630634
<blockquote className="mb-6 text-lg italic md:text-xl">
631635
"{testimonials[activeTestimonial].content}"
632636
</blockquote>
633-
<div
634-
className="testimonial-author relative z-10"
635-
style={{
636-
backgroundColor: "rgba(255, 255, 255, 0.98)",
637-
borderColor: "rgba(15, 23, 42, 0.08)",
638-
}}
639-
>
640-
<h4
641-
className="testimonial-author-name text-xl font-bold leading-tight"
642-
style={{ color: "#111827" }}
643-
>
637+
<div className="mt-4 text-center">
638+
<h4 className="text-xl font-bold leading-tight"
639+
style={{ color: isDark ? "#f1f5f9" : "#111827" }}>
644640
{testimonials[activeTestimonial].name}
645641
</h4>
646-
<p
647-
className="testimonial-author-role"
648-
style={{ color: "#334155" }}
649-
>
642+
<p className="text-sm mt-1"
643+
style={{ color: isDark ? "#94a3b8" : "#334155" }}>
650644
{testimonials[activeTestimonial].role}
651645
</p>
652646
</div>
@@ -655,7 +649,8 @@ function CareersContent() {
655649
{testimonials.map((_, index) => (
656650
<button
657651
key={index}
658-
className={`h-3 w-3 rounded-full transition-all duration-300 ${index === activeTestimonial
652+
aria-label={`Go to testimonial ${index + 1}`}
653+
className={`h-3 w-3 rounded-full transition-all duration-300 cursor-pointer ${index === activeTestimonial
659654
? "scale-110 bg-blue-600"
660655
: isDark
661656
? "bg-gray-600 hover:bg-gray-500"
@@ -668,7 +663,7 @@ function CareersContent() {
668663
</div>
669664
</motion.div>
670665
) : (
671-
<div className="testimonial-carousel testimonial-carousel--light rounded-xl p-8 shadow-lg">
666+
<div className="testimonial-carousel rounded-xl p-8 shadow-lg" style={{ backgroundColor: "#ffffff" }}>
672667
<div className="testimonial-content relative z-10 text-center">
673668
<TestimonialAvatar
674669
avatar={testimonials[activeTestimonial].avatar}
@@ -677,23 +672,13 @@ function CareersContent() {
677672
<blockquote className="mb-6 text-lg italic md:text-xl">
678673
"{testimonials[activeTestimonial].content}"
679674
</blockquote>
680-
<div
681-
className="testimonial-author relative z-10"
682-
style={{
683-
backgroundColor: "rgba(255, 255, 255, 0.98)",
684-
borderColor: "rgba(15, 23, 42, 0.08)",
685-
}}
686-
>
687-
<h4
688-
className="testimonial-author-name text-xl font-bold leading-tight"
689-
style={{ color: "#111827" }}
690-
>
675+
<div className="mt-4 text-center">
676+
<h4 className="text-xl font-bold leading-tight"
677+
style={{ color: isDark ? "#f1f5f9" : "#111827" }}>
691678
{testimonials[activeTestimonial].name}
692679
</h4>
693-
<p
694-
className="testimonial-author-role"
695-
style={{ color: "#334155" }}
696-
>
680+
<p className="text-sm mt-1"
681+
style={{ color: isDark ? "#94a3b8" : "#334155" }}>
697682
{testimonials[activeTestimonial].role}
698683
</p>
699684
</div>
@@ -702,7 +687,8 @@ function CareersContent() {
702687
{testimonials.map((_, index) => (
703688
<button
704689
key={index}
705-
className={`h-3 w-3 rounded-full transition-all duration-300 ${index === activeTestimonial
690+
aria-label={`Go to testimonial ${index + 1}`}
691+
className={`h-3 w-3 rounded-full transition-all duration-300 cursor-pointer ${index === activeTestimonial
706692
? "scale-110 bg-blue-600"
707693
: isDark
708694
? "bg-gray-600 hover:bg-gray-500"
@@ -743,14 +729,16 @@ function CareersContent() {
743729
>
744730
<Link
745731
to="/contact-us"
746-
className="group flex items-center justify-center gap-2 transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-blue-50"
732+
className="group flex items-center justify-center gap-2 transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-blue-50 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-600 cursor-pointer careers-btn-primary"
733+
style={{ color: "#2563eb", textDecoration: "none" }}
747734
>
748735
Get In Touch
749736
<ArrowRight className="h-5 w-5 transition-transform duration-300 group-hover:translate-x-1" />
750737
</Link>
751738
<Link
752739
to="/community"
753-
className="group flex items-center justify-center gap-2 transform rounded-lg bg-transparent border-2 border-white px-8 py-4 font-semibold text-white shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-white/10"
740+
className="group flex items-center justify-center gap-2 transform rounded-lg bg-transparent border-2 border-white px-8 py-4 font-semibold text-white shadow-lg transition-all duration-300 hover:-translate-y-1 hover:shadow-xl active:scale-95 hover:bg-white/10 focus:outline-none focus:ring-2 focus:ring-white focus:ring-offset-2 focus:ring-offset-blue-600 cursor-pointer careers-btn-outline"
741+
style={{ color: "#ffffff", textDecoration: "none" }}
754742
>
755743
Join Our Community
756744
</Link>

0 commit comments

Comments
 (0)