Skip to content

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

🐛 fix: wrapper style

Dillion Vermae9f32a881524
diff --git a/components/component-wrapper.tsx b/components/component-wrapper.tsx
index 7cc2aa25..04e45000 100644
--- a/components/component-wrapper.tsx
+++ b/components/component-wrapper.tsx
@@ -8,7 +8,7 @@ const ComponentWrapper = ({ className, children }: ComponentWrapperProps) => {
return (
<div
className={cn(
- "not-prose relative -z-40 flex max-w-[65ch] flex-col items-center justify-center rounded-xl border bg-background p-8 md:p-20",
+ "not-prose relative flex max-w-[65ch] flex-col items-center justify-center rounded-xl border p-8 backdrop-blur-xl md:p-20",
className,
)}
>
@@ -16,7 +16,7 @@ const ComponentWrapper = ({ className, children }: ComponentWrapperProps) => {
<div
className={cn(
- `absolute inset-0 -z-30 h-full w-full [background-size:16px_16px]`,
+ `absolute inset-0 -z-10 h-full w-full [background-size:16px_16px]`,
`bg-[radial-gradient(#00000055_1px,transparent_1px)] [--mask-offset:60px] dark:bg-[radial-gradient(#ffffff22_1px,transparent_1px)]`,
`[WebkitMask:mask:linear-gradient(to_bottom,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent),linear-gradient(to_right,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent)] [mask:linear-gradient(to_bottom,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent),linear-gradient(to_right,transparent,#fff_var(--mask-offset)_calc(100%-var(--mask-offset)),transparent)]`,
`[--webkit-mask-composite:source-in,xor] [mask-composite:intersect]`,