diff --git a/assets/Music-selected.svg b/assets/Music-selected.svg new file mode 100644 index 0000000..ff3d7a2 --- /dev/null +++ b/assets/Music-selected.svg @@ -0,0 +1,14 @@ + diff --git a/assets/arrow-down 1.svg b/assets/arrow-down 1.svg new file mode 100644 index 0000000..15adf7a --- /dev/null +++ b/assets/arrow-down 1.svg @@ -0,0 +1,3 @@ + diff --git a/assets/arrow-up 1.svg b/assets/arrow-up 1.svg new file mode 100644 index 0000000..5c1e308 --- /dev/null +++ b/assets/arrow-up 1.svg @@ -0,0 +1,3 @@ + diff --git a/assets/logo-dynamsoft-blackBg-190x47.png b/assets/logo-dynamsoft-blackBg-190x47.png new file mode 100644 index 0000000..7967e8e Binary files /dev/null and b/assets/logo-dynamsoft-blackBg-190x47.png differ diff --git a/assets/music-unselected.svg b/assets/music-unselected.svg new file mode 100644 index 0000000..4b5f4be --- /dev/null +++ b/assets/music-unselected.svg @@ -0,0 +1,10 @@ + diff --git a/assets/passport frame.svg b/assets/passport frame.svg new file mode 100644 index 0000000..caa616c --- /dev/null +++ b/assets/passport frame.svg @@ -0,0 +1,136 @@ + + + diff --git a/css/index.css b/css/index.css new file mode 100644 index 0000000..77bbbe9 --- /dev/null +++ b/css/index.css @@ -0,0 +1,265 @@ +@font-face { + font-family: "Oswald-Regular"; + src: url("../font/Oswald-Regular.ttf"); +} + +@font-face { + font-family: "Oswald-Light"; + src: url("../font/Oswald-Light.ttf"); +} + +@font-face { + font-family: "OpenSans-Regular"; + src: url("../font/OpenSans-Regular.ttf"); +} + +* { + margin: 0; + padding: 0; + box-sizing: border-box; +} + +html, +body { + width: 100%; + height: 100%; + -webkit-text-size-adjust: 100%; + /* Prevent font scaling in landscape while allowing user zoom */ +} + +.home-page { + position: absolute; + top: 0; + bottom: 0; + left: 0; + right: 0; + z-index: 1; + display: flex; + flex-direction: column; + justify-content: space-between; + align-items: center; + color: #ffffff; + background-color: #323234; + padding: 30px 0; +} + +.home-page .logo { + width: 150px; + height: 36px; +} + +.home-page .description { + width: 80%; + text-align: center; +} + +.home-page .description .title { + font-size: 30px; + font-family: Oswald-Regular; +} + +.home-page .description .content { + font-family: OpenSans-Regular; + font-size: 16px; + line-height: 26px; + margin: 16px 0 25px 0; +} + +.home-page .description .start-btn { + width: 180px; + height: 6vh; + min-height: 40px; + max-height: 60px; + background-color: #FE8E14; + font-family: Oswald-Regular; + font-size: 20px; + margin: 0 auto; + display: flex; + justify-content: center; + align-items: center; +} + +.home-page .power { + font-size: 16px; + font-family: Oswald-Light; +} + +.scanner-container { + position: absolute; + width: 100%; + height: 100%; + display: none; +} + +.scanner-container .header { + width: 100%; + height: 46px; + background-color: rgb(55, 55, 55); + display: flex; + align-items: center; +} + +.scanner-container .header .camera-selector { + width: 70px; + height: 100%; + background-color: #000000; + display: flex; + justify-content: space-around; + align-items: center; + padding: 0 10px; + margin-right: 15px; +} + +.scanner-container .header .camera-selector .camera-svg { + width: 28px; + height: 16px; +} + +.scanner-container .header .camera-selector .up { + display: none; +} + +.scanner-container .header .camera-list { + width: 165px; + position: absolute; + top: 46px; + left: 0; + background-color: #000000; + z-index: 1; + display: none; +} + +.scanner-container .header .camera-list .camera-item { + width: 100%; + height: 40px; + color: #AAAAAA; + border-bottom: 1px solid rgb(50, 50, 52); + font-size: 12px; + font-family: "OpenSans-Regular"; + line-height: 40px; + padding: 0 10px; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; +} + +.scanner-container .header .camera-list .camera-selected { + color: #fe8e14; +} + +.scanner-container .header .camera-list .camera-item:last-child { + border: unset; +} + +.scanner-container .header .music { + width: 30px; + height: 30px; +} + +.scanner-container .header .no-music { + width: 22px; + height: 22px; + display: none; +} + +.result-container { + position: absolute; + width: 100%; + height: 100%; + display: none; + flex-direction: column; + justify-content: space-between; + background-color: #323234; + color: #ffffff; + font-family: "OpenSans-Regular"; + font-size: 16px; + z-index: 2; +} + +.result-container .result-header { + width: 100%; + height: 6%; + min-height: 35px; + max-height: 50px; + padding: 0 15px 0 30px; + background-color: #2B2B2B; + display: flex; + justify-content: space-between; + align-items: center; +} + +.result-container .result-header .result-title { + color: #AAAAAA; +} + +.result-container .result-header .result-restart { + color: #FE8E14; +} + +.result-container .parsed-result-area { + width: 100%; + height: 84%; + padding: 15px 15px 5px 30px; + overflow: auto; +} + +.result-container .parsed-result-area .parsed-result-header { + font-size: 18px; + margin-bottom: 30px; +} + +.result-container .parsed-result-area .parsed-filed { + display: flex; + flex-direction: column; + margin-bottom: 25px; +} + +.result-container .parsed-result-area .parsed-filed .field-name { + color: #AAAAAA; +} + +.result-container .restart-video { + width: 100%; + height: 10%; + min-height: 60px; + max-height: 100px; + display: flex; + justify-content: center; + align-items: center; +} + +.result-container .restart-video .btn-restart-video { + width: 160px; + height: 60%; + border: 0; + background-color: #fe8e14; + font-size: 20px; + color: #ffffff; + font-family: "Oswald-Regular"; +} + +@keyframes dce-rotate { + from { + transform: rotate(0turn); + } + + to { + transform: rotate(1turn); + } +} + +@keyframes dce-scanlight { + from { + top: 0; + } + + to { + top: 97%; + } +} + +@media screen and (max-width: 780px) and (orientation: landscape) { + .result-container .parsed-result-area .parsed-filed { + font-size: 14px; + } +} \ No newline at end of file diff --git a/font/OpenSans-Regular.ttf b/font/OpenSans-Regular.ttf new file mode 100644 index 0000000..2e31d02 Binary files /dev/null and b/font/OpenSans-Regular.ttf differ diff --git a/font/Oswald-Light.ttf b/font/Oswald-Light.ttf new file mode 100644 index 0000000..dcfaa60 Binary files /dev/null and b/font/Oswald-Light.ttf differ diff --git a/font/Oswald-Regular.ttf b/font/Oswald-Regular.ttf new file mode 100644 index 0000000..2492c44 Binary files /dev/null and b/font/Oswald-Regular.ttf differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..69b2520 --- /dev/null +++ b/index.html @@ -0,0 +1,160 @@ + + + +
+ + +