diff --git a/IdentityService/.idea/misc.xml b/IdentityService/.idea/misc.xml index 02ee41745424ca787b338c8fc8f1dfde29e95cb3..5b6a5c4a919497ee5068af0f48f2f2c4b7ef18ab 100644 --- a/IdentityService/.idea/misc.xml +++ b/IdentityService/.idea/misc.xml @@ -10,7 +10,7 @@ </list> </option> </component> - <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8 (1)" project-jdk-type="JavaSDK"> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> <output url="file://$PROJECT_DIR$/out" /> </component> </project> \ No newline at end of file diff --git a/WebApp/.idea/artifacts/WebApp_war_exploded.xml b/WebApp/.idea/artifacts/WebApp_war_exploded.xml new file mode 100644 index 0000000000000000000000000000000000000000..1d2e9f2564219779d07d3158474c09b39f283539 --- /dev/null +++ b/WebApp/.idea/artifacts/WebApp_war_exploded.xml @@ -0,0 +1,13 @@ +<component name="ArtifactManager"> + <artifact type="exploded-war" name="WebApp:war exploded"> + <output-path>$PROJECT_DIR$/out/artifacts/WebApp_war_exploded</output-path> + <root id="root"> + <element id="javaee-facet-resources" facet="WebApp/web/Web" /> + <element id="directory" name="WEB-INF"> + <element id="directory" name="classes"> + <element id="module-output" name="WebApp" /> + </element> + </element> + </root> + </artifact> +</component> \ No newline at end of file diff --git a/WebApp/.idea/misc.xml b/WebApp/.idea/misc.xml new file mode 100644 index 0000000000000000000000000000000000000000..05483570e041eb648703359441d61bf9a5feeb13 --- /dev/null +++ b/WebApp/.idea/misc.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> + <output url="file://$PROJECT_DIR$/out" /> + </component> +</project> \ No newline at end of file diff --git a/WebApp/.idea/modules.xml b/WebApp/.idea/modules.xml new file mode 100644 index 0000000000000000000000000000000000000000..5966e28bb3dde8c5e39f318351f216d418957dc1 --- /dev/null +++ b/WebApp/.idea/modules.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project version="4"> + <component name="ProjectModuleManager"> + <modules> + <module fileurl="file://$PROJECT_DIR$/WebApp.iml" filepath="$PROJECT_DIR$/WebApp.iml" /> + </modules> + </component> +</project> \ No newline at end of file diff --git a/WebApp/WebApp.iml b/WebApp/WebApp.iml new file mode 100644 index 0000000000000000000000000000000000000000..abfa2d4ac6b4c3aa8501116ecb37c0ff73d39473 --- /dev/null +++ b/WebApp/WebApp.iml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module type="JAVA_MODULE" version="4"> + <component name="FacetManager"> + <facet type="web" name="Web"> + <configuration> + <descriptors> + <deploymentDescriptor name="web.xml" url="file://$MODULE_DIR$/web/WEB-INF/web.xml" /> + </descriptors> + <webroots> + <root url="file://$MODULE_DIR$/web" relative="/" /> + </webroots> + </configuration> + </facet> + </component> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + </component> +</module> \ No newline at end of file diff --git a/WebApp/web/WEB-INF/web.xml b/WebApp/web/WEB-INF/web.xml new file mode 100644 index 0000000000000000000000000000000000000000..69d652e69852696c60d6f1fe9e073a49e426eaae --- /dev/null +++ b/WebApp/web/WEB-INF/web.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" + version="3.1"> + + <welcome-file-list> + <welcome-file>login.jsp</welcome-file> + </welcome-file-list> + +</web-app> \ No newline at end of file diff --git a/WebApp/web/index.jsp b/WebApp/web/index.jsp new file mode 100644 index 0000000000000000000000000000000000000000..fefdbae549808073cffcd74c60afa0e7d259bc65 --- /dev/null +++ b/WebApp/web/index.jsp @@ -0,0 +1,16 @@ +<%-- + Created by IntelliJ IDEA. + User: fadhilimamk + Date: 07/11/17 + Time: 3:00 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<html> + <head> + <title>$Title$</title> + </head> + <body> + $END$ + </body> +</html> diff --git a/WebApp/web/login.jsp b/WebApp/web/login.jsp new file mode 100644 index 0000000000000000000000000000000000000000..b6be969e468b125c19f9801236bae1daada9f9ff --- /dev/null +++ b/WebApp/web/login.jsp @@ -0,0 +1,59 @@ +<%-- + Created by IntelliJ IDEA. + User: fadhilimamk + Date: 07/11/17 + Time: 3:02 + To change this template use File | Settings | File Templates. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<html> +<head> + <title>Login | Ojek Online</title> + <link rel="stylesheet" type="text/css" href="/style.css"> +</head> +<body> +<form method="post" action="/"> + <div class="login-container"> + <div class="row"> + <div class="col-6 text-center"> + <h1 style="color: #007c30; font-size: 3em">LOGIN<br> + </div> + </div> + <br> + <br> + <div class="row"> + <div class="col-2"> + <span style="font-size: 1.3em; line-height: 40px">Username</span> + </div> + <div class="col-4"> + <input style="margin-left:10px; width:95%; height: 30px; padding-left: 5px" class="login-input" type="text" placeholder="Username" name="username"> + </div> + </div> + <div class="row"> + <div class="col-2"> + <span style="font-size: 1.3em; line-height: 40px">Password</span> + </div> + <div class="col-4"> + <input style="margin-left:10px;width:95%;height: 30px; padding-left: 5px" class="login-input" type="password" placeholder="Password" name="password"> + </div> + </div> + <br> + <br> + <br> + <div class="row"> + <div class="col-4 text-left"> + <a style="float: left; font-size: 0.8em" class="login-link" href="/index.php/register">Don't have an account?</a> + </div> + <div class="col-2 text-right"> + <input class="btn login-button" type="submit" value="GO!"> + </div> + </div> + <br> + <br> + <br> + <br> + </div> +</form> +</body> +</html> + diff --git a/WebApp/web/style.css b/WebApp/web/style.css new file mode 100644 index 0000000000000000000000000000000000000000..748973910105f0f448d370c51f815db6f6c6b0e7 --- /dev/null +++ b/WebApp/web/style.css @@ -0,0 +1,468 @@ +/* ------------------------- GENERAL -------------------------*/ + +body { + background-color: #F5F5F5; + font-family: KacstOffice, sans-serif; +} + +.container { + width: 80%; + max-width: 700px; + margin: 50px auto; + background-color: white; + padding: 20px; + border-radius: 5px; +} + +.row:before, +.row:after { + content: ""; + display: table; + clear: both; +} + +[class*='col-'] { + float: left; + min-height: 1px; + width: 16.66%; +} + +.col-1 { + width: 16.66%; +} + +.col-2 { + width: 33.33%; +} + +.col-3 { + width: 50%; +} + +.col-4 { + width: 66.66%; +} + +.col-5 { + width: 83.33%; +} + +.col-6 { + width: 100%; +} + +.text-left { + text-align: left; +} + +.text-right { + text-align: right; +} + +.text-center { + text-align: center; +} + +.text-orange { + color: orange; +} + +.btn { + border-radius: 5px; + border: 1px solid black; + padding: 5px 15px; + color: black; + text-decoration: none; + font-size: medium; +} + +.red { + background-color: #DA0000; +} + +.green { + background-color: #58F100; +} + +.line-height-medium { + line-height: 30px; +} + +/* ------------------------- HEADER -------------------------*/ + +.logo:after { + background-image: url('/img/logo.jpg'); + background-size: 210px 40px; + display: inline-block; + width: 210px; + height: 40px; + content: ""; + margin-bottom: 5px; +} + +.user-action { + margin-top: 0px; +} + +.tab { + outline: 1px solid #004D40; + padding-top: 15px; + padding-bottom: 15px; + font-weight: 900; + color: black; + text-decoration: none; +} + +.tab.active { + background-color: #426344; + color: #FAFAFA; +} + +.tab:hover { + background-color: #426344; + color: #FAFAFA; +} + +/* ------------------------- ICON -------------------------*/ + +@font-face { + font-family: 'icon'; + src: url("/font/typicons.eot"); + src: url("/font/typicons.eot?#iefix") format('embedded-opentype'), + url("/font/typicons.woff") format('woff'), + url("/font/typicons.ttf") format('truetype'), + url("/font/typicons.svg#typicons") format('svg'); + font-weight: normal; + font-style: normal; +} + +.icon:before { + font-family: 'icon'; + font-style: normal; + font-weight: normal; + speak: none; + display: inline-block; + text-decoration: inherit; + width: 1em; + height: 1em; + font-size: 1em; + text-align: center; + -webkit-font-smoothing: antialiased; + font-smoothing: antialiased; + text-rendering: optimizeLegibility +} + +.icon.big { + font-size: 3em; + color: #c2c2c2; +} + +.icon.icon-mail:before { + content: '\e0a5' +} + +.icon.icon-phone:before { + content: '\e0c5' +} + +.icon.icon-star:before { + content: '\e108' +} + +.icon.icon-star-full:before{ + content:'\e105' +} + +/* ------------------------- PROFIL -------------------------*/ + +.img-circle { + width: 170px; + height: 170px; + border-radius: 50%; + border: 3px solid black; +} + +.img-profile { + width: 130px; + height: 130px; + outline: 3px solid black; +} + +.profil > p { + line-height: 50%; +} + +.location-list { + line-height: 1.9em; + list-style-image: url('/img/ic_triangle.png'); +} + +.edit:after { + background-image: url('/img/ic_edit.jpg'); + background-size: 45px 45px; + display: inline-block; + width: 45px; + height: 45px; + content: ""; +} + +a.edit:after { + margin: 15px; +} + +table { + border-collapse: collapse; +} + +table, th, td { + border: 1px solid #c2c2c2; +} + +.action-edit { + background-image: url('/img/ic_edit.jpg'); + background-size: 25px 25px; + display: inline-block; + width: 25px; + height: 20px; + content: ""; + margin-right: 10px; + cursor: pointer; +} + +.action-save { + background-image: url('/img/ic_edit.jpg'); + background-size: 25px 25px; + display: inline-block; + width: 25px; + height: 20px; + content: ""; + margin-right: 10px; + cursor: pointer; +} + +.action-delete { + background-image: url('/img/ic_close.png'); + background-size: 17px 17px; + display: inline-block; + width: 17px; + height: 17px; + content: ""; +} + +/* The switch - the box around the slider */ +.switch { + position: relative; + display: inline-block; + width: 40px; + height: 22px; +} + +/* Hide default HTML checkbox */ +.switch input {display:none;} + +.slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; + -webkit-transition: .4s; + transition: .4s; +} + +.slider:before { + position: absolute; + content: ""; + height: 15px; + width: 15px; + left: 4px; + bottom: 4px; + background-color: white; + -webkit-transition: .4s; + transition: .4s; +} + +input:checked + .slider { + background-color: #008C14; +} + +input:focus + .slider { + box-shadow: 0 0 1px #008C14; +} + +input:checked + .slider:before { + -webkit-transform: translateX(17px); + -ms-transform: translateX(17px); + transform: translateX(17px); +} + +.slider.round { + border-radius: 22px; +} + +.slider.round:before { + border-radius: 50%; +} + +.input-photo { + width: 0.1px; + height: 0.1px; + opacity: 0; + overflow: hidden; + position: absolute; + z-index: -1; +} + +.input-photo + label { + display: inline-block; + cursor: pointer; + width: 100%; + line-height: 33px; +} + +.input-photo + label > .input-photo-button { + color: black; + float: right; + font-size: 0.75em; + width: 27%; + background-color: #ccc; + text-align: center; +} + +.input-photo + label > .input-photo-result { + float: left; + font-size: 0.75em; + width: 70%; + height: 32px; + padding-left: 5px; + border: solid 1px black; + margin-right: 2px; +} + +.input-photo:focus + label > .input-photo-button, +.input-photo + label > .input-photo-button:hover { + background-color: #999aa3; +} + +.input-photo:focus + label > .input-photo-button { + outline: 1px dotted #000; + outline: -webkit-focus-ring-color auto 5px; +} + +/* ------------------------- ORDER -------------------------*/ + +.small-circle { + width: 30px; + height: 30px; + border-radius: 50%; + background-color: #c2c2c2; + font-size: large; + vertical-align: middle; + margin: 0; +} + +.page-tab { + width: 180px; + height: 50px; + border: 1px solid black; + margin: 0 auto; + display: table; + box-sizing: border-box; + vertical-align: middle; +} + +.page-tab.selected { + background-color: #f4fe96; +} + +.page-tab > .page-tab-image { + float: left; + width: 30%; + height:100%; + text-align: center; + position: relative; + display: flex; + flex-direction: column; + justify-content: center; +} + +.page-tab >.page-tab-image >.circle { + border-radius: 50%; + width: 40px; + height: 40px; + margin: auto; + background-color: #d7d7d7; + padding: auto; + text-align: center; + display: flex; + flex-direction: column; + justify-content: center; +} + +.page-tab > .page-tab-content { + float: right; + width: 70%; + height:100%; + display: inline-block; + display: flex; + flex-direction: column; + justify-content: center; +} + +/* Login Page */ + +.login-input { + margin: 5px 0 5px 0; +} + +.login-link { + float: right; + margin-top: 10px; +} + +.login-button { + padding: 10px 20px; + background-color: #58f100; +} + +.login-container { + width: 60%; + max-width: 300px; + margin: 50px auto; + background-color: #74d034; + padding-left: 30px; + padding-right: 30px; + border-radius: 50px; + border: solid 10px #007c30; + color: #007c30; +} + + +/* Register Page */ + +#sign-up-btn { + float: right; +} + +.register-link { + float: left; + margin-top: 8px; +} + +.checkbox { + margin: 10px 0 10px 0; +} + +.available { + background-color: greenyellow; +} + +.unavailable, .empty-required, .not-match { + background-color: orangered; +} + +.not-match::-webkit-input-placeholder, .empty-required::-webkit-input-placeholder, .unavailable::-webkit-input-placeholder { + color: whitesmoke; +} \ No newline at end of file