Wrapper fix footer floating; style to module css

This commit is contained in:
tmshv committed 2021-09-22 15:46:33 +03:00
1 parent 7559db5460
commit e609422715
2 files changed
+17 -14

No files matched your search

+4 -14
View File
@@ -1,3 +1,5 @@
import s from './wrapper.module.css'
import cx from 'classnames' import cx from 'classnames'
export type WrapperProps = { export type WrapperProps = {
@@ -8,22 +10,10 @@ export type WrapperProps = {
} }
export const Wrapper: React.FC<WrapperProps> = props => ( export const Wrapper: React.FC<WrapperProps> = props => (
<div className={cx('wrapper', 'theme-default')} style={props.style}> <div className={cx(s.container, '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>
{props.header} {props.header}
<main style={props.mainStyle}> <main className={s.main} style={props.mainStyle}>
{props.children} {props.children}
</main> </main>
+13
View File
@@ -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;
}