Skip to content

Commit 0b5b466

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/tsparticles/slim-4.0.5
2 parents 01cd14a + 323efea commit 0b5b466

2 files changed

Lines changed: 25 additions & 100 deletions

File tree

package-lock.json

Lines changed: 0 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/topmate/TopMateCard.tsx

Lines changed: 25 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ const TopMateCard: React.FC<TopMateCardProps> = ({
2727
initial={{ opacity: 0, y: 30, scale: 0.95 }}
2828
animate={{ opacity: 1, y: 0, scale: 1 }}
2929
transition={{ duration: 0.6, type: "spring", stiffness: 100 }}
30-
className={`group relative mx-auto w-full max-w-lg overflow-hidden rounded-2xl border backdrop-blur-sm transition-all duration-500 hover:scale-[1.02] hover:shadow-2xl ${
31-
isDark
32-
? "border-gray-700/50 bg-gray-900/80 shadow-xl"
30+
className={`group relative mx-auto w-full max-w-lg overflow-hidden rounded-2xl border backdrop-blur-sm transition-all duration-500 hover:scale-[1.02] hover:shadow-2xl ${isDark
31+
? "border-gray-700/50 bg-gray-900/80 shadow-xl"
3332
: "border-gray-200/50 bg-white/80 shadow-lg"
34-
}`}
33+
}`}
3534
>
3635
{/* Gradient Background (hidden in dark mode) */}
3736
{!isDark && (
@@ -46,13 +45,11 @@ const TopMateCard: React.FC<TopMateCardProps> = ({
4645
<div className="relative p-8">
4746
{/* Header Badge */}
4847
<div className="mb-6 flex items-center justify-between">
49-
<div className={`flex items-center gap-3 rounded-full px-4 py-2 ${
50-
isDark ? "bg-blue-500/10 border border-blue-500/20" : "bg-blue-50 border border-blue-200"
51-
}`}>
52-
<Calendar size={16} className="text-blue-500" />
53-
<span className={`text-sm font-medium ${
54-
isDark ? "text-blue-400" : "text-blue-600"
48+
<div className={`flex items-center gap-3 rounded-full px-4 py-2 ${isDark ? "bg-blue-500/10 border border-blue-500/20" : "bg-blue-50 border border-blue-200"
5549
}`}>
50+
<Calendar size={16} className="text-blue-500" />
51+
<span className={`text-sm font-medium ${isDark ? "text-blue-400" : "text-blue-600"
52+
}`}>
5653
1:1 MENTORSHIP
5754
</span>
5855
<div className="flex items-center gap-1 text-amber-500">
@@ -62,35 +59,31 @@ const TopMateCard: React.FC<TopMateCardProps> = ({
6259
</div>
6360
<button
6461
onClick={() => setShowTopmate(false)}
65-
className={`rounded-full p-2 transition-colors ${
66-
isDark
67-
? "hover:bg-gray-700 text-gray-400 hover:text-gray-200"
62+
className={`rounded-full p-2 transition-colors ${isDark
63+
? "hover:bg-gray-700 text-gray-400 hover:text-gray-200"
6864
: "hover:bg-gray-100 text-gray-500 hover:text-gray-700"
69-
}`}
65+
}`}
7066
>
7167
<ArrowUpRight size={18} className="rotate-45" />
7268
</button>
7369
</div>
7470

7571
{/* Title */}
76-
<h2 className={`mb-4 text-3xl font-bold leading-tight ${
77-
isDark ? "text-white" : "text-gray-900"
78-
}`}>
72+
<h2 className={`mb-4 text-3xl font-bold leading-tight ${isDark ? "text-white" : "text-gray-900"
73+
}`}>
7974
{title}
8075
</h2>
8176

8277
{/* Description */}
83-
<p className={`mb-8 text-lg leading-relaxed ${
84-
isDark ? "text-gray-300" : "text-gray-600"
85-
}`}>
78+
<p className={`mb-8 text-lg leading-relaxed ${isDark ? "text-gray-300" : "text-gray-600"
79+
}`}>
8680
{description}
8781
</p>
8882

8983
{/* Profile Section */}
90-
<div className={`rounded-xl border p-4 ${
91-
isDark ? "border-gray-700/50 bg-gray-800/30" : "border-gray-200/50 bg-gray-50/50"
92-
}`}>
93-
<div className="flex items-center justify-between">
84+
<div className={`rounded-xl border p-6 overflow-hidden w-full ${isDark ? "border-gray-700/50 bg-gray-800/30" : "border-gray-200/50 bg-gray-50/50"
85+
}`}>
86+
<div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between w-full min-w-0">
9487
<div className="flex items-center gap-4">
9588
<div className="relative">
9689
<img
@@ -103,9 +96,8 @@ const TopMateCard: React.FC<TopMateCardProps> = ({
10396
</div>
10497
</div>
10598
<div>
106-
<p className={`text-sm font-medium ${
107-
isDark ? "text-gray-400" : "text-gray-500"
108-
}`}>
99+
<p className={`text-sm font-medium ${isDark ? "text-gray-400" : "text-gray-500"
100+
}`}>
109101
Book your session at
110102
</p>
111103
<a
@@ -119,17 +111,16 @@ const TopMateCard: React.FC<TopMateCardProps> = ({
119111
</a>
120112
</div>
121113
</div>
122-
114+
123115
{/* Rating */}
124-
<div className="flex flex-col items-end">
125-
<div className="flex items-center gap-1">
116+
<div className="flex flex-col items-start gap-1 sm:items-end min-w-0">
117+
<div className="flex items-center gap-1 flex-wrap justify-start sm:justify-end">
126118
{[...Array(5)].map((_, i) => (
127-
<Star key={i} size={14} className="fill-amber-400 text-amber-400" />
119+
<Star key={i} size={14} className="fill-amber-400 text-amber-400 flex-shrink-0" />
128120
))}
129121
</div>
130-
<span className={`text-xs ${
131-
isDark ? "text-gray-400" : "text-gray-500"
132-
}`}>
122+
<span className={`text-xs ${isDark ? "text-gray-400" : "text-gray-500"
123+
}`}>
133124
5.0 rating
134125
</span>
135126
</div>

0 commit comments

Comments
 (0)