Updated the Home.jsx
This commit is contained in:
parent
21a7ac6473
commit
f28153f42a
@ -1,7 +1,24 @@
|
||||
import {Stack, Typography} from "@mui/material";
|
||||
import {useContext} from "react";
|
||||
import {UserContext} from "@contexts/User";
|
||||
import {ProjectContext} from "@/states/Dashboard/contexts/Project";
|
||||
import ProjectBox from "./components/ProjectBox";
|
||||
|
||||
export const Home = () => {
|
||||
|
||||
const {user} = useContext(UserContext);
|
||||
const {projects} = useContext(ProjectContext);
|
||||
|
||||
return (
|
||||
<div>
|
||||
<h2>Test</h2>
|
||||
</div>
|
||||
<Stack gap={2}>
|
||||
<Typography variant="h2" fontWeight="bold">Startseite</Typography>
|
||||
<Typography variant="h5">Willkommen zurück, <Typography variant="span"
|
||||
color="primary">{user.username}</Typography>.</Typography>
|
||||
|
||||
<Typography variant="h4" fontWeight="bold" mt={3}>Deine Projekte:</Typography>
|
||||
<Stack direction="row" spacing={2}>
|
||||
{projects.map((project, index) => <ProjectBox project={project} key={index}/>)}
|
||||
</Stack>
|
||||
</Stack>
|
||||
)
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user