From 2d8818c3fc18dd4285e356eb4ae1c8f51252e6d8 Mon Sep 17 00:00:00 2001 From: Ayush Deb Date: Thu, 1 Aug 2024 12:57:37 +0530 Subject: [PATCH 1/2] Enhanced the testimonials --- Css-Files/testimonial.css | 331 +++++++++++++++----------------------- index.html | 47 +++--- js/testimonalslider.js | 36 +++-- 3 files changed, 174 insertions(+), 240 deletions(-) diff --git a/Css-Files/testimonial.css b/Css-Files/testimonial.css index c659f536..ca4b9e19 100644 --- a/Css-Files/testimonial.css +++ b/Css-Files/testimonial.css @@ -1,252 +1,179 @@ .testimonals { position: relative; - left: 30%; - width: 40%; + width: 100%; +} + +.testimonals-content { + position: relative; + width: 50%; + margin: 0 auto; } .testimonals-item { - background-color: #ede6e6; - padding: 30px; - border-radius: 30px; - } + background: linear-gradient(145deg, #223b26, #1c413b); /* Gradient background */ + padding: 30px; + border-radius: 20px; + text-align: center; + transition: transform 0.3s ease, box-shadow 0.3s ease; + height: 350px; /* Set a fixed height */ + display: flex; + flex-direction: column; + justify-content: space-between; /* Align content to top and bottom */ + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */ +} - .rating { - width: 180px; - } +.testimonals-item:hover { + transform: translateZ(10px); /* Move the card towards the user */ + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */ +} - .section-title { - color: white !important; - font-size: 48px; - margin-bottom: 2rem; - margin-top: 40px; -} - - .rating__star { - font-size: 20px; - cursor: pointer; - color: #dabd18b2; - } - - .testimonals-item img { - max-width: 70px; - border-radius: 50%; - margin-right: 20px; - vertical-align: middle; - } - - /* Testimonals Section */ - - .testimonals-item { - background-color: #1c413b; - padding: 30px; - border-radius: 30px; - text-align: center; - } - - .testimonals-item img { - max-width: 80px; - border-radius: 50%; - margin-right: 20px; - vertical-align: middle; - } - - .testimonals-item .info { - display: flex; - align-items: center; - } - - .testimonals-item .name { - font-size: 24px; - text-transform: capitalize; - font-weight: 800; - color: white; - line-height: 1.2; - margin-top: 10px; - margin-bottom: 10px; - } - - .testimonals-item p { - margin-top: 20px; - color: white; - text-align: left; - } - - .testimonals-item .rating { - margin-top: 15px; - font-size: 14px; - text-align: left; - } - - .testimonals .swiper-pagination { - position: relative; - margin-top: 40px; - bottom: auto; - } - - .testimonals .swiper-pagination-bullet { - height: 12px; - width: 12px; - background-color: white !important; - } - - .testimonals-item .job { - text-transform: capitalize; - color: white; - text-align: center; - } - - .testimonals-item p { - margin-top: 20px; - color: white; - } - - .testimonals-item .rating { - margin-top: 15px; - font-size: 14px; - } - - .testimonals .swiper-pagination { - position: relative; - margin-top: 40px; - bottom: auto; - } +.rating { + display: flex; + justify-content: center; /* Center the rating stars */ + margin-top: auto; /* Push rating to the bottom of the card */ +} -#test { +.rating i { + color: #ffcc00; /* Yellow color for the stars */ + font-size: 20px; /* Adjust size as needed */ +} - margin-left: 2rem; - margin-right: 2rem; - - .testimonals { - min-height: 100vh; - max-width: 80% !important; - display: flex; - align-items: center; - justify-content: center; - background-color: #198754; +.section-title { + color: #e0f7fa; /* Light cyan for the title */ + font-size: 48px; + margin-bottom: 2rem; + margin-top: 40px; + text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */ } -.slide-content { - margin: 0 40px; - overflow: hidden; - border-radius: 25px; +.rating__star { + font-size: 20px; + cursor: pointer; + color: #dabd18b2; } -.card { - position: relative; - border-radius: 25px; - background-color: #1c413b; - height: 300px; - transition: transform 0.5s ease; + +.testimonals-item img { + max-width: 80px; + border-radius: 50%; + margin-right: 20px; + vertical-align: middle; + border: 3px solid #198754; } -.image-content { +.testimonals-item .info { display: flex; - flex-direction: column; align-items: center; - padding: 25px 0; + justify-content: center; } -.card-image { - height: 150px; - width: 150px; - border-radius: 50%; - background: #1c413b; +.testimonals-item .name { + font-size: 24px; + text-transform: capitalize; + font-weight: 800; + color: #e0f7fa; /* Light cyan for the name */ + line-height: 1.2; + margin-top: 10px; + margin-bottom: 10px; } -.card-image .card-img { - height: 100%; - width: 100%; - object-fit: cover; - border-radius: 50%; - border: 4px solid #1c413b; +.testimonals-item p { + margin-top: 20px; + color: #f1f8e9; /* Very light green for text */ + text-align: left; + flex: 1; /* Allow the paragraph to grow and fill available space */ } -.swiper-navBtn { - color: white !important; - transition: color 0.3s ease; +.testimonals .swiper-pagination { + position: relative; + margin-top: 40px; + bottom: auto; } -.swiper-navBtn:hover { - color: #198754; +.testimonals .swiper-pagination-bullet { + height: 12px; + width: 12px; + background-color: #e0f7fa !important; /* Light cyan bullets */ } -.swiper-navBtn::before, -.swiper-navBtn::after { - font-size: 35px; +.testimonals-item .job { + text-transform: capitalize; + color: #e0f7fa; /* Light cyan for job titles */ + text-align: center; } -.swiper-button-next { - right: 0; +/* Added styles for navigation arrows */ +.swiper-button-next, +.swiper-button-prev { + color: #e0f7fa !important; /* Light cyan arrows */ + transition: color 0.3s ease; + position: absolute; + top: 40%; + width: auto; + margin-top: -22px; + padding: 16px; + cursor: pointer; + z-index: 10; /* Ensure the buttons are above other elements */ } -.swiper-button-prev { - left: 0; +.swiper-button-next { + right: -60px; /* Adjust to move the button outside the container */ } -.swiper-pagination-bullet { - background-color: white !important; - opacity: 1; +.swiper-button-prev { + left: -60px; /* Adjust to move the button outside the container */ } -.swiper-pagination-bullet-active { - background-color: grey !important; +.swiper-button-next:hover, +.swiper-button-prev:hover { + color: #198754 !important; /* Dark green on hover */ } -@media screen and (max-width: 768px) { - .slide-content { - margin: 0 10px; +/* Animation for testimonial items */ +@keyframes fadeInUp { + from { + opacity: 0; + transform: translateY(20px); } - .swiper-navBtn { - display: none; + to { + opacity: 1; + transform: translateY(0); } } -.card:hover .fronts { - opacity: 0; - transform: translateY(-100%); +.testimonals-item { + animation: fadeInUp 0.5s ease-out; } -.card .fronts { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - backface-visibility: hidden; -} +/* Responsive adjustments */ +@media screen and (max-width: 768px) { + .testimonals { + width: 90%; + } -.backs { - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - backface-visibility: hidden; - opacity: 0; - border: 2px solid #198754; - background-color: #1c413b; - border-radius: 50px; - font-size: 1em; - padding: 10px 40px; - transition: opacity 0.5s ease; -} + .testimonals-content { + width: 100%; + font-size: 10px; + } -.card:hover .backs { - opacity: 1; -} + .testimonals-item { + padding: 20px; + } -.rating i { - color: #ffc107; -} + .section-title { + font-size: 36px; + } -@media screen and (max-width: 700px) { - .backs { - font-size: 15px; + .swiper-button-next, + .swiper-button-prev { + width: 30px; + padding: 8px; } -} -@media screen and (min-width: 520px) and (max-width: 550px) { - .backs { - font-size: 13px; + .swiper-button-next { + right: -20px; + } + + .swiper-button-prev { + left: -20px; } -} } diff --git a/index.html b/index.html index 7cfba97b..aab0d0c9 100644 --- a/index.html +++ b/index.html @@ -578,23 +578,21 @@

Call:

-

+

What our Patients Say

-
+
-

Dinesh Karthik

+

Dinesh

Bangalore
-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod enim, architecto eum pariatur explicabo - aliquam incidunt provident vero nostrum quam!

+

This website is an excellent platform for providing healthcare facilities to users. It offers information about hospital availability, including bed availability, the total number of patients, and more.

@@ -603,16 +601,15 @@

Dinesh Karthik

-
+
-

Virat Kohli

+

Virat

Delhi
-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod enim, architecto eum pariatur explicabo - aliquam incidunt provident vero nostrum quam!

+

Using this platform, I could easily prebook my OPD appointments. It saved me a lot of time and effort. Highly recommended!

@@ -620,16 +617,15 @@

Virat Kohli

-
+
-

Smrithi Mandanna

+

Smrithi

Mumbai
-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod enim, architecto eum pariatur explicabo - aliquam incidunt provident vero nostrum quam!

+

The website's feature to check the availability of blood groups in hospitals is very helpful. It made my search much easier and quicker.

@@ -637,34 +633,31 @@

Smrithi Mandanna

-
+
-

John Doe

+

John

Chennai
-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod enim, architecto eum pariatur explicabo - aliquam incidunt provident vero nostrum quam!

+

The detailed information about hospital facilities and patient management is commendable. This platform is a must-use for everyone.

-
-
+
-

Shikha Pandey

+

Shikha

Kolkata
-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Quod enim, architecto eum pariatur explicabo - aliquam incidunt provident vero nostrum quam!

+

Excellent service and very user-friendly interface. It helped me find the right hospital and prebook my appointment without any hassle.

@@ -675,12 +668,12 @@

Shikha Pandey

-
-
-
-
+
+
+ + diff --git a/js/testimonalslider.js b/js/testimonalslider.js index 7f8774d7..af6b5ec2 100644 --- a/js/testimonalslider.js +++ b/js/testimonalslider.js @@ -1,14 +1,28 @@ - const swiper = new Swiper('.js-testimonals-slider', { - grabCursor: true, - spaceBetween: 30, - pagination: { - el: '.js-testimonals-pagination', - clickable: true + grabCursor: true, + spaceBetween: 30, + loop: true, // Added loop for continuous sliding + pagination: { + el: '.js-testimonals-pagination', + clickable: true + }, + navigation: { + nextEl: '.swiper-button-next', + prevEl: '.swiper-button-prev', + }, + breakpoints: { + // Maintain single view on mobile + 320: { + slidesPerView: 1, }, - breakpoints: { - 767: { - slidesPerView: 2, - } + // Two slides on tablets and larger + 768: { + slidesPerView: 2, } - }) \ No newline at end of file + }, + // Optional: Add autoplay + autoplay: { + delay: 5000, + disableOnInteraction: false, + }, +}); From 58b0bfdccad7b22f3471cc7ced918dc07b4f3890 Mon Sep 17 00:00:00 2001 From: Ayush Deb Date: Thu, 1 Aug 2024 13:06:15 +0530 Subject: [PATCH 2/2] updated --- Css-Files/testimonial.css | 52 +++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/Css-Files/testimonial.css b/Css-Files/testimonial.css index ca4b9e19..21bea007 100644 --- a/Css-Files/testimonial.css +++ b/Css-Files/testimonial.css @@ -10,46 +10,47 @@ } .testimonals-item { - background: linear-gradient(145deg, #223b26, #1c413b); /* Gradient background */ + background: linear-gradient(145deg, #223b26, #1c413b); padding: 30px; border-radius: 20px; text-align: center; - transition: transform 0.3s ease, box-shadow 0.3s ease; - height: 350px; /* Set a fixed height */ + transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; + height: 350px; display: flex; flex-direction: column; - justify-content: space-between; /* Align content to top and bottom */ - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */ + justify-content: space-between; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); } .testimonals-item:hover { - transform: translateZ(10px); /* Move the card towards the user */ - box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow on hover */ + transform: translateZ(10px); + box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); + background: linear-gradient(145deg, #2a5a3f, #1e6b4b); } .rating { display: flex; - justify-content: center; /* Center the rating stars */ - margin-top: auto; /* Push rating to the bottom of the card */ + justify-content: center; + margin-top: auto; } .rating i { - color: #ffcc00; /* Yellow color for the stars */ - font-size: 20px; /* Adjust size as needed */ + color: #ffcc00; + font-size: 20px; } .section-title { - color: #e0f7fa; /* Light cyan for the title */ + color: #e0f7fa; font-size: 48px; margin-bottom: 2rem; margin-top: 40px; - text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* Subtle shadow for better readability */ + text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); } .rating__star { font-size: 20px; cursor: pointer; - color: #dabd18b2; + color: #ffcc00; } .testimonals-item img { @@ -70,7 +71,7 @@ font-size: 24px; text-transform: capitalize; font-weight: 800; - color: #e0f7fa; /* Light cyan for the name */ + color: #e0f7fa; line-height: 1.2; margin-top: 10px; margin-bottom: 10px; @@ -78,9 +79,9 @@ .testimonals-item p { margin-top: 20px; - color: #f1f8e9; /* Very light green for text */ + color: #f1f8e9; text-align: left; - flex: 1; /* Allow the paragraph to grow and fill available space */ + flex: 1; } .testimonals .swiper-pagination { @@ -92,19 +93,18 @@ .testimonals .swiper-pagination-bullet { height: 12px; width: 12px; - background-color: #e0f7fa !important; /* Light cyan bullets */ + background-color: #e0f7fa !important; } .testimonals-item .job { text-transform: capitalize; - color: #e0f7fa; /* Light cyan for job titles */ + color: #e0f7fa; text-align: center; } -/* Added styles for navigation arrows */ .swiper-button-next, .swiper-button-prev { - color: #e0f7fa !important; /* Light cyan arrows */ + color: #e0f7fa !important; transition: color 0.3s ease; position: absolute; top: 40%; @@ -112,23 +112,22 @@ margin-top: -22px; padding: 16px; cursor: pointer; - z-index: 10; /* Ensure the buttons are above other elements */ + z-index: 10; } .swiper-button-next { - right: -60px; /* Adjust to move the button outside the container */ + right: -60px; } .swiper-button-prev { - left: -60px; /* Adjust to move the button outside the container */ + left: -60px; } .swiper-button-next:hover, .swiper-button-prev:hover { - color: #198754 !important; /* Dark green on hover */ + color: #198754 !important; } -/* Animation for testimonial items */ @keyframes fadeInUp { from { opacity: 0; @@ -144,7 +143,6 @@ animation: fadeInUp 0.5s ease-out; } -/* Responsive adjustments */ @media screen and (max-width: 768px) { .testimonals { width: 90%;