diff options
Diffstat (limited to 'tpl')
| -rw-r--r-- | tpl/objects/navbar.pug | 3 | ||||
| -rw-r--r-- | tpl/views/navbar.pug | 16 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tpl/objects/navbar.pug b/tpl/objects/navbar.pug index 889d6ad..6248e28 100644 --- a/tpl/objects/navbar.pug +++ b/tpl/objects/navbar.pug | |||
| @@ -8,6 +8,9 @@ mixin navbar | |||
| 8 | 'o-navbar': true, | 8 | 'o-navbar': true, |
| 9 | 'o-navbar--quiet': attributes.quiet, | 9 | 'o-navbar--quiet': attributes.quiet, |
| 10 | } | 10 | } |
| 11 | if (attributes.theme) { | ||
| 12 | classes['o-navbar--' + attributes.theme] = true | ||
| 13 | } | ||
| 11 | if (attributes.class) { | 14 | if (attributes.class) { |
| 12 | classes[attributes.class] = true; | 15 | classes[attributes.class] = true; |
| 13 | } | 16 | } |
diff --git a/tpl/views/navbar.pug b/tpl/views/navbar.pug index 1ca49b9..9272796 100644 --- a/tpl/views/navbar.pug +++ b/tpl/views/navbar.pug | |||
| @@ -23,3 +23,19 @@ mixin view-navbar | |||
| 23 | +navbar-item(icon="image")= 'Home' | 23 | +navbar-item(icon="image")= 'Home' |
| 24 | +navbar-item(icon="video" selected=true)= 'Art' | 24 | +navbar-item(icon="video" selected=true)= 'Art' |
| 25 | +navbar-item(icon="user")= 'Emojis' | 25 | +navbar-item(icon="user")= 'Emojis' |
| 26 | |||
| 27 | each theme in ['static-black', 'static-white'] | ||
| 28 | - | ||
| 29 | const bg = theme.startsWith('static-black') ? 500 : 1000; | ||
| 30 | |||
| 31 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | ||
| 32 | +navbar(theme=theme) | ||
| 33 | +navbar-item(icon="image")= 'Home' | ||
| 34 | +navbar-item(icon="video" selected=true)= 'Art' | ||
| 35 | +navbar-item(icon="user")= 'Emojis' | ||
| 36 | |||
| 37 | .c-box(style=`background-color: var(--colors--blue-static--${bg});`) | ||
| 38 | +navbar(quiet=true theme=theme) | ||
| 39 | +navbar-item(icon="image")= 'Home' | ||
| 40 | +navbar-item(icon="video" selected=true)= 'Art' | ||
| 41 | +navbar-item(icon="user")= 'Emojis' | ||
