Skip to content

Commit

Permalink
feat(html): add default body background color (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucasbeneston authored Oct 4, 2024
1 parent 4119cc8 commit 980fdb3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions public_website/src/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Document, {
Main,
NextScript,
} from 'next/document'
import { ServerStyleSheet } from 'styled-components'
import styled, { ServerStyleSheet } from 'styled-components'

export default class MyDocument extends Document {
static async getInitialProps(ctx: DocumentContext) {
Expand Down Expand Up @@ -56,11 +56,15 @@ export default class MyDocument extends Document {
<meta name="msapplication-TileColor" content="#da532c" />
<meta name="theme-color" content="#ffffff" />
</Head>
<body>
<Body>
<Main />
<NextScript />
</body>
</Body>
</Html>
)
}
}

const Body = styled.body({
backgroundColor: '#ffffff',
})

0 comments on commit 980fdb3

Please sign in to comment.