Wrapper fix footer floating; style to module css
This commit is contained in:
1 parent
7559db5460
commit
e609422715
2 files changed
+17
-14
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import s from './wrapper.module.css'
|
||||
|
||||
import cx from 'classnames'
|
||||
|
||||
export type WrapperProps = {
|
||||
@@ -8,22 +10,10 @@ export type WrapperProps = {
|
||||
}
|
||||
|
||||
export const Wrapper: React.FC<WrapperProps> = props => (
|
||||
<div className={cx('wrapper', 'theme-default')} style={props.style}>
|
||||
<style jsx>{`
|
||||
.wrapper {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background-color: var(--color-back-main);
|
||||
|
||||
font-family: var(--text-font);
|
||||
font-size: var(--font-size-default);
|
||||
}
|
||||
`}</style>
|
||||
|
||||
<div className={cx(s.container, 'theme-default')} style={props.style}>
|
||||
{props.header}
|
||||
|
||||
<main style={props.mainStyle}>
|
||||
<main className={s.main} style={props.mainStyle}>
|
||||
{props.children}
|
||||
</main>
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
.container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 100vh;
|
||||
background-color: var(--color-back-main);
|
||||
|
||||
font-family: var(--text-font);
|
||||
font-size: var(--font-size-default);
|
||||
}
|
||||
|
||||
.main {
|
||||
flex: 1;
|
||||
}
|
||||
Reference in new issue
Block a user