-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
91 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
import { Typography } from "@mui/material"; | ||
import { Container } from "@mui/system"; | ||
import Image from "next/image"; | ||
import { useTranslation } from "next-i18next"; | ||
|
||
const SuccessComponent = ( | ||
<Container | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
textAlign: "center", | ||
rowGap: "1em", | ||
}} | ||
> | ||
<Image src={require("public/icons/congrats.svg")} alt="" /> | ||
<Container sx={{ width: "700px", textAlign: "center" }}> | ||
<Typography fontSize={60} color="primary.main"> | ||
Félicitations, | ||
</Typography> | ||
<Typography fontSize={20} fontWeight={700} textAlign="center"> | ||
tu as réussi à commander les ingrédients pour réaliser ta tarte aux | ||
pommes | ||
</Typography> | ||
const SuccessComponent = () => { | ||
const { t } = useTranslation(); | ||
return ( | ||
<Container | ||
sx={{ | ||
display: "flex", | ||
flexDirection: "column", | ||
justifyContent: "center", | ||
textAlign: "center", | ||
rowGap: "1em", | ||
}} | ||
> | ||
<Image src={require("public/icons/congrats.svg")} alt="" /> | ||
<Container sx={{ width: "700px", textAlign: "center" }}> | ||
<Typography fontSize={60} color="primary.main"> | ||
{t("final-page.success.title")} | ||
</Typography> | ||
<Typography fontSize={20} fontWeight={700} textAlign="center"> | ||
{t("final-page.success.subtitle")} | ||
</Typography> | ||
</Container> | ||
</Container> | ||
</Container> | ||
); | ||
); | ||
}; | ||
|
||
export default SuccessComponent; |
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