Skip to content

Commit 6e314a1

Browse files
authored
Merge pull request #133 from Deep-1507/patch-1
Update ElectionMini.tsx UI
2 parents e33f812 + 1b18998 commit 6e314a1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

client/app/components/Cards/ElectionMini.tsx

+7-7
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ const ElectionMini = ({
4949
{electionInfo[2]}
5050
</h3>
5151
<motion.div
52-
whileHover={{ scale: 1.05 }}
53-
className={`px-3 py-1 text-xs font-semibold rounded-full ${
54-
electionStat === 3
55-
? "bg-gray-100 text-gray-800"
52+
whileHover={{ scale: 1.1 }}
53+
className={`px-4 py-1.5 text-sm font-semibold rounded-full shadow-md transition-all duration-200 ${electionStat === 3
54+
? "bg-gray-200 text-gray-900"
5655
: electionStat === 2
57-
? "bg-green-100 text-green-800"
58-
: "bg-yellow-100 text-yellow-800"
59-
}`}
56+
? "bg-green-200 text-green-900"
57+
: "bg-red-200 text-red-900"
58+
}`}
6059
>
6160
{ElectionStatus[electionStat]}
6261
</motion.div>
62+
6363
</div>
6464
<p className="text-sm text-gray-600 line-clamp-3 mb-4">
6565
{electionInfo[3]}

0 commit comments

Comments
 (0)