Skip to content

Commit 6063cd9

Browse files
authored
Merge pull request #904 from Adez017/dahsboard-leaderboard
fix text blur on get started page
2 parents c09a4c2 + a74643e commit 6063cd9

File tree

1 file changed

+19
-25
lines changed

1 file changed

+19
-25
lines changed

src/pages/get-started/index.tsx

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ function StatCard({ value, label, index = 0 }: StatCardProps) {
371371
<motion.div
372372
className={styles.statValue}
373373
aria-label={value}
374-
initial={{ scale: 0.9 }}
374+
initial={{ opacity: 1.9, scale: 0 }}
375375
whileInView={{
376376
scale: 1,
377377
transition: {
@@ -405,7 +405,7 @@ const LearningPath = ({
405405
color = "#3b82f6",
406406
index = 0,
407407
isCompleted = false,
408-
onToggleComplete = () => {},
408+
onToggleComplete = () => { },
409409
}: LearningPathProps) => {
410410
const isEven = index % 2 === 0;
411411
const delay = index * 0.15;
@@ -489,9 +489,8 @@ const LearningPath = ({
489489
opacity: isCompleted ? 0.9 : 1,
490490
filter: isCompleted ? "saturate(0.9)" : "none",
491491
transition: "all 0.3s ease-in-out",
492-
border: `1px solid ${
493-
isCompleted ? `${color}40` : "rgba(255, 255, 255, 0.1)"
494-
}`,
492+
border: `1px solid ${isCompleted ? `${color}40` : "rgba(255, 255, 255, 0.1)"
493+
}`,
495494
background:
496495
"linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98))",
497496
boxShadow: "0 8px 20px -5px rgba(0, 0, 0, 0.15)",
@@ -592,17 +591,15 @@ const LearningPath = ({
592591
<div className="flex items-center justify-between mt-4 pt-3 border-t border-gray-700/50">
593592
<Link
594593
to="/docs/GitHub/intro-github"
595-
className={`inline-flex items-center text-sm font-medium transition-all duration-200 ${
596-
isCompleted
597-
? "text-green-400 hover:text-green-300"
598-
: "text-blue-400 hover:text-blue-300"
599-
} group-hover:underline`}
594+
className={`inline-flex items-center text-sm font-medium transition-all duration-200 ${isCompleted
595+
? "text-green-400 hover:text-green-300"
596+
: "text-blue-400 hover:text-blue-300"
597+
} group-hover:underline`}
600598
>
601599
{isCompleted ? "Continue Learning" : "Start Learning"}
602600
<svg
603-
className={`w-4 h-4 ml-2 transition-transform duration-300 group-hover:translate-x-1 ${
604-
isCompleted ? "text-green-400" : "text-blue-400"
605-
}`}
601+
className={`w-4 h-4 ml-2 transition-transform duration-300 group-hover:translate-x-1 ${isCompleted ? "text-green-400" : "text-blue-400"
602+
}`}
606603
fill="none"
607604
viewBox="0 0 24 24"
608605
stroke="currentColor"
@@ -622,11 +619,10 @@ const LearningPath = ({
622619
e.preventDefault();
623620
onToggleComplete();
624621
}}
625-
className={`relative inline-flex items-center h-6 rounded-full w-11 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 ${
626-
isCompleted
627-
? "bg-green-500 focus:ring-green-500"
628-
: "bg-gray-600 hover:bg-gray-500 focus:ring-blue-500"
629-
}`}
622+
className={`relative inline-flex items-center h-6 rounded-full w-11 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-800 ${isCompleted
623+
? "bg-green-500 focus:ring-green-500"
624+
: "bg-gray-600 hover:bg-gray-500 focus:ring-blue-500"
625+
}`}
630626
whileTap={{ scale: 0.95 }}
631627
aria-pressed={isCompleted}
632628
aria-label={
@@ -637,9 +633,8 @@ const LearningPath = ({
637633
{isCompleted ? "Mark as incomplete" : "Mark as complete"}
638634
</span>
639635
<motion.span
640-
className={`inline-block w-4 h-4 transform bg-white rounded-full transition-all duration-200 ease-in-out flex items-center justify-center ${
641-
isCompleted ? "translate-x-6" : "translate-x-1"
642-
}`}
636+
className={`inline-block w-4 h-4 transform bg-white rounded-full transition-all duration-200 ease-in-out flex items-center justify-center ${isCompleted ? "translate-x-6" : "translate-x-1"
637+
}`}
643638
layout
644639
>
645640
{isCompleted && (
@@ -723,7 +718,7 @@ function GetStartedContent() {
723718
Math.round(
724719
(Object.values(completedPaths).filter(Boolean).length /
725720
learningPaths.length) *
726-
100,
721+
100,
727722
) || 0;
728723

729724
// Save to localStorage whenever completedPaths changes
@@ -759,9 +754,8 @@ function GetStartedContent() {
759754
<GetStartedHeader />
760755

761756
<main
762-
className={`transition-colors duration-300 ${
763-
isDark ? "dark-bg-primary dark-text-primary" : "bg-white text-black"
764-
}`}
757+
className={`transition-colors duration-300 ${isDark ? "dark-bg-primary dark-text-primary" : "bg-white text-black"
758+
}`}
765759
>
766760
{/* Features Section */}
767761
<section className={styles.features}>

0 commit comments

Comments
 (0)