1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00
vault-frontend/src/containers/examples/EditorExample/index.tsx
2019-10-09 17:05:22 +07:00

71 lines
2.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React, { FC } from 'react';
import classNames from 'classnames';
import { Card } from '~/components/containers/Card';
import * as styles from './styles.scss';
import { Group } from '~/components/containers/Group';
import { CellGrid } from '~/components/containers/CellGrid';
import { Panel } from '~/components/containers/Panel';
import { Scroll } from '~/components/containers/Scroll';
import { Tags } from '~/components/node/Tags';
import { Button } from '~/components/input/Button';
import { Filler } from '~/components/containers/Filler';
import { InputText } from '~/components/input/InputText';
import { Icon } from '~/components/input/Icon';
import { Grid } from '~/components/containers/Grid';
interface IProps {}
const EditorExample: FC<IProps> = () => (
<Card className={styles.wrap} seamless>
<Group horizontal className={styles.group} seamless>
<div className={styles.editor}>
<Panel className={classNames(styles.editor_panel, styles.editor_image_panel)}>
<Scroll>
<CellGrid className={styles.editor_image_container} size={200}>
<div className={styles.editor_image} />
<div className={styles.editor_image} />
<div className={styles.editor_image} />
<div className={styles.editor_image} />
</CellGrid>
</Scroll>
</Panel>
<Panel>
<Grid columns="1fr" stretchy>
<Card className={styles.feature_card}>
<div className={styles.cover} />
</Card>
</Grid>
</Panel>
</div>
<div className={styles.panel}>
<Panel>
<Group>
<InputText title="Заголовок" />
<Tags
tags={[
{ title: 'Избранный' },
{ title: 'Плейлист' },
{ title: 'Просто' },
{ title: '+ фото' },
{ title: '+ с музыкой' },
]}
/>
</Group>
</Panel>
<Panel stretchy />
<Panel>
<Button iconRight="play" stretchy>
Submit?
</Button>
</Panel>
</div>
</Group>
</Card>
);
export { EditorExample };