created Homepage

This commit is contained in:
2025-03-11 12:39:14 +01:00
parent 8c85a921f8
commit 468c7f1d47
3 changed files with 29 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ import { PhotoShow } from "./components/photos/PhotoShow.tsx";
import { TodoList } from "./components/todos/TodoList.tsx";
import { TodoEdit } from "./components/todos/TodoEdit.tsx";
import { TodoShow } from "./components/todos/TodoShow.tsx";
import {HomePage} from "./components/HomePage.tsx";
export const App = () => (
<Admin
@@ -29,6 +30,7 @@ export const App = () => (
dataProvider={dataProvider}
authProvider={authProvider}
requireAuth
dashboard={HomePage}
>
<Resource name="users" list={UserList} edit={UserEdit} show={UserShow} />
<Resource

View File

@@ -0,0 +1,26 @@
import { Card, CardContent, Typography, Box } from "@mui/material";
export const HomePage = () => {
return (
<Box
sx={{
display: "flex",
justifyContent: "center",
alignItems: "center",
height: "100vh",
}}
>
<Card sx={{ maxWidth: 400, padding: 2, textAlign: "center" }}>
<CardContent>
<Typography variant="h4" component="div" gutterBottom>
Welcome to the Dashboard
</Typography>
<Typography variant="body1" color="text.secondary">
Manage your table effortlessly with the tools provided. Navigate
through the menu to get started.
</Typography>
</CardContent>
</Card>
</Box>
);
};