home: update recently added card view
This commit is contained in:
parent
1495189199
commit
ba9bb07b21
|
@ -31,16 +31,17 @@ templ RecentlyAddedImageCard(data *models.Image, opts ImageCardOption) {
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
</figure>
|
</figure>
|
||||||
|
<div class="flex-1"></div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
if !opts.Has(HideTitle) {
|
if !opts.Has(HideTitle) {
|
||||||
<a
|
<a
|
||||||
href={ templ.URL(data.PostURL) }
|
href={ templ.URL(data.PostURL) }
|
||||||
class="card-title font-bold underline text-base text-primary"
|
class="card-title font-bold underline text-sm text-primary"
|
||||||
>{ truncateTitle(data.PostTitle) }</a>
|
>{ truncateTitle(data.PostTitle) }</a>
|
||||||
}
|
}
|
||||||
<a class="text-primary underline" href={ templ.URL(data.PostAuthorURL) }>{ data.PostAuthor }</a>
|
<a class="text-primary text-sm underline" href={ templ.URL(data.PostAuthorURL) }>{ data.PostAuthor }</a>
|
||||||
<div class="flex-1"></div>
|
<div class="flex-1"></div>
|
||||||
<div class="flex w-full justify-end">
|
<div class="flex">
|
||||||
@utils.RelativeTimeNode(fmt.Sprintf("relative-time-%s", data.PostName), data.CreatedAt, "text-sm")
|
@utils.RelativeTimeNode(fmt.Sprintf("relative-time-%s", data.PostName), data.CreatedAt, "text-sm")
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2">
|
<div class="grid grid-cols-2">
|
||||||
|
|
Loading…
Reference in a new issue