From f16d40a02a9941ae7356af0799f5d885614f1dd2 Mon Sep 17 00:00:00 2001 From: fsoussand Date: Wed, 28 Jun 2023 16:37:19 +0200 Subject: [PATCH] create final page --- public/product_assets/images/congrats.svg | 4 ++ .../ui/PageTextTemplate/PageTextTemplate.tsx | 51 +++++++++++++++++++ src/pages/final.tsx | 50 ++++++++++++++++++ .../initilizations/ColorFiltersDefinition.tsx | 3 ++ 4 files changed, 108 insertions(+) create mode 100644 public/product_assets/images/congrats.svg create mode 100644 src/components/ui/PageTextTemplate/PageTextTemplate.tsx create mode 100644 src/pages/final.tsx diff --git a/public/product_assets/images/congrats.svg b/public/product_assets/images/congrats.svg new file mode 100644 index 0000000..bde77e1 --- /dev/null +++ b/public/product_assets/images/congrats.svg @@ -0,0 +1,4 @@ + + + + diff --git a/src/components/ui/PageTextTemplate/PageTextTemplate.tsx b/src/components/ui/PageTextTemplate/PageTextTemplate.tsx new file mode 100644 index 0000000..da8405c --- /dev/null +++ b/src/components/ui/PageTextTemplate/PageTextTemplate.tsx @@ -0,0 +1,51 @@ +import { Container } from "@mui/material"; +import Image from "next/image"; + +export interface IPageTextTemplate { + content: JSX.Element; +} + +const PageTextTemplate: React.FC = ({ content }) => { + return ( + + + + + {content} + + + ); +}; + +export default PageTextTemplate; diff --git a/src/pages/final.tsx b/src/pages/final.tsx new file mode 100644 index 0000000..48a2a39 --- /dev/null +++ b/src/pages/final.tsx @@ -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 = ( + + + + Félicitations, + + + tu as réussi à commander les ingrédients pour réaliser ta tarte aux + pommes + + + + ); + return ; +}; + +export default FinalPage; diff --git a/src/simulators/initilizations/ColorFiltersDefinition.tsx b/src/simulators/initilizations/ColorFiltersDefinition.tsx index 27f801a..bdc9e76 100644 --- a/src/simulators/initilizations/ColorFiltersDefinition.tsx +++ b/src/simulators/initilizations/ColorFiltersDefinition.tsx @@ -6,6 +6,9 @@ const ColorFiltersDefinition = () => ( version="1.1" id="wds-colorBlindnessFilter" height="0" + style={{ + position: "absolute", + }} >