Files
2026-06-15 01:07:01 +00:00

16 lines
650 B
TypeScript

import { cls } from "@/lib/utils";
type NoiseBackgroundProps = {
position: "fixed" | "absolute";
};
const NoiseBackground = ({ position }: NoiseBackgroundProps) => {
return (
<div className={cls(position, "inset-0 -z-10 overflow-hidden bg-background-accent/10 pointer-events-none select-none", position === "absolute" && "mask-[linear-gradient(to_bottom,transparent,black_10%,black_90%,transparent)]")} aria-hidden="true">
<div className="absolute inset-0 bg-repeat mix-blend-overlay opacity-10 bg-[url(https://storage.googleapis.com/webild/default/noise.webp)] bg-size-[512px]" />
</div>
);
};
export default NoiseBackground;