feat: controls styling from gesture info

This commit is contained in:
efim
2023-11-23 15:01:51 +00:00
parent dbae803ead
commit 16ee8a7cd5
6 changed files with 51 additions and 30 deletions

View File

@@ -201,14 +201,15 @@ func roomPageRoute(
template.New("").ParseFS(templateFs, tableTemplates, templFile, baseFile))
type GestureData struct {
Name string
Url string
Gesture rooms.HandGesture
}
var gesturesData []GestureData
for gesture := rooms.ChangeTopic; gesture <= rooms.Meta; gesture++ {
for _, gesture := range rooms.GesturesHighToLow {
gesturesData = append(gesturesData, GestureData{
Name: gesture.String(),
Url: fmt.Sprintf("%s%d", raiseHandPath, gesture),
Gesture: gesture,
})
}