summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/objects/navbar.pug12
-rw-r--r--tpl/views/navbar.pug8
2 files changed, 16 insertions, 4 deletions
diff --git a/tpl/objects/navbar.pug b/tpl/objects/navbar.pug
index 14ec9d3..28c7107 100644
--- a/tpl/objects/navbar.pug
+++ b/tpl/objects/navbar.pug
@@ -26,12 +26,18 @@ mixin navbar-item
26 } 26 }
27 27
28 #{!!attributes.tag ? attributes.tag : 'button'}(class=classes)&attributes(attributes) 28 #{!!attributes.tag ? attributes.tag : 'button'}(class=classes)&attributes(attributes)
29 if attributes.icon
30 .o-navbar__item-label
31 block
29 .o-navbar__item-content 32 .o-navbar__item-content
33 if attributes.preIcon
34 +icon(attributes.preIcon)
35 = ' '
30 if attributes.icon 36 if attributes.icon
31 +icon(attributes.icon) 37 +icon(attributes.icon)
32 = ' ' 38 else
33 span.o-navbar__item-content-text 39 span.o-navbar__item-content-text
34 block 40 block
35 if attributes.postIcon 41 if attributes.postIcon
36 = ' ' 42 = ' '
37 +icon(attributes.postIcon) 43 +icon(attributes.postIcon)
diff --git a/tpl/views/navbar.pug b/tpl/views/navbar.pug
index 345a22b..f409a44 100644
--- a/tpl/views/navbar.pug
+++ b/tpl/views/navbar.pug
@@ -14,6 +14,12 @@ mixin view-navbar
14 14
15 .c-box 15 .c-box
16 +navbar(quiet=true) 16 +navbar(quiet=true)
17 +navbar-item(selected=true icon="arrow-left")= 'Home' 17 +navbar-item(selected=true preIcon="arrow-left")= 'Home'
18 +navbar-item= 'Art' 18 +navbar-item= 'Art'
19 +navbar-item= 'Emojis' 19 +navbar-item= 'Emojis'
20
21 .c-box
22 +navbar
23 +navbar-item(icon="image")= 'Home'
24 +navbar-item(icon="video" selected=true)= 'Art'
25 +navbar-item(icon="user")= 'Emojis'