Skip to content

Commit b5069ca

Browse files
committed
UX Padding Clean-up
1 parent d9f2f87 commit b5069ca

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

themes/hugoplate/layouts/partials/components/session-card-wide.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22
<div class="lg:col-4 md:col-12">
33
{{ $image := .Params.image }}
44
{{ if $image }}
5-
<a href="{{ .RelPermalink }}" class="pb-4">
5+
<div class="relative group">
6+
<a href="{{ .RelPermalink }}" class="pb-4 block">
67
{{ partial "override-image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "w-full rounded" "Size" "500x") }}
78
</a>
9+
<div class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 opacity-0 group-hover:opacity-100 transition-opacity duration-300">
10+
<svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12 text-white" fill="currentColor" viewBox="0 0 24 24">
11+
<path fill-rule="evenodd" d="M4.5 5.653c0-1.426 1.516-2.653 2.937-2.321 1.235.294 1.977 1.522 1.977 2.898v8.642c0 1.376-.742 2.604-1.977 2.898C6.016 18.373 4.5 17.146 4.5 15.72v-10.067zM18 12a6 6 0 11-12 0 6 6 0 0112 0z" clip-rule="evenodd" />
12+
</svg>
13+
</div>
14+
</div>
815
{{ else }}
916
<a href="{{ .RelPermalink }}" class="pb-4">
1017

0 commit comments

Comments
 (0)