feat: gesture img in controls
This commit is contained in:
@@ -47,15 +47,18 @@
|
||||
{{ end }}
|
||||
</div>
|
||||
{{/* This is personal hand controls */}}
|
||||
<div id="controls" class="bg-green-300 flex flex-col p-10 gap-y-10">
|
||||
<div id="controls" class="bg-green-300 flex flex-col p-10 gap-y-5">
|
||||
{{ range .Gestures }}
|
||||
<button
|
||||
hx-get="{{ .Url }}"
|
||||
class="bg-white rounded border-[hsl(var(--border-color))] border-2 text-[hsl(var(--text-color))] font-bold px-10 py-4"
|
||||
class="bg-white rounded border-[hsl(var(--border-color))] border-2 text-[hsl(var(--text-color))] font-bold h-16 rounded-l-full flex flex-row items-center"
|
||||
style="--border-color: var({{.Gesture.GetGestureInfo.Color}});
|
||||
--text-color: var({{.Gesture.GetGestureInfo.ColorDark}})
|
||||
">
|
||||
{{ .Gesture.String }}
|
||||
<img src="{{.Gesture.GetGestureInfo.IconUrl}}" alt=""
|
||||
class="h-full"
|
||||
/>
|
||||
<p class="px-5 text-l">{{ .Gesture.String }} </p>
|
||||
</button>
|
||||
{{ end }}
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user