Skip to content

Commit 60bbc2c

Browse files
Mark SauterMark Sauter
authored andcommitted
Add styles to weather page
1 parent 02ce9ee commit 60bbc2c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

app/components/Weather.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ class Weather extends React.Component {
4848

4949
function renderMessage () {
5050
if (isLoading) {
51-
return <h3>Fetching weather...</h3>;
51+
return <h3 className="text-center">Fetching weather...</h3>;
5252
} else if (temp && location) {
5353
return <WeatherMessage location={location} temp={temp}/>;
5454
}
5555
}
5656

5757
return (
5858
<div>
59-
<h2>Get Weather</h2>
59+
<h1 className="text-center">Get Weather</h1>
6060
<WeatherForm onSearch={this.handleSearch}/>
6161
{renderMessage()}
6262
</div>

app/components/WeatherForm.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var WeatherForm = React.createClass({
1919
<div>
2020
<form onSubmit={this.onFormSubmit}>
2121
<input type="text" ref="location" placeholder="Enter city name"/>
22-
<button>Get Weather</button>
22+
<button className="button expanded hollow">Get Weather</button>
2323
</form>
2424
</div>
2525
);

app/components/WeatherMessage.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ var React = require('react');
33
var WeatherMessage = ({temp, location}) => {
44
return (
55
<div>
6-
<h3>It's {temp} in {location}.</h3>
6+
<h3 className="text-center">It's {temp} in {location}.</h3>
77
</div>
88
);
99
};

0 commit comments

Comments
 (0)