Skip to content

Commit 964f9d7

Browse files
committed
feat(careers): enhance UI/UX with lucide icons and micro-animations
1 parent f54b70a commit 964f9d7

1 file changed

Lines changed: 52 additions & 23 deletions

File tree

src/pages/careers/index.tsx

Lines changed: 52 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ 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 {
9+
Home,
10+
CircleDollarSign,
11+
GraduationCap,
12+
HeartPulse,
13+
Palmtree,
14+
Rocket,
15+
User,
16+
Zap,
17+
Users,
18+
BrainCircuit,
19+
ArrowRight
20+
} from "lucide-react";
821

922
// Safe hook for color mode that handles SSR
1023
function useSafeColorMode() {
@@ -61,37 +74,37 @@ const staggerContainer = {
6174
// Sample data for the careers page
6275
const perks = [
6376
{
64-
icon: "🏠",
77+
icon: <Home className="w-8 h-8 text-blue-500" />,
6578
title: "Remote First",
6679
description:
6780
"Work from anywhere in the world with flexible hours that suit your lifestyle.",
6881
},
6982
{
70-
icon: "💰",
83+
icon: <CircleDollarSign className="w-8 h-8 text-green-500" />,
7184
title: "Competitive Salary",
7285
description:
7386
"We offer competitive compensation packages with equity options.",
7487
},
7588
{
76-
icon: "🎓",
89+
icon: <GraduationCap className="w-8 h-8 text-purple-500" />,
7790
title: "Learning & Development",
7891
description:
7992
"Annual learning budget and conference allowances to grow your skills.",
8093
},
8194
{
82-
icon: "🏥",
95+
icon: <HeartPulse className="w-8 h-8 text-red-500" />,
8396
title: "Health & Wellness",
8497
description:
8598
"Comprehensive health insurance and wellness programs for you and your family.",
8699
},
87100
{
88-
icon: "🌴",
101+
icon: <Palmtree className="w-8 h-8 text-teal-500" />,
89102
title: "Unlimited PTO",
90103
description:
91104
"Take the time you need to recharge and maintain work-life balance.",
92105
},
93106
{
94-
icon: "🚀",
107+
icon: <Rocket className="w-8 h-8 text-indigo-500" />,
95108
title: "Career Growth",
96109
description:
97110
"Clear career progression paths with mentorship and leadership opportunities.",
@@ -103,19 +116,19 @@ const cultureValues = [
103116
title: "Innovation First",
104117
description:
105118
"We embrace new technologies and creative solutions to solve complex problems.",
106-
image: "/img/culture-innovation.jpg",
119+
icon: <Zap className="w-16 h-16 text-white" />,
107120
},
108121
{
109122
title: "Collaboration",
110123
description:
111124
"We believe in the power of teamwork and diverse perspectives.",
112-
image: "/img/culture-collaboration.jpg",
125+
icon: <Users className="w-16 h-16 text-white" />,
113126
},
114127
{
115128
title: "Growth Mindset",
116129
description:
117130
"We're committed to continuous learning and personal development.",
118-
image: "/img/culture-growth.jpg",
131+
icon: <BrainCircuit className="w-16 h-16 text-white" />,
119132
},
120133
];
121134

@@ -233,10 +246,17 @@ function CareersContent() {
233246
className="flex flex-col justify-center gap-4 sm:flex-row"
234247
variants={fadeIn}
235248
>
236-
<Link className="transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:scale-105 hover:bg-blue-50">
249+
<Link
250+
to="#openings"
251+
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"
252+
>
237253
View Open Positions
254+
<ArrowRight className="h-5 w-5 transition-transform duration-300 group-hover:translate-x-1" />
238255
</Link>
239-
<Link className="transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:scale-105 hover:bg-blue-50">
256+
<Link
257+
to="#culture"
258+
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"
259+
>
240260
Learn About Our Culture
241261
</Link>
242262
</motion.div>
@@ -292,14 +312,18 @@ function CareersContent() {
292312
{cultureValues.map((value, index) => (
293313
<motion.div
294314
key={index}
295-
className="culture-card transform rounded-xl p-8 shadow-lg transition-all duration-300 hover:scale-105 hover:shadow-xl"
315+
className="culture-card group transform rounded-xl p-8 shadow-lg transition-all duration-300 hover:-translate-y-2 hover:shadow-xl border border-transparent"
296316
style={{
297317
backgroundColor: isDark ? "#0f172a" : "#ffffff",
318+
borderColor: isDark ? "rgba(59, 130, 246, 0.1)" : "rgba(59, 130, 246, 0.05)",
298319
}}
299320
variants={fadeIn}
300321
>
301-
<div className="mb-6 flex h-48 items-center justify-center rounded-lg bg-gradient-to-br from-blue-400 to-purple-500">
302-
<span className="text-6xl">🚀</span>
322+
<div className="mb-6 flex h-48 items-center justify-center rounded-xl bg-gradient-to-br from-blue-400 to-purple-500 overflow-hidden relative">
323+
<div className="absolute inset-0 bg-black/10 opacity-0 transition-opacity duration-300 group-hover:opacity-100" />
324+
<div className="transform transition-transform duration-500 group-hover:scale-110 group-hover:rotate-3">
325+
{value.icon}
326+
</div>
303327
</div>
304328
<h3
305329
className="mb-4 text-2xl font-bold"
@@ -369,13 +393,15 @@ function CareersContent() {
369393
{perks.map((perk, index) => (
370394
<motion.div
371395
key={index}
372-
className="perk-card transform rounded-xl p-6 shadow-lg transition-all duration-300 hover:scale-105 hover:shadow-xl"
396+
className="perk-card group transform rounded-xl p-6 shadow-lg transition-all duration-300 hover:-translate-y-2 hover:shadow-xl border border-transparent hover:border-blue-500/30"
373397
style={{
374398
backgroundColor: isDark ? "#1f2937" : "#ffffff",
375399
}}
376400
variants={fadeIn}
377401
>
378-
<div className="mb-4 text-4xl">{perk.icon}</div>
402+
<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'}`}>
403+
{perk.icon}
404+
</div>
379405
<h3
380406
className="mb-3 text-xl font-bold"
381407
style={{
@@ -435,13 +461,14 @@ function CareersContent() {
435461
{jobOpenings.map((job, index) => (
436462
<motion.div
437463
key={index}
438-
className="job-card rounded-xl p-6 shadow-lg transition-all duration-300 hover:shadow-xl"
464+
className="job-card group rounded-xl p-6 shadow-md transition-all duration-300 hover:-translate-y-1 hover:shadow-xl border border-transparent hover:border-blue-500/30 relative overflow-hidden"
439465
style={{
440466
backgroundColor: isDark ? "#1f2937" : "#ffffff",
441467
}}
442468
variants={fadeIn}
443469
>
444-
<div className="flex flex-col md:flex-row md:items-center md:justify-between">
470+
<div className={`absolute left-0 top-0 h-full w-1 transform transition-all duration-300 group-hover:scale-y-100 scale-y-0 ${isDark ? 'bg-blue-500' : 'bg-blue-600'}`}></div>
471+
<div className="flex flex-col md:flex-row md:items-center md:justify-between pl-2">
445472
<div className="flex-1">
446473
<div className="mb-4 flex flex-col gap-4 md:flex-row md:items-center">
447474
<h3
@@ -494,13 +521,14 @@ function CareersContent() {
494521
<div className="md:ml-6">
495522
<Link
496523
to="/contact-us"
497-
className="inline-block transform rounded-lg bg-blue-600 px-6 py-3 font-semibold shadow-lg transition-all duration-300 hover:scale-105 hover:bg-blue-700"
524+
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"
498525
style={{
499526
color: "#ffffff",
500527
textDecoration: "none",
501528
}}
502529
>
503530
Apply Now
531+
<ArrowRight className="h-4 w-4 transition-transform duration-300 group-hover:translate-x-1" />
504532
</Link>
505533
</div>
506534
</div>
@@ -550,8 +578,8 @@ function CareersContent() {
550578
variants={fadeIn}
551579
>
552580
<div className="testimonial-content text-center">
553-
<div className="mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-br from-blue-400 to-purple-500">
554-
<span className="text-2xl">👤</span>
581+
<div className="mx-auto mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-gradient-to-br from-blue-400 to-purple-500 shadow-inner">
582+
<User className="h-10 w-10 text-white" />
555583
</div>
556584
<blockquote
557585
className="mb-6 text-lg italic md:text-xl"
@@ -624,13 +652,14 @@ function CareersContent() {
624652
>
625653
<Link
626654
to="/contact-us"
627-
className="transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:scale-105 hover:bg-blue-50"
655+
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"
628656
>
629657
Get In Touch
658+
<ArrowRight className="h-5 w-5 transition-transform duration-300 group-hover:translate-x-1" />
630659
</Link>
631660
<Link
632661
to="/community"
633-
className="transform rounded-lg bg-white px-8 py-4 font-semibold text-blue-600 shadow-lg transition-all duration-300 hover:scale-105 hover:bg-blue-50"
662+
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"
634663
>
635664
Join Our Community
636665
</Link>

0 commit comments

Comments
 (0)