This commit is contained in:
2025-09-22 18:24:52 +05:30
commit 26ea6d17b1
25 changed files with 5255 additions and 0 deletions

43
app/routes/home.tsx Normal file
View File

@@ -0,0 +1,43 @@
import * as React from 'react';
import Container from '@mui/material/Container';
import Typography from '@mui/material/Typography';
import Box from '@mui/material/Box';
import Link from '@mui/material/Link';
import { Link as ReactRouterLink } from 'react-router';
import ProTip from '~/components/ProTip';
import Copyright from '~/components/Copyright';
export function meta() {
return [
{ title: 'Material UI - React Router example in TypeScript' },
{
name: 'description',
content: 'Welcome to Material UI - React Router example in TypeScript!',
},
];
}
export default function Home() {
return (
<Container maxWidth="lg">
<Box
sx={{
my: 4,
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
}}
>
<Typography variant="h4" component="h1" sx={{ mb: 2 }}>
Material UI - Next.js App Router example in TypeScript
</Typography>
<Link to="/about" color="secondary" component={ReactRouterLink}>
Go to the about page
</Link>
<ProTip />
<Copyright />
</Box>
</Container>
);
}