Settle on serif font, add scroll to top component

This commit is contained in:
2019-08-30 06:22:26 +00:00
parent 23cdbc9292
commit 20a9d9d452
17 changed files with 42 additions and 52 deletions

View File

@@ -6,6 +6,7 @@ import './fonts/Fonts.css';
import Feed from './Feed.js';
import Article from './Article.js';
import Comments from './Comments.js';
import ScrollToTop from './ScrollToTop.js';
class App extends React.Component {
constructor(props) {
@@ -44,6 +45,8 @@ class App extends React.Component {
<Route path='/' exact component={Feed} />
<Route path='/:id' exact component={Comments} />
<Route path='/:id/a' exact component={Article} />
<ScrollToTop />
</Router>
</div>
);