Adding Current Balance Widget (without functionality)

main
Chris 3 years ago
parent 00bdef3594
commit f4ea806292

@ -2,9 +2,10 @@
max-width: 20%; max-width: 20%;
background-color: rgb(223, 245, 229); background-color: rgb(223, 245, 229);
padding: 10px; padding: 10px;
margin: 1%;
} }
.widget_header { .widget_header {
margin:0px; margin: 0px;
margin-bottom: 20px; margin-bottom: 20px;
position: relative; position: relative;
} }

@ -17,7 +17,7 @@ export default function AddNewBill() {
<p>Leisure</p> <p>Leisure</p>
<p>Gas</p> <p>Gas</p>
</div> </div>
</div> </div>
<button>Add Bill</button> <button>Add Bill</button>
</div> </div>

@ -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 />
</> </>
) )
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

Loading…
Cancel
Save