1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 21:06:42 +07:00

better sidepane

This commit is contained in:
muerwre 2019-07-26 14:00:53 +07:00
parent 1b001db91a
commit e315b33284
19 changed files with 253 additions and 99 deletions

View file

@ -0,0 +1,18 @@
import * as React from 'react';
import { SidePane } from "~/components/main/SidePane";
import * as styles from './styles.scss';
import { useRef } from "react";
export const MainLayout = ({ children }) => {
const container = useRef(null);
return (
<div className={styles.wrapper}>
<div className={styles.content} ref={container}>
{children}
</div>
<SidePane container={container} />
</div>
);
};

View file

@ -0,0 +1,15 @@
.wrapper {
width: 100%;
padding: $gap $gap 0 74px;
display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: row;
box-sizing: border-box;
}
.content {
flex: 0 1 $content_width;
position: relative;
background: red;
}