2024-08-06 22:45:30 +02:00
|
|
|
<article class="border rounded-md bg-white m-4 p-4">
|
2024-07-21 22:42:54 +02:00
|
|
|
<header class="px-4 mb-3">
|
2024-09-12 15:00:20 +02:00
|
|
|
<h2 class="text-xl font-semibold text-blue-900 md:text-2xl">
|
2024-08-06 22:45:30 +02:00
|
|
|
{% match project.metadata.link %}
|
|
|
|
{% when Some with (href) %}
|
|
|
|
<a href="{{href}}" class="text-blue-900 no-underline">
|
|
|
|
{{project.metadata.title}}
|
|
|
|
</a>
|
|
|
|
{% when None %}
|
|
|
|
{{project.metadata.title}}
|
|
|
|
{% endmatch %}
|
2024-07-21 22:42:54 +02:00
|
|
|
</h2>
|
2024-09-12 17:03:11 +02:00
|
|
|
<section class="description text-slate-800 my-2 md:text-xl text-justify">
|
2024-08-06 22:45:30 +02:00
|
|
|
{{project.metadata.description|safe}}
|
2024-09-12 15:00:20 +02:00
|
|
|
</section>
|
2024-07-21 22:42:54 +02:00
|
|
|
</header>
|
|
|
|
<!-- <hr class="border-blue-950 my-5"> -->
|
|
|
|
|
|
|
|
{% match project.metadata.cover_image %}
|
|
|
|
{% when Some with (source) %}
|
2024-08-07 19:21:29 +02:00
|
|
|
<figure class="mx-4 my-2">
|
2024-08-06 22:45:30 +02:00
|
|
|
{% match project.metadata.link %}
|
|
|
|
{% when Some with (href) %}
|
|
|
|
<a href="{{href}}">
|
2024-08-07 19:21:29 +02:00
|
|
|
<img src="{{source}}" class="object-contain w-full aspect-video"/>
|
2024-08-06 22:45:30 +02:00
|
|
|
</a>
|
|
|
|
{% when None %}
|
|
|
|
<img src="{{source}}" />
|
|
|
|
{% endmatch %}
|
2024-07-21 22:42:54 +02:00
|
|
|
<!-- TODO <figure> -->
|
|
|
|
</figure>
|
|
|
|
{% when None %}
|
|
|
|
{% endmatch %}
|
|
|
|
|
|
|
|
|
2024-09-12 15:00:20 +02:00
|
|
|
<footer class="text-sm px-4 md:text-base">
|
|
|
|
<h3 class="text-xl font-semibold text-blue-900 my-2 md:text-2xl">
|
2024-08-07 13:18:13 +02:00
|
|
|
{{crate::projects::project_model::translate_classification(project.metadata.classification)}}
|
2024-07-21 22:42:54 +02:00
|
|
|
</h3>
|
|
|
|
<ul class="inline-block">
|
|
|
|
{% for tag in project.metadata.tags %}
|
2024-08-07 19:21:29 +02:00
|
|
|
<li class="inline-block text-pink-950">
|
2024-07-21 22:42:54 +02:00
|
|
|
{{tag}}
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
</article>
|