add mui and fonts

This commit is contained in:
AmirHossein Mahmoodi
2024-01-30 11:22:28 +03:30
parent 1df5a5edb4
commit f883b9cc8e
62 changed files with 193 additions and 6 deletions

View File

@@ -4,8 +4,8 @@ export const metadata = {
export default function RootLayout({children}) {
return (<html lang="fa" dir={'rtl'}>
<body>
{children}
</body>
</html>)
<body style={{height: '100vh'}}>
{children}
</body>
</html>)
}

View File

@@ -2,6 +2,7 @@ import cacheProviderRtl from "@/core/utils/cacheRtl";
import {CssBaseline, ThemeProvider} from "@mui/material";
import theme from "@/core/utils/theme";
import {AppRouterCacheProvider} from "@mui/material-nextjs/v14-appRouter";
import "^/global.scss"
const Template = ({children}) => {
return (

View File

@@ -2,7 +2,10 @@
import {createTheme} from "@mui/material";
const theme = createTheme({
direction: 'rtl'
direction: 'rtl',
typography: {
fontFamily: `IRANSansFaNum, sans-serif`,
},
});
export default theme