-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
108 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
<a | ||
href="/teams/rover" | ||
class="text-sm px-4 py-2 rounded-lg whitespace-nowrap min-w-0 overflow-hidden overflow-ellipsis bg-primary text-black font-medium shadow-xl"> | ||
<b>Just In</b> | ||
<span>– Rover Takes First at CIRC 2024 🎉</span> | ||
</a> | ||
<a href="#" poster_open | ||
class="text-sm px-4 py-2 rounded-lg whitespace-nowrap min-w-0 overflow-hidden overflow-ellipsis bg-primary text-black font-medium shadow-xl"> | ||
<b>2024 Kickoff</b> | ||
<span>– Oct. 1st 6:30 PM ↗</span> | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<!-- Poster display --> | ||
<section id="poster_popup" | ||
class="fixed flex items-center justify-center inset-0 w-full h-full bg-black/80 z-40"> | ||
<div class="w-80 sm:w-96 aspect-[calc(461/619)] relative rounded-md bg-neutral-600"> | ||
<img src="/images/posters/kickoff2024.png" class="w-full h-auto rounded-md pointer-events-auto" alt=""> | ||
<div class="flex absolute items-center justify-between -top-9 right-0 left-0 w-full"> | ||
<div class="uppercase font-display font-semibold text-[19px]">dam robotics</div> | ||
<button poster_close id="close_poster_popup" class="underline hover:opacity-70"> | ||
close | ||
</button> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
|
||
<script> | ||
const close_poster = () => { | ||
console.log('close_poster') | ||
document.getElementById('poster_popup').style.display = "none" | ||
sessionStorage.setItem('hide_popup', true) | ||
} | ||
const open_poster = () => { | ||
document.getElementById('poster_popup').style.display = "flex" | ||
} | ||
|
||
// Close poster if already dismissed once | ||
if (sessionStorage.getItem('hide_popup')) | ||
close_poster() | ||
|
||
// Close poster on click | ||
document.getElementById('close_poster_popup').addEventListener('click', close_poster) | ||
// document.querySelectorAll('[poster_close]').forEach((el) => el.addEventListener('click', close_poster)) | ||
|
||
// Open poster on click | ||
document.querySelectorAll('[poster_open]').forEach((el) => el.addEventListener('click', open_poster)) | ||
</script> |
Oops, something went wrong.