From 1e1bdceb2c10aa10c1844903581d110129a470dd Mon Sep 17 00:00:00 2001 From: kuwsh1n Date: Sun, 21 Apr 2024 10:37:18 +0300 Subject: [PATCH] added link video parse --- .../styles/generatingFormFields.module.scss | 20 +---- src/components/AnswerModal.jsx | 2 +- src/components/GeneratingFormFields.jsx | 25 ++++--- src/components/MarkDown.jsx | 1 + src/hooks/sundry/parseLinkVideo.js | 75 +++++++++++++++++++ src/pages/NewForm.jsx | 4 +- 6 files changed, 100 insertions(+), 27 deletions(-) create mode 100644 src/hooks/sundry/parseLinkVideo.js diff --git a/src/assets/styles/generatingFormFields.module.scss b/src/assets/styles/generatingFormFields.module.scss index 16d4e50..500b0b0 100644 --- a/src/assets/styles/generatingFormFields.module.scss +++ b/src/assets/styles/generatingFormFields.module.scss @@ -9,14 +9,6 @@ font-size: 15px; font-family: "Montserrat", sans-serif; width: 100%; - // overflow-x: auto; - // &::-webkit-scrollbar { - // height: 7px; - // border: 1px solid rgb(200, 200, 200); - // } - // &::-webkit-scrollbar-thumb { - // background-color: rgb(200, 200, 200); - // } } &__comment { font-size: 11px; @@ -24,19 +16,15 @@ font-style: italic; color: rgb(200, 200, 200); width: 100%; - // overflow-x: auto; - // &::-webkit-scrollbar { - // height: 7px; - // border: 1px solid rgb(200, 200, 200); - // } - // &::-webkit-scrollbar-thumb { - // background-color: rgb(200, 200, 200); - // } } &__video { iframe { } + &__error { + font-size: 12px; + color: rgb(220, 105, 105); + } } &::-webkit-scrollbar { height: 7px; diff --git a/src/components/AnswerModal.jsx b/src/components/AnswerModal.jsx index 118cb8b..94a86b2 100644 --- a/src/components/AnswerModal.jsx +++ b/src/components/AnswerModal.jsx @@ -29,7 +29,7 @@ const AnswerModal = ({ }) => { return ( -