From c9a616b1c922f8d4fd9c1fac8dac86879c6fc3ad Mon Sep 17 00:00:00 2001 From: Fedor Katurov Date: Tue, 26 Nov 2019 13:28:31 +0700 Subject: [PATCH] added small hero preset --- src/components/flow/FlowHero/index.tsx | 6 ++-- .../node/NodeAudioImageBlock/index.tsx | 2 +- src/constants/urls.ts | 35 ++++++++++--------- 3 files changed, 23 insertions(+), 20 deletions(-) diff --git a/src/components/flow/FlowHero/index.tsx b/src/components/flow/FlowHero/index.tsx index 35c4f015..b2ba43a3 100644 --- a/src/components/flow/FlowHero/index.tsx +++ b/src/components/flow/FlowHero/index.tsx @@ -103,12 +103,14 @@ const FlowHeroUnconnected: FC = ({ 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} > {hero.thumbnail} diff --git a/src/components/node/NodeAudioImageBlock/index.tsx b/src/components/node/NodeAudioImageBlock/index.tsx index 893d54c8..95eb3fde 100644 --- a/src/components/node/NodeAudioImageBlock/index.tsx +++ b/src/components/node/NodeAudioImageBlock/index.tsx @@ -20,7 +20,7 @@ const NodeAudioImageBlock: FC = ({ node }) => {
); diff --git a/src/constants/urls.ts b/src/constants/urls.ts index f1baa236..f02537b2 100644 --- a/src/constants/urls.ts +++ b/src/constants/urls.ts @@ -1,29 +1,30 @@ export const URLS = { - BASE: "/", - BORIS: "/boris", + BASE: '/', + BORIS: '/boris', AUTH: { - LOGIN: "/auth/login" + LOGIN: '/auth/login', }, EXAMPLES: { - EDITOR: "/examples/edit", - IMAGE: "/examples/image" + EDITOR: '/examples/edit', + IMAGE: '/examples/image', }, ERRORS: { - NOT_FOUND: "/lost", - BACKEND_DOWN: "/oopsie" + NOT_FOUND: '/lost', + BACKEND_DOWN: '/oopsie', }, NODE_URL: (id: number | string) => `/post${id}`, - PROFILE: (username: string) => `/~${username}` + PROFILE: (username: string) => `/~${username}`, }; export const PRESETS = { - "1600": "1600", - "900": "900", - "600": "600", - "300": "300", - "100": "100", - placeholder: "placeholder", - cover: "cover", - hero: "hero", - avatar: "avatar" + '1600': '1600', + '900': '900', + '600': '600', + '300': '300', + '100': '100', + placeholder: 'placeholder', + cover: 'cover', + hero: 'hero', + small_hero: 'small_hero', + avatar: 'avatar', };