Skip to content

Commit

Permalink
create final page
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoussand committed Jun 30, 2023
1 parent 9a1f1e7 commit f16d40a
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 0 deletions.
4 changes: 4 additions & 0 deletions public/product_assets/images/congrats.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions src/components/ui/PageTextTemplate/PageTextTemplate.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import { Container } from "@mui/material";
import Image from "next/image";

export interface IPageTextTemplate {
content: JSX.Element;
}

const PageTextTemplate: React.FC<IPageTextTemplate> = ({ content }) => {
return (
<Container
sx={{
display: "flex",
justifyContent: "center",
height: "100vh",
width: "100vh",
}}
>
<Container
sx={{
height: "140vh",
width: "140vh",
backgroundColor: "primary.main",
opacity: "5%",
borderRadius: "50%",
marginTop: "-20vh",
position: "fixed",
zIndex: "-1",
}}
/>
<Container
sx={{
display: "flex",
justifyContent: "center",
flexDirection: "column",
marginTop: "-15vh",
}}
>
<Image
src={require("/public/icons/logo.svg")}
alt=""
role="presentation"
width={160}
height={55}
/>
{content}
</Container>
</Container>
);
};

export default PageTextTemplate;
50 changes: 50 additions & 0 deletions src/pages/final.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { Typography } from "@mui/material";
import { Container } from "@mui/system";
import type { NextPage } from "next";
import Image from "next/image";

import AppLink from "src/components/ui/Buttons/AppLink";
import PageTextTemplate from "src/components/ui/PageTextTemplate/PageTextTemplate";

const FinalPage: NextPage = () => {
const content = (
<Container
sx={{
textAlign: "center",
marginTop: "15vh",
justifyContent: "center",
display: "flex",
flexDirection: "column",
}}
>
<Image
src={require("public/product_assets/images/congrats.svg")}
alt=""
/>
<Typography
fontSize={60}
sx={{
color: "primary.main",
marginTop: "50px",
}}
>
Félicitations,
</Typography>
<Typography
style={{
fontFamily: "fontFamily",
fontSize: "30px",
color: "primary.main",
marginBottom: "5vh",
}}
>
tu as réussi à commander les ingrédients pour réaliser ta tarte aux
pommes
</Typography>
<AppLink text="Retenter l'expérience ?" link="/" />
</Container>
);
return <PageTextTemplate content={content} />;
};

export default FinalPage;
3 changes: 3 additions & 0 deletions src/simulators/initilizations/ColorFiltersDefinition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ const ColorFiltersDefinition = () => (
version="1.1"
id="wds-colorBlindnessFilter"
height="0"
style={{
position: "absolute",
}}
>
<defs>
<filter id={COLOR_FILTER_ID.PROTANOPIA}>
Expand Down

0 comments on commit f16d40a

Please sign in to comment.