feat: coming soon

This commit is contained in:
Divlo
2021-10-24 05:48:06 +02:00
parent 21123c4477
commit 33bd2bb6bf
176 changed files with 36858 additions and 22133 deletions

View File

@ -0,0 +1,10 @@
import { render } from '@testing-library/react'
import { ScrollableBody } from './ScrollableBody'
describe('<ScrollableBody />', () => {
it('should render successfully', () => {
const { baseElement } = render(<ScrollableBody />)
expect(baseElement).toBeTruthy()
})
})

View File

@ -0,0 +1,18 @@
export const ScrollableBody: React.FC = (props) => {
const { children } = props
return (
<>
{children}
<style jsx global>{`
body {
scrollbar-width: thin;
scrollbar-color: var(--scroll-bar-color) var(--scroll-bar-bg-color);
z-index: 1000;
height: calc(100vh - 64px);
overflow-y: auto;
}
`}</style>
</>
)
}

View File

@ -0,0 +1 @@
export * from './ScrollableBody'