This commit is contained in:
@@ -4,12 +4,11 @@
|
|||||||
<div class="container my-5">
|
<div class="container my-5">
|
||||||
<h1 class="mb-4 text-center">Mes projets:</h1>
|
<h1 class="mb-4 text-center">Mes projets:</h1>
|
||||||
|
|
||||||
{% for project in projects %}
|
{% for project in projects %}
|
||||||
<div class="row mb-4 justify-content-center">
|
<div class="row mb-4 justify-content-center">
|
||||||
<div class="col-md-10">
|
<div class="col-md-10">
|
||||||
|
<div class="p-4 rounded-4 text-light shadow hover-scale transparent-box d-flex flex-column flex-md-row align-items-center position-relative"
|
||||||
<a href="{{ project.link }}" class="text-decoration-none">
|
onclick="window.location='{{ project.link }}'" style="cursor: pointer;">
|
||||||
<div class="p-4 rounded-4 text-light shadow hover-scale transparent-box d-flex flex-column flex-md-row align-items-center position-relative">
|
|
||||||
|
|
||||||
<!-- Project Image -->
|
<!-- Project Image -->
|
||||||
<div class="project-img-wrapper text-center mb-3 mb-md-0 me-md-4">
|
<div class="project-img-wrapper text-center mb-3 mb-md-0 me-md-4">
|
||||||
@@ -20,24 +19,21 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Project Text -->
|
<!-- Project Text -->
|
||||||
<div class="project-text">
|
<div class="project-text flex-grow-1">
|
||||||
<h4>{{ project.title }}</h4>
|
<h4>{{ project.title }}</h4>
|
||||||
<p>{{ project.description }}</p>
|
<p>{{ project.description }}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Button in bottom-right -->
|
|
||||||
{% if project.button %}
|
{% if project.button %}
|
||||||
<button class="btn btn-secondary project-btn"
|
<a href="{{ project.button[1] }}" class="btn btn-secondary project-btn">
|
||||||
onclick="event.stopPropagation(); window.location='{{ project.button[1] }}'">
|
|
||||||
{{ project.button[0] }}
|
{{ project.button[0] }}
|
||||||
</button>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% endfor %}
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user