Skip to content

Commit

Permalink
edit styles of graph controls
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikheull committed Jan 19, 2021
1 parent 856bb22 commit 526aa6c
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/NextDay.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class NextDay extends Component {
render() {
return (
<div onClick={this.props.addMethod}>
x
<img src="images/icons/arrow-right-circle.svg" alt=""/>
</div>
)
}
Expand Down
2 changes: 1 addition & 1 deletion components/PrevDay.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PrevDay extends Component {
render() {
return (
<div onClick={this.props.remMethod}>
x
<img src="images/icons/arrow-left-circle.svg" alt=""/>
</div>
)
}
Expand Down
8 changes: 5 additions & 3 deletions components/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,11 @@ class Stats extends Component {
return (
<section>
<Line data={data} options={options} />
<p>{this.state.date_query}</p>
<PrevDay remMethod={() => this.remDay()} />
<NextDay addMethod={() => this.addDay()} />
<p className="statsTitle">{this.state.date_query}</p>
<div className="statsControll">
<PrevDay remMethod={() => this.remDay()} />
<NextDay addMethod={() => this.addDay()} />
</div>
</section>
)
}
Expand Down
1 change: 1 addition & 0 deletions public/images/icons/arrow-left-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/icons/arrow-right-circle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 15 additions & 1 deletion public/styles/map.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ body {margin: 0;padding: 0;}
.station_details .header .title {
position: absolute;
bottom: 90px;
width: 100%;
padding: 0 20px;
}
.station_details .header .affluence {
Expand Down Expand Up @@ -147,4 +146,19 @@ body {margin: 0;padding: 0;}
height: 200px;
overflow: scroll;
color: #FFF;
}


.statsTitle {
text-align: center;
color: #FFF;
font-weight: bold;
}
.statsControll {
display: flex;
justify-content: center;
gap: 20px;
}
.statsControll div {
cursor: pointer;
}

0 comments on commit 526aa6c

Please sign in to comment.