+ {data?.map((item, index) => (
hoverHandler(index)}
+ onMouseLeave={() => hoverHandle2(index)}
>
-
-
-
- {item.title}
+ {/* -----back-img------ */}
+
+ {/* -----front-data------ */}
+
+
+
+
+ {item.title}
+
-
- {/* ----------- */}
-
-
-
+ {/* ----------- */}
+
+
+
+
+ {item.date}
+
+
- {item.date}
+ ساعت {item.time}
-
- ساعت {item.time}
+ {/* ----------- */}
+
+ {item.description}
- {/* ----------- */}
-
- {item.description}
-
-
- ))}
+ ))}
+
);
diff --git a/src/view/my-services/MyRegisters.js b/src/view/my-services/MyRegisters.js
new file mode 100644
index 0000000..5eb7b5b
--- /dev/null
+++ b/src/view/my-services/MyRegisters.js
@@ -0,0 +1,86 @@
+import Title from "./Title";
+
+let data = [
+ {
+ id: 1,
+ factorId: "ABC12345",
+ name: "کلاس حضوری فیزیک کوآنتوم",
+ date: "1401/3/3",
+ type: 1,
+ },
+ {
+ id: 2,
+ factorId: "ABC12345",
+ name: "کلاس حضوری فیزیک کوآنتوم",
+ date: "1401/3/3",
+ type: 2,
+ },
+ {
+ id: 3,
+ factorId: "ABC12345",
+ name: "کلاس حضوری فیزیک کوآنتوم",
+ date: "1401/3/3",
+ type: 3,
+ },
+ {
+ id: 4,
+ factorId: "ABC12345",
+ name: "کلاس حضوری فیزیک کوآنتوم",
+ date: "1401/3/3",
+ type: 4,
+ },
+ {
+ id: 5,
+ factorId: "ABC12345",
+ name: "کلاس حضوری فیزیک کوآنتوم",
+ date: "1401/3/3",
+ type: 1,
+ },
+];
+const MyRegisters = () => {
+ return (
+
+
+ {/* ----title-------- */}
+
+ {/* ----body-------- */}
+
+ {data.map((item, index) => (
+
+
+ {/* ------ */}
+
+
+ {item.name}
+
+ {/* -- */}
+
+ {item.date}
+
+ {/* -- */}
+
+ {item.type === 1
+ ? "شرکت در دوره"
+ : item.type === 2
+ ? "مکان برگزاری"
+ : item.type === 3
+ ? "دریافت قرارداد"
+ : "شرکت در آزمون"}
+
+
+
+ ))}
+
+
+
+ );
+};
+
+export default MyRegisters;
diff --git a/src/view/my-services/MyServices.js b/src/view/my-services/MyServices.js
index 6807a6c..bbb3bd8 100644
--- a/src/view/my-services/MyServices.js
+++ b/src/view/my-services/MyServices.js
@@ -1,14 +1,19 @@
import Exams from "./Exams";
+import MyRegisters from "./MyRegisters";
const MyServices=()=>{
return (
-
+
);
}
diff --git a/src/view/my-services/ResultExams.js b/src/view/my-services/ResultExams.js
index 4d7f16e..3f34c72 100644
--- a/src/view/my-services/ResultExams.js
+++ b/src/view/my-services/ResultExams.js
@@ -60,46 +60,48 @@ const ResultExams = () => {
];
return (
- {/* ----title-------- */}
-
-
-
- {/* ----body-------- */}
-
- {data?.map((item, index) => (
-
+
+ {/* ----title-------- */}
+
+
+
+ {/* ----body-------- */}
+
+ {data?.map((item, index) => (
- {/* --------- */}
-
+ key={index}
+ className="w-full h-14 rounded px-3 flex items-center justify-between mb-2 cursor-pointer"
+ style={{ backgroundColor: `${colorList[index % 5].bg}` }}
+ >
- {item?.title}
+ className="w-1 h-9 rounded-lg"
+ style={{ backgroundColor: `${colorList[index % 5].line}` }}
+ >
+ {/* --------- */}
+
+
+ {item?.title}
+
+
+ {item?.date}
+
-
- {item?.date}
+ {/* --------- */}
+
+ {item.status === 1 ? "نتیجه موقت" : "نتیجه نهایی"}
- {/* --------- */}
-
- {item.status === 1 ? "نتیجه موقت" : "نتیجه نهایی"}
-
-
- ))}
+ ))}
+
);