Skip to content

Commit

Permalink
added form
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahul-Prasad-07 committed Jul 1, 2023
1 parent 57b4c6d commit 3a35471
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Venmo_Dapp/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Navbar from './components/Navbar';
import styles from './styles/App.module.css';
import TransactionForm from './components/transaction/TransactionForm.jsx';

import './App.css';

Expand All @@ -9,6 +10,13 @@ function App() {
<header>
<Navbar/>
</header>

<main className={styles.mainConatiner}>
<div className={styles.activityContainer}>{/* Activity */}</div>
<div className={styles.sideConatiner}>
<TransactionForm/>
</div>
</main>
</div>
);
}
Expand Down
46 changes: 45 additions & 1 deletion Venmo_Dapp/src/components/transaction/TransactionForm.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
import { CurrencyDollarIcon, SwitchVerticalIcon } from "@heroicons/react/outline"

import styles from "../../styles/Transaction.module.css"

function TransactionForm() {
return <div></div>
return <div className={styles.container}>
<h3 className={styles.formTitle}> Send Payment / Request</h3>

<form>
<div className={styles.formContainer}>
<div className={styles.swapContainer}>
<SwitchVerticalIcon className={styles.swapIcon} />
<p className={styles.swapText}>Swap to/from</p>
</div>

<div className={styles.formBody}>
<div className={styles.formInputContainer}>
<h4 className={styles.formInputTitle}> To </h4>
<input className={styles.formInput} type="text" autoComplete={false} />

</div>

<div className={styles.formInputContainer}>
<h4 className={styles.formInputTitle}> Message </h4>
<input className={styles.formInput} type="text" autoComplete={false} />
</div>
</div>

<div className={styles.formFooter}>
<h4 className={styles.footerTitle}> Amount</h4>
<div className={styles.footerContainer}>
<div className={styles.amountContainer}>
<div className={styles.inputContainer}>
<CurrencyDollarIcon className={styles.dollarIcon} />
<input className={styles.formInput} type="number" autoComplete={false} />
</div>
</div>
<button className={styles.sendButton} type="submit"> Send </button>
</div>

</div>

</div>
</form>

</div>
}

export default TransactionForm

1 comment on commit 3a35471

@vercel
Copy link

@vercel vercel bot commented on 3a35471 Jul 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.