Skip to content

Commit 496175d

Browse files
distantnativebastianallgeier
authored andcommitted
Restyle author card
1 parent e39049f commit 496175d

File tree

6 files changed

+12
-8
lines changed

6 files changed

+12
-8
lines changed

content/authors/nico-hoffmann/author.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Title: Nico Hoffmann
22

33
----
44

5-
Website: http://github.com/distantnative
5+
Website: https://distantnative.com
66

77
----
88

Binary file not shown.
139 KB
Loading

content/authors/sonja-broda/sonja.jpg

3.25 KB
Loading

content/authors/sonja-broda/sonja.png

-19.6 KB
Binary file not shown.

site/templates/cookbook-recipe.php

+11-7
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,23 @@
1616
<header class="prose mb-6">
1717
<h2><?= $authors->count() > 1 ? 'Authors' : 'Author' ?></h2>
1818
</header>
19-
<ul class="auto-fill" style="--min: 12rem; --max: 14rem">
19+
<ul class="columns" style="--columns: 1; --gap: 1.5rem">
2020
<?php foreach ($authors as $author): ?>
21-
<li>
22-
<figure class="block bg-white p-6 shadow-2xl">
23-
<p class="mb-3" style="--aspect-ratio: 1/1"><?= $author->image()->crop(400) ?></p>
24-
<figcaption class="flex-grow text-sm leading-tight">
21+
<li class="max-w-xl bg-light rounded overflow-hidden shadow-lg">
22+
<figure class="columns" style="--columns: 7; --gap: 0">
23+
<div style="--aspect-ratio: 1/1; --span: 2">
24+
<?= $author->image()->crop(400) ?>
25+
</div>
26+
<figcaption class="p-6 text-sm leading-tight" style="--span: 5">
2527
<div class="mb-6">
26-
<p class="font-bold"><?= $author->title() ?></p>
28+
<p class="h4 font-bold"><?= $author->title() ?></p>
2729
<p class="mb-1 color-gray-700"><?= $author->bio() ?></p>
2830

2931
<?php if ($author->website()->isNotEmpty()): ?>
3032
<a href="<?= $author->website() ?>">
31-
<p class="font-mono link"><?= $author->website()->shortUrl() ?></p>
33+
<p class="font-mono link">
34+
<?= $author->website()->shortUrl() ?>
35+
</p>
3236
</a>
3337
<?php endif ?>
3438
</div>

0 commit comments

Comments
 (0)