initial work with mui
This commit is contained in:
1 parent
f8233dd6ab
commit
44c4ac12dd
35 files changed
+216
-145
No files matched your search
@@ -0,0 +1,18 @@
|
||||
.page {
|
||||
/* dims */
|
||||
height: 100vh;
|
||||
width: 100vw;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
max-width: 100vw;
|
||||
max-height: 100vh;
|
||||
|
||||
/* font */
|
||||
font-size: 16px;
|
||||
font-family: Tahoma, Geneva, sans-serif;
|
||||
/* color : var(--primary-accent); */
|
||||
|
||||
/* background */
|
||||
/* background-color: var(--primary); */
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
import "./index.css";
|
||||
import { FC } from 'react';
|
||||
import { createTheme, ThemeProvider } from '@mui/material/styles';
|
||||
import { VersionBox } from "components/VersionBox";
|
||||
|
||||
const theme = createTheme({
|
||||
palette: {
|
||||
mode: 'dark'
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
export const Page: FC = ({ children }) => {
|
||||
return <ThemeProvider theme={theme}>
|
||||
<main className="page" style={{
|
||||
color: theme.palette.text.primary,
|
||||
background: theme.palette.background.default,
|
||||
}}>
|
||||
<VersionBox />
|
||||
{children}
|
||||
</main>
|
||||
</ThemeProvider>
|
||||
}
|
||||
Reference in new issue
Block a user