Files
hspguard/web/src/layout/BackgroundLayout.tsx

16 lines
414 B
TypeScript

import { type FC, type ReactNode } from "react";
export interface IBackgroundLayoutProps {
children: ReactNode;
}
const BackgroundLayout: FC<IBackgroundLayoutProps> = ({ children }) => {
return (
<div className="relative min-h-screen bg-cover bg-center bg-white dark:bg-black bg-[url(/overlay.jpg)] dark:bg-[url(/dark-overlay.jpg)]">
{children}
</div>
);
};
export default BackgroundLayout;