1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-26 05:16:41 +07:00

started editor

This commit is contained in:
muerwre 2019-07-29 14:23:32 +07:00
parent 7410376009
commit e687a3f5f3
3 changed files with 50 additions and 5 deletions

View file

@ -0,0 +1,22 @@
import React, { FC } from 'react';
import { Card } from "~/components/containers/Card";
import * as styles from './styles.scss';
import { Group } from "~/components/containers/Group";
interface IProps {}
const EditorExample: FC<IProps> = () => (
<Card className={styles.wrap}>
<Group horizontal className={styles.group}>
<div className={styles.editor}>
editor
</div>
<div className={styles.panel}>
panel
</div>
</Group>
</Card>
);
export { EditorExample };

View file

@ -0,0 +1,22 @@
.wrap {
height: calc(100vh - 20px);
align-items: stretch;
justify-content: center;
display: flex;
}
.group {
display: flex;
align-items: stretch !important;
justify-content: stretch;
flex: 1;
}
.panel {
background: red;
flex: 0 0 33%;
}
.editor {
flex: 1;
}