-
-
Notifications
You must be signed in to change notification settings - Fork 776
/
project.html
203 lines (191 loc) · 9.42 KB
/
project.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
---
layout: default
---
<header class='project-hero'>
<img src="/assets/images/projects/gradient-background.png" class="gradient-background" alt="">
<h1 class='hero-inner title1'>{{ page.title }}</h1>
</header>
<div class='content-section project-home-page'>
<!--Project Description Card-->
<div id='project-description-card' class='page-card card-primary page-card-lg page-card--project-description-page'>
<h2 class='project-page-card-title title6'>Project Overview</h2>
<!--Project Details-->
<div class='project-page-description'>
<!--Project Properties-->
<div class='description-grid-item'>
{% if page.status %}
<div>
<p class='project-page-description-field'><strong>Status: </strong></p>
<div class='status-indicator {{ "status-" | append: page.status }} project-page-status-indicator'>
<h5 class='status-text'>{{ page.status }}</h5>
</div>
</div>
{% endif %}
{% if page.partner %}<p><strong>Partner: </strong>{{ page.partner }}</p>{% endif %}
{% if page.location %}<p>
<strong>Location: </strong>
{% for city in page.location %}
{{ city }}{% if forloop.last == false %},{% endif %}
{% endfor %}
</p>{% endif %}
<!-- Links Logic to filter prioritized links and to correct comma placement -->
{% if page.links %}
{% assign counter = 0 %}
{% for item in page.links %}
{% assign counter = counter | plus:1 %}
{% endfor %}
{% if counter > 0 %}
<p>
<strong>Links: </strong>
{% for item in page.links %}
{% if counter == 1 %}
<a target="_blank" href='{{ item.url }}' rel="noopener noreferrer"> {{ item.name }}</a>
{% assign counter = counter | minus:1 %}
{% elsif counter > 1 %}
<a target="_blank" href='{{ item.url }}' rel="noopener noreferrer">{{ item.name }}</a>{% if forloop.last == false %}, {% endif %}
{% endif %}
{% endfor %}
</p>
{% endif %}
{% endif %}
{% if page.tools %}
<p id='tools'>
<strong>Tools: </strong>
{% for tool in page.tools %}
{{ tool }}{% if forloop.last == false %},{% endif %}
{% endfor %}
</p>
{% endif %}
<p id='languages'><strong>Languages: </strong></p>
{% if page.technologies %}
<p id='technologies'>
<strong>Technologies: </strong>
{% for tech in page.technologies %}
{{ tech }}{% if forloop.last == false %},{% endif %}
{% endfor %}
</p>
{% endif %}
<p class="meetingsHeader"></p>
<div id="userTimeZone" class="userTimeZone--project-page"></div>
<div id="meetings">
<ul class="meeting-times-list">
</ul>
</div>
</div>
<!--Project Summary-->
<!-- See issue #1997 for more info on why open-roles is commented out -->
<div class='description-grid-item'>
<p>{{page.description}}</p>
{% if page.status == "Completed" and page.completed-contact %}
<p>If you would like to talk to us about this completed project, please reach out to <a href="mailto:{{ page.completed-contact }}?subject=Question%20about%20{{ page.title }}">{{ page.completed-contact }}</a></p>
{% elsif page.status == "Completed" %}
<p>If you would like to talk to us about this completed project, please reach out to <a href="mailto:team@hackforla.org?subject=Question%20about%20{{ page.title }}">team@hackforla.org</a></p>
{% elsif page.looking %}
<!-- <p class='open-roles'><strong>Open roles:</strong></p>
<ul id='open-roles-list'>
{% for item in page.looking %}
<li><p class='role-paragraph'>{% if item.skill %}{{ item.skill }}{% endif %}</p></li>
{% endfor %}
</ul> -->
{% endif %}
</div>
</div>
</div>
<!--Project Value Card-->
{% if page.problem %}
<div id='project-value-card' class='page-card card-primary page-card-lg page-card--project-description-page'>
<h2 class='project-page-card-title title6'>Value</h2>
<div class='project-page-value-description'>
<div class='sdg-grid-item'>
<p><strong>Problem</strong></p>
<p>{{ page.problem }}</p>
<p><strong>Solution</strong></p>
<p>{{ page.solution }}</p>
<p><strong>Impact</strong></p>
<p>{{ page.impact }}</p>
</div>
{%- assign background_color = page.sdg-color-variable | replace_first: "$", "background-" -%}
<div class='sdg-description-card {{ background_color }}'>
<h2 class='sdg-card-title title7'>Sustainable Development Goal</h2>
<div class='sdg-description-wrapper'>
<img class='sdg-img' src='{{ page.sdg-image-src }}'>
<div class='sdg-description-grid-item'>{{ page.sdg }}</div>
</div>
</div>
</div>
</div>
{% endif %}
<!--Project Resources Card-->
<div class='page-card card-primary page-card-lg page-card--project-description-page'>
<h2 class='project-page-card-title title6'>Resources</h2>
<ul class="resource-list unstyled-list">
{%- for item in page.links -%}
{% if item.name == 'Readme' or item.name == 'Wiki' or item.name == 'Overview' %}
{%- include resource-card.html name=item.name url=item.url image=page.image -%}
{% else %}
{%- include resource-card.html name=item.name url=item.url -%}
{% endif %}
{%- endfor -%}
<!-- Hfla Start Guide -->
{%- include resource-card.html name='Getting Started' url='/getting-started' -%}
</ul>
</div>
<!-- Project Team Card -->
<div id='project-team-card' class='page-card card-primary page-card-lg page-card--project-description-page'>
{% if page.status == "Completed" %}
<h2 class='project-page-card-title title6'>Project Team</h2>
{% else %}
<h2 class='project-page-card-title title6'>Current Project Team</h2>
{% endif %}
{% if page.leadership %}
<div class='resource-list'>
{% for item in page.leadership %}
<div class='leader-card'>
<a href='{{ item.links.github }}' target='_blank' title='GitHub Profile'><img class='leader-img' src='{{ item.picture }}'></a>
<div class='leader-description'>
{% if page.status == "Completed" and item.links.linkedin %}
<p class='leader-description-field'></p><strong>Name: </strong><a href='{{ item.links.linkedin }}' target='_blank' title='Linkedin Profile' rel="noopener noreferrer">{{ item.name }}</a></p>
{% elsif page.status == "Completed" %}
<p class='leader-description-field'><strong>Name: </strong><a href='{{ item.links.github }}' target='_blank' title='GitHub Profile' rel="noopener noreferrer">{{ item.name }}</a></p>
{% else %}
<p class='leader-description-field'><strong>Name: </strong><a href='{{ item.links.slack }}'target='_blank' title='Slack Direct Message' rel="noopener noreferrer">{{ item.name }}</a></p>
{% endif %}
<p class='leader-description-field'><strong>Role: </strong>{{ item.role }}</p>
</div>
</div>
{% endfor %}
</div>
{% else %}
<div class='empty-content-message'>
<p>Looks like this project has not revealed specific leadership roles yet!</p>
</div>
{% endif %}
<h2 id='contributor-header' class='project-page-card-title title6'>All-Time Contributors</h2>
<div id='contributors-list' class='resource-list'></div>
</div>
<!-- Show iFrame Card for project, if available -->
{% if page.iframe.available == true %}
<div class='page-card card-primary page-card-lg page-card--iframe'>
<iframe
src='{{ page.iframe.src }}'
width="100%"
height="100%"
style="margin: 0; border: 2px solid color-mediumdarkcyanblue; box-sizing: border-box">
</iframe>
</div>
{% endif %}
</div>
{{ content | markdownify }}
{{ content | markdownify }}
<!--
Passing script attributes from html script tag to JS file
https://www.gun.io/blog/pass-arguments-to-embedded-javascript-tutorial-example
-->
<script id="projectScript"
src="/assets/js/project.js"
type="module"
projectId="{{ page.identification }}"
additionalRepoIdNums="{{ page.additional-repo-ids | join: ',' }}"
imageHero="{{ page.image-hero }}"
projectTitle="{{ page.title }}">
</script>