diff --git a/src/App.css b/src/App.css index 00a9779..c435776 100644 --- a/src/App.css +++ b/src/App.css @@ -3,6 +3,7 @@ height: 5rem; background-color: #044599; padding: 0 10%; + text-align: center; } .header nav { diff --git a/src/App.js b/src/App.js index e7dda49..7848ee3 100644 --- a/src/App.js +++ b/src/App.js @@ -5,6 +5,7 @@ import './App.css'; import { fetchCat, fetchYe } from './service'; import Cats from './pages/cats'; import Quote from './pages/quote'; +import About from './pages/About'; class App extends React.Component { constructor() { @@ -23,11 +24,12 @@ class App extends React.Component { }); } - getQuote = () => { +getQuote = () => { return fetchYe().then(data => { let quote = data.quote; this.setState({quote: quote, picUrl: 'https://picsum.photos/600/600?grayscale'}); }); + } render() { @@ -42,6 +44,9 @@ class App extends React.Component {