Skip to content
This repository has been archived by the owner on Jan 23, 2025. It is now read-only.

Commit

Permalink
feat: move datahub stats into footer (#20)
Browse files Browse the repository at this point in the history
* Removed insight section

* Removed max-width for bottom search footer button

* Updating search button

* Updating search button

* small comment

* a bit of customization for datahub stats

* fix: keep insights

---------

Co-authored-by: toavina <[email protected]>
Co-authored-by: Chas Nelson <[email protected]>
  • Loading branch information
3 people authored Aug 30, 2024
1 parent 1254dda commit da37dde
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 24 deletions.
45 changes: 21 additions & 24 deletions ckanext/zarr/assets/css/zarr.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,20 @@
background: none;
}

.search-section .big-search-form .lens-btn {
background-color: var(--light);
padding-right: 14px;
padding-left: 14px;
}

.subscribe .register {
color: white;
background-color: #13240F;
border: white thin solid;
}

.footer-search-section .lens-btn {
background-color: white;
border: inherit;
padding-left: 18px;
padding-right: 18px;
}

.footer-search-section .search-label {
display: none !important;
}

.footer-search-section #field-giant-search {
max-width: 371px;
.footer-search-section .fa-search {
color: var(--primary);
}

.topics-background {
Expand Down Expand Up @@ -145,25 +140,19 @@
}

.fa-search {
color: #198A00;
color: var(--secondary);
}

#dataset-search-form .btn-default:hover > .fa-search {
color: #198A00;
color: var(--secondary);
}

#dataset-search-form .btn-default > .fa-search {
color: #DFF0DB;
}

.big-search-form .lens-btn {
background-color: white;
padding-right: 14px;
padding-left: 14px;
color: var(--background);
}

.dataset-resources li a.badge, .dataset-resources li a.badge:hover {
color: #EF7D00 !important;
color: var(--tag) !important;
}

/* package read - additional info */
Expand Down Expand Up @@ -259,6 +248,15 @@
margin-top: 36px;
}

@media only screen and (max-width: 1199px) {
.desc-wide {
display: none;
}
.desc-tablet {
display: block;
}
}

/* about */
.zarr-about {
line-height: 1.6;
Expand Down Expand Up @@ -301,4 +299,3 @@
margin-top: 20px;
color: var(--primary);
}
/* about */
4 changes: 4 additions & 0 deletions ckanext/zarr/templates/snippets/datahub_stats.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{% ckan_extends %}

{% set stats = h.get_datahub_stats(config_data = [{'label': '-Categories', 'value': 0}]) %}

0 comments on commit da37dde

Please sign in to comment.