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

added small hero preset

This commit is contained in:
Fedor Katurov 2019-11-26 13:28:31 +07:00
parent 284721db67
commit c9a616b1c9
3 changed files with 23 additions and 20 deletions
src/components
flow/FlowHero
node/NodeAudioImageBlock

View file

@ -103,12 +103,14 @@ const FlowHeroUnconnected: FC<IProps> = ({ heroes, history }) => {
[styles.is_visible]: loaded.includes(hero.id),
[styles.is_active]: current === hero.id,
})}
style={{ backgroundImage: `url("${getURL({ url: hero.thumbnail }, PRESETS.hero)}")` }}
style={{
backgroundImage: `url("${getURL({ url: hero.thumbnail }, PRESETS.small_hero)}")`,
}}
key={hero.id}
onClick={onClick}
>
<img
src={getURL({ url: hero.thumbnail }, PRESETS.hero)}
src={getURL({ url: hero.thumbnail }, PRESETS.small_hero)}
alt={hero.thumbnail}
onLoad={onLoad(hero.id)}
/>

View file

@ -20,7 +20,7 @@ const NodeAudioImageBlock: FC<IProps> = ({ node }) => {
<div className={styles.wrap}>
<div
className={styles.slide}
style={{ backgroundImage: `url("${getURL(path([0], images), PRESETS.hero)}")` }}
style={{ backgroundImage: `url("${getURL(path([0], images), PRESETS.small_hero)}")` }}
/>
</div>
);