Skip to content

Commit

Permalink
Merge pull request #1907 from devikaharshey/main
Browse files Browse the repository at this point in the history
Updated "The Perfect Travel" & "Deals" section
  • Loading branch information
PriyaGhosal authored Nov 10, 2024
2 parents 68d0cfb + 418405c commit 060cedb
Showing 1 changed file with 50 additions and 13 deletions.
63 changes: 50 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
left: 0;
pointer-events: none;
z-index: 99999999;
}

</style>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
Expand Down Expand Up @@ -672,10 +672,10 @@ <h1>Ready for Your Next Adventure?</h1>
</section>
<section id="benefits">
<header class="benefits-head">
<h2>The Perfect travel</h2>
<h2>The Perfect Travel</h2>
<h3>
we cover everything from picking the perfect hotel, <br />to flight
and destination
We cover everything from picking the perfect hotel, <br />to flight
and destination!
</h3>
</header>
<!-- Start of Cards Container -->
Expand Down Expand Up @@ -734,12 +734,48 @@ <h4>Fly</h4>
.dark-mode .card{
background: #0e0e0e;
}

.dark-mode .card h4{
color: #f39c12;
}

.dark-mode .card p{
color: #fff;
}

.cards {
display: flex;
gap: 20px;
justify-content: center;
padding: 20px;
}

.card {
background: #d7e1fa;
border-radius: 15px;
padding: 20px;
text-align: center;
width: 250px;
}

@media (max-width: 1200px) {
.card {
max-width: calc(50% - 20px);
}
}

@media (max-width: 768px) {
.card {
max-width: calc(100% - 20px);
margin: 10px 0;
}
}

@media (max-width: 480px) {
.card {
padding: 15px;
}
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function () {
Expand Down Expand Up @@ -812,7 +848,7 @@ <h4>Fly</h4>
</section>
<!-- deals -->
<section id="deals" class="deals-section">
<h2 style="color: #000000;">Exclusive Deals and Offers</h2>
<h2 style="color: #ffffff; font-size: 3rem;">Exclusive Deals and Offers</h2>
<p>Explore our best deals on flights, hotels, and travel packages. Save big on your next adventure!</p>

<div class="carousel">
Expand Down Expand Up @@ -944,6 +980,7 @@ <h3>Wildlife Safari in Kenya</h3>

/* Deal Item Styling */
.deal-item {
min-height: 350px;
min-width: 300px;
flex: 0 0 300px;
box-sizing: border-box;
Expand Down Expand Up @@ -993,16 +1030,17 @@ <h3>Wildlife Safari in Kenya</h3>
/* Carousel Button Styles */
.carousel-button {
position: absolute;
top: 50%;
transform: translateY(-50%);
height: 45px;
width: 45px;
top: 45%;
background-color: rgba(0, 0, 0, 0.5);
border: none;
padding: 15px;
padding: 10px;
border-radius: 50%;
font-size: 2rem;
font-size: 1.5rem;
color: #fff;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
transition: background-color 0.3s ease;
}

.prev {
Expand All @@ -1014,8 +1052,7 @@ <h3>Wildlife Safari in Kenya</h3>
}

.carousel-button:hover {
background-color: #a4caad;
transform: scale(1.1);
background-color: #455eb0;
}

/* Animation for Carousel Slide */
Expand Down Expand Up @@ -1050,7 +1087,7 @@ <h3>Wildlife Safari in Kenya</h3>
}
.btn-book-now {
position: fixed;
top: 84%;
top: 80%;
left: 34%;
}

Expand Down

0 comments on commit 060cedb

Please sign in to comment.