chore: refactor image setup

This commit is contained in:
Cory Dransfeldt 2023-10-27 13:16:17 -07:00
parent f5b480e195
commit 82a8a1f15a
20 changed files with 121 additions and 52 deletions

View file

@ -19,9 +19,9 @@ meta:
---
<div class="flex items-center justify-center w-full not-prose mb-6">
<div class="border border-teal-700 dark:border-teal-300 bg-white rounded-full overflow-hidden p-4">
<div class="border border-teal-700 dark:border-teal-300 bg-white rounded-full overflow-hidden p-4 [&>*]:max-w-xs">
{% capture about_alt %}{{ site.name }} - image by David Neal / @reverentgeek{% endcapture %}
{% image './src/assets/img/avatar.webp', about_alt, 'max-w-xs w-full h-auto', '600px', 'eager' %}
{% image './src/assets/img/avatar.webp', about_alt, 'w-full h-auto' %}
</div>
</div>
<h1 class="text-xxl font-black -leading-tight tracking-normal dark:text-gray-200 md:text-3xl text-center">Hi, I'm Cory</h1>