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

Update index.html #1855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
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
Loading