add: button on featured project too
All checks were successful
Deploy via SSH on push / deploy-via-ssh (push) Successful in 22s
All checks were successful
Deploy via SSH on push / deploy-via-ssh (push) Successful in 22s
This commit is contained in:
@@ -30,23 +30,32 @@
|
||||
{% for project in projects %}
|
||||
<div class="row mb-5 justify-content-{{ project.align }}">
|
||||
<div class="col-md-8">
|
||||
<a href="{{ project.link }}" class="text-decoration-none">
|
||||
<div class="p-4 rounded-4 text-light shadow hover-scale transparent-box">
|
||||
<div class="row align-items-center {% if project.align == 'end' %}flex-md-row-reverse{% endif %}">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ project.title }}</h4>
|
||||
<p>{{ project.description }}</p>
|
||||
</div>
|
||||
<div class="col-md-5 text-center">
|
||||
<img src="{{ url_for('static', filename='img/' ~ project.image) }}"
|
||||
alt="{{ project.title }}" class="img-fluid rounded shadow project-img">
|
||||
</div>
|
||||
<div class="p-4 rounded-4 text-light shadow hover-scale transparent-box"
|
||||
onclick="window.location='{{ project.link }}'" style="cursor: pointer; position: relative;">
|
||||
|
||||
<div class="row align-items-center {% if project.align == 'end' %}flex-md-row-reverse{% endif %}">
|
||||
<div class="col-md-7">
|
||||
<h4>{{ project.title }}</h4>
|
||||
<p>{{ project.description }}</p>
|
||||
</div>
|
||||
<div class="col-md-5 text-center">
|
||||
<img src="{{ url_for('static', filename='img/' ~ project.image) }}"
|
||||
alt="{{ project.title }}"
|
||||
class="img-fluid rounded shadow project-img">
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
{% if project.button %}
|
||||
<a href="{{ project.button[1] }}" class="btn btn-secondary project-btn">
|
||||
{{ project.button[0] }}
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user