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

feat: add a placeholder video to the homepage #23

Merged
merged 3 commits into from
Aug 30, 2024
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
17 changes: 16 additions & 1 deletion ckanext/zarr/assets/css/zarr.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@

}

.homepage .hero .insights figure {
margin-top: 20px;
width: 560px;
max-width: 100%;
}

.homepage .hero .insights figure iframe {
width: 100%;
}

.homepage .hero .insights figcaption {
margin-left: 15px;
width: 90%;
}

.promoted-background {
background-color: #13240F;
}
Expand Down Expand Up @@ -286,4 +301,4 @@
margin-top: 20px;
color: var(--primary);
}
/* about */
/* about */
3 changes: 0 additions & 3 deletions ckanext/zarr/assets/css/zarr_palette.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
/* promoted background color */
--promoted-background-color: #13240F;
/* insights */
--show-insights-title-display: none; /* set to block to show */
--upper-container-display: none; /* set to flex to show */
--upper-container-display-mobile: none; /* set to block to show */
--lower-container-display: flex; /* set to flex to show */
--after-insights-min-height: 400px;
/* masthead */
Expand Down
15 changes: 12 additions & 3 deletions ckanext/zarr/templates/home/snippets/insights.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
{% ckan_extends %}

{% block bottom_container_left_label %}{{ _('Section title') }}{% endblock %}
{% block top_container_title %}{{ _('Find out more about the repository') }}{% endblock %}

{% block bottom_container_left_content_label %}{{ _('Indicators') }}{% endblock %}
{% block top_container %}
<div class="row insight-row insights-upper-item">
<div class="d-flex justify-content-center">
<figure class="figure">
<iframe class="figure-img" width="560" height="315" src="https://www.youtube.com/embed/BzhjEphkQzQ?si=tLJ2xcxEjxIQvOIA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<figcaption class="figure-caption">{{ _('[Coming Soon] Watch this video to find out more about the Zambia Research and Evaluation Repository') }}</figcaption>
</figure>
</div>
</div>
{% endblock %}

{% block bottom_container_right_label %}Data hub stats{% endblock %}
{% block bottom_container %}{% endblock bottom_container %}