mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-05-04 17:16:40 +07:00
refactored flow cells, added colors for lab (#78)
* made better flow cells * made cubical desaturation * made colorfull lab nodes * colorful lab nodes for all text ones * all lab nodes are colorful * disabled lazy loading on heroes * fixed color calculation hook * fixed lab color gradients calculation * fixed cell text on flow
This commit is contained in:
parent
7d6f35b0af
commit
94c656fe0f
29 changed files with 345 additions and 63 deletions
src/components/flow/FlowSwiperHero
|
@ -100,7 +100,8 @@ export const FlowSwiperHero: FC<Props> = ({ heroes }) => {
|
|||
speed={3000}
|
||||
className={styles.swiper}
|
||||
lazy={{
|
||||
loadPrevNextAmount: 3,
|
||||
loadPrevNextAmount: 5,
|
||||
checkInView: false,
|
||||
}}
|
||||
loop
|
||||
slidesPerView={1}
|
||||
|
@ -122,7 +123,7 @@ export const FlowSwiperHero: FC<Props> = ({ heroes }) => {
|
|||
.map(node => (
|
||||
<SwiperSlide key={node.id}>
|
||||
<img
|
||||
data-src={getURLFromString(node.thumbnail!, preset)}
|
||||
src={getURLFromString(node.thumbnail!, preset)}
|
||||
alt=""
|
||||
className={classNames(styles.preview, 'swiper-lazy')}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue