Spaces:
Sleeping
Sleeping
Vexorium brand: update src/components/FeatureCard.tsx
Browse files
src/components/FeatureCard.tsx
CHANGED
|
@@ -20,15 +20,28 @@ export function FeatureCard({
|
|
| 20 |
return (
|
| 21 |
<Component
|
| 22 |
onClick={onClick}
|
| 23 |
-
className={`group relative flex flex-col items-center rounded-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
>
|
| 25 |
-
<div className="pointer-events-none absolute inset-0 rounded-
|
| 26 |
-
|
|
|
|
| 27 |
<div className="relative mb-2 flex h-10 w-10 items-center justify-center">
|
| 28 |
{icon}
|
| 29 |
</div>
|
| 30 |
-
<p className="relative text-xs font-
|
| 31 |
-
<p className="relative mt-1 text-[11px] leading-relaxed
|
| 32 |
{description}
|
| 33 |
</p>
|
| 34 |
</Component>
|
|
|
|
| 20 |
return (
|
| 21 |
<Component
|
| 22 |
onClick={onClick}
|
| 23 |
+
className={`group relative flex flex-col items-center rounded-xl px-4 py-4 text-center transition-all duration-300 hover:-translate-y-[3px] ${onClick ? "cursor-pointer" : ""} ${className}`}
|
| 24 |
+
style={{
|
| 25 |
+
border: "1px solid rgba(0,255,255,0.15)",
|
| 26 |
+
background: "linear-gradient(160deg, rgba(0,255,255,0.04) 0%, rgba(5,5,21,0.95) 100%)",
|
| 27 |
+
}}
|
| 28 |
+
onMouseEnter={e => {
|
| 29 |
+
(e.currentTarget as HTMLElement).style.borderColor = "rgba(0,255,255,0.4)";
|
| 30 |
+
(e.currentTarget as HTMLElement).style.boxShadow = "0 0 20px rgba(0,255,255,0.1)";
|
| 31 |
+
}}
|
| 32 |
+
onMouseLeave={e => {
|
| 33 |
+
(e.currentTarget as HTMLElement).style.borderColor = "rgba(0,255,255,0.15)";
|
| 34 |
+
(e.currentTarget as HTMLElement).style.boxShadow = "none";
|
| 35 |
+
}}
|
| 36 |
>
|
| 37 |
+
<div className="pointer-events-none absolute inset-0 rounded-xl"
|
| 38 |
+
style={{ background: "radial-gradient(ellipse at 50% 0%, rgba(0,255,255,0.06) 0%, transparent 60%)" }}
|
| 39 |
+
/>
|
| 40 |
<div className="relative mb-2 flex h-10 w-10 items-center justify-center">
|
| 41 |
{icon}
|
| 42 |
</div>
|
| 43 |
+
<p className="relative text-xs font-semibold" style={{ color: "#e0e0f0", fontFamily: "'Exo 2', sans-serif" }}>{title}</p>
|
| 44 |
+
<p className="relative mt-1 text-[11px] leading-relaxed" style={{ color: "rgba(224,224,240,0.5)" }}>
|
| 45 |
{description}
|
| 46 |
</p>
|
| 47 |
</Component>
|