Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | import { Alert, Container, Grid, Typography } from "@mui/material"; import Divider from "components/Divider"; import HtmlMeta from "components/HtmlMeta"; import PageTitle from "components/PageTitle"; import DashboardBanners from "features/dashboard/DashboardBanners"; import { useTranslation } from "i18n"; import { DASHBOARD, GLOBAL } from "i18n/namespaces"; import { theme } from "theme"; import dashboardNews from "../../dashboardNews.json"; import CommunitiesSection from "./CommunitiesSection"; import DashboardUserProfileSummary from "./DashboardUserProfileSummary"; import Hero from "./Hero"; import MyEvents from "./MyEvents"; export default function Dashboard() { const { t } = useTranslation([GLOBAL, DASHBOARD]); return ( <> <Hero /> {/* this view uses a container, instead of it coming from the route layout, because the hero section is full viewport width */} <Container maxWidth="lg"> <Grid container direction="row"> <Grid item sm={4} xs={12} sx={{ marginTop: theme.spacing(3) }}> <DashboardUserProfileSummary /> </Grid> <Grid item sm={8} xs={12} sx={{ [theme.breakpoints.up("sm")]: { paddingLeft: theme.spacing(5), }, }} > <HtmlMeta title={t("global:nav.dashboard")} /> <PageTitle>{t("dashboard:welcome")}</PageTitle> <Alert severity="info"> <Typography variant="body1"> <b>New Feature Alert!</b> {dashboardNews["2025-02-23"]} </Typography> </Alert> <Typography variant="h1" component="h2" paragraph> {t("dashboard:dashboard")} </Typography> <DashboardBanners /> <Divider spacing={3} /> <MyEvents /> <Divider spacing={3} /> <CommunitiesSection /> </Grid> </Grid> </Container> </> ); } |