{{/* service_card.html */}}
<a href="/service/{{.Name}}" class="w-full max-w-md">
    <div class="flex flex-col justify-between p-4 transition duration-500 bg-gray-700 border border-transparent rounded-lg shadow-lg backdrop-blur-md bg-opacity-30 hover:border-lime-600/70 min-w-32">
        <div>
            <div class="flex items-cente">
                <img src="{{.LogoURL}}" alt="{{.Name}} logo" class="w-12 h-12 mr-4 rounded-full">
                <div class="flex flex-col items-center justify-center">
                    <div class="text-xl font-bold text-white">
                        <div class="flex items-center justify-between">
                            <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 text-blue-400/80 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="{{if gt .Score 7 }} bg-green-600 {{end}}
                                         {{if and (le .Score 7) (ge .Score 6) }} bg-lime-500 {{end}}
                                         {{if and (lt .Score 6) (ge .Score 5) }} bg-amber-500 {{end}}
                                         {{if lt .Score 5 }} bg-red-500 {{end}}
                                           backdrop-blur-md bg-opacity-70 font-bold rounded-lg py-0.5 px-2 text-sm">
                                {{.Score}}
                            </span>
                        </div>
                        <span class="block pr-1 mt-2 text-xs font-normal text-white/60 text-opacity-60">{{shortText .Description}}</span>
                    </div>
                </div>
            </div>
        </div>
        <div class="mt-4">
            <div class="flex items-center justify-center text-xs">
                {{if eq .Type "exchange"}}
                    <span class="px-2 py-1 mr-1 text-xs font-bold uppercase border rounded text-white/70 bg-zinc-900 border-zinc-700">
                        {{.Type}}
                    </span>
                {{else}}
                    <span class="px-2 py-1 mr-1 text-xs font-bold uppercase border rounded text-white/70 bg-zinc-900 border-zinc-700">
                        {{.Category}}
                    </span>
                {{end}}
                {{template "components/service_icons" .}}
            </div>
        </div>
    </div>
</a>
