aboutsummaryrefslogtreecommitdiff
path: root/src/views/components/dashboard/device.pug
diff options
context:
space:
mode:
authorAutumn <git@autumnfo.rest>2026-05-16 08:12:51 +0100
committerAutumn <git@autumnfo.rest>2026-05-16 08:12:51 +0100
commit04bfb5881c510aff5544f276e5a37d9316bbf249 (patch)
tree0c12a2d7ee6025989064f1c6b897994c577385ec /src/views/components/dashboard/device.pug
parent621ec4cb3afdae23f8aa0a093eabde20d770a75a (diff)
[pages] added styling & improved components
Diffstat (limited to 'src/views/components/dashboard/device.pug')
-rw-r--r--src/views/components/dashboard/device.pug12
1 files changed, 12 insertions, 0 deletions
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