From 35392ca3229e235ab7eba0b555bfee921e96ca8e Mon Sep 17 00:00:00 2001 From: sipp11 Date: Tue, 20 Sep 2016 11:42:40 +0700 Subject: [PATCH] Fix: UI & UX --- .gitignore | 1 + bower.json | 21 + css/stdb.css | 45 +- index.html | 12 +- instrument.html | 90 +++- js/stdb.js | 1263 +++++++++++++++++++++++++++-------------------- login.html | 10 + stat.html | 155 ++++-- 8 files changed, 993 insertions(+), 604 deletions(-) create mode 100644 .gitignore create mode 100644 bower.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ceaca38 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +bower_components/* diff --git a/bower.json b/bower.json new file mode 100644 index 0000000..3673397 --- /dev/null +++ b/bower.json @@ -0,0 +1,21 @@ +{ + "name": "stdb-webapp", + "authors": [ + "sipp11 " + ], + "description": "", + "main": "", + "moduleType": [], + "license": "MIT", + "homepage": "", + "ignore": [ + "**/.*", + "node_modules", + "bower_components", + "test", + "tests" + ], + "dependencies": { + "sweetalert": "^1.1.3" + } +} diff --git a/css/stdb.css b/css/stdb.css index 122ade0..0700e33 100755 --- a/css/stdb.css +++ b/css/stdb.css @@ -6,6 +6,39 @@ ul { background-color: #333; } +[type="radio"]:not(:checked), [type="radio"]:checked, +[type="checkbox"]:not(:checked), [type="checkbox"]:checked { + position: static; + left: auto; + opacity: 1; +} + +.pull-right { + float: right; +} + +.danger { + color: rgb(201, 0, 0); + z-index: 10; +} + +a.hideBtn { + background: white; + padding: 2rem; + margin: 1rem; +} + +span.tag { + background: #ccc; + margin: 0 5px; + border-radius: 3px; + padding: 0 1rem; + color: black; +} + +ul.list-inline { + background: white; +} li { float: left; } @@ -216,23 +249,25 @@ img{ /* Author :: Apirak */ /* Add cover image to display */ -.box-left { + +/*.box-left { width: 20%; height: 100%; display: inline-table; } .box-right { - /*float: right;*/ + float: right; width: 80%; height: 100%; display: inline-table; -} +}*/ + img.cover-img { width: 120px; height: 120px; - margin-top: -2%; - margin-left: 1%; + /*margin-top: -2%;*/ + /*margin-left: 1%;*/ } /* End */ diff --git a/index.html b/index.html index afc4953..3225b74 100755 --- a/index.html +++ b/index.html @@ -41,7 +41,15 @@ - diff --git a/instrument.html b/instrument.html index af9115b..1c9acb2 100755 --- a/instrument.html +++ b/instrument.html @@ -7,27 +7,62 @@ content="width=device-width, initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=1"> --> Traffy STDB + - + + - + -
@@ -83,6 +118,25 @@
+ +
+
    +
  • +
  • +
  • +
+
+
+
@@ -166,7 +220,33 @@ + + + + + + + diff --git a/stat.html b/stat.html index 82eaf0b..87ac7f6 100755 --- a/stat.html +++ b/stat.html @@ -5,9 +5,11 @@ Traffy STDB Stat + + @@ -58,58 +75,108 @@ -
+
+
+ +
+
- + + + + +