Skip to content

Commit

Permalink
Merge pull request #34 from ellen-rose-james/updates
Browse files Browse the repository at this point in the history
popup image added
  • Loading branch information
ellen-rose-james authored Oct 12, 2024
2 parents f58fbf4 + 939c5c0 commit 24d5771
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 1 deletion.
23 changes: 23 additions & 0 deletions assets/css/get-tickets.css
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,26 @@ button:hover .star-6 {
fill: #06b137;
}

/* Popup */

.get-tickets-popup {
position: relative;
padding: 12px 35px;
background: var(--color);
font-family: "Ubuntu", sans-serif;
font-size: 17px;
font-weight: 500;
color: white;
border: 3px solid var(--color);
border-radius: 8px;
box-shadow: 0 0 0 #000000;
transition: all 0.3s ease-in-out;
cursor: pointer;
margin: 10px;
}

.get-tickets-popup:hover {
background: transparent;
color: #06b137;
box-shadow: 0 0 25px black;
}
45 changes: 45 additions & 0 deletions assets/css/rex-landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,51 @@ body::before {
border-bottom-color: #f0f0e4;
}

/* Popup container */
.popup-container {
display: none; /* Hidden by default */
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.7); /* Dark background */
justify-content: center;
align-items: center;
}

/* Popup content */
.popup-content {
background-color: #fff;
border-radius: 10px;
width: 400px;
padding: 20px;
text-align: center;
position: relative;
}

/* Image container */
.popup-image-container {
margin-bottom: 20px;
}

.popup-image {
width: 100%;
height: auto;
border-radius: 10px;
}

/* Close button */
.close-btn {
position: absolute;
top: 10px;
right: 20px;
font-size: 24px;
cursor: pointer;
}


/* Heading Section */
.hero-section {
display: flex;
Expand Down
12 changes: 11 additions & 1 deletion assets/js/global.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,14 @@ window.onpointermove = event => {
// backgroundMusic.play();
// isPlaying = true;
// musicToggleButton.textContent = "❚❚"; // Change to pause icon when music starts playing
// });
// });


// Popup
window.onload = function() {
document.getElementById("popup").style.display = "flex";
};

document.getElementById("closePopup").onclick = function() {
document.getElementById("popup").style.display = "none";
};
14 changes: 14 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@
<div class="close-button" id="closeButton"></div>
</div>
</div>

<!-- Popup -->
<div id="popup" class="popup-container">
<div class="popup-content">
<span class="close-btn" id="closePopup">&times;</span>
<div class="popup-image-container">
<img src="./assets/images/earlybird.jfif" alt="Popup Image" class="popup-image">
</div>
<a href="https://www.yepdesk.com/rex-5" target="_blank">
<button class="get-tickets-popup">Get Tickets
</button>
</a>
</div>
</div>

<section class="hero-section">
<div class="hero-content">
Expand Down

0 comments on commit 24d5771

Please sign in to comment.