diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Main/Main.module.scss | 15 | ||||
| -rw-r--r-- | src/components/Main/Main.tsx | 7 |
2 files changed, 21 insertions, 1 deletions
diff --git a/src/components/Main/Main.module.scss b/src/components/Main/Main.module.scss new file mode 100644 index 0000000..a513f73 --- /dev/null +++ b/src/components/Main/Main.module.scss @@ -0,0 +1,15 @@ +.wrapper { + display: grid; + grid-template-columns: + minmax(0, 1fr) min(calc(50vw - var(--spacing-md)), 40ch) min( + calc(50vw - var(--spacing-md)), + 40ch + ) + minmax(0, 1fr); + align-items: center; + padding: var(--spacing-md) 0; +} + +.body { + grid-column: 2 / 4; +} diff --git a/src/components/Main/Main.tsx b/src/components/Main/Main.tsx index 3705c83..cc47443 100644 --- a/src/components/Main/Main.tsx +++ b/src/components/Main/Main.tsx @@ -1,7 +1,12 @@ import { FunctionComponent } from 'react'; +import styles from './Main.module.scss'; const Main: FunctionComponent = ({ children }) => { - return <main>{children}</main>; + return ( + <main className={styles.wrapper}> + <div className={styles.body}>{children}</div> + </main> + ); }; export default Main; |
