Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
AnushkaChouhan25 committed Nov 1, 2024
1 parent c1d7cf8 commit 18aaa9b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
14 changes: 11 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -571,12 +571,13 @@ <h1 id="logo"><a href="#home">BuddyTrail</a></h1>

<!-- Pop up HTML Starts Here -->
<!-- Pop-up for BuddyTrail -->
<div id="popup" class="popup">
<div id="popup" class="popup">
<div id="popup-content">
<div class="popup-left">
<div class="popup-left">
<img if="popupimage" src="./img/popup1.jpg" alt="Travel Image">
</div>
<div class="popup-right">
<div class="popup-right">
<button id="cross-btn" class="cross-btn">&times;</button>
<h1>Ready for Your Next Adventure?</h1>
<p class="h2">Join <strong>BuddyTrail</strong> and Plan Your Dream Vacation Today!</p>
<p>Sign up to receive <strong> 20% discount </strong> on your first booking!</p>
Expand All @@ -589,6 +590,12 @@ <h1>Ready for Your Next Adventure?</h1>
</div>
</div>
</div>
<script>
document.getElementById("cross-btn").addEventListener("click", function() {
document.getElementById("popup").style.display = "none";
});

</script>
<!-- Pop up HTML ends Here -->

<!-- JS to handle hamburger and close button -->
Expand Down Expand Up @@ -3166,6 +3173,7 @@ <h2>Exclusive Deals and Offers!</h2>
}

.popup-content {
position: relative;
background-color: white;
padding: 20px;
border-radius: 5px;
Expand Down
26 changes: 25 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -2188,7 +2188,31 @@ input#rate-5:checked ~ header:before {
align-items: center;
z-index: 1;
}

.cross-btn {
position: absolute;
top: 142px;
right: 25.3%;
background: transparent;
color: black;
border: none;
cursor: pointer;
z-index: 1;
width: 30px;
height: 33px;
display: flex;
align-items: center;
justify-content: center;
/* background-color: #ee2828; */
border-radius: 25%;
font-size: 3rem;
cursor: pointer;
color: #aaa;
transition: all 0.4s ease-in;
}
.cross-btn button{
padding: 1px !important;
background-color: red !important;
}
.close-btn:hover {
background-color: #ff0000;
transform: scale(1.1);
Expand Down

0 comments on commit 18aaa9b

Please sign in to comment.