Add new config format

This commit is contained in:
Meierschlumpf
2022-12-04 17:36:30 +01:00
parent b2f5149527
commit d5a3b3f3ba
76 changed files with 2461 additions and 1034 deletions

View File

@@ -1,15 +1,15 @@
import { Global } from '@mantine/core';
import { useConfig } from '../../tools/state';
import { useConfigContext } from '../../config/provider';
export function Background() {
const { config } = useConfig();
const { config } = useConfigContext();
return (
<Global
styles={{
body: {
minHeight: '100vh',
backgroundImage: `url('${config.settings.background}')` || '',
backgroundImage: `url('${config?.settings.customization.backgroundImageUrl}')` || '',
backgroundPosition: 'center center',
backgroundSize: 'cover',
backgroundRepeat: 'no-repeat',