diff options
Diffstat (limited to 'src/views/components')
| -rw-r--r-- | src/views/components/dashboard/action.pug | 9 | ||||
| -rw-r--r-- | src/views/components/dashboard/device.pug | 12 | ||||
| -rw-r--r-- | src/views/components/head.pug | 2 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/views/components/dashboard/action.pug b/src/views/components/dashboard/action.pug new file mode 100644 index 0000000..6c14434 --- /dev/null +++ b/src/views/components/dashboard/action.pug @@ -0,0 +1,9 @@ +article.action + + div + p= action.name + + div + + - let location = `/actions/${action.id}` + a(href=location) View diff --git a/src/views/components/dashboard/device.pug b/src/views/components/dashboard/device.pug new file mode 100644 index 0000000..099a54b --- /dev/null +++ b/src/views/components/dashboard/device.pug @@ -0,0 +1,12 @@ +article.device + + div + p= device.name + + div + + if device.type == "light" + button Toggle + + - let location = `/devices/${device.id}` + a(href=location) View diff --git a/src/views/components/head.pug b/src/views/components/head.pug index d28b9d5..3d684fe 100644 --- a/src/views/components/head.pug +++ b/src/views/components/head.pug @@ -1,2 +1,4 @@ meta(charset="utf-8") meta(name="viewport" content="width=device-width,initial-scale=1.0") + +link(href="/public/css/global.css" rel="stylesheet") |
