From 42f7b255f806c1d6d2a21b8c686e0daa509becff Mon Sep 17 00:00:00 2001 From: Pkpedram Date: Mon, 21 Feb 2022 16:59:38 +0330 Subject: [PATCH] Submit Product And Grades Made --- src/view/addProduct/Sidebar/index.js | 19 ++++++++++++-- src/view/addProduct/components/grade.js | 35 +++++++++++++++++++++++++ src/view/addProduct/index.js | 2 +- tailwind.config.js | 1 + 4 files changed, 54 insertions(+), 3 deletions(-) create mode 100644 src/view/addProduct/components/grade.js diff --git a/src/view/addProduct/Sidebar/index.js b/src/view/addProduct/Sidebar/index.js index 533a32d..c64e8fa 100644 --- a/src/view/addProduct/Sidebar/index.js +++ b/src/view/addProduct/Sidebar/index.js @@ -1,10 +1,25 @@ import React from "react"; +import Grades from "../components/grade"; const SideAP = () => { - return( -
+ return ( +
+
+

+ انتشار محصول +

+
+ + +
+
+
) } diff --git a/src/view/addProduct/components/grade.js b/src/view/addProduct/components/grade.js new file mode 100644 index 0000000..bc865d5 --- /dev/null +++ b/src/view/addProduct/components/grade.js @@ -0,0 +1,35 @@ +import React, {useState, useEffect} from "react"; +import Checkbox from "../../../components/Checkbox"; + +const Grades = () => { + const inputs = [ + 'اول', + 'دوم', + 'سوم', + 'هفتم', + 'هشتم', + 'نهم', + ] + return( +
+

+ پایه تحصیلی +

+
+ { + inputs.map( + (item, index) => ( +
+ +

{item}

+
+ ) + ) + } +
+ +
+ ) +} + +export default Grades; \ No newline at end of file diff --git a/src/view/addProduct/index.js b/src/view/addProduct/index.js index bca9f26..15f943e 100644 --- a/src/view/addProduct/index.js +++ b/src/view/addProduct/index.js @@ -4,7 +4,7 @@ import SideAP from "./Sidebar"; const AddProduct = () => { return( -
+
diff --git a/tailwind.config.js b/tailwind.config.js index f13ab61..88f8680 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -45,6 +45,7 @@ module.exports = { blueFF : '#f2f9ff', blue65 : '#65a9ff', blueE3 : '#4c7fe3', + blueED : '#4690ed', blueDF : '#14b5df', blue52 : '#132c52', blue3A : '#00253a',