parent
00bdef3594
commit
f4ea806292
@ -0,0 +1,29 @@
|
|||||||
|
.current_balance_widget {
|
||||||
|
max-width: 20%;
|
||||||
|
background-color: rgb(223, 245, 229);
|
||||||
|
padding: 10px;
|
||||||
|
margin: 1%;
|
||||||
|
}
|
||||||
|
.widget_header {
|
||||||
|
margin: 0px;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
position: relative;
|
||||||
|
float: left;
|
||||||
|
height: 40px;
|
||||||
|
padding: 5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.current_balance_widget h1 {
|
||||||
|
padding-left: 70px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
.current_balance_widget h6 {
|
||||||
|
color: green;
|
||||||
|
margin: 0;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
padding-left: 70px;
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import './CurrentBalance.css'
|
||||||
|
import logo from './widget_logos/current_balance_logo.png';
|
||||||
|
|
||||||
|
export default function CurrentBalance() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div class="current_balance_widget">
|
||||||
|
<h5 class="widget_header">Current Balance</h5>
|
||||||
|
<img src={logo} />
|
||||||
|
<h1>$1238.56</h1>
|
||||||
|
<h6>+ $179.97 (17%) last month</h6>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
@ -1,12 +1,12 @@
|
|||||||
import AddNewBill from './AddNewBill'
|
import AddNewBill from './AddNewBill'
|
||||||
|
import CurrentBalance from './CurrentBalance'
|
||||||
|
|
||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h1>Dashboard</h1>
|
<h1>Dashboard</h1>
|
||||||
|
<CurrentBalance />
|
||||||
<AddNewBill />
|
<AddNewBill />
|
||||||
</>
|
</>
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
After Width: | Height: | Size: 934 B |
Loading…
Reference in new issue