Skip to content

Commit 78f96d4

Browse files
CopilotAdez017
andcommitted
Fix text visibility on practice question cards
Co-authored-by: Adez017 <[email protected]>
1 parent 3c1325b commit 78f96d4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/pages/interview-prep/PracticeTab.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
497497
>
498498
<div className="flex flex-wrap items-center gap-8">
499499
<div className="flex items-center space-x-4">
500-
<label className="text-sm font-bold text-gray-700 dark:text-gray-300">
500+
<label className="text-sm font-bold text-gray-800 dark:text-gray-200">
501501
Filter by Type:
502502
</label>
503503
<motion.select
@@ -513,7 +513,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
513513
</motion.select>
514514
</div>
515515
<div className="flex items-center space-x-4">
516-
<label className="text-sm font-bold text-gray-700 dark:text-gray-300">
516+
<label className="text-sm font-bold text-gray-800 dark:text-gray-200">
517517
Filter by Difficulty:
518518
</label>
519519
<motion.select
@@ -529,7 +529,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
529529
</motion.select>
530530
</div>
531531
<motion.div
532-
className="rounded-xl border border-gray-200 bg-gradient-to-r from-gray-100 to-slate-100 px-6 py-3 text-sm font-bold text-gray-600 shadow-lg dark:border-gray-600 dark:from-gray-700 dark:to-slate-700 dark:text-gray-400"
532+
className="rounded-xl border border-gray-200 bg-gradient-to-r from-gray-100 to-slate-100 px-6 py-3 text-sm font-bold text-gray-800 shadow-lg dark:border-gray-600 dark:from-gray-700 dark:to-slate-700 dark:text-gray-200"
533533
whileHover={{ scale: 1.05 }}
534534
>
535535
<span className="font-black text-blue-600 dark:text-blue-400">
@@ -664,7 +664,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
664664
{question.category && (
665665
<div className="mb-6 flex items-center space-x-3">
666666
<span className="text-lg text-gray-400">📂</span>
667-
<span className="rounded-full bg-gray-100 px-3 py-1 text-sm font-bold text-gray-600 dark:bg-gray-700 dark:text-gray-400">
667+
<span className="rounded-full bg-gray-100 px-3 py-1 text-sm font-bold text-gray-800 dark:bg-gray-700 dark:text-gray-200">
668668
{question.category}
669669
</span>
670670
</div>
@@ -674,7 +674,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
674674
<div className="flex-1 px-8 pb-4">
675675
<motion.button
676676
onClick={() => toggleHints(question.id)}
677-
className="group flex w-full items-center justify-between space-x-3 rounded-xl border border-gray-200 bg-gray-50 px-4 py-3 text-sm text-gray-600 shadow-lg transition-colors hover:bg-gray-100 hover:text-gray-800 dark:border-gray-600 dark:bg-gray-700/50 dark:text-gray-400 dark:hover:bg-gray-600/50 dark:hover:text-gray-200"
677+
className="group flex w-full items-center justify-between space-x-3 rounded-xl border border-gray-200 bg-gray-50 px-4 py-3 text-sm text-gray-800 shadow-lg transition-colors hover:bg-gray-100 hover:text-gray-900 dark:border-gray-600 dark:bg-gray-700/50 dark:text-gray-200 dark:hover:bg-gray-600/50 dark:hover:text-gray-100"
678678
whileHover={{ scale: 1.02 }}
679679
whileTap={{ scale: 0.98 }}
680680
>
@@ -725,7 +725,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
725725
{question.hints.map((hint, i) => (
726726
<motion.li
727727
key={i}
728-
className="flex items-start space-x-4 text-sm text-gray-700 dark:text-gray-300"
728+
className="flex items-start space-x-4 text-sm text-gray-800 dark:text-gray-200"
729729
initial={{ opacity: 0, x: -20 }}
730730
animate={{ opacity: 1, x: 0 }}
731731
transition={{ delay: i * 0.1 }}
@@ -737,7 +737,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
737737
>
738738
{i + 1}
739739
</motion.span>
740-
<span className="leading-relaxed font-medium text-gray-700 dark:text-gray-300">
740+
<span className="leading-relaxed font-medium text-gray-800 dark:text-gray-200">
741741
{hint}
742742
</span>
743743
</motion.li>
@@ -751,7 +751,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
751751
<div className="mt-6">
752752
<motion.button
753753
onClick={() => toggleResources(question.id)}
754-
className="group flex w-full items-center justify-between space-x-3 rounded-xl border-2 border-indigo-200/50 bg-gradient-to-r from-indigo-50 via-purple-50 to-pink-50 px-4 py-3 text-sm text-gray-600 shadow-lg transition-colors hover:from-indigo-100 hover:via-purple-100 hover:to-pink-100 hover:text-gray-800 dark:border-indigo-700/50 dark:from-indigo-900/30 dark:via-purple-900/30 dark:to-pink-900/30 dark:text-gray-400 dark:hover:from-indigo-800/40 dark:hover:via-purple-800/40 dark:hover:to-pink-800/40 dark:hover:text-gray-200"
754+
className="group flex w-full items-center justify-between space-x-3 rounded-xl border-2 border-indigo-200/50 bg-gradient-to-r from-indigo-50 via-purple-50 to-pink-50 px-4 py-3 text-sm text-gray-800 shadow-lg transition-colors hover:from-indigo-100 hover:via-purple-100 hover:to-pink-100 hover:text-gray-900 dark:border-indigo-700/50 dark:from-indigo-900/30 dark:via-purple-900/30 dark:to-pink-900/30 dark:text-gray-200 dark:hover:from-indigo-800/40 dark:hover:via-purple-800/40 dark:hover:to-pink-800/40 dark:hover:text-gray-100"
755755
whileHover={{ scale: 1.02 }}
756756
whileTap={{ scale: 0.98 }}
757757
>
@@ -834,7 +834,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
834834
case "tool":
835835
return "from-orange-100 to-red-100 dark:from-orange-900/40 dark:to-red-900/40 text-orange-700 dark:text-orange-300 border-orange-200 dark:border-orange-700";
836836
default:
837-
return "from-gray-100 to-slate-100 dark:from-gray-700 dark:to-slate-700 text-gray-700 dark:text-gray-300 border-gray-200 dark:border-gray-600";
837+
return "from-gray-100 to-slate-100 dark:from-gray-700 dark:to-slate-700 text-gray-800 dark:text-gray-200 border-gray-200 dark:border-gray-600";
838838
}
839839
};
840840

@@ -950,7 +950,7 @@ const PracticeTab: React.FC<PracticeTabProps> = ({
950950
disabled={!!activeSession}
951951
className={`flex w-full items-center justify-center space-x-3 rounded-xl border-2 py-4 font-black shadow-2xl transition-all ${
952952
completedQuestions.has(question.id)
953-
? "cursor-default border-gray-300 bg-gradient-to-r from-gray-200 to-slate-200 text-gray-600 dark:border-gray-500 dark:from-gray-600 dark:to-slate-600 dark:text-gray-300"
953+
? "cursor-default border-gray-300 bg-gradient-to-r from-gray-200 to-slate-200 text-gray-800 dark:border-gray-500 dark:from-gray-600 dark:to-slate-600 dark:text-gray-200"
954954
: activeSession
955955
? "cursor-not-allowed border-gray-400 bg-gradient-to-r from-gray-300 to-slate-300 text-gray-500 dark:border-gray-600 dark:from-gray-700 dark:to-slate-700 dark:text-gray-400"
956956
: "border-blue-500/20 bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600 text-white hover:from-blue-700 hover:via-indigo-700 hover:to-purple-700 hover:shadow-blue-500/25"

0 commit comments

Comments
 (0)