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 BackgroundPattern26Props {
|
||
|
|
className?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
const BackgroundPattern26 = ({ className }: BackgroundPattern26Props) => {
|
||
|
|
return (
|
||
|
|
<section
|
||
|
|
className={cn(
|
||
|
|
"relative flex min-h-screen w-full items-center justify-center",
|
||
|
|
className,
|
||
|
|
)}
|
||
|
|
>
|
||
|
|
{/* Background Pattern */}
|
||
|
|
{/* Center 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 60% 60% at 50% 50%, #000 30%, transparent 70%)
|
||
|
|
`,
|
||
|
|
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 60% 60% at 50% 50%, #000 30%, transparent 70%)
|
||
|
|
`,
|
||
|
|
maskComposite: "intersect",
|
||
|
|
WebkitMaskComposite: "source-in",
|
||
|
|
}}
|
||
|
|
/>
|
||
|
|
<PatternPlaceholder />
|
||
|
|
</section>
|
||
|
|
);
|
||
|
|
};
|
||
|
|
|
||
|
|
export { BackgroundPattern26 };
|