Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement frontend pages for login #121 #134

Merged
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions power-pay-frontend/src/components/UserLogin.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
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>
<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 />
</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;
14 changes: 14 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,17 @@ 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;
}
Loading