card: added hover effeect

This commit is contained in:
Tigor Hutasuhut 2024-04-29 14:39:39 +07:00
parent 33c1b0dd17
commit f4b5e0a5de

View file

@ -19,7 +19,7 @@ const (
)
templ RecentlyAddedImageCard(data *models.Image, opts ImageCardOption) {
<div class="not-prose card card-bordered bg-base-100 shadow-xl w-[256px] min-w-[256px] rounded-xl">
<div class="not-prose card card-bordered bg-base-100 hover:bg-base-200 shadow-xl w-[256px] min-w-[256px] rounded-xl top-0 hover:-top-1 hover:drop-shadow-2xl transition-all">
<figure>
<a
href={ templ.URL(fmt.Sprintf("/img/%s", data.ImageRelativePath)) }