Updated background images
Before Width: | Height: | Size: 80 KiB |
Before Width: | Height: | Size: 100 KiB |
Before Width: | Height: | Size: 101 KiB |
Before Width: | Height: | Size: 164 KiB |
BIN
public/background/home.jpg
Normal file
After Width: | Height: | Size: 458 KiB |
BIN
public/background/map.jpg
Normal file
After Width: | Height: | Size: 53 KiB |
BIN
public/background/vegetables.jpg
Normal file
After Width: | Height: | Size: 51 KiB |
|
@ -9,7 +9,7 @@ import '../css/Home.css';
|
||||||
|
|
||||||
export default class RouterHome extends React.Component {
|
export default class RouterHome extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
// this.props.changeBackground()
|
this.props.changeBackground('home')
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Container>
|
<Container>
|
||||||
|
|
|
@ -31,6 +31,7 @@ export default class RouterMap extends React.Component {
|
||||||
this.selectVegetable = this.selectVegetable.bind(this);
|
this.selectVegetable = this.selectVegetable.bind(this);
|
||||||
|
|
||||||
this.getVegetablesTypes();
|
this.getVegetablesTypes();
|
||||||
|
this.props.changeBackground('map')
|
||||||
}
|
}
|
||||||
|
|
||||||
getVegetablesTypes() {
|
getVegetablesTypes() {
|
||||||
|
|
|
@ -49,6 +49,7 @@ export default class RouterVegetable extends React.Component {
|
||||||
this.onExited = this.onExited.bind(this);
|
this.onExited = this.onExited.bind(this);
|
||||||
|
|
||||||
this.getItem();
|
this.getItem();
|
||||||
|
this.props.changeBackground('vegetables')
|
||||||
}
|
}
|
||||||
|
|
||||||
onExiting() {
|
onExiting() {
|
||||||
|
|
|
@ -26,6 +26,7 @@ export default class RouterVegetables extends React.Component {
|
||||||
this.selectVegetable = this.selectVegetable.bind(this);
|
this.selectVegetable = this.selectVegetable.bind(this);
|
||||||
|
|
||||||
this.getItem();
|
this.getItem();
|
||||||
|
this.props.changeBackground('vegetables')
|
||||||
}
|
}
|
||||||
|
|
||||||
getItem() {
|
getItem() {
|
||||||
|
|