Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 1x 1x 1x 1x 1x 1x 1x | import { StrictMode } from 'react'
import styled, { ThemeProvider } from 'styled-components'
import { GlobalStyle, theme } from './styles'
const AppContainer = styled.div`
height: 100%;
min-height: 100vh;
width: 100vw;
max-width: 100%;
display: flex;
flex-direction: column;
align-items: center;
background: ${(props) => props.theme.bg};
`
const ContentWrapper = styled.div`
display: flex;
flex: 1;
flex-direction: column;
align-items: center;
width: 100%;
max-width: 1920px;
`
const Footer = styled(ContentWrapper)`
flex: unset;
padding-top: 40px;
padding-bottom: 20px;
`
export const App = () => (
<ThemeProvider theme={theme}>
<GlobalStyle />
<StrictMode>
<AppContainer>
<ContentWrapper>
<div>Typescript React Template</div>
</ContentWrapper>
<Footer as="footer">licensed under the MIT license.</Footer>
</AppContainer>
</StrictMode>
</ThemeProvider>
)
|