Skip to content

Commit 7f2bbde

Browse files
committed
feat: add Notification component to Mentor page for important alerts
1 parent 472a527 commit 7f2bbde

2 files changed

Lines changed: 66 additions & 1 deletion

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
const Notification = () => {
2+
return (
3+
<div
4+
className="mb-6 rounded-lg border border-yellow-300/60 bg-linear-to-r from-yellow-50 to-amber-50 px-5 py-4 shadow-xs"
5+
role="alert"
6+
>
7+
<div className="flex items-center gap-3">
8+
<div className="flex h-6 w-6 shrink-0 items-center justify-center rounded-full bg-yellow-500 text-white">
9+
<span className="text-sm font-bold">!</span>
10+
</div>
11+
<div className="flex-1">
12+
<p className="text-sm font-semibold text-red-600">Lưu ý quan trọng dành cho Mentor</p>
13+
<ul className="mt-2.5 space-y-2">
14+
<li className="flex items-center gap-2 text-sm text-gray-700">
15+
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-yellow-500"></span>
16+
<span>
17+
Hãy <span className="font-semibold">thường xuyên theo dõi và đôn đốc</span> các ứng viên
18+
trong nhóm của bạn{" "}
19+
<span className="font-semibold">hoàn thành tiến độ đề tài đúng hạn</span>
20+
</span>
21+
</li>
22+
23+
<li className="flex items-center gap-2 text-sm text-gray-700">
24+
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-yellow-500"></span>
25+
<span>
26+
Tham gia vào các buổi họp của nhóm để quan sát và đánh giá cách làm việc của ứng viên.
27+
</span>
28+
</li>
29+
30+
<li className="flex items-center gap-2 text-sm text-gray-700">
31+
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-yellow-500"></span>
32+
<span>
33+
Hướng dẫn nhóm <span className="font-semibold">bầu chọn Leader</span> - người{" "}
34+
<span className="font-semibold">đại diện chính thức</span> của nhóm. CLB sẽ làm việc
35+
trực tiếp với Leader
36+
</span>
37+
</li>
38+
39+
<li className="flex items-center gap-2 text-sm text-gray-700">
40+
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-yellow-500"></span>
41+
<span>
42+
<span className="font-semibold">Quyền hạn Leader:</span> Đặt tên nhóm, nộp đề tài, nộp
43+
báo cáo tiến độ, liên hệ với Ban tổ chức khi cần hỗ trợ.
44+
</span>
45+
</li>
46+
47+
<li className="flex items-center gap-2 text-sm text-gray-700">
48+
<span className="h-1.5 w-1.5 shrink-0 rounded-full bg-yellow-500"></span>
49+
<span>
50+
<span className="font-semibold">Động viên tinh thần</span> các ứng viên và{" "}
51+
<span className="font-semibold">đánh giá</span> một cách công tâm, khách quan để đầu vào
52+
của CLB thật chất lượng.
53+
</span>
54+
</li>
55+
</ul>
56+
</div>
57+
</div>
58+
</div>
59+
);
60+
};
61+
62+
export default Notification;

frontend/src/pages/Mentor/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import type { TeamType } from "~/types/team.types";
55
import TeamApi from "~/api-requests/team.requests";
66
import useAuth from "~/hooks/useAuth";
77
import Timeline from "../Candidate/Timeline";
8+
import Notification from "./Notification";
89

910
const MentorPage = () => {
1011
const { user } = useAuth();
@@ -22,7 +23,9 @@ const MentorPage = () => {
2223
<section className="mb-6 sm:mb-8">
2324
<WelcomePartition />
2425
</section>
25-
26+
<section>
27+
<Notification />
28+
</section>
2629
<section className="col-span-1 space-y-10 lg:col-span-8" id="members">
2730
{teams && teams.result.length === 0 && (
2831
<p className="text-center text-lg font-medium">

0 commit comments

Comments
 (0)