-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add NavigationDrawer and rework contact pages (#90)
* feat: add NavigationDrawer * feat: add SearchContactTable * feat: add searchContact empty state and create new ContactPage * feat: add contact filter logic and remove old files * add ContactCampaignCard skeleton and rework links * feat: add campaigns data in ContactCampaignCard * feat: rework ContactFormDialog * feat: rework error fields style and move schema in specific files * feat: rework textfield for number type and add otherPhone in form * fix: review * add prettier rule for import extensions
- Loading branch information
1 parent
b1f45ca
commit 52bd061
Showing
70 changed files
with
2,210 additions
and
971 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,16 @@ | ||
import { Typography } from "@mui/material"; | ||
import CorporateFareIcon from "@mui/icons-material/CorporateFare"; | ||
import PersonOutlineIcon from "@mui/icons-material/PersonOutline"; | ||
import { InfoBanner } from "../ui/InfoBanner.tsx"; | ||
import { HomeCard } from "../ui/Card/HomeCard.tsx"; | ||
import { BinocularIcon } from "../ui/Icon/BinocularIcon.tsx"; | ||
import Stack from "@mui/material/Stack"; | ||
import { Row } from "../ui/Row.tsx"; | ||
import { Alert, Stack, Typography } from "@mui/material"; | ||
import { useMaybeUser } from "../hooks/useAuth.ts"; | ||
|
||
export const Home = () => { | ||
const user = useMaybeUser(); | ||
|
||
export function Home() { | ||
const maxWidth = 800; | ||
return ( | ||
<> | ||
<InfoBanner /> | ||
<Stack | ||
position="relative" | ||
sx={{ | ||
background: "linear-gradient(270deg, #21005D 0%, #9A82DB 0%, #E12358 90%)", | ||
}} | ||
justifyContent="center" | ||
alignItems="center" | ||
minHeight={500} | ||
height="calc(100vh - 230px)" | ||
> | ||
<Stack gap={3} sx={{ maxWidth }} my={5}> | ||
<Typography variant="displayMedium" fontWeight={700} color="white"> | ||
Trouver un contact, une enquête ou une unité enquêtée | ||
</Typography> | ||
</Stack> | ||
<Row | ||
position="relative" | ||
bottom={-30} | ||
justifyContent="space-between" | ||
width={1} | ||
maxWidth={maxWidth} | ||
> | ||
<HomeCard | ||
IconComponent={PersonOutlineIcon} | ||
content="Voir mes contacts" | ||
color="#D6326D" | ||
to="/search/contacts" | ||
/> | ||
<HomeCard | ||
IconComponent={BinocularIcon} | ||
content="Voir mes enquêtes" | ||
color="#C34A8E" | ||
to="/search/surveys" | ||
/> | ||
<HomeCard | ||
IconComponent={CorporateFareIcon} | ||
content="Voir mes unités enquêtées" | ||
color="#AC69B9" | ||
to="/search/survey-units" | ||
/> | ||
</Row> | ||
</Stack> | ||
</> | ||
<Stack gap={4} p={4}> | ||
<Typography variant="headlineLarge">{`Bonjour ${user?.preferred_username} !`}</Typography> | ||
<Alert severity="info"> | ||
MAINTENANCE : le CEI va tester la pose automatique de page de maintenance mardi 21 janvier et | ||
mercredi 1er février. | ||
</Alert> | ||
</Stack> | ||
); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.