2018-06-07 13:34:50 +03:00
|
|
|
{{#each itemSections as |section sectionIndex|}}
|
|
|
|
<div class="flex flex-column justify-center h5 {{unless (eq sectionIndex 0) "mt4"}} mb4 nl4 nr4 pl4 pr4 bg-whitegrey midlightgrey ttu f-supersmall fw4 tracked-3" style="min-width: calc(100% + 3.2rem);">
|
|
|
|
{{section.title}}
|
|
|
|
</div>
|
|
|
|
{{#each section.items as |item|}}
|
2018-07-17 19:22:28 +03:00
|
|
|
<div class="{{if item.selected "kg-cardmenu-card-selected"}} {{kg-style "cardmenu-card"}}" onclick={{action itemClicked item}} data-kg="cardmenu-card">
|
2018-06-07 13:34:50 +03:00
|
|
|
<div class="{{kg-style "cardmenu-icon"}}">{{svg-jar item.icon class="w8 h8 stroke-midgrey"}}</div>
|
|
|
|
<div class="{{kg-style "cardmenu-label"}}">{{item.label}}</div>
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
{{/each}}
|