Skip to content

Commit a861310

Browse files
committed
updated banner title texts
1 parent bf374a1 commit a861310

3 files changed

Lines changed: 23 additions & 13 deletions

File tree

survey_dashboard/hmc_layout/en_template.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@
165165
background-size: cover;
166166
height: 320px;
167167
background-repeat: no-repeat;
168-
align-items: flex-end !important;
168+
/*align-items: flex-end !important;*/
169169
}
170170

171171
.d-flex {
@@ -947,11 +947,17 @@
947947

948948
<main class="pb-20 bg-gray-100">
949949

950-
<div class="banner flex-row d-flex" style="background-image: url(./en_files/Banner2.png);">
951-
<div class="container mx-auto mb-12" style="display: flex;padding-left: 72px;">
952-
<span class="text-2xl sm:text-3xl font-display font-bold uppercase text-white" style="display: inline-block; align-self: flex-end;">
953-
{{ app_title }}
954-
</span>
950+
<div class="banner" style="background-image: url(./en_files/Banner2.png);">
951+
<div class="container mx-auto" style="display:flex;flex-direction:row;padding-top: 72px;">
952+
<div class="flex flex-col" style="justify-content: center;">
953+
<div class="text-2xl sm:text-3xl font-display font-bold text-white" style="display: inline-block; align-self: flex-start; ">
954+
{{ app_title }}
955+
</div>
956+
<div class="text-2xl sm:text-3xl font-display font-bold text-white" style="display: inline-block; align-self: flex-start;">
957+
{{ dashboard_title }}
958+
</div>
959+
</div>
960+
955961

956962
<img src="./en_files/SurveyExplorerLogoInverted.png" style="margin-left:auto; height: 13rem">
957963

survey_dashboard/i18n/text_display.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@
1212
This is the central place for all text from the dashboard which needs to be translated
1313
"""
1414

15-
md_text_title = {'EN': 'HMC Survey Data Explorer', 'DE': 'HMC Survey Data Explorer'}
15+
md_text_title = {'EN': 'Survey Data Explorer: ', 'DE': 'HMC Survey Data Explorer'}
16+
17+
md_dashboard_title = {'EN': 'HMC Community Survey 2021', 'DE': 'HMC Community Survey 2021'}
1618

1719
# Description
1820
md_text_description = {'EN': ("Explorer interactively the HMC 2021 Survey results. "
19-
"The overview sections displays some main results, while you can apply some global filters to these. "
21+
"The overview sections displays some main results, while you can apply some global filters to these. "
2022
"Find out what methods, tools, software and standards are applied by others in your research area. "
2123
"The question explorer allows for in detail analysis of a specific question and simple correlations of two questions. "
2224
"Interact with the visualizations and widgets on the left to explorer the data.\n"
@@ -39,7 +41,7 @@
3941
}
4042

4143

42-
## Global data filters\n
44+
## Global data filters\n
4345
md_text_global_filter = {'EN': ("Apply filters to displayed data according to research areas and data generation method"),
4446
'DE': ("Wende Filter auf die Resultate an um nur Daten bestimmter "
4547
"Forschungsfelder und Erzeugungsmethode dazustellen.")}
@@ -52,10 +54,10 @@
5254
'DE': "Übersicht mit hervorgehobene Fragen zum Forschungsdatenmanagement"}
5355

5456

55-
# Tools and Methods\n
57+
# Tools and Methods\n
5658

57-
md_text_tools_tabs = {'methods': {'EN': 'Data generation methods', 'DE': 'Datengenerierungsmethoden'},
58-
'software': {'EN': 'Main software in use', 'DE': 'Haupt Software in Benutzung'},
59+
md_text_tools_tabs = {'methods': {'EN': 'Data generation methods', 'DE': 'Datengenerierungsmethoden'},
60+
'software': {'EN': 'Main software in use', 'DE': 'Haupt Software in Benutzung'},
5961
'repositories': {'EN': 'Repositories data published in', 'DE': 'Repositorien mit Datenpublikationen'}}
6062

6163
md_text_tools_used = {'EN': ("Discover the scientific methods, used software and repositories of our communities."),
@@ -77,4 +79,4 @@
7779
accordion_titles = {
7880
'EN': ['Global Data Filters', 'Community Profiles', 'Methods, Tools and Software', 'Survey Data Explorer'],
7981
'DE': ['Globale Datenfilter', 'Communityprofile', 'Methoden, Werkzeuge und Software', 'Survey Data Explorer']
80-
}
82+
}

survey_dashboard/ui/layout.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
md_text_barchart,
3030
md_text_corrchart,
3131
md_text_title,
32+
md_dashboard_title,
3233
accordion_titles,
3334
md_text_descriptions_icons
3435
)
@@ -214,6 +215,7 @@ def setup_template_variables(self, layout):
214215
"""Setup template with layout and variables."""
215216
self.template.add_panel("App", layout)
216217
self.template.add_variable("app_title", md_text_title[LANGUAGE])
218+
self.template.add_variable("dashboard_title", md_dashboard_title[LANGUAGE])
217219
self.template.add_variable("image_url", "./en_files/Banner.png")
218220

219221
return self.template

0 commit comments

Comments
 (0)