Skip to content

Commit 9c31be5

Browse files
committed
Finance Tracker
1 parent 3151469 commit 9c31be5

2 files changed

Lines changed: 45 additions & 16 deletions

File tree

Projects/Finance Tracker/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<body>
1414
<header>
1515
<img class="logo" src="https://i.pinimg.com/564x/61/ea/07/61ea07e06fa139ef7e4609c95f0ae8ed.jpg">
16-
<h1>Personal Finance Tracker</h1>
16+
<h1 class="hello-height">Personal Finance Tracker</h1>
1717
<p id="currentDateTime"></p>
1818
</header>
1919

Projects/Finance Tracker/styles.css

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,22 @@ header {
2222

2323
height: 50px;
2424
transition: transform 0.3s ease;
25-
margin-right: 25px;
25+
margin-right: 15px;
2626
border: 1px solid black;
2727
border-radius: 50px;
2828
}
2929
#currentDateTime{
3030
margin-left: 400px;
31+
margin-right:15px;
3132
}
3233

3334
.logo:hover {
3435
transform: rotate(360deg);
3536
}
3637
main {
37-
padding: 30px;
38+
padding: 20px;
39+
max-width: 1000px;
40+
margin:0 auto;
3841
}
3942

4043
h1, h2 {
@@ -45,36 +48,42 @@ h1, h2 {
4548
text-align: center;
4649
margin-bottom: 30px;
4750
display: flex;
48-
flex-direction:row;
51+
flex-wrap:wrap;
52+
/* flex-direction:row; */
4953
justify-content: center;
5054
}
5155
.balance{
56+
flex:1 1 200px;
5257
border:2px solid black;
5358
display: flex;
54-
justify-content: center;
59+
flex-direction: column;
60+
align-items: center;
61+
/* justify-content: center; */
5562
border-radius: 5px;
5663
background-color: azure;
57-
margin-left:20px;
58-
margin-right:20px;
64+
/* margin-left:20px;
65+
margin-right:20px; */
66+
margin:10px;
67+
padding: 10px;
5968

6069
}
6170
#balanceAmount,#incomeAmount {
6271
font-size: 25px;
6372
font-weight: bold;
6473
color: green;
65-
margin-top: 0px;
74+
/* margin-top: 0px;
6675
margin-left:20px;
6776
margin-right:20px;
68-
box-sizing: border-box;
77+
box-sizing: border-box; */
6978
}
7079
#expenseAmount{
7180
font-size: 25px;
7281
font-weight: bold;
7382
color: red;
74-
margin-top: 0px;
83+
/* margin-top: 0px;
7584
margin-left:20px;
7685
margin-right:20px;
77-
box-sizing: border-box;
86+
box-sizing: border-box; */
7887
}
7988

8089
.balance:hover {
@@ -123,20 +132,40 @@ h1, h2 {
123132
}
124133

125134
@media (max-width: 600px) {
135+
.logo{
136+
height: 60px;
137+
138+
}
139+
#currentDateTime{
140+
font-size:14px;
141+
margin-left: 100px;
142+
}
143+
.hello-height{
144+
font-size: 20px;
145+
}
126146
#transactionListSection {
127147
max-width: 100%;
128148
padding: 0 10px;
129149
}
130150
#balanceSection{
131-
max-width: 100%;
132-
padding:10px 10px;
133-
flex-direction: column;
151+
/* max-width: 100%;
152+
padding:10px 10px; */
153+
flex-direction: column;
154+
font-size: 17px;
155+
156+
}
157+
.balance{
158+
flex:1 1 100%;
159+
margin: 5px;
134160
}
135161
header{
136-
max-width: 100%;
137-
flex-direction: center;
162+
height: 100px;
163+
text-align: center;
164+
display: flex;
165+
justify-content:flex-start;
138166
}
139167
}
168+
140169
.amount {
141170
font-weight: bold;
142171
}

0 commit comments

Comments
 (0)