From 4e1ab987cabc5287c8d544e4791ec7eb4f717ac3 Mon Sep 17 00:00:00 2001 From: kuwsh1n Date: Thu, 29 Feb 2024 14:43:27 +0300 Subject: [PATCH] create files tag answer --- .../components/previewModal.module.scss | 24 ++++++++++++ .../typeAnswer/dropDownList.module.scss | 0 .../typeAnswer/inputDate.module.scss | 0 .../typeAnswer/inputFile.module.scss | 0 .../typeAnswer/inputMultiple.module.scss | 0 .../typeAnswer/inputRadio.module.scss | 0 .../typeAnswer/inputText.module.scss | 14 +++++++ .../typeAnswer/textArea.module.scss | 0 .../components/typeAnswer/yesNo.module.scss | 0 src/components/AnswerModal.jsx | 6 +-- src/components/PreviewModal.jsx | 19 ++++++++-- src/components/typeAnswer/DropDownList.jsx | 0 src/components/typeAnswer/InputDate.jsx | 0 src/components/typeAnswer/InputFile.jsx | 0 .../typeAnswer/InputMultipleRadio.jsx | 0 src/components/typeAnswer/InputRadio.jsx | 0 src/components/typeAnswer/InputText.jsx | 12 ++++++ src/components/typeAnswer/TextArea.jsx | 0 src/components/typeAnswer/YesNo.jsx | 0 src/pages/NewForm.jsx | 37 ++++++++++--------- 20 files changed, 87 insertions(+), 25 deletions(-) create mode 100644 src/assets/styles/components/typeAnswer/dropDownList.module.scss create mode 100644 src/assets/styles/components/typeAnswer/inputDate.module.scss create mode 100644 src/assets/styles/components/typeAnswer/inputFile.module.scss create mode 100644 src/assets/styles/components/typeAnswer/inputMultiple.module.scss create mode 100644 src/assets/styles/components/typeAnswer/inputRadio.module.scss create mode 100644 src/assets/styles/components/typeAnswer/inputText.module.scss create mode 100644 src/assets/styles/components/typeAnswer/textArea.module.scss create mode 100644 src/assets/styles/components/typeAnswer/yesNo.module.scss create mode 100644 src/components/typeAnswer/DropDownList.jsx create mode 100644 src/components/typeAnswer/InputDate.jsx create mode 100644 src/components/typeAnswer/InputFile.jsx create mode 100644 src/components/typeAnswer/InputMultipleRadio.jsx create mode 100644 src/components/typeAnswer/InputRadio.jsx create mode 100644 src/components/typeAnswer/InputText.jsx create mode 100644 src/components/typeAnswer/TextArea.jsx create mode 100644 src/components/typeAnswer/YesNo.jsx diff --git a/src/assets/styles/components/previewModal.module.scss b/src/assets/styles/components/previewModal.module.scss index a276bc4..1e58204 100644 --- a/src/assets/styles/components/previewModal.module.scss +++ b/src/assets/styles/components/previewModal.module.scss @@ -1,5 +1,7 @@ .myModal { + &__dialog { + &__content { // padding: 2%; &__header { @@ -15,6 +17,28 @@ font-size: 17px; } } + &__body { + padding: 0; + &__item { + padding: 10px 20px; + border-top: 1px solid rgb(200, 200, 200); + &__question { + &__text { + font-size: 15px; + font-family: "Montserrat", sans-serif; + } + &__comment { + font-size: 11px; + font-family: "Montserrat", sans-serif; + font-style: italic; + color: rgb(200, 200, 200); + } + } + &__answer { + + } + } + } } } } \ No newline at end of file diff --git a/src/assets/styles/components/typeAnswer/dropDownList.module.scss b/src/assets/styles/components/typeAnswer/dropDownList.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/styles/components/typeAnswer/inputDate.module.scss b/src/assets/styles/components/typeAnswer/inputDate.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/styles/components/typeAnswer/inputFile.module.scss b/src/assets/styles/components/typeAnswer/inputFile.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/styles/components/typeAnswer/inputMultiple.module.scss b/src/assets/styles/components/typeAnswer/inputMultiple.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/styles/components/typeAnswer/inputRadio.module.scss b/src/assets/styles/components/typeAnswer/inputRadio.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/styles/components/typeAnswer/inputText.module.scss b/src/assets/styles/components/typeAnswer/inputText.module.scss new file mode 100644 index 0000000..c37fe7b --- /dev/null +++ b/src/assets/styles/components/typeAnswer/inputText.module.scss @@ -0,0 +1,14 @@ +.main { + width: 100%; + input { + width: 100%; + font-size: 15px; + font-family: "Montserrat", sans-serif; + border: 1px solid rgb(200, 200, 200); + color: rgb(50, 50, 50); + padding: 1%; + &::placeholder { + color: rgb(200, 200, 200); + } + } +} \ No newline at end of file diff --git a/src/assets/styles/components/typeAnswer/textArea.module.scss b/src/assets/styles/components/typeAnswer/textArea.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/assets/styles/components/typeAnswer/yesNo.module.scss b/src/assets/styles/components/typeAnswer/yesNo.module.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/components/AnswerModal.jsx b/src/components/AnswerModal.jsx index 4b77205..4ab7422 100644 --- a/src/components/AnswerModal.jsx +++ b/src/components/AnswerModal.jsx @@ -8,7 +8,7 @@ const AnswerModal = ({ updateAnswerByForm, stateModal, saveStates, - answer, + question, file, listTypeAnswer, optionAnswer, @@ -20,7 +20,7 @@ const AnswerModal = ({ mandatory, setMandatory, addOptionAnswer, - setAnswer, + setQuestion, setComment, setDatetime, setCurrentTypeAnswer, @@ -43,7 +43,7 @@ const AnswerModal = ({