feat: Add dummy pages
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
import Layout from 'components/Layout';
|
||||
|
||||
export default function App() {
|
||||
return (
|
||||
<Layout>
|
||||
<FormattedMessage id="welcomeText" />
|
||||
</Layout>
|
||||
);
|
||||
}
|
28
packages/web/src/components/AppRow/index.tsx
Normal file
28
packages/web/src/components/AppRow/index.tsx
Normal file
@@ -0,0 +1,28 @@
|
||||
import Card from '@mui/material/Card';
|
||||
import CardActionArea from '@mui/material/CardActionArea';
|
||||
import CardContent from '@mui/material/CardContent';
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
type AppRowProps = {
|
||||
icon?: React.ReactNode;
|
||||
name: string;
|
||||
connectionNumber?: number;
|
||||
flowNumber?: number;
|
||||
}
|
||||
|
||||
export default function AppRow(props: AppRowProps) {
|
||||
const { name } = props;
|
||||
|
||||
return (
|
||||
<Card sx={{ my: 1 }}>
|
||||
<CardActionArea>
|
||||
|
||||
<CardContent>
|
||||
<Typography gutterBottom variant="h6" component="div">
|
||||
{name}
|
||||
</Typography>
|
||||
</CardContent>
|
||||
</CardActionArea>
|
||||
</Card>
|
||||
);
|
||||
}
|
11
packages/web/src/components/Container/index.tsx
Normal file
11
packages/web/src/components/Container/index.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import MuiContainer, { ContainerProps } from '@mui/material/Container';
|
||||
|
||||
export default function Container(props: ContainerProps) {
|
||||
return (
|
||||
<MuiContainer {...props} />
|
||||
);
|
||||
};
|
||||
|
||||
Container.defaultProps = {
|
||||
maxWidth: 'lg'
|
||||
};
|
@@ -19,7 +19,7 @@ export default function Layout({ children }: LayoutProps) {
|
||||
<Box sx={{ display: 'flex', }}>
|
||||
<Drawer open={isDrawerOpen} />
|
||||
|
||||
<Box sx={{ display: 'flex', flexDirection: 'column' }}>
|
||||
<Box sx={{ flex: 1 }}>
|
||||
<Toolbar />
|
||||
|
||||
{children}
|
||||
|
15
packages/web/src/components/PageTitle/index.tsx
Normal file
15
packages/web/src/components/PageTitle/index.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import Typography from '@mui/material/Typography';
|
||||
|
||||
type PageTitleProps = {
|
||||
children: React.ReactNode;
|
||||
};
|
||||
|
||||
export default function PageTitle(props: PageTitleProps) {
|
||||
const { children } = props;
|
||||
|
||||
return (
|
||||
<Typography variant="h4">
|
||||
{children}
|
||||
</Typography>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user