Skip to content

Commit

Permalink
Merge pull request #138 from Utkarsh973/Testimonial-Section
Browse files Browse the repository at this point in the history
Enhanced Testimonial Pages
  • Loading branch information
Mujtabaa07 authored Jan 2, 2025
2 parents 241550a + 193f18c commit 9e58757
Show file tree
Hide file tree
Showing 2 changed files with 205 additions and 263 deletions.
273 changes: 119 additions & 154 deletions src/Pages/Testimonial.css
Original file line number Diff line number Diff line change
@@ -1,169 +1,134 @@
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=Open+Sans:wght@400;500&display=swap');

.testimonial {
background-color: #f5e6d3;
padding: 80px 0;
background-image:
linear-gradient(rgba(245, 230, 211, 0.9), rgba(245, 230, 211, 0.9)),
url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23a87d5a' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
}

.testimonial .container {
max-width: 1200px;
margin: 0 auto;
}

.testimonial h1 {
* {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
}

body {
padding-top: 70px;
}

.testimonial {
background: linear-gradient(to bottom, #f5e3dc, #e5d0c3);
padding: 5%;
text-align: center;
color: #5c3d2e;
font-family: 'Playfair Display', serif;
font-size: 2.8rem;
margin-bottom: 50px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
background-image: url('https://www.transparenttextures.com/patterns/wood-pattern.png');
background-blend-mode: overlay;
background-size: cover;
}

h1 {
font-size: 2.5rem;
color: #6f4e37;
margin-bottom: 2rem;
animation: fadeIn 1s ease-in-out;
}

.carousel-container {
position: relative;
}

.testimonial h1::after {
content: '☕';
display: block;
font-size: 1.5rem;
margin-top: 10px;
text-shadow: none;
}

.single {
background: #fff;
padding: 30px;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(92, 61, 46, 0.1);
margin: 15px;
transition: all 0.3s ease;
border: 1px solid #e6d5c3;
height: 100%;
}

.testimonial-row {
display: flex;
flex-direction: column;
}

.single:hover {
transform: translateY(-5px);
box-shadow: 0 12px 20px rgba(92, 61, 46, 0.15);
}

.image {
justify-content: center;
gap: 2rem;
padding: 5rem 0;
}

.single {
position: relative;
width: 300px;
height: 300px;
text-align: center;
margin-bottom: 20px;
}

.image img {
width: 100px;
height: 100px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
padding-top: 70px;
background: white;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
animation: fadeInUp 1s ease-in-out;
}

.image {
position: absolute;
top: -60px;
left: 50%;
transform: translateX(-50%);
width: 120px;
height: 120px;
border: 5px solid #7c2214;
border-radius: 50%;
overflow: hidden;
background: #fff;
}

.image img {
width: 100%;
height: 100%;
object-fit: cover;
border: 4px solid #b68f40;
transition: transform 0.3s ease;
}

.single:hover .image img {
transform: scale(1.05);
}

.image-text {
text-align: center;
flex-grow: 1;
object-position: center;
}

.image-text {
padding: 20px;
flex: 1;
display: flex;
flex-direction: column;
}

.image-text h2 {
color: #5c3d2e;
font-size: 1.4rem;
margin-bottom: 10px;
font-family: 'Playfair Display', serif;
font-weight: 600;
}

.image-text .rating {
color: #b68f40;
font-size: 1.2rem;
margin-bottom: 15px;
}

.image-text .testimonial-text {
color: #6b4f3b;
justify-content: space-between;
}

.image-text h2 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: #7c2214;
}

.image-text p {
font-size: 1rem;
line-height: 1.7;
font-family: 'Open Sans', sans-serif;
margin-bottom: 0;
font-style: italic;
flex-grow: 1;
}

.carousel {
padding-bottom: 50px;
}

.carousel-indicators {
bottom: -50px;
}

.carousel-indicators button {
background-color: #b68f40 !important;
width: 10px !important;
height: 10px !important;
border-radius: 50% !important;
margin: 0 5px !important;
opacity: 0.5;
transition: opacity 0.3s ease;
}

.carousel-indicators button.active {
opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
background-color: #b68f40;
border-radius: 50%;
padding: 25px;
transition: all 0.3s ease;
}

.carousel-control-prev,
.carousel-control-next {
opacity: 0.7;
width: 5%;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
opacity: 1;
}

@media (max-width: 768px) {
.testimonial {
padding: 40px 0;
color: #333;
}


.carousel-control-prev-icon,
.carousel-control-next-icon {
filter: invert(1);
}

@keyframes fadeIn {
0% {
opacity: 0;
transform: translateY(-20px);
}
100% {
opacity: 1;
transform: translateY(0);
}

.testimonial h1 {
font-size: 2rem;
margin-bottom: 30px;
}

@keyframes fadeInUp {
0% {
opacity: 0;
transform: translateY(20px);
}

.single {
margin: 10px;
padding: 20px;
100% {
opacity: 1;
transform: translateY(0);
}

.image img {
width: 80px;
height: 80px;
}

@keyframes bounceIn {
0% {
transform: scale(0.5);
opacity: 0;
}

.image-text h2 {
font-size: 1.2rem;
60% {
transform: scale(1.2);
opacity: 1;
}

.image-text .testimonial-text {
font-size: 0.9rem;
100% {
transform: scale(1);
}
}
}

Loading

0 comments on commit 9e58757

Please sign in to comment.