Skip to content
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
27 changes: 27 additions & 0 deletions frontend/src/css/modules/main-header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,33 @@
/* horizontally center */
align-items: center;
/* vertically center */

.close-banner-btn {
position: absolute;
top: 10px;
right: 15px;
background: transparent;
border: none;
color: $light-gray;
font-size: 32px;
font-weight: bold;
cursor: pointer;
padding: 0;
width: 30px;
height: 30px;
line-height: 30px;
transition: all 0.2s ease-in-out;
opacity: 0.8;

&:hover {
opacity: 1;
transform: scale(1.1);
}

&:focus {
outline: none;
}
}
}

@media only screen and (max-width: $med-screen) {
Expand Down
5 changes: 4 additions & 1 deletion frontend/src/views/web/partials/main-header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<div class="announcement-banner">
<div class="announcement-banner" id="announcement-banner">
<button class="close-banner-btn" onclick="document.getElementById('announcement-banner').style.display='none'; document.querySelector('.main-header nav').style.top='0';" aria-label="Close announcement">
×
</button>
<div style="max-width: 960px; margin: 0 auto;">
🚨 <strong>Update:</strong> EvalAI is transitioning to a paid plan for hosting challenges and is sunsetting
support for code-upload and static code-upload challenges. If you are planning to host a new challenge, please get in touch at
Expand Down