diff --git a/src/front/Assets/Icons/deposit-document.svg b/src/front/Assets/Icons/deposit-document.svg new file mode 100644 index 00000000..585626d1 --- /dev/null +++ b/src/front/Assets/Icons/deposit-document.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/src/front/Components/DesignSystem/DepositDocument/classes.module.scss b/src/front/Components/DesignSystem/DepositDocument/classes.module.scss new file mode 100644 index 00000000..cbe37af9 --- /dev/null +++ b/src/front/Components/DesignSystem/DepositDocument/classes.module.scss @@ -0,0 +1,39 @@ +.root { + padding: 24px; + background-color: white; + border: 1px dashed #e7e7e7; + .top-container { + display: flex; + align-items: center; + + .left { + margin-right: 28px; + } + + .separator { + background-color: #939393; + width: 1px; + align-self: stretch; + } + + .right { + margin-left: 18px; + + .title { + display: flex; + align-items: center; + gap: 8px; + } + } + } + + .bottom-container { + .add-button{ + .add-document{ + display: flex; + align-items: center; + gap: 14px; + } + } + } +} diff --git a/src/front/Components/DesignSystem/DepositDocument/index.tsx b/src/front/Components/DesignSystem/DepositDocument/index.tsx new file mode 100644 index 00000000..3bef2c68 --- /dev/null +++ b/src/front/Components/DesignSystem/DepositDocument/index.tsx @@ -0,0 +1,51 @@ +import DepositDocumentIcon from "@Assets/Icons/deposit-document.svg"; +import PlusIcon from "@Assets/Icons/plus.svg"; +import Image from "next/image"; +import React from "react"; + +import Button, { EButtonVariant } from "../Button"; +import Tooltip from "../ToolTip"; +import Typography, { ITypo, ITypoColor } from "../Typography"; +import classes from "./classes.module.scss"; + +type IProps = { + title: string; + dateAsked: Date; +}; +type IState = {}; + +export default class DepositDocument extends React.Component { + public override render(): JSX.Element { + return ( +
+
+
+ Deposit document +
+
+
+ + {this.props.title} + + + Demandé par le notaire le {this.formatDate(this.props.dateAsked)} + +
+
+
+ +
+
+ ); + } + + private addDocument() {} + + private formatDate(date: Date) { + return date.toLocaleDateString("fr-FR"); + } +} diff --git a/src/front/Components/DesignSystem/Typography/classes.module.scss b/src/front/Components/DesignSystem/Typography/classes.module.scss index 31a68d43..186404af 100644 --- a/src/front/Components/DesignSystem/Typography/classes.module.scss +++ b/src/front/Components/DesignSystem/Typography/classes.module.scss @@ -130,6 +130,10 @@ color: var(--purple-flash); } + &.pink-flash { + color: var(--pink-flash); + } + &.green-flash { color: var(--green-flash); } diff --git a/src/front/Components/DesignSystem/Typography/index.tsx b/src/front/Components/DesignSystem/Typography/index.tsx index bd212c9b..a1e72a60 100644 --- a/src/front/Components/DesignSystem/Typography/index.tsx +++ b/src/front/Components/DesignSystem/Typography/index.tsx @@ -35,6 +35,7 @@ export enum ITypoColor { GREY = "grey", BLACK = "black", PURPLE_FLASH = "purple-flash", + PINK_FLASH = "pink-flash", GREEN_FLASH = "green-flash", ORANGE_FLASH = "orange-flash", RED_FLASH = "red-flash", diff --git a/src/front/Components/Layouts/ClientDashboard/index.tsx b/src/front/Components/Layouts/ClientDashboard/index.tsx index 86abc8c3..cbfd4649 100644 --- a/src/front/Components/Layouts/ClientDashboard/index.tsx +++ b/src/front/Components/Layouts/ClientDashboard/index.tsx @@ -1,12 +1,13 @@ +import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; +import DepositDocument from "@Front/Components/DesignSystem/DepositDocument"; +import InputField from "@Front/Components/DesignSystem/Form/Elements/InputField"; +import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; import Typography, { ITypo } from "@Front/Components/DesignSystem/Typography"; import Base from "@Front/Components/Layouts/Base"; import DefaultTemplate from "@Front/Components/LayoutTemplates/DefaultTemplate"; import React from "react"; import classes from "./classes.module.scss"; -import Button, { EButtonVariant } from "@Front/Components/DesignSystem/Button"; -import Confirm from "@Front/Components/DesignSystem/Modal/Confirm"; -import InputField from "@Front/Components/DesignSystem/Form/Elements/InputField"; type IProps = {}; type IState = { @@ -30,12 +31,12 @@ export default class ClientDashboard extends Base { {this.renderHeader()}
-
-
-
-
-
-
+ + + + + +
Documents supplémentaires (facultatif) @@ -62,7 +63,7 @@ export default class ClientDashboard extends Base { Glissez / Déposez votre document dans la zone prévue à cet effet ou cliquez sur la zone puis sélectionnez le document correspondant. -
+
@@ -84,7 +85,7 @@ export default class ClientDashboard extends Base { - Votre notaire est dans l'attente de documents pour valider votre dossier. Voici la liste des documents.
Veuillez + Votre notaire est dans l'attente de documents pour valider votre dossier. Voici la liste des documents.Veuillez glisser / déposez chaque document dans la zone prévue à cet effet ou cliquez sur la zone puis sélectionnez le document correspondant. Si un des documents demandés ne vous concernent pas, veuillez contacter votre notaire à l’aide du bouton ci-dessus.