Skip to content

Commit

Permalink
Updated "The Perfect Travel" & "Deals" section
Browse files Browse the repository at this point in the history
1) The Perfect Travel: In this section I've updated the title text and spacing between the elements inside the cards so they look better keeping in mind their responsiveness as well.

2) Deals: In this section I've updated style of title text, removed the unnecessary animation/transformation of carousel buttons, updated style of the carousel buttons, updated the spacing inside the cards and updated their height so they look better. In short, made some changes in existing code so that it looks better than previous one.
  • Loading branch information
devikaharshey committed Nov 4, 2024
1 parent c1d7cf8 commit 418405c
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 @@ -288,7 +288,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 @@ -664,10 +664,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 @@ -726,12 +726,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 @@ -804,7 +840,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 @@ -936,6 +972,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 @@ -985,16 +1022,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 @@ -1006,8 +1044,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 @@ -1042,7 +1079,7 @@ <h3>Wildlife Safari in Kenya</h3>
}
.btn-book-now {
position: fixed;
top: 84%;
top: 80%;
left: 34%;
}

Expand Down

0 comments on commit 418405c

Please sign in to comment.