fix: mark & active brick type
This commit is contained in:
@@ -26,6 +26,14 @@
|
||||
X
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ define "markAndRaisedBrick" }}
|
||||
<div
|
||||
class="h-[var(--brick-height)] w-20 border-[hsl(var(--brick-color))] border bg-[hsl(var(--brick-color))]/25 grid place-content-center font-bold text-[hsl(var(--brick-color))]/50"
|
||||
style="--brick-color: var({{.}}); --brick-height: calc(var(--d)/5)"
|
||||
>
|
||||
X
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<h2>Now for BrickData taking parametrized template name</h2>
|
||||
{{ define "brick" }}
|
||||
@@ -37,6 +45,8 @@
|
||||
{{ template "speakerBrick" .ColorClass }}
|
||||
{{ else if eq .TemplateType "markBrick" }}
|
||||
{{ template "markBrick" .ColorClass }}
|
||||
{{ else if eq .TemplateType "markAndRaisedBrick" }}
|
||||
{{ template "markAndRaisedBrick" .ColorClass }}
|
||||
{{ end }}
|
||||
{{end}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user