Skip to content

Commit c5443cb

Browse files
committed
Fix span
1 parent 0386348 commit c5443cb

1 file changed

Lines changed: 33 additions & 2 deletions

File tree

src/components/SmartButton.js

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,39 @@ export const SmartButton = ({ href, children, isAvailable, className }) => {
1616
>
1717
{children}
1818
</button>
19-
<span className="absolute hidden group-hover:block -top-8 left-1/2 -translate-x-1/2 bg-gray-800 text-white px-2 py-1 rounded text-sm whitespace-nowrap">
20-
Contenido no disponible
19+
<span
20+
className="absolute hidden group-hover:flex items-center justify-center -top-10 left-1/2 -translate-x-1/2 px-3 py-2 rounded-lg text-sm whitespace-nowrap z-10 backdrop-blur-md transition-all duration-300 border border-white/15 shadow-lg"
21+
style={{
22+
background:
23+
"linear-gradient(135deg, rgba(61, 139, 55, 0.8), rgba(242, 57, 57, 0.6))",
24+
boxShadow:
25+
"0 4px 12px rgba(242, 57, 57, 0.3), 0 0 20px rgba(61, 139, 55, 0.2)",
26+
}}
27+
>
28+
<span className="flex items-center">
29+
<svg
30+
xmlns="http://www.w3.org/2000/svg"
31+
className="h-4 w-4 mr-1.5 text-accent-yellow"
32+
fill="none"
33+
viewBox="0 0 24 24"
34+
stroke="currentColor"
35+
>
36+
<path
37+
strokeLinecap="round"
38+
strokeLinejoin="round"
39+
strokeWidth={2}
40+
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
41+
/>
42+
</svg>
43+
Contenido no disponible
44+
</span>
45+
<div
46+
className="absolute h-2 w-2 left-1/2 -translate-x-1/2 bottom-[-4px] rotate-45"
47+
style={{
48+
background:
49+
"linear-gradient(135deg, rgba(61, 139, 55, 0.8), rgba(242, 57, 57, 0.6))",
50+
}}
51+
></div>
2152
</span>
2253
</div>
2354
);

0 commit comments

Comments
 (0)