diff --git a/src/components/AddAnotherCardBtn/AddAnotherCardBtn.jsx b/src/components/AddAnotherCardBtn/AddAnotherCardBtn.jsx index 2d3f4e7..0779e89 100644 --- a/src/components/AddAnotherCardBtn/AddAnotherCardBtn.jsx +++ b/src/components/AddAnotherCardBtn/AddAnotherCardBtn.jsx @@ -1,17 +1,17 @@ import css from "./AddAnotherCardBtn.module.css"; import svg from "../../img/icons.svg"; import { useState } from "react"; -// import { CreateCard } from "../CreateCardModal/CreateCardModal.jsx" +import { CreateCard } from "../CreateCardModal/CreateCardModal.jsx" export const AddAnotherCardBtn = () => { - const [isOpen, setIsOpen] = useState(false) + const [createCardModal, setCreateCardModal] = useState(false) const openModal = () => { - setIsOpen(true) + setCreateCardModal(true) } const closeModal = () => { - setIsOpen(false) + setCreateCardModal(false) } return ( @@ -24,8 +24,8 @@ export const AddAnotherCardBtn = () => { Add another card - {/* {isOpen && - } */} + {createCardModal && + } ); }; diff --git a/src/components/AddColumnBtn/AddColumnBtn.jsx b/src/components/AddColumnBtn/AddColumnBtn.jsx index 091d88b..f3789ff 100644 --- a/src/components/AddColumnBtn/AddColumnBtn.jsx +++ b/src/components/AddColumnBtn/AddColumnBtn.jsx @@ -1,4 +1,4 @@ -// import { CreateColumn } from "../CreateColumnModal/CreateColumnModal"; +import { CreateColumn } from "../CreateColumnModal/CreateColumnModal"; import css from "./AddColumnBtn.module.css"; import { useState } from "react"; @@ -16,9 +16,9 @@ export const AddColumnBtn = () => { return (
- {/* {isOpen && ( + {isOpen && ( - )} */} + )}
); }; \ No newline at end of file diff --git a/src/components/CreateCardModal/CreateCardModal.jsx b/src/components/CreateCardModal/CreateCardModal.jsx index 88c1637..c1fadef 100644 --- a/src/components/CreateCardModal/CreateCardModal.jsx +++ b/src/components/CreateCardModal/CreateCardModal.jsx @@ -1,67 +1,67 @@ -// import Modal from "react-modal"; -// import css from "./CreateCardModal.module.css"; -// import * as Yup from 'yup'; -// import { Form, Formik, Field } from "formik"; -// import svg from "../../img/icons.svg"; +import Modal from "react-modal"; +import css from "./CreateCardModal.module.css"; +import * as Yup from 'yup'; +import { Form, Formik, Field } from "formik"; +import svg from "../../img/icons.svg"; -// Modal.setAppElement('#root'); +Modal.setAppElement('#root'); -// export const CreateCard = ({ isOpen, isClose }) => { -// const columnModalValidation = Yup.object().shape({ -// columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') -// }); +export const CreateCard = ({ isOpen, isClose }) => { + const columnModalValidation = Yup.object().shape({ + columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') + }); -// return ( -// <> -// -// -//
-//

Add card

-// {}} -// > -//
-// -// -// + return ( + <> + + +
+

Add card

