Web/_includes/projects.html
Ell 663bd320bb
All checks were successful
/ web (push) Successful in 31s
🌊
2024-07-20 20:01:14 +02:00

40 lines
1.6 KiB
HTML

<div class="list-display rounded">
<h1 id="projects">💻 Projects</h1>
<p>
Here is a list of some of my bigger projects as well as some things you might know me from.<br>
For a more exhaustive list of my projects, you can also check out some of the sites in the <a href="#social">Social</a> section.
</p>
<div id="project-list">
{% for item in site.data.projects %}
<div class="card bg-light project rounded-0">
<div class="card-body">
{% assign icon = item.icon %}
{% unless icon contains "." %}
{% assign icon = icon | append: ".png" %}
{% endunless %}
<img class="project-image" src="res/projects/{{ icon }}" alt="">
{% if item.status %}
<span class="text-muted project-status">{{ item.status }}</span>
{% endif %}
<h4 class="card-title" id="project-{{ item.slug }}">{{ item.name }}</h4>
<p class="card-text">{{ item.desc }}</p>
{%- for link in item.links -%}
<a href="{{ link.link }}" class="card-link btn rounded-0 btn-outline-dark">{{ link.name }}</a>
{%- endfor -%}
</div>
</div>
{% endfor %}
</div>
<script>
if (dark) {
$("#project-list").find(".btn-outline-dark").each(function () {
let e = $(this);
e.removeClass("btn-outline-dark");
e.addClass("btn-outline-light");
});
}
</script>
</div>