diff --git a/src/App.css b/src/App.css index 5f756f0..22c4c00 100644 --- a/src/App.css +++ b/src/App.css @@ -9,6 +9,11 @@ body { background-color: #ffff; } +.sticky { + position: sticky; + top: 0px; +} + .single-poke { background-color: #ff0000; } diff --git a/src/App.js b/src/App.js index dfb1fd4..49b199c 100644 --- a/src/App.js +++ b/src/App.js @@ -38,23 +38,24 @@ class App extends Component { render() { return (
+
- {this.state.currentPokemon ?
- (Name : {this.state.currentPokemon.name}
-Height : {this.state.currentPokemon.height}
-Weight : {this.state.currentPokemon.weight}
-Type : {this.state.currentPokemon.types[0].type.name}
- -Name : {this.state.currentPokemon.name}
+Height : {this.state.currentPokemon.height}
+Weight : {this.state.currentPokemon.weight}
+Type : {this.state.currentPokemon.types[0].type.name}
+