mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-03-13 04:56:29 -04:00

🐛 fix(service_card.html): update href attribute to include the service name for proper routing
35 lines
3.1 KiB
HTML
35 lines
3.1 KiB
HTML
{{/* service_card.html */}}
|
|
<a href="/service/{{.Name}}" class="max-w-md">
|
|
<div class="p-4 m-2 transition duration-500 bg-gray-700 border border-transparent rounded-lg shadow-lg backdrop-blur-md bg-opacity-30 hover:border-lime-600 min-w-32">
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center">
|
|
<img src="{{.LogoURL}}" alt="{{.Name}} logo" class="w-12 h-12 mr-4 rounded-full">
|
|
<div class="flex items-center space-x-4">
|
|
<div class="flex flex-col text-xl font-bold text-white">
|
|
<div class="flex items-center justify-between space-x-3">
|
|
<span class="flex items-center justify-center capitalize">
|
|
{{if .Verified}}
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 mr-1 {{if .Verified}}text-blue-400/80{{else}} text-white/20 {{end}} discount-check-filled" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
|
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
|
|
<path d="M12.01 2.011a3.2 3.2 0 0 1 2.113 .797l.154 .145l.698 .698a1.2 1.2 0 0 0 .71 .341l.135 .008h1a3.2 3.2 0 0 1 3.195 3.018l.005 .182v1c0 .27 .092 .533 .258 .743l.09 .1l.697 .698a3.2 3.2 0 0 1 .147 4.382l-.145 .154l-.698 .698a1.2 1.2 0 0 0 -.341 .71l-.008 .135v1a3.2 3.2 0 0 1 -3.018 3.195l-.182 .005h-1a1.2 1.2 0 0 0 -.743 .258l-.1 .09l-.698 .697a3.2 3.2 0 0 1 -4.382 .147l-.154 -.145l-.698 -.698a1.2 1.2 0 0 0 -.71 -.341l-.135 -.008h-1a3.2 3.2 0 0 1 -3.195 -3.018l-.005 -.182v-1a1.2 1.2 0 0 0 -.258 -.743l-.09 -.1l-.697 -.698a3.2 3.2 0 0 1 -.147 -4.382l.145 -.154l.698 -.698a1.2 1.2 0 0 0 .341 -.71l.008 -.135v-1l.005 -.182a3.2 3.2 0 0 1 3.013 -3.013l.182 -.005h1a1.2 1.2 0 0 0 .743 -.258l.1 -.09l.698 -.697a3.2 3.2 0 0 1 2.269 -.944zm3.697 7.282a1 1 0 0 0 -1.414 0l-3.293 3.292l-1.293 -1.292l-.094 -.083a1 1 0 0 0 -1.32 1.497l2 2l.094 .083a1 1 0 0 0 1.32 -.083l4 -4l.083 -.094a1 1 0 0 0 -.083 -1.32z" stroke-width="0" fill="currentColor"></path>
|
|
</svg>
|
|
{{end}}
|
|
{{.Name}}
|
|
</span>
|
|
<span class="bg-green-500 backdrop-blur-md bg-opacity-70 font-bold rounded-lg py-0.5 px-2 text-sm">
|
|
10
|
|
</span>
|
|
</div>
|
|
<span class="pr-1 mt-2 text-xs font-normal text-white/60 text-opacity-60">{{shortText .Description}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="flex items-center justify-center pt-3 text-xs">
|
|
<span class="px-2 py-1 mr-1 font-bold uppercase border text-[10px] rounded text-white/70 bg-zinc-900 border-zinc-700">
|
|
{{.Type}}
|
|
</span>
|
|
{{template "components/service_icons" .}}
|
|
</div>
|
|
</div>
|
|
</a> |