mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-06 21:45:47 +01:00
Added an input in the advanced options for a background image. Also removed an unused import from my previous commit and changed the margin on the header bar to padding instead.
29 lines
707 B
TypeScript
29 lines
707 B
TypeScript
import { AppShell, createStyles } from '@mantine/core';
|
|
import { Header } from './Header';
|
|
import { Footer } from './Footer';
|
|
import Aside from './Aside';
|
|
import { HeaderConfig } from './HeaderConfig';
|
|
import { Background } from './Background';
|
|
|
|
const useStyles = createStyles((theme) => ({
|
|
main: {},
|
|
}));
|
|
|
|
export default function Layout({ children, style }: any) {
|
|
const { classes, cx } = useStyles();
|
|
return (
|
|
<AppShell aside={<Aside />} header={<Header />} footer={<Footer links={[]} />}>
|
|
<HeaderConfig />
|
|
<Background />
|
|
<main
|
|
className={cx(classes.main)}
|
|
style={{
|
|
...style,
|
|
}}
|
|
>
|
|
{children}
|
|
</main>
|
|
</AppShell>
|
|
);
|
|
}
|