-
-
Notifications
You must be signed in to change notification settings - Fork 777
/
program-area-pages-cards.html
52 lines (51 loc) · 3.13 KB
/
program-area-pages-cards.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!-- These are the cards found on a program area page, such as the cards on https://www.hackforla.org/citizen-engagement webpage. -->
{% assign visible_projects = site.projects | where: "program-area", "Citizen Engagement" | where: "visible", "true" %}
{% for item in visible_projects %}
{%- if
item.problem.size > 0 and
item.solution.size > 0 and
item.impact.size > 0 and
item.sdg.size > 0 and
item.sdg-image-src.size > 0
-%}
<div class="page-card card-primary page-card-lg program-area" data-dropdown>
<img class="card-image" src="{{ item.image }}" alt="">
<div class="mobile-card-info-container">
<div class="mobile-card-nav">
{% assign project_relative_path = item.slug | prepend: "../projects/" %}
<h3><a class="project-card-mini-title" href="{{ project_relative_path }}">{{ item.title }}</a></h3>
<input class="dropdown-arrow" data-dropdown-arrow type="image" src="/assets/images/citizen-engagement/arrow-button-icon.svg" alt="dropdown-arrow">
</div>
<div class="project-dropdown">
<div class="problem-info">
<h4>Problem</h4>
<p>{{ item.problem }}</p>
</div>
<div class="solution-info">
<h4>Solution</h4>
<p>{{ item.solution }}</p>
</div>
<div class="impact-info">
<h4>Impact</h4>
<p>{{ item.impact }}</p>
</div>
</div>
</div>
<div class="sustainable-dev-goal">
<h4>Sustainable Development Goal</h4>
<div class="card-bottom-info">
<img class="sdg-image" src="{{ item.sdg-image-src }}" alt="{{ item.sdg-image-alt }}">
<p>{{ item.sdg }}</p>
</div>
</div>
</div>
{%- else -%}
<div class="page-card card-primary page-card-lg missing-area" data-dropdown>
<div class="mobile-card-info-container">
{% assign project_relative_path = item.slug | prepend: "../projects/" %}
<h3><a class="project-card-mini-title" href="{{ project_relative_path }}">{{ item.title }}</a></h3>
<p>We are currently drafting the Problem, Solution and Impact statements for this project.</p>
</div>
</div>
{%- endif -%}
{% endfor %}