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:
parent
284721db67
commit
c9a616b1c9
3 changed files with 23 additions and 20 deletions
|
@ -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)}
|
||||
/>
|
||||
|
|
|
@ -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>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue