Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Updated banner
Browse files Browse the repository at this point in the history
  • Loading branch information
gtrivedi88 committed Jul 16, 2024
1 parent 7be7498 commit 495d5b3
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
38 changes: 21 additions & 17 deletions antora-lunr-ui/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -141,33 +141,37 @@ aside.toc.sidebar {
visibility: visible;
}


.banner {
width: 100%;
background-color: #f44336;
/* Red background */
color: white;
text-align: center;
padding: 15px 0;
position: fixed;
top: 0;
z-index: 1000;
animation: slideDown 0.5s ease-in-out;
background-color: #f8d7da;
color: #721c24;
padding: 15px;
border: 1px solid #f5c6cb;
border-radius: 5px;
animation: slide-in 1s ease-out;
position: relative;
/* Ensure the banner does not overlap other elements */
margin: 10px 0;
/* Add some space between the navbar and the banner */
}

.banner a {
color: #ffc107;
/* Amber link color */
font-weight: bold;
text-decoration: none;
.banner-title {
font-size: 24px;
margin: 0;
}

.banner-message {
font-size: 18px;
margin: 10px 0 0;
}

@keyframes slideDown {
@keyframes slide-in {
from {
transform: translateY(-100%);
opacity: 0;
}

to {
transform: translateY(0);
opacity: 1;
}
}
11 changes: 4 additions & 7 deletions antora-lunr-ui/partials/header-content.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
</div>
</div>
</nav>
</header>
<body>
<div class="banner">
<h1>Deprecated Document Notice</h1>
<h3>The documentation you are viewing is deprecated. For the latest updates on Konflux, review
<a href="https://konflux-ci.dev/docs/" target="_blank">Konflux documentation</a>.</h3>
<h1 class="banner-title">Deprecated Document Notice</h1>
<h3 class="banner-message">The documentation you are viewing is deprecated. For the latest updates on Konflux,
review the <a href="https://konflux-ci.dev/docs/" target="_blank">Konflux documentation</a>.</h3>
</div>

</body>
</header>

0 comments on commit 495d5b3

Please sign in to comment.