Skip to content

Commit

Permalink
Merge pull request anuragverma108#3836 from haseebzaki-07/new_branch_8
Browse files Browse the repository at this point in the history
Fix Testimonials
  • Loading branch information
sailaja-adapa authored Oct 21, 2024
2 parents 50e046f + b57d3ae commit 0e69119
Show file tree
Hide file tree
Showing 2 changed files with 224 additions and 135 deletions.
152 changes: 143 additions & 9 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,148 @@
.cookie-consent .close-btn {
background: #000;
}
.mySwiper {
width: 100%;
padding: 50px 0;
}

.swiper-slide {
text-align: center;
background: transparent;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 50px;
perspective: 1000px; /* For 3D flip effect */
}

.flip-card {
background-color: transparent;
width: 100%;
max-width: 300px;
height: 400px;
border: none;
cursor: pointer;
position: relative;
}

.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
border-radius: 15px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
padding: 20px;
}

.flip-card-front {
background-color: #f0f0f0;
color: black;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

.flip-card-back {
background-color: #333;
color: white;
transform: rotateY(180deg);
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
}

.card-image {
width: 120px;
height: 120px;
margin-bottom: 20px;
border-radius: 50%;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-img {
width: 100%;
height: 100%;
object-fit: cover;
}

h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #333;
}

.bio {
font-size: 0.9rem;
color: #666;
margin-bottom: 15px;
}

.rows-icons {
display: flex;
gap: 10px;
margin-bottom: 10px;
}

.rows-icons i {
font-size: 1.2rem;
color: #666;
transition: color 0.3s ease;
}

.rows-icons i:hover {
color: #ff7f50;
}

.rating {
margin-top: 10px;
}

.rating i {
font-size: 1.2rem;
color: #ffd700;
}

/* Dark Mode Styles */
.dark-mode .flip-card-front {
background-color: #2c2c2c;
color: white;
}

.dark-mode .bio {
color: #bbb;
}

.dark-mode .rating i {
color: #ffdf00;
}

.dark-mode .rows-icons i {
color: #aaa;
}

.dark-mode .rows-icons i:hover {
color: #ff7f50;
}


/*repetition*/
swiper-container {
Expand Down Expand Up @@ -52,15 +194,7 @@ swiper-container {

/*repetition*/
/* testimonal card fix by harshcodesit */
swiper-slide {
text-align: center;
font-size: 15;
background: transparent;
display: flex;
justify-content: center;
align-items: center;
margin-bottom: 50px;
}

/* ########### */

/*repetition*/
Expand Down
Loading

0 comments on commit 0e69119

Please sign in to comment.