Skip to content

Commit b76792f

Browse files
committed
added chart headers
1 parent 7964bf4 commit b76792f

File tree

4 files changed

+55
-0
lines changed

4 files changed

+55
-0
lines changed

src/components/Chart.jsx

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import styles from './Chart.module.css'
2+
3+
export default function ChartBox() {
4+
return (
5+
<h1>Chart</h1>
6+
)
7+
}

src/components/Chart.module.css

Whitespace-only changes.

src/pages/Overview.jsx

+15
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ export default function Overview() {
3232
sign={<MoneySend className="total-income-statement-box__sign-red" variant="Bold"/>}
3333
/>
3434
</div>
35+
36+
<div className={styles["chart-wrap"]}>
37+
<div className={styles["chart-wrap__headers"]}>
38+
<div>
39+
<h1>Balance Overview</h1>
40+
<h5>
41+
<span className="green-dot"></span> Total Income
42+
<span className="red-dot" style={{ marginLeft: "20px" }}></span> Total Spending
43+
</h5>
44+
</div>
45+
<button> {/* // todo: add date picker */}
46+
Last 6 month
47+
</button>
48+
</div>
49+
</div>
3550
</>
3651
)
3752
}

src/pages/Overview.module.css

+33
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,37 @@
33
justify-content: space-between;
44
margin-top: 100px;
55
column-gap: 80px;
6+
}
7+
.chart-wrap {
8+
background-color: #fff;
9+
box-shadow: 0 5px 10px rgb(218, 218, 218, 0.5);
10+
margin-top: 50px;
11+
padding: 30px;
12+
border-radius: 30px;
13+
}
14+
.chart-wrap__headers {
15+
display: flex;
16+
justify-content: space-between;
17+
align-items: center;
18+
}
19+
.chart-wrap__headers h1 {
20+
font-size: 1.5rem;
21+
font-weight: 500;
22+
}
23+
.chart-wrap__headers h5 {
24+
display: flex;
25+
column-gap: 10px;
26+
margin-top: 15px;
27+
}
28+
:global(.red-dot) {
29+
width: 15px;
30+
height: 15px;
31+
background-color: #ff4b4b;
32+
border-radius: 100%;
33+
}
34+
:global(.green-dot) {
35+
width: 15px;
36+
height: 15px;
37+
background-color: #38cf38;
38+
border-radius: 100%;
639
}

0 commit comments

Comments
 (0)