diff --git a/src/Components/Vegetables.js b/src/Components/Vegetables.js index fa1f12c..c6a7109 100644 --- a/src/Components/Vegetables.js +++ b/src/Components/Vegetables.js @@ -37,10 +37,15 @@ export default class Map extends React.Component { } render() { + const { + double, + simple, + } = this.props; + return (
- + { this.state.selectedType && this.state.selectedType.Vegetables diff --git a/src/Routes/Map.js b/src/Routes/Map.js index 61a88a6..aa8a66d 100644 --- a/src/Routes/Map.js +++ b/src/Routes/Map.js @@ -93,15 +93,16 @@ export default class RouterMap extends React.Component {
- - - + + + + ); diff --git a/src/Routes/Search.js b/src/Routes/Search.js index 494a951..46aabcc 100644 --- a/src/Routes/Search.js +++ b/src/Routes/Search.js @@ -62,7 +62,6 @@ export default class Search extends React.Component { - - + diff --git a/src/Routes/Vegetables.js b/src/Routes/Vegetables.js index b5a557c..9cafec9 100644 --- a/src/Routes/Vegetables.js +++ b/src/Routes/Vegetables.js @@ -53,20 +53,21 @@ export default class RouterVegetables extends React.Component { - + - + - + diff --git a/src/css/index.css b/src/css/index.css index a7ec8d9..38500b1 100644 --- a/src/css/index.css +++ b/src/css/index.css @@ -44,6 +44,34 @@ body { -webkit-columns: 2; -moz-columns: 2; } + +@media (min-width: 540px) { + .triple { + display: inherit; + columns: 2; + -webkit-columns: 2; + -moz-columns: 2; + } +} + +@media (min-width: 720px) { + .triple { + display: inherit; + columns: 3; + -webkit-columns: 3; + -moz-columns: 3; + } +} + +@media (min-width: 960px) { + .triple { + display: inherit; + columns: 4; + -webkit-columns: 4; + -moz-columns: 4; + } +} + .double li { /* width:50%; float:left;