Skip to content

Commit

Permalink
Merge pull request #134 from Motouom/Implement-Frontend-pages-for-Log…
Browse files Browse the repository at this point in the history
…in-#121

Implement frontend pages for login #121
  • Loading branch information
kouamschekina authored Apr 19, 2024
2 parents e4c1d51 + f98b69f commit 1a3c49f
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
31 changes: 31 additions & 0 deletions power-pay-frontend/src/components/UserLogin.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faPhone } from '@fortawesome/free-solid-svg-icons/faPhone';
import { faUser } from '@fortawesome/free-solid-svg-icons';
const UserLogin: React.FC = () => {
return (
<div className="flex justify-center items-center mb-34 bg-800 text-black text-sm">
<FontAwesomeIcon icon={faUser} size="4x" className="text-center w-80 justify-center align-middle pb-9 pt-12 absolute top-3" />
<div className="text-lg text-center text-black-950 pt-9 font-bold font-black absolute inset-x-0 mt-12 top-12">LOG IN</div>
<div className="input-area">
<form className="max-w-sm mx-auto flex rounded-lg w-80 m-auto text-lg absolute inset-x-0">
<div className="flex items-center">
<div className="input-group">
<input type="number" className="text-lg px-9 rounded-full w-80 p-2.5 bg-red-50 dark:placeholder-gray-400 dark:text-black required" placeholder="Phone Number" required />
<FontAwesomeIcon icon={faPhone} size="1x" className="mr-2 color-red-950" />
</div>
</div>
</form>
</div>
<div className="pt-12">
<button className="rounded-full w-80 m-auto px-4 py-2 my-16 text-white bg-blue-950 hover:border-blue-950 text-lg absolute inset-x-0 bottom-12">
Confirm
</button>
<button className="rounded-full w-80 m-auto px-4 py-2 text-white bg-blue-950 text-lg absolute inset-x-0 bottom-12">
Register
</button>
</div>
</div>
);
};

export default UserLogin;
30 changes: 30 additions & 0 deletions power-pay-frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ a:hover {
}

body {
background-color: white;
margin: 0;
display: flex;
place-items: center;
Expand Down Expand Up @@ -64,4 +65,33 @@ button:focus-visible {
button {
background-color: #f9f9f9;
}
}

/* disable wheel on number input */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

/* Firefox */
input[type=number] {
appearance: textfield;
}

.input-group {
position: relative;
}

.input-group input {
position: relative;
}

.input-group .fa-phone {
position: absolute;
top: 50%;
left: 10px;
color: red;
transform: translateY(-50%);
}

0 comments on commit 1a3c49f

Please sign in to comment.