-
Notifications
You must be signed in to change notification settings - Fork 122
/
mentor.css
132 lines (117 loc) · 2.59 KB
/
mentor.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/* General Styles */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: rgb(220, 218, 218); /* this color is being added */
margin: 0;
padding: 0;
}
/* Main Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 40px 20px;
text-align: center;
}
/* Heading Styles */
h1 {
font-size: 2.5rem;
color: #040202;
margin-bottom: 40px;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Mentor Grid Layout */
.mentors-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
/* 3 mentors per line max */
gap: 20px;
}
/* Mentor Box (Each Mentor Card) */
.mentor-banner {
padding: 20px;
display: flex;
flex-direction: column;
align-items: center;
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
background-color: rgba(255, 255, 255, 0.795);
border-radius: 12px;
border: 1px solid rgba(209, 213, 219, 0.3);
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
}
/* Hover effect for mentor cards */
.mentor-banner:hover {
transform: translateY(-5px);
box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
backdrop-filter: blur(16px) saturate(180%);
-webkit-backdrop-filter: blur(16px) saturate(180%);
background-color: rgba(17, 25, 40, 0.75);
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.125);
}
.mentor-banner:hover .mentor-name{
color: #ffffff;
}
.mentor-banner:hover .mentor-description{
color: #fbfbfb;
}
/* Mentor Image Container */
.image-container {
width: 100px;
height: 100px;
margin-bottom: 10px;
border-radius: 50%;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
border: 4px solid #f1f909;
/* Dark blue */
}
/* Mentor Image */
.mentor-image {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Mentor Description */
.mentor-description {
margin-top: 10px;
font-size: 17px;
color: #1e3a8a;
/* Dark blue */
}
.mentor-name {
font-weight: bold;
font-size: 16px;
margin-bottom: 5px;
color: #1e40af;
/* Dark blue */
}
.mentor-role {
font-size: 14px;
font-weight: 700;
color: #7e7e81;
/* Gray */
}
/* Rating Stars */
.mentor-rating {
margin-top: 10px;
color: #f59e0b;
/* Golden yellow for stars */
font-size: 18px;
}
/* Responsive Design for Mobile */
@media (max-width: 600px) {
.mentor-banner {
padding: 15px;
}
.mentor-name {
font-size: 14px;
}
.mentor-role {
font-size: 12px;
}
}