Upload src/components/GlassCard.tsx with huggingface_hub
Browse files- src/components/GlassCard.tsx +15 -0
src/components/GlassCard.tsx
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { ReactNode } from 'react';
|
| 2 |
+
import { cn } from '../utils/cn';
|
| 3 |
+
|
| 4 |
+
interface GlassCardProps {
|
| 5 |
+
children: ReactNode;
|
| 6 |
+
className?: string;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
export default function GlassCard({ children, className }: GlassCardProps) {
|
| 10 |
+
return (
|
| 11 |
+
<div className={cn("bg-white/5 border border-white/10 backdrop-blur-md rounded-xl shadow-[0_8px_32px_-8px_rgba(6,10,12,0.65)]", className)}>
|
| 12 |
+
{children}
|
| 13 |
+
</div>
|
| 14 |
+
);
|
| 15 |
+
}
|