71 lines
2.0 KiB
TypeScript
71 lines
2.0 KiB
TypeScript
import { PatternPlaceholder } from "@/components/shadcnblocks/pattern-placeholder";
|
|
import { cn } from "@/lib/utils";
|
|
|
|
interface BackgroundPattern25Props {
|
|
className?: string;
|
|
}
|
|
|
|
const BackgroundPattern25 = ({ className }: BackgroundPattern25Props) => {
|
|
return (
|
|
<section
|
|
className={cn(
|
|
"relative flex min-h-screen w-full items-center justify-center",
|
|
className,
|
|
)}
|
|
>
|
|
{/* Background Pattern */}
|
|
{/* Bottom Left Fade Dashed Grid Background */}
|
|
<div
|
|
className="absolute inset-0 z-0"
|
|
style={{
|
|
backgroundImage: `
|
|
linear-gradient(to right, var(--muted) 1px, transparent 1px),
|
|
linear-gradient(to bottom, var(--muted) 1px, transparent 1px)
|
|
`,
|
|
backgroundSize: "20px 20px",
|
|
backgroundPosition: "0 0, 0 0",
|
|
maskImage: `
|
|
repeating-linear-gradient(
|
|
to right,
|
|
black 0px,
|
|
black 3px,
|
|
transparent 3px,
|
|
transparent 8px
|
|
),
|
|
repeating-linear-gradient(
|
|
to bottom,
|
|
black 0px,
|
|
black 3px,
|
|
transparent 3px,
|
|
transparent 8px
|
|
),
|
|
radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)
|
|
`,
|
|
WebkitMaskImage: `
|
|
repeating-linear-gradient(
|
|
to right,
|
|
black 0px,
|
|
black 3px,
|
|
transparent 3px,
|
|
transparent 8px
|
|
),
|
|
repeating-linear-gradient(
|
|
to bottom,
|
|
black 0px,
|
|
black 3px,
|
|
transparent 3px,
|
|
transparent 8px
|
|
),
|
|
radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)
|
|
`,
|
|
maskComposite: "intersect",
|
|
WebkitMaskComposite: "source-in",
|
|
}}
|
|
/>
|
|
<PatternPlaceholder />
|
|
</section>
|
|
);
|
|
};
|
|
|
|
export { BackgroundPattern25 };
|