Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: updated tourist guide section #1345

Merged
merged 2 commits into from
Aug 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 102 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,58 @@
border-radius: 10px;
}

/* tour guide section */
.center-card {
display: flex;
justify-content: center;
align-items: center;
position: relative;
}

.image-container {
margin-top: 80px;
justify-content: center;
align-items: center;
display: flex;
overflow: hidden;
width: 1200px;
height: 400px;
}

.carousel-images {
display: flex;
transition: transform 0.5s ease-in-out; /* Smooth transition for sliding */
gap: 10px;
}

.carousell-item {
min-width: 50%;
max-width: 50%;
height: 450px;

}

.prev, .next {
background-color: rgba(0, 0, 0, 0.5);
border: none;
color: white;
cursor: pointer;
padding: 10px;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1;
}

.prev {
left: 0;
}

.next {
right: 0;
}
</style>

<link rel="stylesheet" href="imstyle.css">
<link rel="stylesheet" href="jquery.flipster.min.css">

Expand Down Expand Up @@ -1266,6 +1317,55 @@ <h2 class="section__title" data-aos="zoom-in" style="text-align: center;">

<!-- Toursit Guide Section -->
<section class="tourist" id="tourist">
<h2 class="tourist-heading section__title" align-items="center" data-aos="fade-in">Tourist Guide</h2>
<h4 style="color: rgb(231, 62, 118); font-style: italic; font-family: cursive;">
Have an amazing trip and explore the destiny
</h4>
<br />
<h3 style="color: rgb(6, 151, 241); font-style: inherit; font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;">
Connect with the Guide
</h3>
<br />
<div class="center-card">
<button class="prev" onclick="moveCarousel(-1)">&#10094;</button>
<div class="image-container">
<div class="carousel-images">
<img src="./tg1.jpg" alt="guide1" class="carousell-item" />
<img src="./tg2.jpg" alt="guide2" class="carousell-item" />
<img src="./tg3.jpg" alt="guide3" class="carousell-item" />
<img src="./tg1.jpg" alt="guide1" class="carousell-item" />
<img src="./tg2.jpg" alt="guide2" class="carousell-item" />
<img src="./tg3.jpg" alt="guide3" class="carousell-item" />
</div>
</div>
<button class="next" onclick="moveCarousel(1)">&#10095;</button>
</div>
</section>
<br /><br /><br /><br />

<script>
let currentSlide = 0;

function moveCarousel(step) {
const carousellItems = document.querySelectorAll('.carousell-item');
const itemsPerView = 2;
const totalItems = carousellItems.length;
const maxSlide = Math.ceil(totalItems / itemsPerView) - 1;

currentSlide = (currentSlide + step + maxSlide + 1) % (maxSlide + 1);
const offset = -currentSlide * 100 / itemsPerView;

document.querySelector('.carousel-images').style.transform = `translateX(${offset}%)`;
}

// Optional: Auto-rotate carousel every 3 seconds
setInterval(() => {
moveCarousel(1);
}, 3000);

</script>

<!-- <section class="tourist" id="tourist">
<h2 class="tourist-heading section__title" align-items="center" data-aos="fade-in">Tourist Guide</h2>
<h4 style="color: rgb(231, 62, 118); font-style: italic;font-family: cursive;">Have an amazing trip and explore
the destiny</h4>
Expand All @@ -1280,7 +1380,8 @@ <h4 style="color: rgb(231, 62, 118); font-style: italic;font-family: cursive;">H
<button class="btn btn-style" id="btn-page" onclick="window.location.href='packages.html'" style="box-shadow: 2px 2px 8px rgb(0, 191, 255); padding: 10px 20px; font-size: 16px; cursor: pointer;">View All</button>
</div>
</section>
<br /><br /><br />
<br /><br /><br /><br /> -->


<!-- Hotel & Resort Section -->
<section class="hotel" id ="hotel">
Expand Down
Loading