omni-tools/src/pages/home/index.tsx

33 lines
692 B
TypeScript
Raw Normal View History

2025-03-31 01:27:44 +00:00
import { Box, useTheme } from '@mui/material';
2024-06-25 09:35:44 +01:00
import Hero from 'components/Hero';
2025-02-23 14:11:21 +00:00
import Categories from './Categories';
2024-06-19 19:10:14 +01:00
export default function Home() {
2025-03-31 01:27:44 +00:00
const theme = useTheme();
2024-06-22 22:06:16 +01:00
return (
<Box
2025-02-25 13:55:35 +00:00
padding={{
xs: 1,
md: 3,
2025-03-31 01:27:44 +00:00
lg: 5
}}
sx={{
background: `url(/assets/${
theme.palette.mode === 'dark'
? 'background-dark.png'
: 'background.svg'
})`,
backgroundColor: 'background.default'
2025-02-25 13:55:35 +00:00
}}
2024-06-22 22:06:16 +01:00
display={'flex'}
flexDirection={'column'}
alignItems={'center'}
justifyContent={'center'}
width={'100%'}
>
2024-06-25 09:35:44 +01:00
<Hero />
2025-02-23 14:11:21 +00:00
<Categories />
2024-06-19 19:10:14 +01:00
</Box>
2024-06-22 22:06:16 +01:00
);
2024-06-19 19:10:14 +01:00
}