+ {}} + > + + + + -// -// -// -//
+ + +
+
-//
-// -// ) -// } \ No newline at end of file + + +) +} \ No newline at end of file diff --git a/src/components/CreateCardModal/CreateCardModal.module.css b/src/components/CreateCardModal/CreateCardModal.module.css index f6075b1..588bad3 100644 --- a/src/components/CreateCardModal/CreateCardModal.module.css +++ b/src/components/CreateCardModal/CreateCardModal.module.css @@ -1,7 +1,8 @@ .createCardModalRadioContainer { display: flex; - gap: 10px; + gap: 8px; width: 80px; + margin-top: 5px; } .createCardModalRadio1, @@ -147,6 +148,17 @@ opacity: 100%; } +.createCardModalLabel { + margin-bottom: 14px; + font-family: 'Poppins', sans-serif; + font-size: 12px; + font-weight: 400; + line-height: 18px; + letter-spacing: -0.02em; + text-align: left; + color: #FFFFFF80; +} + .createCardModalRadio1 { margin-right: 5px; color: #8FA1D0; @@ -182,4 +194,19 @@ .createCardModalAddIcon { stroke: white; -} \ No newline at end of file +} + +@media screen and (min-width: 768px) { + .createCardModal { + width: 350px; + } + + .createCardModalInput1, + .createCardModalInput2 { + width: 302px; + } + + .createCardModalSubmit { + width: 302px; + } + } \ No newline at end of file diff --git a/src/components/CreateColumnModal/CreateColumnModal.jsx b/src/components/CreateColumnModal/CreateColumnModal.jsx index 9ad94b3..fa432c2 100644 --- a/src/components/CreateColumnModal/CreateColumnModal.jsx +++ b/src/components/CreateColumnModal/CreateColumnModal.jsx @@ -1,46 +1,46 @@ -// import Modal from "react-modal"; -// import css from "./CreateColumnModal.module.css"; -// import * as Yup from 'yup'; -// import { Form, Formik, Field } from "formik"; -// import svg from "../../img/icons.svg"; +import Modal from "react-modal"; +import css from "./CreateColumnModal.module.css"; +import * as Yup from 'yup'; +import { Form, Formik, Field } from "formik"; +import svg from "../../img/icons.svg"; -// Modal.setAppElement('#root'); +Modal.setAppElement('#root'); -// export const CreateColumn = ({ isOpen, isClose }) => { -// const columnModalValidation = Yup.object().shape({ -// columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') -// }); +export const CreateColumn = ({ isOpen, isClose }) => { + const columnModalValidation = Yup.object().shape({ + columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') + }); -// return ( -// <> -// isClose()} className={css.createColumnModal} overlayClassName={css.createColumnModalOverlay}> -// -//
-//

Add column

-// {}} -// > -//
-// -// -// -//
-//
-//
-// -// ) -// } \ No newline at end of file + return ( + <> + isClose()} className={css.createColumnModal} overlayClassName={css.createColumnModalOverlay}> + +
+

Add column

+ {}} + > +
+ + + +
+
+
+ +) +} \ No newline at end of file diff --git a/src/components/CreateColumnModal/CreateColumnModal.module.css b/src/components/CreateColumnModal/CreateColumnModal.module.css index 0378e8c..91ddc6a 100644 --- a/src/components/CreateColumnModal/CreateColumnModal.module.css +++ b/src/components/CreateColumnModal/CreateColumnModal.module.css @@ -103,4 +103,18 @@ .createColumnModalAddIcon { stroke: white; -} \ No newline at end of file +} + +@media screen and (min-width: 768px) { + .createColumnModal { + width: 350px; + } + + .createColumnModalInput { + width: 302px; + } + + .createColumnModalSubmit { + width: 302px; + } + } \ No newline at end of file diff --git a/src/components/EditCardModal/EditCardModal.jsx b/src/components/EditCardModal/EditCardModal.jsx index f4db18e..2e67a88 100644 --- a/src/components/EditCardModal/EditCardModal.jsx +++ b/src/components/EditCardModal/EditCardModal.jsx @@ -1,67 +1,63 @@ -// import Modal from "react-modal"; -// import css from "./EditCardModal.module.css"; -// import * as Yup from 'yup'; -// import { Form, Formik, Field } from "formik"; -// import svg from "../../img/icons.svg"; +import Modal from "react-modal"; +import css from "./EditCardModal.module.css"; +import * as Yup from 'yup'; +import { Form, Formik, Field } from "formik"; +import svg from "../../img/icons.svg"; -// Modal.setAppElement('#root'); +Modal.setAppElement('#root'); -// export const EditCard = ({ isOpen, isClose }) => { -// const columnModalValidation = Yup.object().shape({ -// columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') -// }); +export const EditCard = ({ isOpen, isClose }) => { + const columnModalValidation = Yup.object().shape({ + columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') + }); -// return ( -// <> -// -// -//
-//

Edit card

-// {}} -// > -//
-// -// -// + return ( + <> + + +
+

Edit card

