launcher: application launcher

Change-Id: I81d49a0651702dc821d683d6a4b3bbff6af3c753
diff --git a/core/installer/welcome/launcher-tmpl/launcher.html b/core/installer/welcome/launcher-tmpl/launcher.html
new file mode 100644
index 0000000..3511064
--- /dev/null
+++ b/core/installer/welcome/launcher-tmpl/launcher.html
@@ -0,0 +1,75 @@
+<!DOCTYPE html>
+<html lang="en" data-theme="light">
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>App Launcher</title>
+    <link rel="stylesheet" type="text/css" href="/static/pico.2.0.6.min.css">
+    <link rel="stylesheet" type="text/css" href="/static/launcher.css">
+</head>
+<body class="container-fluid">
+    <div id="left-panel">
+        <div class="user-circle">
+            <div class="circle">
+                <p>{{ GetUserInitials .LoggedInUsername }}</p>
+                <div class="tooltip-user" id="tooltip-user">
+                    <p>{{ .LoggedInUsername }}</p>
+                    <button id="logout-button">Log out</button>
+                </div>
+            </div>
+        </div>
+        <hr class="separator">
+        <div class="app-list">
+            {{range .AllAppsInfo}}
+                <div class="app-icon-tooltip" data-app-url="{{ .Url }}">
+                    <div class="icon">
+                        {{.Icon}}
+                    </div>
+                    <div class="tooltip">
+                        <p>{{ .Name }}</p>
+                        <button class="help-button" id="help-button-{{ CleanAppName .Name }}">Help</button>
+                    </div>
+                </div>
+                <dialog class="app-help-modal" id="modal-{{ CleanAppName .Name }}" close>
+                    <article class="modal-article">
+                        <header>
+                            <h4>{{ .Name }}</h4>
+                            <button class="close-button" id="close-help-{{ CleanAppName .Name }}">
+                                <svg xmlns="http://www.w3.org/2000/svg" width="1.5em" height="1.5em" viewBox="0 0 32 32"><path fill="black" d="M16 2C8.2 2 2 8.2 2 16s6.2 14 14 14s14-6.2 14-14S23.8 2 16 2m5.4 21L16 17.6L10.6 23L9 21.4l5.4-5.4L9 10.6L10.6 9l5.4 5.4L21.4 9l1.6 1.6l-5.4 5.4l5.4 5.4z"/></svg>
+                            </button>
+                        </header>
+                        <div class="app-help-modal-article">
+                            <div class="modal-left">
+                                {{ template "help-menu-template" .Help }}
+                            </div>
+                            <div class="modal-right" id="modal-right-help-content-{{ CleanAppName .Name }}">
+                                {{ template "help-content-template" .Help }}
+                            </div>
+                        </div>
+                    </article>
+                </dialog>
+            {{end}}
+        </div>
+    </div>
+    <div id="right-panel">
+        <iframe id="appFrame" width="100%" height="100%" frameborder="0"></iframe>
+    </div>
+    {{ define "help-menu-template" }}
+        <ul class="ul">
+            {{ range .}}
+                <li>
+                    <a class="title-menu" id="title-{{ CleanAppName .Title }}">{{ .Title }}</a>
+                    {{ template "help-menu-template" .Children }}
+                </li>
+            {{ end }}
+        </ul>
+    {{ end }}
+    {{ define "help-content-template" }}
+        {{ range . }}
+            <p class="help-content" id="help-content-{{ CleanAppName .Title }}"> {{ .Contents }}</p>
+            {{ template "help-content-template" .Children }}
+        {{ end }}
+    {{ end }}
+    <script src="/static/launcher.js"></script>
+</body>
+</html>