add mui and fonts
This commit is contained in:
@@ -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>)
|
||||
}
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
import {createTheme} from "@mui/material";
|
||||
|
||||
const theme = createTheme({
|
||||
direction: 'rtl'
|
||||
direction: 'rtl',
|
||||
typography: {
|
||||
fontFamily: `IRANSansFaNum, sans-serif`,
|
||||
},
|
||||
});
|
||||
|
||||
export default theme
|
||||
Reference in New Issue
Block a user