From 5fc6fa293f668333da6d9c342f3140265487f307 Mon Sep 17 00:00:00 2001 From: Catalin Date: Mon, 3 Jun 2024 13:01:49 +0300 Subject: [PATCH 1/3] HDX-9839 update texts & embedded form, move sections, add hero image (logo) --- .../hdx_theme/fanstatic/bem.blocks/hero.css | 3 + .../images/landing_pages/logo_hdx_signals.png | Bin 0 -> 12161 bytes .../src/common/less/bem.blocks/hero.less | 4 ++ .../ui_constants/landing_pages/signals.py | 19 +++--- .../hdx_theme/templates/bem.blocks/hero.html | 3 + .../templates/landing_pages/signals.html | 56 +++++++++--------- 6 files changed, 47 insertions(+), 38 deletions(-) create mode 100644 ckanext-hdx_theme/ckanext/hdx_theme/hdx-styles/src/common/images/landing_pages/logo_hdx_signals.png diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/bem.blocks/hero.css b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/bem.blocks/hero.css index 512868303f..8d5042421b 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/bem.blocks/hero.css +++ b/ckanext-hdx_theme/ckanext/hdx_theme/fanstatic/bem.blocks/hero.css @@ -39,6 +39,9 @@ font-size: 20px; line-height: 28px; } +.bem-hero__image { + max-height: 50px; +} .bem-hero__sections { color: #000; font-weight: 400; diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/hdx-styles/src/common/images/landing_pages/logo_hdx_signals.png b/ckanext-hdx_theme/ckanext/hdx_theme/hdx-styles/src/common/images/landing_pages/logo_hdx_signals.png new file mode 100644 index 0000000000000000000000000000000000000000..4d5e87f29cb26824e991941662a0b46b7a2ec325 GIT binary patch literal 12161 zcmXYXbzD>b_x~L!Eg&EbQtweBDJ`MW2#COFX-9WELJ*Z4AYD3;MqqS|P#Toj=nw&A zG*VK(>*xEsf9$cx-R?cFb6)3l;(4BNPxKyBk+YBk06?Xwp>7BOgq7g;lp7@AXO*q6 z8~|_un(8V~19P?)R=j2haU^?AOU+9Iodj>0JF=hJpa{;NfgecnJ0>>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Xd zgEWhz6SXP7{{qBrZ90GQ^jMS8qGNy$~JTPITP6HoE{0S)iNYJWn<&-;P3X~^)#`naL-N!4{-j+k@l)oE zUgzUknBLWzSl5f{6e6`d)yUhsb5oN0vTa@Y)rmib^GU%&pWF-43sG|=EBJpS;bW*3IN&&;s#4_dz}QFGV9QEtzyKyb@Def5LVa3%UNj#LK5`6JIpDoX0+(>R2~(F*>I!xB zST9|0-L$fWsW6Q1`>n88i{F^c55b(hREXE0M&E6R>*+vxE#7|UJsb$oDn;3IpSvb( zA{YQe67cc9dlUa&S(ySz_2q}Cy4w&mEJ|@1YB>PzAfFElJ5dZ2xFg33hW|TvUZfem zi0d)y69DQuw)9~gDYPeu`G zuYVE!&&HpOQ{pdz*As&x$>^ArqLe^dosQ#C*?Ob64c{F(+W*sPfef#d7!*CQye=wU zBYsSTq0$oyaKvb-`;z=m*3Wl_FG#pvU9x-=ybD5yq7Y#;_N-a?$zaxMWwjB()Hn|! z8UkASHyDpVW~NasT9`iujlFw;^Y!THanRv*BjKvP1-nz6N+3JNmt z$#4Pbz(rgd>ryK1Vft$O02h@Toa0WB(*OBKS8}BT9e~S=_1395@28_ZBKw~p@^ncz z5JG=KFzr3WULEq4j+Tn}e?M$eqMp7xsdUcT`V%rt;%LrJQl_rX0geYjA)|&`y0#7F zaW(`qAR&D0Ghdx-signals@un.org''', - 'HERO_SECTION_LABEL': '''HDX Signals''', + 'HERO_SECTION_TITLE': '''A new product that monitors key datasets and generates automated emails when significant, negative changes are detected''', + 'HERO_SECTION_DESCRIPTION': '''We are seeking feedback. Please contact us at hdx-signals@un.org''', 'DATA_COVERAGE_SECTION_TITLE': '''Data Coverage''', 'DATA_COVERAGE_SECTION_DESCRIPTION': '''Datasets monitored by HDX signals at the moment are as follows:''', 'SIGNUP_SECTION_TITLE': '''Sign up''', - 'SIGNUP_SECTION_DESCRIPTION': '''Sign up below to receive HDX Signals emails. You must select specific datasets, plus regions and/or HRP countries, to receive content that you are interested in.''', + 'SIGNUP_SECTION_DESCRIPTION': '''Sign up below to receive HDX Signals emails. You must select specific datasets, plus entire regions and/or priority humanitarian locations, to receive content that you are interested in.''', 'RESOURCES_SECTION_TITLE': '''Resources''', 'RESOURCES_SECTION_DESCRIPTION': '''For more information about the datasets monitored by HDX signals as well as information for developers see the following:''', @@ -19,9 +18,9 @@ 'RESOURCES_CARD_BUTTON_LINK_MAP': '''https://baripembo.github.io/viz-hdx-signals/''', 'RESOURCES_CARD_TITLE_DATASET': '''Download HDX Signals dataset on HDX''', - 'RESOURCES_CARD_TEXT_DATASET': '''Preview or download the full HDX Signals dataset''', + 'RESOURCES_CARD_TEXT_DATASET': '''Explore the full HDX Signals dataset''', 'RESOURCES_CARD_BUTTON_DATASET': '''Learn more''', - 'RESOURCES_CARD_BUTTON_LINK_DATASET': '''#''', + 'RESOURCES_CARD_BUTTON_LINK_DATASET': '''https://data.humdata.org/dataset/hdx-signals''', 'RESOURCES_CARD_TITLE_METHODOLOGY': '''Methodology''', 'RESOURCES_CARD_TEXT_METHODOLOGY': '''Read the HDX Signals methodology''', @@ -50,7 +49,7 @@ "link": "https://data.humdata.org/organization/acled" }, { - "title": "Food security", + "title": "Food insecurity", "organization": "the Integrated Food Security Phase Classification (IPC)", "link": "https://data.humdata.org/dataset/global-acute-food-insecurity-country-data" }, @@ -60,15 +59,15 @@ "link": "https://data.humdata.org/organization/international-displacement-monitoring-centre-idmc" }, { - "title": "Market monitor", + "title": "Market monitoring", "organization": "World Food Programme (WFP)", - "link": "https://data.humdata.org/organization/wfp" + "link": "https://data.humdata.org/datasets/global-market-monitor" }, ] SECTIONS_CONSTANTS = [ - {'name': 'Data Coverage', 'url': '#data-coverage'}, {'name': 'Signup', 'url': '#signup'}, + {'name': 'Data Coverage', 'url': '#data-coverage'}, {'name': 'Signals map', 'url': 'https://baripembo.github.io/viz-hdx-signals/'}, {'name': 'Resources', 'url': '#resources'}, {'name': 'FAQ', 'url': '#faq'}, diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html index fe1537b8e7..09fdfd1d9b 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html @@ -5,6 +5,9 @@ {% if label %}

{{ label }}

{% endif %} + {% if image %} + hero image + {% endif %}

{{ title }}

{{ text|safe }}

{% if sections %} diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/landing_pages/signals.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/landing_pages/signals.html index 80f3cee580..bda26e9e5d 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/landing_pages/signals.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/landing_pages/signals.html @@ -9,26 +9,10 @@ {% endblock %} {% block content %} - {{ h.snippet('bem.blocks/hero.html', title=CONST.HERO_SECTION_TITLE, text=CONST.HERO_SECTION_DESCRIPTION.format('mailto:hdx-signals@un.org'), label=CONST.HERO_SECTION_LABEL, sections=sections, click_stopper_link_type='signals jump nav', spacing_class="mb-5") }} + {{ h.snippet('bem.blocks/hero.html', title=CONST.HERO_SECTION_TITLE, text=CONST.HERO_SECTION_DESCRIPTION.format('mailto:hdx-signals@un.org'), image='/images/landing_pages/logo_hdx_signals.png', sections=sections, click_stopper_link_type='signals jump nav', spacing_class="mb-5") }}
-
-
-
- {{ h.snippet('bem.blocks/heading.html', title=CONST.DATA_COVERAGE_SECTION_TITLE, heading_type=3, spacing_class="mb-1") }} - {{ h.snippet('bem.blocks/paragraph.html', text=CONST.DATA_COVERAGE_SECTION_DESCRIPTION, paragraph_classes=["paragraph__text_font-size-medium", "mt-4"]) }} -
-
- {% for card in data_coverage %} -
- {{ h.snippet('bem.blocks/card.html', title=card.title, text=card.organization, button='Learn more', click_stopper_link_type='signals data coverage', click_stopper_link_label=card.title, link=card.link, card_classes=["bem-card_type-slim"]) }} -
- {% endfor %} -
-
-
-
@@ -80,14 +64,14 @@
  • - +
  • - +
  • -
  • @@ -146,7 +130,7 @@
  • -
  • @@ -164,7 +148,7 @@
  • -
  • @@ -208,7 +192,7 @@
  • -
  • @@ -238,7 +222,7 @@
  • -
  • @@ -276,7 +260,7 @@
  • -
  • @@ -331,7 +315,7 @@
  • -
  • @@ -364,6 +348,22 @@
    +
    +
    +
    + {{ h.snippet('bem.blocks/heading.html', title=CONST.DATA_COVERAGE_SECTION_TITLE, heading_type=3, spacing_class="mb-1") }} + {{ h.snippet('bem.blocks/paragraph.html', text=CONST.DATA_COVERAGE_SECTION_DESCRIPTION, paragraph_classes=["paragraph__text_font-size-medium", "mt-4"]) }} +
    +
    + {% for card in data_coverage %} +
    + {{ h.snippet('bem.blocks/card.html', title=card.title, text=card.organization, button='Learn more', click_stopper_link_type='signals data coverage', click_stopper_link_label=card.title, link=card.link, card_classes=["bem-card_type-slim"]) }} +
    + {% endfor %} +
    +
    +
    +
    From f2459e376928c6cfdda5584432f3c11437145618 Mon Sep 17 00:00:00 2001 From: Catalin Date: Mon, 3 Jun 2024 13:17:38 +0300 Subject: [PATCH 2/3] HDX-9839 add margin between hero logo and title --- .../ckanext/hdx_theme/templates/bem.blocks/hero.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html b/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html index 09fdfd1d9b..9b9a8215b8 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html +++ b/ckanext-hdx_theme/ckanext/hdx_theme/templates/bem.blocks/hero.html @@ -6,7 +6,7 @@

    {{ label }}

    {% endif %} {% if image %} - hero image + hero image {% endif %}

    {{ title }}

    {{ text|safe }}

    From 02ec9f1df584680cee64b3f3cffd8324cadfef98 Mon Sep 17 00:00:00 2001 From: Catalin Date: Mon, 3 Jun 2024 14:40:06 +0300 Subject: [PATCH 3/3] HDX-9839 update text --- .../hdx_theme/helpers/ui_constants/landing_pages/signals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext-hdx_theme/ckanext/hdx_theme/helpers/ui_constants/landing_pages/signals.py b/ckanext-hdx_theme/ckanext/hdx_theme/helpers/ui_constants/landing_pages/signals.py index 45ce139ea9..ac98059eb7 100644 --- a/ckanext-hdx_theme/ckanext/hdx_theme/helpers/ui_constants/landing_pages/signals.py +++ b/ckanext-hdx_theme/ckanext/hdx_theme/helpers/ui_constants/landing_pages/signals.py @@ -6,7 +6,7 @@ 'DATA_COVERAGE_SECTION_DESCRIPTION': '''Datasets monitored by HDX signals at the moment are as follows:''', 'SIGNUP_SECTION_TITLE': '''Sign up''', - 'SIGNUP_SECTION_DESCRIPTION': '''Sign up below to receive HDX Signals emails. You must select specific datasets, plus entire regions and/or priority humanitarian locations, to receive content that you are interested in.''', + 'SIGNUP_SECTION_DESCRIPTION': '''Sign up below to receive HDX Signals emails. To receive the content you are interested in, please make sure you have selected AT LEAST ONE dataset and region or priority humanitarian location from the options below.''', 'RESOURCES_SECTION_TITLE': '''Resources''', 'RESOURCES_SECTION_DESCRIPTION': '''For more information about the datasets monitored by HDX signals as well as information for developers see the following:''',