parent
f4ea806292
commit
14813a6835
@ -1,29 +1,23 @@
|
|||||||
.current_balance_widget {
|
.current_balance_widget {
|
||||||
max-width: 20%;
|
|
||||||
background-color: rgb(223, 245, 229);
|
background-color: rgb(223, 245, 229);
|
||||||
padding: 10px;
|
|
||||||
margin: 1%;
|
|
||||||
}
|
}
|
||||||
.widget_header {
|
.widget_header {
|
||||||
margin: 0px;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
position: relative;
|
|
||||||
float: left;
|
float: left;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
padding: 5%;
|
margin-left: 5%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.current_balance_widget h1 {
|
.current_balance_widget h1 {
|
||||||
padding-left: 70px;
|
float: left;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
margin-left: 10%;
|
||||||
}
|
}
|
||||||
.current_balance_widget h6 {
|
.current_balance_widget h6 {
|
||||||
color: green;
|
color: green;
|
||||||
|
float: left;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-bottom: 10px;
|
margin-left: 33%;
|
||||||
padding-left: 70px;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,18 @@
|
|||||||
import AddNewBill from './AddNewBill'
|
import AddNewBill from './AddNewBill'
|
||||||
import CurrentBalance from './CurrentBalance'
|
import CurrentBalance from './CurrentBalance'
|
||||||
|
import Expenses from './Expenses'
|
||||||
|
import Income from './Income'
|
||||||
|
import Budget from './budget'
|
||||||
|
import RecentTransactions from './RecentTransactions'
|
||||||
|
|
||||||
export default function Dashboard() {
|
export default function Dashboard() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<h1>Dashboard</h1>
|
|
||||||
<CurrentBalance />
|
<CurrentBalance />
|
||||||
|
<Budget />
|
||||||
|
<Expenses />
|
||||||
|
<Income />
|
||||||
|
<RecentTransactions />
|
||||||
<AddNewBill />
|
<AddNewBill />
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -0,0 +1,20 @@
|
|||||||
|
.expenses_widget {
|
||||||
|
background-color: rgb(223, 245, 229);
|
||||||
|
}
|
||||||
|
.widget_header {
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.expenses_widget h1 {
|
||||||
|
float: left;
|
||||||
|
margin: 0;
|
||||||
|
margin-left: 10%;
|
||||||
|
}
|
||||||
|
.expenses_widget h6 {
|
||||||
|
color: red;
|
||||||
|
float: right;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import './Expenses.css'
|
||||||
|
import logo from './widget_logos/expenses_logo.png';
|
||||||
|
|
||||||
|
export default function Expenses() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div class="expenses_widget">
|
||||||
|
<h4 class="widget_header">This Month's Expenses</h4>
|
||||||
|
<img src={logo} />
|
||||||
|
<h1>$456.78</h1>
|
||||||
|
<h6>+ $359.97 (26%) last month (17%)</h6>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
.income_widget {
|
||||||
|
background-color: rgb(223, 245, 229);
|
||||||
|
}
|
||||||
|
.widget_header {
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.income_widget h1 {
|
||||||
|
float: left;
|
||||||
|
margin: 0;
|
||||||
|
margin-left: 10%;
|
||||||
|
}
|
||||||
|
.income_widget h6 {
|
||||||
|
color: green;
|
||||||
|
margin: 0;
|
||||||
|
float: right;
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import './Income.css'
|
||||||
|
import logo from './widget_logos/income_logo.png';
|
||||||
|
|
||||||
|
export default function Income() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div class="income_widget">
|
||||||
|
<h4 class="widget_header">This Month's Income</h4>
|
||||||
|
<img src={logo} />
|
||||||
|
<h1>$1,525.00</h1>
|
||||||
|
<h6>+ $1,037.51 (42%) last month</h6>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
@ -0,0 +1,15 @@
|
|||||||
|
.transactions_widget {
|
||||||
|
background-color: rgb(223, 245, 229);
|
||||||
|
}
|
||||||
|
|
||||||
|
.transaction_table {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
grid-template-rows: 30px 30px 30px 30px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.transaction_table p {
|
||||||
|
margin: 0;
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import './RecentTransaction.css'
|
||||||
|
|
||||||
|
export default function RecentTransactions() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div class="transactions_widget">
|
||||||
|
<h4 class="widget_header">Recent Transactions</h4>
|
||||||
|
<div class="transaction_table">
|
||||||
|
<p>Bill</p>
|
||||||
|
<p>$35.00</p>
|
||||||
|
<p>2/15/23</p>
|
||||||
|
<p>Food</p>
|
||||||
|
<p>$29.95</p>
|
||||||
|
<p>2/11/23</p>
|
||||||
|
<p>Wage</p>
|
||||||
|
<p>$723.40</p>
|
||||||
|
<p>2/10/23</p>
|
||||||
|
<p>Pet</p>
|
||||||
|
<p>$56.98</p>
|
||||||
|
<p>2/5/23</p>
|
||||||
|
<p>Leisure</p>
|
||||||
|
<p>$60.04</p>
|
||||||
|
<p>2/03/23</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
.budget_widget {
|
||||||
|
background-color: rgb(223, 245, 229);
|
||||||
|
}
|
||||||
|
.widget_header {
|
||||||
|
}
|
||||||
|
|
||||||
|
img {
|
||||||
|
float: left;
|
||||||
|
height: 40px;
|
||||||
|
margin-left: 5%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.budget_widget h1 {
|
||||||
|
float: left;
|
||||||
|
margin: 0;
|
||||||
|
margin-left: 10%;
|
||||||
|
}
|
||||||
|
.budget_widget h6 {
|
||||||
|
color: green;
|
||||||
|
float: left;
|
||||||
|
margin: 0;
|
||||||
|
margin-left: 37%;
|
||||||
|
}
|
||||||
@ -0,0 +1,17 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import './budget.css'
|
||||||
|
import logo from './widget_logos/budget_logo.png';
|
||||||
|
|
||||||
|
export default function Budget() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div class="budget_widget">
|
||||||
|
<h4 class="widget_header">Budget Remaining</h4>
|
||||||
|
<img src={logo} />
|
||||||
|
<h1>$456.78</h1>
|
||||||
|
<h6>Still on budget</h6>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
After Width: | Height: | Size: 5.8 KiB |
|
After Width: | Height: | Size: 334 KiB |
|
After Width: | Height: | Size: 29 KiB |
Loading…
Reference in new issue