mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-09 06:55:51 +01:00
22 lines
511 B
TypeScript
22 lines
511 B
TypeScript
import { Global } from '@mantine/core';
|
|
|
|
import { useConfigContext } from '../../config/provider';
|
|
|
|
export function Background() {
|
|
const { config } = useConfigContext();
|
|
|
|
return (
|
|
<Global
|
|
styles={{
|
|
body: {
|
|
minHeight: '100vh',
|
|
backgroundImage: `url('${config?.settings.customization.backgroundImageUrl}')` || '',
|
|
backgroundPosition: 'center center',
|
|
backgroundSize: 'cover',
|
|
backgroundRepeat: 'no-repeat',
|
|
},
|
|
}}
|
|
/>
|
|
);
|
|
}
|