feat: components
Signed-off-by: Ameya Shenoy <shenoy.ameya@gmail.com>
This commit is contained in:
parent
4ca2213c0b
commit
b911b667cc
7 changed files with 78 additions and 10 deletions
|
|
@ -42,6 +42,42 @@ export default function CenterCol() {
|
||||||
title: "Holder's Name",
|
title: "Holder's Name",
|
||||||
value: "Nishant Verma",
|
value: "Nishant Verma",
|
||||||
}]
|
}]
|
||||||
|
}, {
|
||||||
|
bankName: "Axis",
|
||||||
|
bankFullName: "Axis Bank",
|
||||||
|
bankLogoSrc: "/axis.svg",
|
||||||
|
bankAccountBalance: "55,410",
|
||||||
|
infoLines: [{
|
||||||
|
title: "Account Number",
|
||||||
|
value: "34536896852",
|
||||||
|
}, {
|
||||||
|
title: "IFSC Code",
|
||||||
|
value: "SBIN0006586",
|
||||||
|
}, {
|
||||||
|
title: "Swift BIC",
|
||||||
|
value: "6895206BB",
|
||||||
|
}, {
|
||||||
|
title: "Holder's Name",
|
||||||
|
value: "Nishant Verma",
|
||||||
|
}]
|
||||||
|
}, {
|
||||||
|
bankName: "ICICI",
|
||||||
|
bankFullName: "ICICI Bank",
|
||||||
|
bankLogoSrc: "/icici.svg",
|
||||||
|
bankAccountBalance: "7,932",
|
||||||
|
infoLines: [{
|
||||||
|
title: "Account Number",
|
||||||
|
value: "92531805286",
|
||||||
|
}, {
|
||||||
|
title: "IFSC Code",
|
||||||
|
value: "HDFC0002233",
|
||||||
|
}, {
|
||||||
|
title: "Swift BIC",
|
||||||
|
value: "HDFCINBBBNG",
|
||||||
|
}, {
|
||||||
|
title: "Holder's Name",
|
||||||
|
value: "Nishant Verma",
|
||||||
|
}]
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import styles from './recurringPayment.module.css'
|
||||||
import { BsTriangleFill, BsYoutube, BsCalendar2Date } from 'react-icons/bs'
|
import { BsTriangleFill, BsYoutube, BsCalendar2Date } from 'react-icons/bs'
|
||||||
import { RiHome7Fill } from 'react-icons/ri'
|
import { RiHome7Fill } from 'react-icons/ri'
|
||||||
|
|
||||||
export default function Upcoming() {
|
export default function RecurringPayment(props) {
|
||||||
return (
|
return (
|
||||||
<div className={styles.recurringPayment}>
|
<div className={styles.recurringPayment}>
|
||||||
<div className={styles.recurringPaymentTop}>
|
<div className={styles.recurringPaymentTop}>
|
||||||
|
|
@ -13,7 +13,7 @@ export default function Upcoming() {
|
||||||
className={styles.paymentIcon}
|
className={styles.paymentIcon}
|
||||||
size={50}
|
size={50}
|
||||||
/>
|
/>
|
||||||
<div className={styles.paymentTitle}>2586 Rent</div>
|
<div className={styles.paymentTitle}>{props.title}</div>
|
||||||
</div>
|
</div>
|
||||||
<BsCalendar2Date
|
<BsCalendar2Date
|
||||||
className={styles.paymentIcon}
|
className={styles.paymentIcon}
|
||||||
|
|
@ -21,8 +21,8 @@ export default function Upcoming() {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.recurringPaymentBottom}>
|
<div className={styles.recurringPaymentBottom}>
|
||||||
<div>Due in 7 days</div>
|
<div>Due in {props.due_in_days} days</div>
|
||||||
<div>₹36,163 · monthly</div>
|
<div>₹{props.amount} · monthly</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,34 @@ import React from 'react'
|
||||||
import styles from './upcoming.module.css'
|
import styles from './upcoming.module.css'
|
||||||
import { BsTriangleFill } from 'react-icons/bs'
|
import { BsTriangleFill } from 'react-icons/bs'
|
||||||
import RecurringPayment from './RecurringPayment'
|
import RecurringPayment from './RecurringPayment'
|
||||||
|
import { RiHome7Fill } from 'react-icons/ri'
|
||||||
|
|
||||||
export default function Upcoming() {
|
export default function Upcoming() {
|
||||||
|
const recurringPayments = [
|
||||||
|
{
|
||||||
|
title: "2568 Rent",
|
||||||
|
amount: "36,163",
|
||||||
|
due_in_days: "7",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "YouTube Premium",
|
||||||
|
amount: "130",
|
||||||
|
due_in_days: "17",
|
||||||
|
},
|
||||||
|
]
|
||||||
|
const recurringPaymentsDiv = []
|
||||||
|
recurringPayments.forEach((payment) => {
|
||||||
|
recurringPaymentsDiv.push(
|
||||||
|
<RecurringPayment
|
||||||
|
key={payment.title}
|
||||||
|
title={payment.title}
|
||||||
|
amount={payment.amount}
|
||||||
|
due_in_days={payment.due_in_days}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.main}>
|
<div className={styles.main}>
|
||||||
<div className={styles.summary}>
|
<div className={styles.summary}>
|
||||||
|
|
@ -17,8 +43,7 @@ export default function Upcoming() {
|
||||||
</div>
|
</div>
|
||||||
<div className={styles.right}>₹36,163</div>
|
<div className={styles.right}>₹36,163</div>
|
||||||
</div>
|
</div>
|
||||||
<RecurringPayment />
|
{recurringPaymentsDiv}
|
||||||
<RecurringPayment />
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,9 @@
|
||||||
.main {
|
.main {
|
||||||
background: #FFF;
|
background: #FFF;
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
width: 100%;
|
width: 47.5%;
|
||||||
|
margin-top: 5%;
|
||||||
|
/* max-width: 600px; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.bank {
|
.bank {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
width: 45vw;
|
||||||
|
max-width: 1225px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
|
|
@ -22,8 +24,9 @@
|
||||||
|
|
||||||
.accounts {
|
.accounts {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
width: 400px;
|
width: 23vw;
|
||||||
|
max-width: 630px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.heading {
|
.heading {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
.main {
|
.main {
|
||||||
width: 400px;
|
width: 23vw;
|
||||||
|
max-width: 630px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.topDiv {
|
.topDiv {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue