File tree 2 files changed +168
-0
lines changed
2 files changed +168
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { IProjectDashboardInfo } from "../util/types";
5
5
import { ROUTER_PATHS } from "../util/constants" ;
6
6
import { Link } from "react-router-dom" ;
7
7
import { useAuthContext } from "../util/auth" ;
8
+ import "../styles/MentorProjectCard.css" ;
8
9
9
10
function MentorProjectCard ( {
10
11
id,
Original file line number Diff line number Diff line change
1
+ .mentor-project-card {
2
+ background : # 020f2b ;
3
+ border-radius : 10px ;
4
+ box-shadow : 0 4px 12px rgba (0 , 0 , 0 , 0.1 );
5
+ overflow : hidden;
6
+ transition :
7
+ transform 0.3s ,
8
+ box-shadow 0.3s ;
9
+ padding : 20px ;
10
+ margin : 15px ;
11
+ max-width : 380px ;
12
+ width : 100% ;
13
+ }
14
+
15
+ .mentor-project-card : hover {
16
+ transform : translateY (-5px );
17
+ box-shadow : 0 6px 20px rgba (0 , 0 , 0 , 0.15 );
18
+ }
19
+
20
+ .project-header {
21
+ display : flex;
22
+ justify-content : space-around;
23
+ align-items : center;
24
+ margin-bottom : 15px ;
25
+ }
26
+
27
+ .project-title {
28
+ font-size : 1.25rem ;
29
+ font-weight : bold;
30
+ }
31
+
32
+ .status-approved ,
33
+ .status-awaiting {
34
+ padding : 4px 10px ;
35
+ border-radius : 4px ;
36
+ font-size : 0.875rem ;
37
+ font-weight : 600 ;
38
+ }
39
+
40
+ .status-approved {
41
+ background-color : # 4caf50 ;
42
+ color : # fff ;
43
+ }
44
+
45
+ .status-awaiting {
46
+ background-color : # ff9800 ;
47
+ color : # fff ;
48
+ }
49
+
50
+ .mentor-info {
51
+ margin-bottom : 20px ;
52
+ }
53
+
54
+ .mentor {
55
+ display : flex;
56
+ align-items : center;
57
+ margin-bottom : 10px ;
58
+ }
59
+
60
+ .mentor span {
61
+ margin-left : 5px ;
62
+ font-weight : 500 ;
63
+ }
64
+
65
+ .mentor-link ,
66
+ .co-mentor-link {
67
+ color : # 1e88e5 ;
68
+ text-decoration : none;
69
+ font-weight : 600 ;
70
+ transition : color 0.3s ;
71
+ }
72
+
73
+ .mentor-link : hover ,
74
+ .co-mentor-link : hover {
75
+ color : # 1565c0 ;
76
+ }
77
+
78
+ .commit-pull-info {
79
+ display : flex;
80
+ justify-content : space-between;
81
+ }
82
+
83
+ .info-item {
84
+ display : flex;
85
+ align-items : center;
86
+ font-size : 0.875rem ;
87
+ }
88
+
89
+ .info-item span {
90
+ margin-left : 5px ;
91
+ font-weight : 600 ;
92
+ }
93
+
94
+ .lines-changed {
95
+ margin-top : 15px ;
96
+ margin-bottom : 20px ;
97
+ }
98
+
99
+ .lines-header {
100
+ font-size : 0.875rem ;
101
+ font-weight : 600 ;
102
+ margin-bottom : 10px ;
103
+ }
104
+
105
+ .lines-bar {
106
+ display : flex;
107
+ justify-content : space-between;
108
+ align-items : center;
109
+ }
110
+
111
+ .bar {
112
+ display : flex;
113
+ width : 100% ;
114
+ height : 10px ;
115
+ background-color : # e0e0e0 ;
116
+ border-radius : 5px ;
117
+ margin : 0 10px ;
118
+ }
119
+
120
+ .added-bar {
121
+ background-color : # 4caf50 ;
122
+ border-radius : 5px ;
123
+ height : 100% ;
124
+ }
125
+
126
+ .removed-bar {
127
+ background-color : # f44336 ;
128
+ border-radius : 5px ;
129
+ height : 100% ;
130
+ }
131
+
132
+ .project-links {
133
+ display : flex;
134
+ justify-content : space-between;
135
+ align-items : center;
136
+ }
137
+
138
+ .view-project-btn ,
139
+ .edit-project-btn {
140
+ padding : 8px 15px ;
141
+ font-size : 0.875rem ;
142
+ font-weight : 600 ;
143
+ border-radius : 4px ;
144
+ text-decoration : none;
145
+ color : # fff ;
146
+ transition : background-color 0.3s ;
147
+ }
148
+
149
+ .view-project-btn {
150
+ background-color : # 1e88e5 ;
151
+ }
152
+
153
+ .view-project-btn : hover {
154
+ background-color : # 1565c0 ;
155
+ }
156
+
157
+ .edit-project-btn {
158
+ background-color : # ff9800 ;
159
+ }
160
+
161
+ .edit-project-btn : hover {
162
+ background-color : # fb8c00 ;
163
+ }
164
+
165
+ .no-co-mentor {
166
+ color : # 757575 ;
167
+ }
You can’t perform that action at this time.
0 commit comments