diff --git a/routes/room_page_templates_preview.go b/routes/room_page_templates_preview.go index 3be9b76..36c12b5 100644 --- a/routes/room_page_templates_preview.go +++ b/routes/room_page_templates_preview.go @@ -215,15 +215,15 @@ func roomTemplatesPreview( var person1 = rooms.Person{ Id: rooms.PersonId(100), - Name: "test person 1", + Name: "test person name 1", } var person2 = rooms.Person{ Id: rooms.PersonId(200), - Name: "test person 2", + Name: "test person name 2", } var person3 = rooms.Person{ Id: rooms.PersonId(300), - Name: "test person 3", + Name: "test person name 3", } aRoom := rooms.Room{ Name: "test", diff --git a/routes/static/out.css b/routes/static/out.css index 517b889..f396faa 100644 --- a/routes/static/out.css +++ b/routes/static/out.css @@ -538,10 +538,6 @@ video { position: absolute; } -.relative { - position: relative; -} - .left-1\/2 { left: 50%; } @@ -570,6 +566,10 @@ video { height: 3.5rem; } +.h-4\/5 { + height: 80%; +} + .h-\[var\(--brick-height\)\] { height: var(--brick-height); } @@ -636,10 +636,6 @@ video { grid-template-rows: auto 1fr; } -.flex-row { - flex-direction: row; -} - .flex-col { flex-direction: column; } @@ -648,6 +644,10 @@ video { place-content: center; } +.items-center { + align-items: center; +} + .gap-4 { gap: 1rem; } @@ -656,11 +656,6 @@ video { gap: 1.5rem; } -.gap-x-3 { - -moz-column-gap: 0.75rem; - column-gap: 0.75rem; -} - .rounded { border-radius: 0.25rem; } @@ -731,6 +726,10 @@ video { background-color: rgb(254 240 138 / var(--tw-bg-opacity)); } +.p-10 { + padding: 2.5rem; +} + .p-3 { padding: 0.75rem; } diff --git a/routes/templates/tableTemplates.gohtml b/routes/templates/tableTemplates.gohtml index c6d7e13..1c24010 100644 --- a/routes/templates/tableTemplates.gohtml +++ b/routes/templates/tableTemplates.gohtml @@ -27,19 +27,6 @@ {{ end }} -

For each type

-{{ range .Bricks }} -
for {{ .Name }}
-
- {{ template "inactiveBrick" .ColorClass }} {{ template "raisedBrick" - .ColorClass }} {{ template "speakerBrick" .ColorClass }} {{ template - "markBrick" .ColorClass }} -
-{{ end }} -

Now for BrickData taking parametrized template name

{{ define "brick" }} {{ if eq .TemplateType "inactiveBrick" }} @@ -57,40 +44,44 @@

expected to be called with personData

{{ define "personBlocks" }} -
+
{{ range .BricksForPerson }} {{ template "brick" . }} {{ end }} -

{{ .Name }}({{.Index}})

+

{{ .Name }}

{{ end }}

And now i'll want to get all persons for a room

expected be called with room *roomTableData

-{{ define "roomPeople" }} -
- {{ with .ArrowData }} - {{ if .IsVisible }} - - - +
+ {{ define "roomPeople" }} +
+ {{ with .ArrowData }} + {{ if .IsVisible }} + + + + + + + + + {{ end }} + {{ end }} + {{ range .Persons }} {{ template "personBlocks" . }} {{ end }} +
+ {{end}} - - - - - {{ end }} - {{ end }} - {{ range .Persons }} {{ template "personBlocks" . }} {{ end }}
-{{end}} diff --git a/routes/templates/tableTemplatesPreview.gohtml b/routes/templates/tableTemplatesPreview.gohtml index c4d3df9..8dd6112 100644 --- a/routes/templates/tableTemplatesPreview.gohtml +++ b/routes/templates/tableTemplatesPreview.gohtml @@ -1,4 +1,5 @@ {{define "main-content"}} +

For each type

@@ -27,8 +28,10 @@

And now i'll want to get all persons for a room

-
+
{{ template "roomPeople" .ARoom }}
{{end}} + +