File tree 5 files changed +86
-18
lines changed
5 files changed +86
-18
lines changed Original file line number Diff line number Diff line change 13
13
< title > Meal Finder</ title >
14
14
</ head >
15
15
< body >
16
- < div class ="container ">
17
- < h1 > Meal Finder</ h1 >
18
- < div class ="flex ">
19
- < form class ="flex " id ="submit ">
20
- < input
21
- type ="text "
22
- id ="search "
23
- placeholder ="Search for meals or keywords "
16
+ < header >
17
+ < div class ="header ">
18
+ < div class ="flex ">
19
+ < img
20
+ src ="https://image.flaticon.com/icons/svg/1397/1397179.svg "
21
+ alt ="Meal Finder "
24
22
/>
25
- < button class ="search-btn " type ="submit ">
26
- < i class ="fas fa-search "> </ i >
23
+ < h1 > Meal Finder</ h1 >
24
+ </ div >
25
+ < div class ="flex ">
26
+ < form class ="flex " id ="submit ">
27
+ < input
28
+ type ="text "
29
+ id ="search "
30
+ placeholder ="Search for meals or keywords "
31
+ />
32
+ < button class ="search-btn " type ="submit ">
33
+ < i class ="fas fa-search "> </ i >
34
+ </ button >
35
+ </ form >
36
+ < button class ="random-btn " id ="random ">
37
+ < i class ="fas fa-random "> </ i >
27
38
</ button >
28
- </ form >
29
- < button class ="random-btn " id ="random ">
30
- < i class ="fas fa-random "> </ i >
31
- </ button >
39
+ </ div >
32
40
</ div >
41
+ </ header >
33
42
43
+ < div class ="container ">
34
44
< div id ="result-heading "> </ div >
35
45
< div id ="meals " class ="meals "> </ div >
36
46
< div id ="single-meal "> </ div >
Original file line number Diff line number Diff line change @@ -19,6 +19,24 @@ body {
19
19
margin : 0 ;
20
20
}
21
21
22
+ .header {
23
+ display : flex;
24
+ flex-direction : column;
25
+ align-items : center;
26
+ justify-content : center;
27
+ height : 4rem ;
28
+ margin : 1rem ;
29
+ }
30
+
31
+ .header img {
32
+ width : 24px ;
33
+ width : 24px ;
34
+ }
35
+
36
+ .header h1 {
37
+ padding-left : 0.5rem ;
38
+ }
39
+
22
40
.container {
23
41
margin : auto;
24
42
max-width : 800px ;
@@ -160,6 +178,14 @@ button:active {
160
178
}
161
179
162
180
@media (min-width : 740px ) {
181
+ .header {
182
+ flex-direction : row;
183
+ }
184
+
185
+ .header h1 {
186
+ padding-right : 2rem ;
187
+ }
188
+
163
189
input [type = "text" ] {
164
190
width : 300px ;
165
191
}
Original file line number Diff line number Diff line change 14
14
</ head >
15
15
< body >
16
16
< h1 > Expense Tracker</ h1 >
17
+
17
18
< div class ="container ">
18
- < h2 > Your Balance</ h2 >
19
- < h2 id ="balance " class ="balance "> $0.00</ h2 >
19
+ < div class ="header ">
20
+ < img
21
+ src ="https://image.flaticon.com/icons/svg/3176/3176361.svg "
22
+ alt ="Expense Tracker "
23
+ />
24
+ < div class ="balance-container ">
25
+ < h2 > Your Balance</ h2 >
26
+ < h2 id ="balance " class ="balance "> $0.00</ h2 >
27
+ </ div >
28
+ </ div >
20
29
< div class ="inc-exp-container ">
21
30
< div >
22
31
< h4 > Income</ h4 >
23
32
< p id ="money-plus " class ="money plus "> +$0.00</ p >
24
33
</ div >
25
34
< div >
26
- < h4 > Expense </ h4 >
35
+ < h4 > Expenses </ h4 >
27
36
< p id ="money-minus " class ="money minus "> -$0.00</ p >
28
37
</ div >
29
38
</ div >
Original file line number Diff line number Diff line change @@ -29,6 +29,23 @@ body {
29
29
margin : 0 ;
30
30
}
31
31
32
+ .header {
33
+ display : flex;
34
+ align-items : center;
35
+ justify-content : space-around;
36
+ }
37
+
38
+ .header img {
39
+ width : 4.5rem ;
40
+ width : 4.5rem ;
41
+ opacity : 0.5 ;
42
+ }
43
+
44
+ .balance-container {
45
+ display : flex;
46
+ flex-direction : column;
47
+ }
48
+
32
49
.container {
33
50
margin : 30px auto;
34
51
width : 350px ;
38
55
font-size : 1.5rem ;
39
56
}
40
57
58
+ /* h1 {
59
+ font-size: 1.17rem;
60
+ font-weight: lighter;
61
+ margin: 1rem;
62
+ } */
63
+
41
64
h2 {
42
65
font-size : 1.17rem ;
43
66
}
Original file line number Diff line number Diff line change 75
75
| 67 | [ Expense Tracker] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/67-expense%20tracker ) | [ Live Demo] ( https://codepen.io/solygambas/full/OJbqyro ) |
76
76
| 68 | [ Music Player] ( https://github.com/solygambas/html-css-fifty-projects/tree/master/68-music%20player ) | [ Live Demo] ( https://codepen.io/solygambas/full/LYbaZNG ) |
77
77
78
- Mainly based on 2 courses by Brad Traversy (2020):
78
+ These projects are mostly based on 2 courses by Brad Traversy (2020):
79
79
80
80
- [ 50 Projects In 50 Days - HTML, CSS & JavaScript] ( https://www.udemy.com/course/50-projects-50-days/ )
81
81
- [ 20 Web Projects With Vanilla JavaScript] ( https://www.udemy.com/course/web-projects-with-vanilla-javascript/ )
You can’t perform that action at this time.
0 commit comments