Skip to content

Commit

Permalink
Merge pull request #252 from PriyaGhosal/revert-206-main
Browse files Browse the repository at this point in the history
Revert "Added new UI/UX to pop up"
  • Loading branch information
PriyaGhosal authored Oct 8, 2024
2 parents de12a62 + f4eccd8 commit bd3c735
Showing 1 changed file with 8 additions and 104 deletions.
112 changes: 8 additions & 104 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,103 +65,6 @@
.chatbot-button:hover .tooltip-text {
display: block; /* Show on hover */
}
/* Pop up new styling */
.popup-container {
display: flex;
justify-content: center;
align-items: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7); /* Darker background for more focus */
z-index: 1000;
animation: fadeInBackground 0.5s ease-in-out;
}

.popup-box {
background: linear-gradient(160deg, #007bff, #ffffff); /* Gradient background */
padding: 2.5rem;
border-radius: 15px;
text-align: center;
width: 90%;
max-width: 450px;
position: relative;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); /* Deep shadow for depth */
animation: popupSlideIn 0.5s ease-out;
color: white;
}

.popup-heading {
font-size: 2rem;
margin-bottom: 1.5rem;
font-family: 'Poppins', sans-serif; /* Modern font */
color: #fff;
}

.popup-text {
font-size: 1.2rem;
margin-bottom: 2.5rem;
line-height: 1.5;
color: #f0f0f0;
font-family: 'Poppins', sans-serif;
}

.popup-action-btn {
background-color: #ffffff;
color:#007bff;
padding: 0.9rem 1.7rem;
border: none;
border-radius: 50px;
cursor: pointer;
font-size: 1.1rem;
font-family: 'Poppins', sans-serif;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(255, 111, 97, 0.2);
}

.popup-action-btn:hover {
background-color: 007bff;
color: rgb(0, 0, 0);
box-shadow: 0 8px 20px rgba(255, 111, 97, 0.4);
}

.popup-close-btn {
position: absolute;
top: 15px;
right: 20px;
font-size: 2rem;
color: white;
cursor: pointer;
transition: color 0.3s ease;
}

.popup-close-btn:hover {
color: #ffffff;
}

/* Keyframes for animations */
@keyframes fadeInBackground {
from {
background-color: rgba(0, 0, 0, 0);
}
to {
background-color: rgba(0, 0, 0, 0.7);
}
}

@keyframes popupSlideIn {
from {
transform: translateY(-30px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

</style>

</head>
Expand Down Expand Up @@ -751,20 +654,21 @@ <h5>BuddyTrail &copy;</h5>
</div>
</footer>
<!-- Deals and Offers Popup -->
<div id="exclusive-deals-popup" class="popup-container">
<div class="popup-box">
<span class="popup-close-btn" id="close-popup-btn">&times;</span>
<h2 class="popup-heading">Exclusive Deals and Offers!</h2>
<p class="popup-text">
<div id="dealsPopup" class="popup">
<div class="popup-content">
<span class="close-btn" id="closePopup">&times;</span>
<h2>Exclusive Deals and Offers!</h2>
<p>
Get the best deals on flights, hotels, and travel packages. Don't miss
out on our limited-time discounts. Plan your trip now!
</p>
<button class="popup-action-btn" id="view-deals-btn">
<button
onclick="document.getElementById('dealsPopup').style.display = 'none'; window.location.href='#deals'"
>
Check Out Deals
</button>
</div>
</div>

<script>
// script.js
window.onscroll = function () {
Expand Down

0 comments on commit bd3c735

Please sign in to comment.