GUI -- Beginnings of new file structure / Angular implementation. WIP.
Change-Id: Ic79347b41292432605cd30bf1d4920063f6602e8
diff --git a/web/gui/src/main/webapp/app/fw/README.txt b/web/gui/src/main/webapp/app/fw/README.txt
new file mode 100644
index 0000000..712f055
--- /dev/null
+++ b/web/gui/src/main/webapp/app/fw/README.txt
@@ -0,0 +1,9 @@
+# Framework related code
+
+- Masthead
+- Float Panels
+- Alerts
+- Flash (transient messages)
+- Quick Help (key bindings, mouse gestures)
+- Death Mask (server connection lost)
+
diff --git a/web/gui/src/main/webapp/app/fw/mast/mast.css b/web/gui/src/main/webapp/app/fw/mast/mast.css
new file mode 100644
index 0000000..efd371e
--- /dev/null
+++ b/web/gui/src/main/webapp/app/fw/mast/mast.css
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2014 Open Networking Laboratory
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ ONOS GUI -- Masthead -- CSS file
+
+ @author Simon Hunt
+ */
+
+#mast {
+ height: 36px;
+ padding: 4px;
+ vertical-align: baseline;
+}
+
+.light #mast {
+ background-color: #bbb;
+ box-shadow: 0 2px 8px #777;
+}
+.dark #mast {
+ background-color: #444;
+ box-shadow: 0 2px 8px #777;
+}
+
+#mast img.logo {
+ height: 38px;
+ padding-left: 8px;
+ padding-right: 8px;
+}
+
+#mast .title {
+ font-size: 14pt;
+ font-style: italic;
+ vertical-align: 12px;
+}
+
+.light #mast .title {
+ color: #369;
+}
+.dark #mast .title {
+ color: #eee;
+}
diff --git a/web/gui/src/main/webapp/app/fw/mast/mast.html b/web/gui/src/main/webapp/app/fw/mast/mast.html
new file mode 100644
index 0000000..dc086e9
--- /dev/null
+++ b/web/gui/src/main/webapp/app/fw/mast/mast.html
@@ -0,0 +1,3 @@
+<!-- Masthead partial HTML -->
+<img class="logo" src="../data/img/onos-logo.png">
+<span class="title">Open Network Operating System</span>
\ No newline at end of file
diff --git a/web/gui/src/main/webapp/app/fw/mast/mast.js b/web/gui/src/main/webapp/app/fw/mast/mast.js
new file mode 100644
index 0000000..f8c4fc3
--- /dev/null
+++ b/web/gui/src/main/webapp/app/fw/mast/mast.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright 2014 Open Networking Laboratory
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ ONOS GUI -- Masthead
+
+ @author Simon Hunt
+ */
+(function () {
+ 'use strict';
+
+ angular.module('onosMast', [])
+ .controller('MastCtrl', [function () {
+ // controller logic here
+ console.log('MastCtrl has been created');
+ }]);
+
+}());