+ {}} + > + + + + -// -// -// -//
+ + +
+
-//
-// -// ) -// } \ No newline at end of file + + +) +} \ No newline at end of file diff --git a/src/components/EditCardModal/EditCardModal.module.css b/src/components/EditCardModal/EditCardModal.module.css index 37f3891..85cb08f 100644 --- a/src/components/EditCardModal/EditCardModal.module.css +++ b/src/components/EditCardModal/EditCardModal.module.css @@ -1,10 +1,126 @@ .editCardModalRadioContainer { display: flex; - gap: 10px; + gap: 8px; width: 80px; + margin-top: 5px; } -.editCardModalRadio1, +.editCardModalRadioContainerRadio { + height: 14px; + width: 14px; + margin: 0; +} + +/* input[type=radio] { + --s: 14px; + --c: #009688; + + height: var(--s); + aspect-ratio: 1; + border: calc(var(--s)/8) solid #939393; + padding: calc(var(--s)/8); + background: + radial-gradient(farthest-side,var(--c) 94%,#0000) + 50%/0 0 no-repeat content-box; + border-radius: 50%; + outline-offset: calc(var(--s)/10); + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + cursor: pointer; + font-size: inherit; + transition: .3s; + margin: 0; + } */ + + input[type=radio] { + --s: 14px; /* control the size */ + --c: #009688; /* the active color */ + + height: var(--s); + aspect-ratio: 1; + border: 2px solid #939393; + padding: 1px; + background: + radial-gradient(farthest-side, var(--c) 100%,#0000) + 50%/0 0 no-repeat content-box; + border-radius: 50%; + outline-offset: 2px; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + cursor: pointer; + font-size: inherit; + transition: .3s; + } + + input[type=radio]:checked { + border-color: var(--c); + background-size: 100% 100%; + } + + @media print { + input[type=radio] { + -webkit-appearance: auto; + -moz-appearance: auto; + appearance: auto; + background: none; + } + } + +/* .editCardModalRadio1 { + color: #8FA1D0; + border: 2px solid #8FA1D0; + background: + radial-gradient(farthest-side,var(--c) 94%,#8FA1D0) + 50%/0 0 no-repeat content-box; +} + +.editCardModalRadio2 { + color: #E09CB5; + border: 2px solid #E09CB5; + background: + radial-gradient(farthest-side,var(--c) 94%,#E09CB5) + 50%/0 0 no-repeat content-box; +} + +.editCardModalRadio3 { + color: #BEDBB0; + border: 2px solid #BEDBB0; + background: + radial-gradient(farthest-side,var(--c) 94%,#BEDBB0) + 50%/0 0 no-repeat content-box; +} + +.editCardModalRadio4 { + color: #FFFFFF4D; + border: 2px solid #FFFFFF4D; + background: + radial-gradient(farthest-side,var(--c) 94%,#FFFFFF4D) + 50%/0 0 no-repeat content-box; +} + +.editCardModalRadio1:checked { + border-color: #8FA1D0; + background-size: 100% 100%; +} + +.editCardModalRadio2:checked { + border-color: #E09CB5; + background-size: 100% 100%; +} + +.editCardModalRadio3:checked { + border-color: #BEDBB0; + background-size: 100% 100%; +} + +.editCardModalRadio4:checked { + border-color: #FFFFFF4D; + background-size: 100% 100%; +} */ + +/* .editCardModalRadio1, .editCardModalRadio2, .editCardModalRadio3, .editCardModalRadio4 { @@ -44,17 +160,21 @@ } .editCardModalRadio1:focus + label::before { - border: 1px solid #8FA1D0; + border: 2px solid #8FA1D0; + padding: 2px; } .editCardModalRadio2:focus + label::before { - border: 1px solid #E09CB5; + border: 2px solid #E09CB5; + padding: 2px; } .editCardModalRadio3:focus + label::before { - border: 1px solid #BEDBB0; + border: 2px solid #BEDBB0; + padding: 2px; } .editCardModalRadio4:focus + label::before { - border: 1px solid #FFFFFF4D; -} + border: 2px solid #FFFFFF4D; + padding: 2px; +} */ .editCardModalCloseBtn { position: fixed; @@ -147,9 +267,15 @@ opacity: 100%; } -.editCardModalRadio1 { - margin-right: 5px; - color: #8FA1D0; +.editCardModalLabel { + margin-bottom: 14px; + font-family: 'Poppins', sans-serif; + font-size: 12px; + font-weight: 400; + line-height: 18px; + letter-spacing: -0.02em; + text-align: left; + color: #FFFFFF80; } .editCardModalSubmit { diff --git a/src/components/EditColumnModal/EditColumnModal.jsx b/src/components/EditColumnModal/EditColumnModal.jsx index add98a5..25033d3 100644 --- a/src/components/EditColumnModal/EditColumnModal.jsx +++ b/src/components/EditColumnModal/EditColumnModal.jsx @@ -1,46 +1,46 @@ -// import Modal from "react-modal"; -// import css from "./EditColumnModal.module.css"; -// import * as Yup from 'yup'; -// import { Form, Formik, Field } from "formik"; -// import svg from "../../img/icons.svg"; +import Modal from "react-modal"; +import css from "./EditColumnModal.module.css"; +import * as Yup from 'yup'; +import { Form, Formik, Field } from "formik"; +import svg from "../../img/icons.svg"; -// Modal.setAppElement('#root'); +Modal.setAppElement('#root'); -// export const EditColumn = ({ isOpen, isClose, title }) => { -// const columnModalValidation = Yup.object().shape({ -// columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') -// }); +export const EditColumn = ({ isOpen, isClose, title }) => { + const columnModalValidation = Yup.object().shape({ + columnname: Yup.string().min(3, 'Too short!').max(20, 'Too long!').required('Required!') + }); -// return ( -// <> -// isClose()} className={css.editColumnModal} overlayClassName={css.editColumnModalOverlay}> -// -//
-//

