File tree Expand file tree Collapse file tree 2 files changed +31
-13
lines changed
Expand file tree Collapse file tree 2 files changed +31
-13
lines changed Original file line number Diff line number Diff line change @@ -67,18 +67,24 @@ const Menu = () => {
6767 }
6868 < menu className = "activity-menu" >
6969 < h1 > Menu</ h1 >
70- < button onClick = { ( ) => selectActivity ( "run" ) } > Run</ button >
71- < button onClick = { ( ) => selectActivity ( "mountain-biking" ) } >
72- Mountain Biking
73- </ button >
74- < label htmlFor = "dates" > Choose a date</ label >
75- < select name = "dates" id = "dates" >
76- { dateId . map ( ( date ) => (
77- < option value = { date } id = { date } key = { date } >
78- { date }
79- </ option >
80- ) ) }
81- </ select >
70+ < div className = "buttons-container" >
71+ < button onClick = { ( ) => selectActivity ( "run" ) } > Run</ button >
72+ < button onClick = { ( ) => selectActivity ( "mountain-biking" ) } >
73+ Mountain Biking
74+ </ button >
75+ </ div >
76+ < div >
77+ < label className = "date" htmlFor = "dates" >
78+ Choose a date:
79+ </ label >
80+ < select name = "dates" id = "dates" >
81+ { dateId . map ( ( date ) => (
82+ < option value = { date } id = { date } key = { date } >
83+ { date }
84+ </ option >
85+ ) ) }
86+ </ select >
87+ </ div >
8288 </ menu >
8389 < section className = "graph" >
8490 < div className = "selection" >
Original file line number Diff line number Diff line change 11button {
2- width : 200 px ;
2+ width : auto ;
33}
44
55select {
66 width : 200px ;
77}
8+
89.activity-menu {
910 padding-top : 3rem ;
1011 padding-left : 3rem ;
@@ -15,6 +16,17 @@ select{
1516
1617}
1718
19+ .buttons-container {
20+ padding-top : 0.5rem ;
21+ padding-bottom : 0.5rem ;
22+ display : grid;
23+ gap : 0.5rem ;
24+ }
25+
26+ .date {
27+ padding-right : 0.5rem ;
28+ }
29+
1830.graph {
1931 padding-left : 3rem ;
2032 display : flex;
You can’t perform that action at this time.
0 commit comments