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 70 71 72 73 74 | import { Container, Grid, Typography } from "@mui/material"; import Divider from "components/Divider"; import HtmlMeta from "components/HtmlMeta"; import PageTitle from "components/PageTitle"; import StyledLink from "components/StyledLink"; import DashboardBanners from "features/dashboard/DashboardBanners"; import { Trans, useTranslation } from "i18n"; import { DASHBOARD, GLOBAL } from "i18n/namespaces"; import { blogRoute, donationsRoute } from "routes"; import { theme } from "theme"; 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> <Typography variant="body1" paragraph> <Trans i18nKey="dashboard:landing_text"> {`We are building new `} <StyledLink href={blogRoute}>features</StyledLink> {` like events, local guides, moderation and hangouts. We appreciate your patience and `} <StyledLink href={donationsRoute}>support</StyledLink> {` as we develop these.`} </Trans> </Typography> <Typography variant="h1" component="h2" paragraph> {t("dashboard:dashboard")} </Typography> <DashboardBanners /> <Divider spacing={3} /> <MyEvents /> <Divider spacing={3} /> <CommunitiesSection /> </Grid> </Grid> </Container> </> ); } |