summary refs log tree commit diff
path: root/v2/screen
diff options
context:
space:
mode:
Diffstat (limited to 'v2/screen')
-rw-r--r--v2/screen/login.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/v2/screen/login.ts b/v2/screen/login.ts
new file mode 100644
index 0000000..c9e4fec
--- /dev/null
+++ b/v2/screen/login.ts
@@ -0,0 +1,33 @@
+import { ElemType } from "../screenbuilder.ts";
+
+export default {
+    elements: [
+        {
+            type: ElemType.TextElem,
+            id: 'username-label',
+            data: ["Username: \n"]
+        },
+        {
+            type: ElemType.InputElem,
+            id: 'username-input',
+            data: [false]
+        },
+        {
+            type: ElemType.TextElem,
+            id: 'password-label',
+            data: ["Password: \n"]
+        },
+        {
+            type: ElemType.InputElem,
+            id: 'password-input',
+            data: [true]
+        },
+        {
+            type: ElemType.ButtonElem,
+            id: 'done-btn',
+            data: ["Done"]
+        }
+    ],
+    focus: "username-input",
+    name: 'login'
+}
\ No newline at end of file