Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
[#164973542 Feature] add user logout and profile update
Browse files Browse the repository at this point in the history
  • Loading branch information
timi-codes committed Mar 28, 2019
1 parent da08e83 commit 20ae31e
Show file tree
Hide file tree
Showing 9 changed files with 335 additions and 6 deletions.
51 changes: 50 additions & 1 deletion UI/admin/customer.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
<header>
<div class="top">
<a href="../index.html"><img src="../img/banka-blue-logo.svg"/></a>
<div class="current-user web-user">
<div class="current-user web-user dropdown">
<img class="avatar" src="../img/emeka [email protected]" />
<h4>Tejumola Peter</h4>
<span>(admin)</span>
<img class="arrow-down" src="../img/arrow-drop-down.svg" />
<div class="dropdown-content">
<a href="#" id="profile-button">Profile</a>
<a href="../index.html">Logout</a>
</div>
</div>
</div>
</header>
Expand Down Expand Up @@ -162,6 +166,51 @@ <h3>Create admin or user account</h3>
<button class="signup">Create</button>
</div>
</div>

<div id="profileModal" class="modal">
<div class="onboarding-modal">
<img class="avatar" src="../img/emeka [email protected]" />
<input
type="text"
id="fname"
name="fname"
value="Timi"
placeholder="First Name"
disabled
/>
<input
type="text"
id="lname"
name="lname"
value="Tejumola"
placeholder="Last Name"
disabled
/>
<input
type="text"
id="email"
name="email"
value="[email protected]"
placeholder="Email Address"
disabled
/>
<input
type="password"
id="password"
name="password"
placeholder="Password"
/>

<input
type="password"
id="password"
name="password"
placeholder="Confirm Password"
/>

<button class="update">Update</button>
</div>
</div>
</div>
</body>

Expand Down
51 changes: 50 additions & 1 deletion UI/admin/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
<header>
<div class="top">
<a href="../index.html"><img src="../img/banka-blue-logo.svg"/></a>
<div class="current-user web-user">
<div class="current-user web-user dropdown">
<img class="avatar" src="../img/emeka [email protected]" />
<h4>Tejumola Peter</h4>
<span>(admin)</span>
<img class="arrow-down" src="../img/arrow-drop-down.svg" />
<div class="dropdown-content">
<a href="#" id="profile-button">Profile</a>
<a href="../index.html">Logout</a>
</div>
</div>
</div>
</header>
Expand Down Expand Up @@ -172,6 +176,51 @@ <h3>Create admin or user account</h3>
<button class="signup">Create</button>
</div>
</div>

<div id="profileModal" class="modal">
<div class="onboarding-modal">
<img class="avatar" src="../img/emeka [email protected]" />
<input
type="text"
id="fname"
name="fname"
value="Peter"
placeholder="First Name"
disabled
/>
<input
type="text"
id="lname"
name="lname"
value="Tejumola"
placeholder="Last Name"
disabled
/>
<input
type="text"
id="email"
name="email"
value="[email protected]"
placeholder="Email Address"
disabled
/>
<input
type="password"
id="password"
name="password"
placeholder="Password"
/>

<input
type="password"
id="password"
name="password"
placeholder="Confirm Password"
/>

<button class="update">Update</button>
</div>
</div>
</div>
</body>

Expand Down
51 changes: 50 additions & 1 deletion UI/cashier/customer.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,15 @@
<header>
<div class="top">
<a href="../index.html"><img src="../img/banka-blue-logo.svg"/></a>
<div class="current-user web-user">
<div class="current-user web-user dropdown">
<img class="avatar" src="../img/emeka [email protected]" />
<h4>Tejumola Peter</h4>
<span>(cashier)</span>
<img class="arrow-down" src="../img/arrow-drop-down.svg" />
<div class="dropdown-content">
<a href="#" id="profile-button">Profile</a>
<a href="../index.html">Logout</a>
</div>
</div>
</div>
</header>
Expand Down Expand Up @@ -156,6 +160,51 @@ <h3>Credit/Debit Account</h3>
<button class="submit">Submit</button>
</div>
</div>

<div id="profileModal" class="modal">
<div class="onboarding-modal">
<img class="avatar" src="../img/emeka [email protected]" />
<input
type="text"
id="fname"
name="fname"
value="Peter"
placeholder="First Name"
disabled
/>
<input
type="text"
id="lname"
name="lname"
value="Tejumola"
placeholder="Last Name"
disabled
/>
<input
type="text"
id="email"
name="email"
value="[email protected]"
placeholder="Email Address"
disabled
/>
<input
type="password"
id="password"
name="password"
placeholder="Password"
/>

<input
type="password"
id="password"
name="password"
placeholder="Confirm Password"
/>

<button class="update">Update</button>
</div>
</div>
</div>
</body>

Expand Down
54 changes: 52 additions & 2 deletions UI/cashier/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@
<header>
<div class="top">
<a href="../index.html"><img src="../img/banka-blue-logo.svg"/></a>
<div class="current-user web-user">
<div class="current-user web-user dropdown">
<img class="avatar" src="../img/emeka [email protected]" />
<h4>Tejumola Peter</h4>
<span>(staff)</span>
<span>(cashier)</span>
<img class="arrow-down" src="../img/arrow-drop-down.svg" />
<div class="dropdown-content">
<a href="#" id="profile-button">Profile</a>
<a href="../index.html">Logout</a>
</div>
</div>
</div>
</header>

<div class="banner">
<div class="balance">
<p>Created Accounts</p>
Expand Down Expand Up @@ -146,6 +151,51 @@ <h3>1,000,000</h3>
</tr>
</table>
</div>

<div id="profileModal" class="modal">
<div class="onboarding-modal">
<img class="avatar" src="../img/emeka [email protected]" />
<input
type="text"
id="fname"
name="fname"
value="Peter"
placeholder="First Name"
disabled
/>
<input
type="text"
id="lname"
name="lname"
value="Tejumola"
placeholder="Last Name"
disabled
/>
<input
type="text"
id="email"
name="email"
value="[email protected]"
placeholder="Email Address"
disabled
/>
<input
type="password"
id="password"
name="password"
placeholder="Password"
/>

<input
type="password"
id="password"
name="password"
placeholder="Confirm Password"
/>

<button class="update">Update</button>
</div>
</div>
</div>
</body>

Expand Down
29 changes: 29 additions & 0 deletions UI/css/customer.css
Original file line number Diff line number Diff line change
Expand Up @@ -411,3 +411,32 @@ input[type="password"] {
height: 100%;
overflow: hidden;
}

.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 130px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
margin-top: 130px;
}

.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}

.dropdown-content a:hover {
background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
display: block;
}

.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
29 changes: 29 additions & 0 deletions UI/css/dashboard.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,32 @@ input[type="password"] {
height: 100%;
overflow: hidden;
}

.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 130px;
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
z-index: 1;
margin-top: 130px;
}

.dropdown-content a {
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
}

.dropdown-content a:hover {
background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
display: block;
}

.dropdown:hover .dropbtn {
background-color: #3e8e41;
}
Loading

0 comments on commit 20ae31e

Please sign in to comment.