Skip to content
Merged
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
32 changes: 32 additions & 0 deletions theme/main.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,38 @@
>Developers</a
>
</div>
<div class="survey-banner" id="survey-banner" data-banner-id="docs-survey-2026-09">
<span class="survey-banner-text">
<a
href="https://docs.google.com/forms/d/e/1FAIpQLSdO4JpzoY93gJ2OsSqn3Pe1SRocqpSqlRNMGEaYnUrhdnKA1w/viewform?usp=publish-editor"
target="_blank"
rel="noopener"
>&#128203; Help us improve this DHIS2 documentation site by taking our short survey</a
>
</span>
<button type="button" class="survey-banner-close" aria-label="Dismiss">&times;</button>
</div>
<script>
(function () {
var banner = document.getElementById('survey-banner');
if (!banner) return;
var key = 'dhis2-docs-banner-dismissed-' + banner.dataset.bannerId;
try {
if (localStorage.getItem(key)) {
banner.style.display = 'none';
}
} catch (e) {}
var closeBtn = banner.querySelector('.survey-banner-close');
if (closeBtn) {
closeBtn.addEventListener('click', function () {
banner.style.display = 'none';
try {
localStorage.setItem(key, '1');
} catch (e) {}
});
}
})();
</script>
{% endblock %} {% block content %}
<blockquote style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap">
For the complete DHIS2 documentation index, see <a href="/llms.txt">llms.txt</a>.
Expand Down
44 changes: 44 additions & 0 deletions theme/resources/css/mkdocs_dhis2.css
Original file line number Diff line number Diff line change
Expand Up @@ -1370,3 +1370,47 @@
color: var(--grey900);
border-radius: 8px !important;
}

/* */

Check warning on line 1374 in theme/resources/css/mkdocs_dhis2.css

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Empty comment

See more on https://sonarcloud.io/project/issues?id=dhis2_dhis2-docs-builder&issues=AaCugfSeKJe1FSyJnrMV&open=AaCugfSeKJe1FSyJnrMV&pullRequest=289
/* Survey announcement banner (dismissible) */
/* */

Check warning on line 1376 in theme/resources/css/mkdocs_dhis2.css

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Empty comment

See more on https://sonarcloud.io/project/issues?id=dhis2_dhis2-docs-builder&issues=AaCugfSeKJe1FSyJnrMW&open=AaCugfSeKJe1FSyJnrMW&pullRequest=289

.survey-banner {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
background: #1976d2;
padding: 10px 40px;
position: relative;
text-align: center;
}

.survey-banner-text a {
color: #fff;
font-size: 18px;
text-decoration: underline;
}

.survey-banner-text a:hover {
color: #fff;
opacity: 0.85;
}

.survey-banner-close {
position: absolute;
right: 16px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: #fff;
font-size: 20px;
line-height: 1;
cursor: pointer;
padding: 4px;
}

.survey-banner-close:hover {
opacity: 0.75;
}
Loading