-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathtestimonial.css
240 lines (203 loc) · 4.44 KB
/
testimonial.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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');
:root{
--primary-color: #80d0c7;
--secondary-color :#f0f8ff;
--text-dark: #b9a3a3;
--text-light:#94a3b8;
--white:#ffffff;
}
*{
padding:0;
margin:0;
box-sizing: border-box;
}
body{
font-family: "Poppins", sans-serif;
background-color: var(--section-bg-color);
}
.section_container{
max-width: 1200px;
margin: auto;
/* padding: 2rem 1rem; */
text-align: center;
animation: fadeIn 1s ease-in-out;
}
.section_container h2{
font-size: 1.5rem;
font-weight: 600;
color: var(--secondary-color);
animation: fadeIn 1.5s ease-in-out;
}
.section_container h1{
position: relative;
margin-bottom: 2rem;
font-size: 2.5rem;
font-weight: 600;
color: black;
animation: fadeIn 2s ease-in-out;
}
.section_container h1::after{
position: absolute;
content: "";
left: 50%;
bottom: 0;
transform: translateX(-50%);
height: 2px;
width: 5rem;
background-color: var(--section-bg-color);
animation: slideIn 1s ease-in-out;
}
.section_grid{
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 2rem;
animation: fadeIn 2.5s ease-in-out;
}
.section_card{
position: relative;
isolation: isolate;
overflow: hidden;
padding: 5rem 2rem 2rem;
background-color: var(--white);
border-radius: 5px;
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
animation: float 3s ease-in-out infinite;
}
.section_card::before{
position: absolute;
content: "";
top: 0;
left: 0;
transform: translate(-50%, -50%);
width: 55%;
aspect-ratio: 1;
border-radius: 100%;
background-color: var(--secondary-color);
z-index: -1;
transition: all 0.5s ease;
}
.section_card span{
position: absolute;
top: 0;
left: 0;
padding: 1rem;
font-size: 3rem;
color: var(--white);
animation: fadeIn 1s ease-in-out;
}
.section_card h4{
margin-top: 4rem;
margin-bottom: 1rem;
font-size: 1.5rem;
font-weight: 600;
color: var(--secondary-color);
transition: color 0.3s ease;
}
.section_card p{
margin-bottom: 2rem;
color: var(--text-light);
transition: color 0.3s ease;
}
.section_card img{
margin-bottom: 1rem;
max-width: 100px;
border-radius: 100%;
border: 2px solid var(--secondary-color);
transition: border-color 0.3s ease;
}
.section_card h5{
font-size: 1.25rem;
font-weight: 600;
color: var(--secondary-color);
transition: color 0.3s ease;
}
.section_card h6{
font-size: 1rem;
font-weight: 400;
color: var(--text-light);
transition: color 0.3s ease;
}
.section_card:hover::before{
width: 480%;
}
.section_card:hover :is(h4, h5){
color: var(--white);
}
.section_card:hover :is(p, h6){
color: var(--section-bg-color);
}
.section_card:hover img{
border-color: var(--white);
}
@keyframes fadeIn {
0% { opacity: 0; }
100% { opacity: 1; }
}
@keyframes slideIn {
0% { width: 0; }
100% { width: 5rem; }
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
/* General styles */
.section_container {
padding: 20px;
}
.section_grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.section_card {
background: #fff;
border-radius: 8px;
padding: 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
text-align: center;
}
.section_card img {
display: block;
margin: auto;
border-radius: 50%;
width: 100px;
height: 100px;
object-fit: fill;
object-position: center;
border: 2px solid var(--secondary-color);
transition: border-color 0.3s ease;
}
/* Mobile and tablet styles */
@media (max-width: 768px) {
.section_container {
padding: 10px;
}
.section_grid {
grid-template-columns: 1fr;
}
.section_card {
padding: 15px;
}
.section_card img {
width: 100px;
height: 100px;
}
}
/* Mobile and tablet styles */
@media (max-width: 768px) {
.section_container {
padding: 10px;
}
.section_grid {
grid-template-columns: 1fr;
}
.section_card {
padding: 15px;
}
.section_card img {
width:100px;
height: 100px;
}
}