removed content id and replaced with styled component
This commit is contained in:
parent
1d6f470a5e
commit
1b8422bd0f
1 changed files with 9 additions and 9 deletions
|
@ -72,13 +72,6 @@ const globalStyle = css`
|
||||||
box-shadow: inset 0 0 10px rgb(0 0 0 / 20%);
|
box-shadow: inset 0 0 10px rgb(0 0 0 / 20%);
|
||||||
}
|
}
|
||||||
|
|
||||||
#content {
|
|
||||||
display: inline-block;
|
|
||||||
flex: 1 1 auto;
|
|
||||||
margin-bottom: 3rem;
|
|
||||||
margin-top: 3rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
code {
|
code {
|
||||||
font-family: ${theming.font.code};
|
font-family: ${theming.font.code};
|
||||||
color: ${(props) =>
|
color: ${(props) =>
|
||||||
|
@ -251,6 +244,13 @@ const IENotSupported = styled.p`
|
||||||
font-family: ${theming.font.regular};
|
font-family: ${theming.font.regular};
|
||||||
`
|
`
|
||||||
|
|
||||||
|
const StyledContentContainer = styled.div`
|
||||||
|
display: inline-block;
|
||||||
|
flex: 1 1 auto;
|
||||||
|
margin-bottom: 3rem;
|
||||||
|
margin-top: 3rem;
|
||||||
|
`
|
||||||
|
|
||||||
interface AppProps {}
|
interface AppProps {}
|
||||||
|
|
||||||
interface AppState {
|
interface AppState {
|
||||||
|
@ -336,7 +336,7 @@ export default class App extends React.Component<AppProps, AppState> {
|
||||||
|
|
||||||
<GlobalStyle />
|
<GlobalStyle />
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<div id="content">
|
<StyledContentContainer>
|
||||||
{this.state.isLoading ? (
|
{this.state.isLoading ? (
|
||||||
<Spinner size={200} />
|
<Spinner size={200} />
|
||||||
) : (
|
) : (
|
||||||
|
@ -360,7 +360,7 @@ export default class App extends React.Component<AppProps, AppState> {
|
||||||
</Route>
|
</Route>
|
||||||
</Switch>
|
</Switch>
|
||||||
)}
|
)}
|
||||||
</div>
|
</StyledContentContainer>
|
||||||
<Footer />
|
<Footer />
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
</HelmetProvider>
|
</HelmetProvider>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue