41 lines
2 KiB
Text
41 lines
2 KiB
Text
{% include "base-header.html" %}
|
|
|
|
<main class="max-w-7xl mx-auto px-2">
|
|
<div class="relative max-w-lg mx-auto divide-y-2 divide-yellow lg:max-w-7xl">
|
|
<div class="p-2 bg-base/75 shadow-lg shadow-yellow/50 rounded border-2 border-base border-l-yellow sm:rounded-tl-none sm:rounded-tr-none">
|
|
<h1 class="mt-2 mb-8 text-4xl tracking-tight">
|
|
{{ title | markdown | safe }}
|
|
</h1>
|
|
<div class="mt-3 max-w-2xl">
|
|
{{ content | safe }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-16 grid gap-16 pt-16 lg:grid-cols-3 lg:gap-x-5 lg:gap-y-12">
|
|
{%- for content in collections.pinned | reverse -%}
|
|
<div class="motion-safe:animate-fade-up motion-safe:animate-delay-[{{loop.index * 100}}ms] animate-once">
|
|
<div>
|
|
<a href="/{{ content.data.tags[0] }}/" class="motion-safe:transition-colors inline-block outline-link underline inline-flex items-center px-3 py-0.5 rounded-full text-sm bg-mantle text-teal hover:text-sky hover:bg-base">
|
|
{{ content.data.tags[0] | capitalize }}
|
|
</a>
|
|
</div>
|
|
<a href="{{ content.url }}" class="motion-safe:transition-colors bg-mauve block mt-4 outline-link shadow border-l-2 border-yellow hover:border-blue hover:scale-[1.02] hover:shadow-lg active:shadow active:scale-[1.01] active:border-blue rounded">
|
|
<div class="rounded-tl rounded-tr h-16 w-full bg-center bg-105% opacity-50 saturate-0 contrast-50 overflow-hidden" style="background-image: url('{{ content.data.image }}')">
|
|
</div>
|
|
<h3 class="bg-mauve h-20 p-3 text-xl text-base">
|
|
<span class="line-clamp-2" title="{{ content.data.title }}">
|
|
{{ content.data.title }}
|
|
</span>
|
|
</h3>
|
|
<div class="py-2 px-3 h-24 rounded-bl rounded-br text-text bg-crust line-clamp-3" title="{{ content.data.description }}">
|
|
{{ content.data.description | markdown | safe }}
|
|
</div>
|
|
</a>
|
|
</div>
|
|
{%- endfor -%}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
{% include "base-footer.html" %}
|
|
|