CORD GUI -- Images updated and other CSS added. CORD logo no longer goes to Home page.
Change-Id: I1f6c26dd0918b801d1c4f0b517f0dd50d2cadfb0
diff --git a/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.css b/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.css
index 94c3883..514a0a5 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.css
+++ b/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.css
@@ -40,6 +40,9 @@
.mast h1 {
font-size: 250%;
+ text-decoration: none;
+ color: #3C3C3C;
+ cursor: default;
}
.mast a,
@@ -63,9 +66,10 @@
right: 0;
top: 50%;
transform: translate(0, -50%);
+ font-size: 90%;
}
.mast li.logout:hover {
- border-bottom: 2px solid #CE5650;
+ font-weight: bold;
list-style-type: none;
cursor: pointer;
}
diff --git a/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.html b/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.html
index cee8c10..e39ea00 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/fw/mast/mast.html
@@ -2,7 +2,7 @@
<div class="mast" ng-controller="CordMastCtrl">
<div class="left">
- <a href="#/home" class="logo"><h1>CORD</h1></a>
+ <h1>CORD</h1>
<icon size="30" id="bird"></icon>
</div>
@@ -10,6 +10,6 @@
<nav ng-show="page.curr !== 'login'"></nav>
<li class="logout"
ng-show="page.curr !== 'login'"
- ng-click="logout()">Logout</li>
+ ng-click="logout()">LOGOUT</li>
</div>
</div>
diff --git a/apps/demo/cord-gui/src/main/webapp/app/fw/nav/nav.html b/apps/demo/cord-gui/src/main/webapp/app/fw/nav/nav.html
index 4fdbad1..d87f961 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/fw/nav/nav.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/fw/nav/nav.html
@@ -3,15 +3,15 @@
<ul>
<a href="#/home">
<li ng-class="{selected: page.curr === 'dashboard'}"
- ng-click="$route.reload()">Dashboard</li>
- </a>
- <a href="#/bundle">
- <li ng-class="{selected: page.curr === 'bundle'}"
- ng-click="$route.reload()">Bundles</li>
+ ng-click="$route.reload()">Home</li>
</a>
<a href="#/user">
<li ng-class="{selected: page.curr === 'user'}"
ng-click="$route.reload()">Users</li>
</a>
+ <a href="#/bundle">
+ <li ng-class="{selected: page.curr === 'bundle'}"
+ ng-click="$route.reload()">Bundles</li>
+ </a>
</ul>
</div>
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html b/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html
index 9eeb8dc..8852d86 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/bundle/bundle.html
@@ -15,7 +15,7 @@
</table>
</div>
<div class="main-right">
- <img src="imgs/binary.jpg">
+ <img src="imgs/bundle.jpg">
<div ng-click="showBundles()">
<h2>Available Bundles</h2>
</div>
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/common/common.css b/apps/demo/cord-gui/src/main/webapp/app/view/common/common.css
index 5974749..a3848ee 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/common/common.css
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/common/common.css
@@ -142,6 +142,18 @@
fill: rgb(68, 189, 83)
}
+th.user-pic {
+ background-color: white;
+}
+th.user-pic,
+td.user-pic {
+ width: 30px;
+ padding-left: 4%;
+}
+td.user-pic img {
+ width: 25px;
+}
+
/* animation */
.fadein {
transition: all linear 0.5s;
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css
index addb453..58f07a5 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.css
@@ -33,8 +33,6 @@
#home div.main-left img {
width: 100%;
- opacity: 0.8;
- box-shadow: 10px 0 12px 1px rgba(54, 136, 210, 0.25);
}
#home div.main-right div.bundle-title {
@@ -65,16 +63,3 @@
text-align: left;
padding: 2%;
}
-
-#home table.users th.user-pic {
- background-color: white;
-}
-#home table.users th.user-pic,
-#home table.users td.user-pic {
- width: 30px;
- padding-left: 4%;
-}
-#home table.users td.user-pic img {
- width: 25px;
- opacity: 0.5;
-}
\ No newline at end of file
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html
index bdab3fc..e7f8010 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/home/home.html
@@ -1,13 +1,13 @@
<!-- Home page partial html -->
<div id="home" class="container">
<div class="main-left">
- <img src="/imgs/bin_ball.jpg">
+ <img src="/imgs/home.jpg">
</div>
<div class="main-right">
<div class="move-down">
<div class="bundle-title">
- <h4>Welcome {{shared.login}}!</h4>
+ <h4>Welcome Dad!</h4>
<h5>You are subscribed to the</h5>
<h3>{{bundle}}</h3>
</div>
@@ -35,7 +35,7 @@
<tr ng-repeat="user in users" class="fadein">
<td class="user-pic">
- <img ng-src="{{'/imgs/' + user.icon_id + '.png'}}">
+ <img ng-src="{{'/imgs/' + user.icon_id + '.jpg'}}">
</td>
<td>{{user.name}}</td>
<td>{{shared.userActivity[user.id]}}</td>
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.css b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.css
index 3202930..f7d5f67 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.css
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.css
@@ -14,9 +14,12 @@
* limitations under the License.
*/
-div#login{
- /*background: url("/imgs/login.png") no-repeat;*/
- height: 100%;
+div#login {
+ background: url("/imgs/login.jpg") no-repeat center;
+ background-size: contain;
+ position: absolute;
+ top: 3%;
+ left: 5%;
}
div#login-wrapper {
@@ -40,6 +43,8 @@
#login div.outline {
position: absolute;
border: 1px solid rgba(115, 115, 115, 0.7);
+ background-color: white;
+ opacity: .6;
top: -160px;
left: -25px;
width: 300px;
@@ -51,7 +56,7 @@
margin-left: 2.5%;
position: relative;
width: 255px;
- margin-top: 30%;
+ margin-top: 33.5%;
}
#login-form form {
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html
index 34c188d..19c5940 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.html
@@ -3,12 +3,12 @@
<div id="login-wrapper">
<div id="login-form">
<div class="outline"></div>
- <h2>Subscriber Portal</h2>
- <form>
- <input ng-model="email" type="text" placeholder="email" required>
- <input ng-model="password" type="password" placeholder="password" required>
- <input ng-click="login()" type="button" value="Log In">
- </form>
+ <h2>Subscriber Portal</h2>
+ <form>
+ <input ng-model="email" type="text" placeholder="email" required>
+ <input ng-model="password" type="password" placeholder="password" required>
+ <input ng-click="login()" type="button" value="Log In">
+ </form>
</div>
</div>
</div>
\ No newline at end of file
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js
index b4d92ff..eae16d5 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/login/login.js
@@ -35,12 +35,10 @@
}
$scope.login = function () {
-
if ($scope.email && $scope.password) {
getResource($scope.email);
+ $scope.shared.login = $scope.email;
}
-
- $scope.shared.login = $scope.email;
};
$log.debug('Cord Login Ctrl has been created.');
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/user/user.css b/apps/demo/cord-gui/src/main/webapp/app/view/user/user.css
index eab26d3..ad03110 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/user/user.css
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/user/user.css
@@ -43,7 +43,6 @@
#user table.user-info th,
#user table.user-form th {
text-align: left;
- background-color: #7AB6EA;
padding: 2% 1%;
}
diff --git a/apps/demo/cord-gui/src/main/webapp/app/view/user/user.html b/apps/demo/cord-gui/src/main/webapp/app/view/user/user.html
index ee942b2..089f5ff 100644
--- a/apps/demo/cord-gui/src/main/webapp/app/view/user/user.html
+++ b/apps/demo/cord-gui/src/main/webapp/app/view/user/user.html
@@ -4,10 +4,14 @@
<div class="main-left" ng-class="{family: isFamily}">
<table class="user-info">
<tr>
+ <th class="user-pic"></th>
<th>Name</th>
<th>Last Login</th>
</tr>
<tr ng-repeat="user in users" class="fadein">
+ <td class="user-pic">
+ <img ng-src="{{'/imgs/' + user.icon_id + '.jpg'}}">
+ </td>
<td>{{user.name}}</td>
<td>{{shared.userActivity[user.id]}}</td>
</tr>
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/bin_ball.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/bin_ball.jpg
deleted file mode 100644
index b7b8136..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/bin_ball.jpg
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/binary.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/binary.jpg
deleted file mode 100644
index 3c67124..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/binary.jpg
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/boy1.png b/apps/demo/cord-gui/src/main/webapp/imgs/boy1.png
deleted file mode 100644
index 2bd6e1e..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/boy1.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/boy2.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/boy2.jpg
new file mode 100644
index 0000000..8b8ea58
--- /dev/null
+++ b/apps/demo/cord-gui/src/main/webapp/imgs/boy2.jpg
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/boy2.png b/apps/demo/cord-gui/src/main/webapp/imgs/boy2.png
deleted file mode 100644
index 954c8f9..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/boy2.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/bundle.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/bundle.jpg
new file mode 100644
index 0000000..8ea09f9
--- /dev/null
+++ b/apps/demo/cord-gui/src/main/webapp/imgs/bundle.jpg
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/dad.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/dad.jpg
new file mode 100644
index 0000000..f7b84ad
--- /dev/null
+++ b/apps/demo/cord-gui/src/main/webapp/imgs/dad.jpg
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/dad.png b/apps/demo/cord-gui/src/main/webapp/imgs/dad.png
deleted file mode 100644
index b5dde7e..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/dad.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/girl1.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/girl1.jpg
new file mode 100644
index 0000000..aeb9f64
--- /dev/null
+++ b/apps/demo/cord-gui/src/main/webapp/imgs/girl1.jpg
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/girl1.png b/apps/demo/cord-gui/src/main/webapp/imgs/girl1.png
deleted file mode 100644
index 8cd443e..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/girl1.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/girl2.png b/apps/demo/cord-gui/src/main/webapp/imgs/girl2.png
deleted file mode 100644
index 14c2575..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/girl2.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/gma.png b/apps/demo/cord-gui/src/main/webapp/imgs/gma.png
deleted file mode 100644
index fdb6ee5..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/gma.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/gpa.png b/apps/demo/cord-gui/src/main/webapp/imgs/gpa.png
deleted file mode 100644
index 70bdb18..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/gpa.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/home.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/home.jpg
new file mode 100644
index 0000000..050da93
--- /dev/null
+++ b/apps/demo/cord-gui/src/main/webapp/imgs/home.jpg
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/login.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/login.jpg
new file mode 100644
index 0000000..5acb7bd
--- /dev/null
+++ b/apps/demo/cord-gui/src/main/webapp/imgs/login.jpg
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/mom.jpg b/apps/demo/cord-gui/src/main/webapp/imgs/mom.jpg
new file mode 100644
index 0000000..c56e869
--- /dev/null
+++ b/apps/demo/cord-gui/src/main/webapp/imgs/mom.jpg
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/imgs/mom.png b/apps/demo/cord-gui/src/main/webapp/imgs/mom.png
deleted file mode 100644
index 417bc6a..0000000
--- a/apps/demo/cord-gui/src/main/webapp/imgs/mom.png
+++ /dev/null
Binary files differ
diff --git a/apps/demo/cord-gui/src/main/webapp/index.html b/apps/demo/cord-gui/src/main/webapp/index.html
index 297e63b..34140f5 100644
--- a/apps/demo/cord-gui/src/main/webapp/index.html
+++ b/apps/demo/cord-gui/src/main/webapp/index.html
@@ -57,8 +57,8 @@
<div id="frame" ng-controller="CordCtrl as cordCtrl">
<mast></mast>
-<div id="view" ng-view></div>
<foot></foot>
+<div id="view" ng-view></div>
<svg id="icon-defs">
<defs>