mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-26 05:16:41 +07:00
editor changes
This commit is contained in:
parent
d7e638153b
commit
696ac8d69f
8 changed files with 76 additions and 48 deletions
|
@ -17,52 +17,63 @@ interface IProps {}
|
|||
|
||||
const EditorExample: FC<IProps> = () => (
|
||||
<Card className={styles.wrap} seamless>
|
||||
<Group horizontal className={styles.group} seamless>
|
||||
<div className={styles.editor}>
|
||||
<Panel>
|
||||
<TextInput onChange={console.log} label="Название" />
|
||||
</Panel>
|
||||
<Group seamless style={{ flex: 1 }}>
|
||||
<Panel>
|
||||
<Group horizontal>
|
||||
<Filler>TITLE</Filler>
|
||||
<div className={styles.close_icon} />
|
||||
</Group>
|
||||
</Panel>
|
||||
|
||||
<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>
|
||||
</div>
|
||||
<Group horizontal className={styles.group} seamless>
|
||||
<div className={styles.editor}>
|
||||
<Panel>
|
||||
<TextInput onChange={console.log} label="Название" />
|
||||
</Panel>
|
||||
|
||||
<div className={styles.panel}>
|
||||
<Panel className={styles.panel_main}>
|
||||
<Group>
|
||||
<Card className={styles.feature_card}>Layout setup</Card>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<Card className={styles.feature_card}>Cover changer</Card>
|
||||
<div className={styles.panel}>
|
||||
<Filler>
|
||||
<Padder>
|
||||
<Group>
|
||||
<Card className={styles.feature_card}>Layout setup</Card>
|
||||
|
||||
<Card className={styles.feature_card}>Track</Card>
|
||||
<Card className={styles.feature_card}>Cover changer</Card>
|
||||
|
||||
<Tags
|
||||
tags={[
|
||||
{ title: 'Избранный', feature: 'red' },
|
||||
{ title: 'Плейлист', feature: 'green' },
|
||||
{ title: 'Просто' },
|
||||
{ title: '+ фото', feature: 'black' },
|
||||
{ title: '+ с музыкой', feature: 'black' },
|
||||
]}
|
||||
/>
|
||||
<Card className={styles.feature_card}>Track</Card>
|
||||
|
||||
<Filler />
|
||||
<Tags
|
||||
tags={[
|
||||
{ title: 'Избранный', feature: 'red' },
|
||||
{ title: 'Плейлист', feature: 'green' },
|
||||
{ title: 'Просто' },
|
||||
{ title: '+ фото', feature: 'black' },
|
||||
{ title: '+ с музыкой', feature: 'black' },
|
||||
]}
|
||||
/>
|
||||
|
||||
</Group>
|
||||
</Panel>
|
||||
<Filler />
|
||||
|
||||
<Panel>
|
||||
<Button>Submit?</Button>
|
||||
</Panel>
|
||||
</div>
|
||||
</Group>
|
||||
</Padder>
|
||||
</Filler>
|
||||
|
||||
<Panel>
|
||||
<Button>Submit?</Button>
|
||||
</Panel>
|
||||
</div>
|
||||
</Group>
|
||||
</Group>
|
||||
</Card>
|
||||
);
|
||||
|
|
|
@ -15,16 +15,17 @@
|
|||
|
||||
.panel {
|
||||
background: $editor_panel_bg;
|
||||
flex: 0 0 33%;
|
||||
border-radius: 0 $radius $radius 0;
|
||||
flex: 1;
|
||||
//border-radius: 0 $radius $radius 0;
|
||||
border-radius: $radius 0 $radius 0;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@include outer_shadow();
|
||||
//@include outer_shadow();
|
||||
}
|
||||
|
||||
.editor {
|
||||
flex: 1;
|
||||
flex: 2;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
flex-direction: column;
|
||||
|
@ -56,3 +57,11 @@
|
|||
flex: 1;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.close_icon {
|
||||
height: 24px;
|
||||
width: 24px;
|
||||
background: transparentize(white, 0.95);
|
||||
flex: 0 0 24px;
|
||||
border-radius: $radius;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue