From a8a79fd3ba0d33e9e26ff3ada048fe9aac9f4b38 Mon Sep 17 00:00:00 2001 From: Kajal Mehta Date: Sat, 9 Nov 2024 21:53:54 +0530 Subject: [PATCH] made team in swipe format issue resolved: #1151 --- team.html | 231 ++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 173 insertions(+), 58 deletions(-) diff --git a/team.html b/team.html index 18708a1..5f4b127 100644 --- a/team.html +++ b/team.html @@ -180,55 +180,7 @@ margin-bottom: 20px; } - .team-section { - display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 22px; - animation: fadeIn 1s ease-in-out; - display: flex; - flex-wrap: wrap; - justify-content: center; - gap: 22px; - animation: fadeIn 1s ease-in-out; - } - - .team-member { - background-color: #e7f3fe; - border-radius: 10px; - padding: 20px; - text-align: center; - transition: transform 0.3s, box-shadow 0.3s; - box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); - width: 250px; - max-width: 100%; - } - - .team-member:hover { - transform: translateY(-5px); - box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); - } - - .team-member img { - width: 100px; - height: 100px; - object-fit: cover; - margin-bottom: 10px; - border-radius: 50%; - border: 3px solid #2980b9; - } - - .team-member h2 { - color: #2980b9; - margin-bottom: 10px; - font-size: 1.2em; - } - - .team-member p { - color: #555; - font-size: 0.9em; - } - + /* .contact-feature { display: flex; justify-content: center; @@ -320,6 +272,124 @@ /* End at original position */ } } + + .carousel-container { + width: 100%; + max-width: 300px; + overflow: hidden; + position: relative; + padding: 30px; + margin-left:500px; + } + + .carousel { + gap:10px; + display: flex; + transition: transform 0.4s ease-in-out; + z-index: 1; + } + + .card { + min-width: 100%; + height:350px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + border-radius: 10px; + background-color: #e6f2ff; + text-align: center; + padding: 20px; + + } + + .card img { + width: 80px; + height: 80px; + border-radius: 50%; + margin-bottom: 15px; + } + + .card h2 { + font-size: 1.5em; + color: #337ab7; + } + + .card p { + font-size: 1em; + color: #333; + } + + /* Navigation buttons */ + .prev, .next { + position: absolute; + top: 50%; + transform: translateY(-50%); + font-size: 2em; + color: #337ab7; + background: none; + border: none; + cursor: pointer; + padding: 10px; + } + + .prev { + left: 0px; + } + + .next { + right: 0px; + } + + /* Dots indicator */ + .dots-container { + text-align: center; + margin-top: 15px; + } + + .dot { + height: 12px; + width: 12px; + margin: 0 5px; + background-color: #bbb; + border-radius: 50%; + display: inline-block; + cursor: pointer; + transition: background-color 0.3s; + } + + .dot.active { + background-color: #337ab7; + } + /* Responsive styles */ + @media (max-width: 600px) { + .carousel-container { + padding: 5px; + } + + .card { + padding: 15px; + } + + .card img { + width: 50px; + height: 50px; + } + + .card h2 { + font-size: 1em; + } + + .card p { + font-size: 0.8em; + } + + .prev, .next { + font-size: 1.5em; + } + + .dot { + height: 8px; + width: 8px; + } + } @@ -410,30 +480,75 @@

Meet Our Team

-
-
+ + + + + +
+ + + + +
+
+ + +