Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update header: Add end of development banner #3436

Merged
merged 1 commit into from
Mar 27, 2023
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
5 changes: 5 additions & 0 deletions src/assets/scss/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,11 @@
background: #D4EAF7;
}

.banner {
background: #fdda08;
color: black;
}

.skip-main {
left:-999px;
position:absolute;
Expand Down
4 changes: 4 additions & 0 deletions src/data/global.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"name": "favicon",
"include": "all"
},
"banner": {
"en": "The CWA development ends on May 31, 2023. You still can warn other users until April 30, 2023. More information: <a href='/en/faq/results/#ramp_down' target='_blank'>FAQ</a>",
"de": "Die CWA-Entwicklung endet am 31.05.2023. Bis einschließlich 30.04.2023 können Sie andere Anwender warnen. Mehr dazu hier: <a href='/de/faq/results/#ramp_down' target='_blank'>FAQ</a>"
larswmh marked this conversation as resolved.
Show resolved Hide resolved
},
"whohelps": {
"en": {
"text": "Who helps regarding Corona-Warn-App questions?",
Expand Down
7 changes: 7 additions & 0 deletions src/partials/header.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<div class="col-sm-12 text-center banner pt-2 pb-2">
{{#if lang_de}}
{{{global.banner.de}}}
{{else}}
{{{global.banner.en}}}
{{/if}}
</div>
<header class="header{{#unless page-name}}{{#ifpage 'index'}} header_home{{/ifpage}}{{/unless}}{{#ifequal page-name 'index'}} header_home{{/ifequal}}{{#if header-cls}} header-cls{{/if}}">
<div class="container">
{{#unless lang_de}}
Expand Down