Skip to content

Commit

Permalink
Merge branch 'main' into Implement-the-frontend-page-for-recipient's-…
Browse files Browse the repository at this point in the history
…data-input-using-PPA-#26
  • Loading branch information
Ngha-Boris authored Apr 18, 2024
2 parents 3a51951 + e4c1d51 commit f2dcc0e
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 31 deletions.
2 changes: 1 addition & 1 deletion power-pay-frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@

.read-the-docs {
color: #888;
}
}
28 changes: 3 additions & 25 deletions power-pay-frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,13 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
// import { Link } from 'react-router-dom'; uncomment this line of you want to use react-router in the app
import './App.css'

function App() {
const [count, setCount] = useState(0)

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
{/* Add the link to the path to the page you want */}
</>
)
}

export default App
export default App
4 changes: 4 additions & 0 deletions power-pay-frontend/src/components/okpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ const OKPage: React.FC = () => {
<div className="flex justify-center items-center mb-34 bg-800 text-black text-sm">
<div className="">
<SendMoneyConfirmation onSuccess={(successMessage) => console.log(successMessage)} />
Implement-the-frontend-Pin-input-for-send-money-using-PPA-#25


main
</div>
</div>
);
Expand Down
33 changes: 33 additions & 0 deletions power-pay-frontend/src/components/pinInput.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
const PinInput: React.FC = () => {




return (
<div className="flex justify-center items-center mb-34 bg-800 text-black text-sm">
<div className="">
<div className="flex rounded-lg w-80 m-auto px-4 py-2 text-lg absolute inset-x-0 top-4 bg-gray-100">
<div>
<h1 className="text-lg text-center text-red-400 pb-5">Notice!!!</h1>
<p className="text-sm text-center text-black-400 pb-4">By entering you PIN below, you confirm that the sum of of FCFA100.50 be sent to Mr Stephane</p>
</div>
</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="password"maxLength={4} id="number-input" className="text-lg text-center rounded-full w-80 p-2.5 bg-red-50 dark:placeholder-gray-400 dark:text-black" placeholder="Enter PIN" required />
</form>
</div>
<div className="pt-12">
<button className="rounded-full w-80 m-auto px-4 py-2 my-16 text-white bg-red-600 hover:border-red-950 text-lg absolute inset-x-0 bottom-12">
Cancel
</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">
Confirm
</button>
</div>
</div>
</div>
);
};

export default PinInput;
5 changes: 2 additions & 3 deletions power-pay-frontend/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
Expand Down Expand Up @@ -42,7 +41,7 @@ button {
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
/* background-color: #0d235f; */
cursor: pointer;
transition: border-color 0.25s;
}
Expand All @@ -65,4 +64,4 @@ button:focus-visible {
button {
background-color: #f9f9f9;
}
}
}
5 changes: 3 additions & 2 deletions power-pay-frontend/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<App />
<App />
{/* adding the path to the okpage */}
</React.StrictMode>,
)

0 comments on commit f2dcc0e

Please sign in to comment.