mirror of
https://github.com/asimonson1125/asimonson1125.github.io.git
synced 2026-02-24 21:09:49 -06:00
33 lines
1.1 KiB
HTML
Executable File
33 lines
1.1 KiB
HTML
Executable File
{% macro project(title, classes, status, bgi, content, links) %}
|
|
<div class="project {{ classes }}" data-aos="fade-up">
|
|
<div class="projImageWrap">
|
|
{% if bgi|length > 0 %}
|
|
{% set path = url_for('static', filename='photos/projects/' + bgi) %}
|
|
<img src="{{ path }}" alt="Ref image for {{ title }} project" />
|
|
{% else %}
|
|
<div class="projImagePlaceholder"></div>
|
|
{% endif %}
|
|
<div class="proj-status-badge {{ status }}">
|
|
<span class="status-indicator"></span>{{ status }}
|
|
</div>
|
|
</div>
|
|
<div class="projContent">
|
|
<h3>{{ title }}</h3>
|
|
<p class="projDesc">{{ content }}</p>
|
|
{% if links %}
|
|
<div class="projLinks">
|
|
{% for i in links %}
|
|
{% set src = 'icons/' + i[0] + '.svg' %}
|
|
{% if i[1].startswith('https://') or i[1].startswith('http://') %}
|
|
<a href="{{ i[1] }}" rel="noopener noreferrer" class="proj-link">
|
|
<img class="projectLink" src="{{ url_for('static', filename=src) }}" alt="{{ i[0] }}" />
|
|
<span>{{ i[2] }}</span>
|
|
</a>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endmacro %}
|