Skip to content

Commit e6a6a13

Browse files
authored
Merge pull request #1240 from AJ-Athira/TestimonialsEffect
Enhanced Testimonials Section with Hover Effect and Background Color Change #1225
2 parents e473a87 + 4ea08ac commit e6a6a13

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

Website/css/styles.css

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,8 +1246,6 @@ body.dark-mode {
12461246
.dark-mode .milestone-card p{
12471247
color:black;
12481248
}
1249-
1250-
12511249
.testimonial-section {
12521250
background-color: #111151;
12531251
padding: 60px 20px;
@@ -1274,6 +1272,7 @@ body.dark-mode {
12741272
border-radius: 10px;
12751273
box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
12761274
text-align: center;
1275+
transition: background-color 0.3s, box-shadow 0.3s;
12771276
}
12781277

12791278
.testimonial img {
@@ -1295,6 +1294,18 @@ body.dark-mode {
12951294
color: #ffd700;
12961295
}
12971296

1297+
/* Hover effect */
1298+
.testimonial:hover {
1299+
background-color: #ffd700; /* Change to a contrasting color */
1300+
color: #111151; /* Change text color */
1301+
box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); /* Brighter shadow */
1302+
}
1303+
1304+
.testimonial:hover p,
1305+
.testimonial:hover h3 {
1306+
color: #111151; /* Ensure text is visible against new background */
1307+
}
1308+
12981309
/* Light Mode for Testimonial Section */
12991310
.dark-mode .testimonial-section {
13001311
background-color: #f9f9f9;
@@ -1322,6 +1333,18 @@ body.dark-mode {
13221333
border: 2px solid #ddd;
13231334
}
13241335

1336+
/* Hover effect for dark mode */
1337+
.dark-mode .testimonial:hover {
1338+
background-color: #555; /* A darker color for light mode */
1339+
color: #fff;
1340+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
1341+
}
1342+
1343+
.dark-mode .testimonial:hover p,
1344+
.dark-mode .testimonial:hover h3 {
1345+
color: #fff; /* Ensure text remains visible */
1346+
}
1347+
13251348
body {
13261349
font-family: Arial, sans-serif;
13271350
background-color: #0a0266;

0 commit comments

Comments
 (0)