added optional breadcrumbs; page layout refactoring; other chages

This commit is contained in:
tmshv committed 2020-02-23 02:31:05 +03:00
1 parent 1dbbe04d59
commit db485056e0
12 files changed
+140 -63

No files matched your search

+4 -11
View File
@@ -3,10 +3,12 @@ import cx from 'classnames'
export type WrapperProps = {
header: React.ReactNode
footer: React.ReactNode
style?: React.CSSProperties
mainStyle?: React.CSSProperties
}
export const Wrapper: React.FC<WrapperProps> = props => (
<div className={cx('wrapper', 'theme-default')}>
<div className={cx('wrapper', 'theme-default')} style={props.style}>
<style jsx>{`
.wrapper {
display: flex;
@@ -17,20 +19,11 @@ export const Wrapper: React.FC<WrapperProps> = props => (
font-family: var(--text-font);
font-size: var(--font-size-default);
}
.content {
flex: 1;
}
main {
display: flex;
justify-content: center;
}
`}</style>
{props.header}
<main>
<main style={props.mainStyle}>
{props.children}
</main>