mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
* refactor: unify backend and frontend servers * refactor: correct paths for openapi & drizzle * refactor: move api-client to client * fix: drizzle paths * chore: fix linting issues * fix: form reset issue
25 lines
802 B
TypeScript
25 lines
802 B
TypeScript
import type { ReactNode } from "react";
|
|
import { cn } from "~/client/lib/utils";
|
|
|
|
interface GridBackgroundProps {
|
|
children: ReactNode;
|
|
className?: string;
|
|
containerClassName?: string;
|
|
}
|
|
|
|
export function GridBackground({ children, className, containerClassName }: GridBackgroundProps) {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
"relative min-h-full w-full overflow-x-hidden",
|
|
"bg-size-[20px_20px] sm:bg-size-[40px_40px]",
|
|
"bg-[linear-gradient(to_right,#e4e4e7_1px,transparent_1px),linear-gradient(to_bottom,#e4e4e7_1px,transparent_1px)]",
|
|
"dark:bg-[linear-gradient(to_right,#262626_1px,transparent_1px),linear-gradient(to_bottom,#262626_1px,transparent_1px)]",
|
|
containerClassName,
|
|
)}
|
|
>
|
|
<div className={cn("relative container m-auto", className)}>{children}</div>
|
|
</div>
|
|
);
|
|
}
|