Edit column

-// {}} -// > -//
-// -// -// -//
-//
-//
-// -// ) -// } \ No newline at end of file + return ( + <> + isClose()} className={css.editColumnModal} overlayClassName={css.editColumnModalOverlay}> + +
+

Edit column

+ {}} + > +
+ + + +
+
+
+ +) +} \ No newline at end of file diff --git a/src/components/EditColumnModal/EditColumnModal.module.css b/src/components/EditColumnModal/EditColumnModal.module.css index e32431a..21e8d04 100644 --- a/src/components/EditColumnModal/EditColumnModal.module.css +++ b/src/components/EditColumnModal/EditColumnModal.module.css @@ -89,22 +89,6 @@ cursor: pointer; } -.editColumnModalSubmitAddBtn { - display: flex; - align-items: center; - justify-content: center; - padding: 8px 16px; - font-size: 14px; - font-weight: 500; - background-color: #bedbb0; - color: rgba(22, 22, 22, 1); - border: none; - width: 287px; - height: 49px; - border-radius: 8px; - cursor: pointer; -} - .editColumnModalSpan { width: 28px; height: 28px; @@ -119,4 +103,18 @@ .editColumnModalAddIcon { stroke: white; -} \ No newline at end of file +} + +@media screen and (min-width: 768px) { + .editColumnModal { + width: 350px; + } + + .editColumnModalInput { + width: 302px; + } + + .editColumnModalSubmit { + width: 302px; + } + } \ No newline at end of file diff --git a/src/components/MainDashboard/MainDashboard.jsx b/src/components/MainDashboard/MainDashboard.jsx index f4c5b5a..9966585 100644 --- a/src/components/MainDashboard/MainDashboard.jsx +++ b/src/components/MainDashboard/MainDashboard.jsx @@ -7,7 +7,7 @@ export const MainDashboard = () => { return (
{/* */} - {/* */} +
); diff --git a/src/components/TaskCard/TaskCard.jsx b/src/components/TaskCard/TaskCard.jsx index ef3e4d8..80d0ab9 100644 --- a/src/components/TaskCard/TaskCard.jsx +++ b/src/components/TaskCard/TaskCard.jsx @@ -1,17 +1,17 @@ import css from "./TaskCard.module.css" import svg from "../../img/icons.svg"; -// import { EditCard } from "../EditCardModal/EditCardModal"; +import { EditCard } from "../EditCardModal/EditCardModal"; import { useState } from "react"; export const Card = () => { - const [isOpen, setIsOpen] = useState(false); + const [editCardModal, setEditCardModal] = useState(false); const openModal = () => { - setIsOpen(true) + setEditCardModal(true) } const closeModal = () => { - setIsOpen(false) + setEditCardModal(false) } return ( @@ -53,7 +53,7 @@ export const Card = () => { - {/* {isOpen && - } */} + {taskColumnModal && + } ); };