File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
themes/hugoplate/layouts/partials/components Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 2
2
< div class ="lg:col-4 md:col-12 ">
3
3
{{ $image := .Params.image }}
4
4
{{ if $image }}
5
- < a href ="{{ .RelPermalink }} " class ="pb-4 ">
5
+ < div class ="relative group ">
6
+ < a href ="{{ .RelPermalink }} " class ="pb-4 block ">
6
7
{{ partial "override-image" (dict "Src" $image "Context" .Page "Alt" .Title "Class" "w-full rounded" "Size" "500x") }}
7
8
</ 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 >
8
15
{{ else }}
9
16
< a href ="{{ .RelPermalink }} " class ="pb-4 ">
10
17
You can’t perform that action at this time.
0 commit comments