Skip to content

Commit

Permalink
Provide a title and remove default padding around body
Browse files Browse the repository at this point in the history
  • Loading branch information
SmileyJames committed Jun 27, 2021
1 parent e104328 commit 1309d66
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>React App</title>
<title>Compendium Games</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
Expand Down
13 changes: 12 additions & 1 deletion app/src/App.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
import Router from "./Router";
import { createGlobalStyle } from "styled-components"

const NormaliseStyles = createGlobalStyle`
body, html, #root {
margin: 0;
height: 100%;
}
`

const App = () =>
<Router/>
<>
<Router/>
<NormaliseStyles/>
</>

export default App;

0 comments on commit 1309d66

Please sign in to comment.