diff --git a/Image-Gallery/style.css b/Image-Gallery/style.css index d153136f..2012156e 100644 --- a/Image-Gallery/style.css +++ b/Image-Gallery/style.css @@ -32,7 +32,7 @@ body { .dark-theme { --secondary-color: #0e1525; - --text-dark: #8c0ffa; + --text-dark: #ffffff; --arr-light: white; --body-light: #0e1525; --img-color:red; @@ -177,11 +177,3 @@ body { #next { left: 100%; } -.goog-te-gadget img { - vertical-align: middle; - border: none; - width: 110px; /* Ensure the width is set to auto */ - height: auto; /* Ensure the height is set to auto */ - max-width: 100%; /* Adjust this value if needed */ - max-height: 100%; /* Adjust this value if needed */ -} \ No newline at end of file diff --git a/explore.css b/explore.css index 646224f1..148f0541 100644 --- a/explore.css +++ b/explore.css @@ -1,7 +1,7 @@ -* { +/* * { box-sizing: border-box; /* ADDED BORDER RADIUS IN IMAGE SECTION */ - border-radius: 20px; + /*border-radius: 20px; } .outer-box { @@ -17,7 +17,6 @@ .containers { display: flex; width: 90vw; - } .card { @@ -27,7 +26,7 @@ height: 70vh; border-radius: 35px 35px; /* border-radius: 20px; */ - color: #fff; + /* color: #fff; cursor: pointer; flex: 0.5; margin: 10px; @@ -37,7 +36,7 @@ flex-direction: column; } -/* .card:hover { +.card:hover { flex: 3; } @@ -50,7 +49,7 @@ visibility: visible; } */ -.info { +/* .info { position: absolute; bottom: 20px; left: 25%; @@ -77,7 +76,7 @@ margin-top: 10px; font-weight: 500; /* -webkit-text-stroke:0.5px beige; */ -} +/* } .card.active { flex: 3; @@ -90,7 +89,7 @@ .card.active .info { visibility: visible; -} +} @media (max-width: 1300px) { .containers { @@ -120,4 +119,159 @@ width: 100px; left: 0px; } -} \ No newline at end of file +} +*/ + +/* Destination Section */ +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +#Destinations { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} +.section__title { + margin: 10px; +} + +.section__subtitle { + margin-bottom: 10px; +} + +/* Swiper */ +.swiper-container { + width: 100%; + height: 100%; + overflow: hidden; +} + +.swiper-wrapper { + display: flex; +} + +.swiper-slide { + display: flex; + flex-direction: row; + flex-wrap: wrap; + justify-content: space-evenly; + align-items: center; +} + +.swiper-button-prev, +.swiper-button-next { + position: absolute; + top: 55%; + transform: translateY(-50%); + padding: 20px; + color: #ffffff; + background-color: transparent; + border: none; + padding: 20px 20px; + z-index: 10; + cursor: pointer; +} + +.swiper-button-prev { + left: 14px; +} + +.swiper-button-next { + right: 13px; +} + +.swiper-button-prev:hover, +.swiper-button-next:hover { + background-color: transparent; + color: #FF5656; +} + +/* Card */ +.card { + width: 100%; + max-width: 300px; + height: auto; + border-radius: 20px; + overflow: hidden; + border: 8px solid #6A5ACD; + position: relative; + transition: transform 0.3s ease, border-color 0.3s ease; +} + +.card-img { + width: 100%; + height: 100%; + object-fit: cover; + overflow: hidden; + border-radius: 15px solid #6A5ACD; + transition: transform 0.3s ease; +} + +.card-body { + width: 100%; + height: 100%; + position: absolute; + top: 0; + right: 0; + background: rgba(0, 0, 0, 0.7); + border: none; + color: #fff; + padding: 30px; + display: flex; + flex-direction: column; + justify-content: center; + transition: opacity 0.5s ease-in-out; + opacity: 0; +} + +.card:hover .card-body { + opacity: 1; +} + +.card-title { + text-transform: uppercase; + font-size: 30px; + font-weight: 500; +} + +.card-info { + font-size: 16px; + line-height: 25px; + margin: 20px 0; + font-weight: 400; +} + +.card-btn { + color: #FF5656; + background-color: #ffffff; + padding: 10px 20px; + width: 120px; + border-radius: 5px; + text-transform: capitalize; + border: none; + outline: none; + font-weight: 500; + cursor: pointer; +} + +.card-btn:hover { + color: #ffffff; + background-color: #FF5656; +} + +.card:hover .card-img { + transform: scale(1.1); +} + +.card.active { + transform: scale(1.05); + z-index: 10; +} + +.card.active .card-body { + opacity: 1; +} diff --git a/explore.js b/explore.js index 97a2d9db..1551a898 100644 --- a/explore.js +++ b/explore.js @@ -1,28 +1,15 @@ -let lastClickedCard = document.querySelector(".active"); +var swiper = new Swiper('.swiper-container', { + loop: true, +}); -// Function to handle click events -function handleClick(card) { - // Remove active classes from all cards - const panels = document.querySelectorAll(".card"); - panels.forEach(panel => panel.classList.remove("active")); - // Add active class to the clicked card - card.classList.add("active"); - lastClickedCard = card; // Update the reference to the last clicked card +function goToNextSlide() { + swiper.slideNext(); } -// Attach click event listener to all cards -const panels = document.querySelectorAll(".card"); -panels.forEach(panel => panel.addEventListener("click", () => handleClick(panel))); +function goToPrevSlide() { + swiper.slidePrev(); +} -// Adjust the mouseover event listener -panels.forEach(panel => { - panel.addEventListener('mouseover', () => { - lastClickedCard.classList.remove("active"); - panel.classList.add('active'); - }); - panel.addEventListener('mouseout', () => { - panel.classList.remove('active'); - lastClickedCard.classList.add("active"); -}); -}); +document.querySelector('.swiper-button-next').addEventListener('click', goToNextSlide); +document.querySelector('.swiper-button-prev').addEventListener('click', goToPrevSlide); diff --git a/img/A T logo with a white background and a square shape, connected to nature for a travel company.png b/img/A T logo with a white background and a square shape, connected to nature for a travel company.png deleted file mode 100644 index 0dbec958..00000000 Binary files a/img/A T logo with a white background and a square shape, connected to nature for a travel company.png and /dev/null differ diff --git a/img/MuseumofFuture.jpg b/img/MuseumofFuture.jpg new file mode 100644 index 00000000..66e02db0 Binary files /dev/null and b/img/MuseumofFuture.jpg differ diff --git a/img/TajMahal.jpg b/img/TajMahal.jpg new file mode 100644 index 00000000..6e94bdfa Binary files /dev/null and b/img/TajMahal.jpg differ diff --git a/img/TimesSquare.jpg b/img/TimesSquare.jpg new file mode 100644 index 00000000..bcff3119 Binary files /dev/null and b/img/TimesSquare.jpg differ diff --git a/img/Travel.png b/img/Travel.png new file mode 100644 index 00000000..ba5213fb Binary files /dev/null and b/img/Travel.png differ diff --git a/img/eiffelTower2.webp b/img/eiffelTower2.webp new file mode 100644 index 00000000..c2cc352a Binary files /dev/null and b/img/eiffelTower2.webp differ diff --git a/img/giantWheel.webp b/img/giantWheel.webp new file mode 100644 index 00000000..7d86634b Binary files /dev/null and b/img/giantWheel.webp differ diff --git a/img/lehLadakh.jpg b/img/lehLadakh.jpg new file mode 100644 index 00000000..eb540293 Binary files /dev/null and b/img/lehLadakh.jpg differ diff --git a/img/tour1.png b/img/tour1.png new file mode 100644 index 00000000..85f00022 Binary files /dev/null and b/img/tour1.png differ diff --git a/index.html b/index.html index 21653894..fcc71c58 100644 --- a/index.html +++ b/index.html @@ -28,6 +28,7 @@ + @@ -128,98 +129,6 @@ } .gallery-rotate-image .image-container { - - display: flex; - flex-wrap: wrap; - gap: 16px; /* Adjust the gap between images */ -} - -.gallery-rotate-image .image-container span { - display: inline-block; -} - -/* .trip-gallery-container { - display: flex; - flex-wrap: wrap; - gap: 16px; -} - -.trip-gallery-container .image-container { - display: flex; - flex-direction: column; - align-items: center; -} - -.trip-gallery-container .image-container img { - max-width: 100%; - height: auto; -} */ - body { - font-family: Arial, sans-serif; - margin: 0; - padding: 0; - } - - .grid-container { - display: grid; - grid-template-columns: repeat(5, 1fr); - gap: 16px; - padding: 20px; - box-sizing: border-box; - } - - .cardi { - background-size: cover; - background-position: center; - background-repeat: no-repeat; - height: 20vh; - border-radius: 20px; - color: #fff; - cursor: pointer; - flex: 0.5; - margin: 4px; - margin-right: 29px; - position: relative; - transition: flex 0.7s ease-in; - display: flex; - flex-direction: column; - overflow: hidden; - } - - .cardi img { - width: 100%; - height: 100%; - transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); - } - - .cardi:hover { - transform: scale(1.05); - box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); - border: 1px solid transparent; - background-clip: padding-box; - } - - .cardi:hover img { - filter: blur(4px); - backdrop-filter:box-shadow(0 8px 16px rgba); - } - - .card__content { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - padding: 20px; - box-sizing: border-box; - transform: rotateX(-90deg); - transform-origin: bottom; - transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); - z-index: 1; - } - - .card__overlay { - position: absolute; display: flex; flex-wrap: wrap; gap: 16px; @@ -278,79 +187,10 @@ left: 0; width: 100%; height: 100%; - background-color: rgba(1, 0, 0, 0.7); /* Darker semi-transparent background */ - opacity: 0; - transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); - z-index: 0; - } - - .cardi:hover .card__overlay { - opacity: 1; - } - - .cardi:hover .card__content { - transform: rotateX(0deg); - } - - .card__title { - margin: 0; - font-size: 24px; - color: #ffdf60; - font-weight: 700; - } - - .card__description { - margin: 10px 0 0; - font-size: 14px; - color: #fff; - line-height: 1.4; - } - - .card__description:hover { - cursor: pointer; - color: #fff; - } - - @media (max-width: 1200px) { - .grid-container { - grid-template-columns: repeat(4, 1fr); - } - } - - @media (max-width: 992px) { - .grid-container { - grid-template-columns: repeat(3, 1fr); - } - } - - @media (max-width: 768px) { - .grid-container { - grid-template-columns: repeat(2, 1fr); - } - } - - @media (max-width: 480px) { - .grid-container { - grid-template-columns: repeat(1, 1fr); - } - } -.btn-container { - display: flex; - justify-content: center; - gap: 8px; /* Adjust the gap between buttons */ -} - pointer-events: none; z-index: 9999; } - @media screen and (max-width: 768px){ - .circle-container { - display: none; - } - - } - @@ -361,32 +201,6 @@
- - - - -- ||Eiffel Tower|| -
-+ ||Eiffel Tower|| +
+||Giant Wheel||
+||Goa Beach||
+||Giant Wheel||
-||Male Beach||
+||Goa Beach||
-+ Explore your dream places around the world. Here you can find your perfect destination. +
||Male Beach||
-+
Top trip deals curated for you. Get the best package for your adventure and save more.