mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-12 16:35:49 +01:00
21 lines
469 B
TypeScript
21 lines
469 B
TypeScript
import { Global } from '@mantine/core';
|
|
import { useConfig } from '../../tools/state';
|
|
|
|
export function Background() {
|
|
const { config } = useConfig();
|
|
|
|
return (
|
|
<Global
|
|
styles={{
|
|
body: {
|
|
minHeight: '100vh',
|
|
backgroundImage: `url('${config.settings.background}')` || '',
|
|
backgroundPosition: 'center center',
|
|
backgroundSize: 'cover',
|
|
backgroundRepeat: 'no-repeat',
|
|
},
|
|
}}
|
|
/>
|
|
);
|
|
}
|