From 6f442a51ae3ea2ec9981b605871da37c21bce9f4 Mon Sep 17 00:00:00 2001 From: Sneha Sharma Date: Thu, 19 Sep 2024 23:26:50 +0400 Subject: [PATCH] [update][s]: Data providers updated as per design --- ckanext/ubdc/assets/css/style.css | 16 +++++++- ckanext/ubdc/public/base/scss/_homepage.scss | 22 +++++++++- .../templates/home/snippets/providers.html | 41 ++++++++++++------- 3 files changed, 62 insertions(+), 17 deletions(-) diff --git a/ckanext/ubdc/assets/css/style.css b/ckanext/ubdc/assets/css/style.css index 3cd5b44..c022532 100644 --- a/ckanext/ubdc/assets/css/style.css +++ b/ckanext/ubdc/assets/css/style.css @@ -10400,6 +10400,16 @@ h4 small { .homepage .btn { padding: 15px 30px; } +.homepage .small-button { + padding: 12px 20px 12px 24px; + font-size: 14px; + background-color: #c2410c; + border: none; + color: white; + border-radius: 4px; + cursor: pointer; + text-transform: capitalize; +} .homepage .hero { min-height: 480px; height: 500px; @@ -10893,6 +10903,9 @@ h4 small { .homepage .providers { background: #fff; } +.homepage .providers .wrap { + margin: 3rem 0; +} .homepage .providers h2 { color: #000000; text-align: center; @@ -10905,6 +10918,7 @@ h4 small { flex-wrap: wrap; align-items: center; align-content: center; + padding: 4rem; } .homepage .providers .logo-grid__item { padding: 15px; @@ -11145,7 +11159,7 @@ input[type=search]::-webkit-search-cancel-button { } .explore-content .card-text { font-size: 1.5rem; - color: #666D80; + color: #666d80; } .explore-content .btn-readmore { background-color: transparent; diff --git a/ckanext/ubdc/public/base/scss/_homepage.scss b/ckanext/ubdc/public/base/scss/_homepage.scss index 582d4c0..702975e 100644 --- a/ckanext/ubdc/public/base/scss/_homepage.scss +++ b/ckanext/ubdc/public/base/scss/_homepage.scss @@ -3,6 +3,19 @@ .btn { padding: 15px 30px; } + .small-button { + padding: 12px 20px 12px 24px; + font-size: 14px; + background-color: #c2410c; + border: none; + color: white; + border-radius: 4px; + cursor: pointer; + text-transform: capitalize; + } + // .small-button:hover { + // opacity: 0.9; + // } .hero { min-height: 480px; height: $hero-height; @@ -541,6 +554,9 @@ .providers { background: #fff; + .wrap { + margin: 3rem 0; + } h2 { color: #000000; text-align: center; @@ -553,6 +569,7 @@ flex-wrap: wrap; align-items: center; align-content: center; + padding: 4rem; &__item { padding: 15px; width: 180px; @@ -806,7 +823,8 @@ input[type="search"]::-webkit-search-cancel-button { padding: 1rem; } .card-img-top-wrapper { - height: 190px; overflow: hidden; + height: 190px; + overflow: hidden; img { width: 100%; height: 200px; @@ -816,7 +834,7 @@ input[type="search"]::-webkit-search-cancel-button { } .card-text { font-size: 1.5rem; - color: #666D80; + color: #666d80; } .btn-readmore { background-color: transparent; diff --git a/ckanext/ubdc/templates/home/snippets/providers.html b/ckanext/ubdc/templates/home/snippets/providers.html index bef84a5..27bf48f 100644 --- a/ckanext/ubdc/templates/home/snippets/providers.html +++ b/ckanext/ubdc/templates/home/snippets/providers.html @@ -1,25 +1,38 @@
-

- Data Providers -

+ + +
+
+

Data Providers

+
+
+ {% set count = namespace(value=0) %} {% set providers = h.get_data_providers() %}
{% for provider in providers %} - {% if provider.image_display_url %} - {% set url = h.url_for('organization' ~ '.read', id=provider.name) %} - {% if count.value < 6 %} -
- - {{ provider.name }} - -
- {% endif %} - {% set count.value = count.value + 1 %} - {% endif %} - {% endfor %} + {% if provider.image_display_url %} + {% set url = h.url_for('organization' ~ '.read', id=provider.name) %} + {% if count.value < 6 %} -

Explore all data providers →

+ {% endif %} + {% set count.value = count.value + 1 %} + {% endif %} + {% endfor %}
+

+ + + +

+
\ No newline at end of file