Skip to content

Commit

Permalink
Update(front-end): Added the Login and phone number font awesome.
Browse files Browse the repository at this point in the history
  • Loading branch information
Motouom committed Apr 19, 2024
1 parent ae34c48 commit f98b69f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
13 changes: 11 additions & 2 deletions power-pay-frontend/src/components/UserLogin.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
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">
<div className="text-lg text-center text-black-950 font-bold font-black pb-5 absolute inset-x-0 top-12">LOGIN . . .</div>
<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">
<input type="number" className="text-lg text-center rounded-full w-80 p-2.5 bg-red-50 dark:placeholder-gray-400 dark:text-black required" placeholder="Phone Number" required />
<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">
Expand Down
16 changes: 16 additions & 0 deletions power-pay-frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,20 @@ input::-webkit-inner-spin-button {
/* 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 f98b69f

Please sign in to comment.