Skip to content

UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.

🐛 fix: update gradient card demo

Dillion Verma7ee6f305cf68
diff --git a/registry/components/example/magic-card-demo.tsx b/registry/components/example/magic-card-demo.tsx
index 290cd24b..ec562ff1 100644
--- a/registry/components/example/magic-card-demo.tsx
+++ b/registry/components/example/magic-card-demo.tsx
@@ -14,13 +14,13 @@ export default function MagicCardWithGradient() {
<p className="text-4xl font-medium whitespace-nowrap text-gray-800 dark:text-gray-200 z-10">
Magic
</p>
- <div className="pointer-events-none h-full absolute inset-0 bg-[radial-gradient(ellipse_80%_50%_at_50%_100%,rgba(120,119,198,0.3),rgba(255,255,255,0))]" />
+ <div className="pointer-events-none h-full absolute inset-0 bg-[radial-gradient(circle_at_50%_120%,rgba(120,119,198,0.3),rgba(255,255,255,0))]" />
</MagicCard>
<MagicCard className="cursor-pointer shadow-2xl flex justify-center items-center overflow-hidden bg-background">
<p className="text-4xl font-medium whitespace-nowrap text-gray-800 dark:text-gray-200 z-10">
Card
</p>
- <div className="pointer-events-none h-full absolute inset-0 bg-[radial-gradient(ellipse_80%_50%_at_50%_100%,rgba(120,119,198,0.3),rgba(255,255,255,0))]" />
+ <div className="pointer-events-none h-full absolute inset-0 bg-[radial-gradient(circle_at_50%_120%,rgba(120,119,198,0.3),rgba(255,255,255,0))]" />
</MagicCard>
</MagicContainer>
);