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',