Skip to content

Commit e166720

Browse files
authored
chore: add Gateway API survey banner (#3450)
* chore: add Gateway API survey banner Signed-off-by: Mattia Lavacca <[email protected]> * chore: add survey banner Signed-off-by: Mattia Lavacca <[email protected]> --------- Signed-off-by: Mattia Lavacca <[email protected]>
1 parent 52dccb9 commit e166720

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

docs/stylesheets/banner.css

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.banner {
2+
height: 12px; /* Height of the banner */
3+
position: sticky; /* Follows as you scroll */
4+
top: 0; /* Absolute top of page */
5+
left: 0;
6+
width: 100%;
7+
z-index: 1; /* Tells the renderer "this is important", otherwise Admonition and Code Blocks will render into it */
8+
text-align: center;
9+
background-color: COLOR_HERE;
10+
}
11+
12+
.md-header {
13+
top: 12px; /* This setting prevents the Material header from imposing into the space of the banner! */
14+
}

override/partials/header.html

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{% extends "base.html" %}
2+
3+
{% block header %}
4+
<!-- Custom Banner -->
5+
<div class="banner">
6+
<p style="color:COLOR_HERE; display:inline;">Gateway API survey</p>
7+
</div>
8+
9+
<!-- Original Header -->
10+
{% include "partials/header.html" %}
11+
{% endblock %}

site-src/overrides/main.html

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends "base.html" %}
2+
3+
{% block announce %}
4+
<div style="display: flex; align-items: center; justify-content: center; background-color: white; padding: 10px; border-radius: 5px;">
5+
<div style="width: 30px; height: 30px; display: flex; align-items: center; margin-right: 10px;"> <!-- Add spacing after left logo -->
6+
<img src="/images/logo/logo.svg" alt="Gateway API Logo" class="center" style="width: 100%; height: 100%;" />
7+
</div>
8+
<b style="color: black; display: flex; align-items: center;">
9+
<a href="https://forms.gle/7kwf2TdBS2KMwV2FA" style="margin-right: 5px;">Gateway API survey</a> is out! We really appreciate your feedback!
10+
</b>
11+
<div style="width: 30px; height: 30px; display: flex; align-items: center; margin-left: 10px;"> <!-- Add spacing before right logo -->
12+
<img src="/images/logo/logo.svg" alt="Gateway API Logo" class="center" style="width: 100%; height: 100%;" />
13+
</div>
14+
</div>
15+
{% endblock %}

0 commit comments

Comments
 (0)