aboutsummaryrefslogtreecommitdiff
path: root/src/view/layout.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/layout.ts')
-rw-r--r--src/view/layout.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/view/layout.ts b/src/view/layout.ts
new file mode 100644
index 0000000..ac62290
--- /dev/null
+++ b/src/view/layout.ts
@@ -0,0 +1,13 @@
+import h from 'lib/h'
+import * as dom from 'lib/dom'
+import * as form from 'view/form'
+
+export function view(main: Element): Element[] {
+ return [
+ h('header',
+ { onclick: () => dom.show(form.view()) },
+ 'Chords'
+ ),
+ main
+ ]
+}