mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added dominant color to node swiper block
This commit is contained in:
parent
4ded317fd0
commit
15a83b6793
2 changed files with 2 additions and 0 deletions
|
@ -130,6 +130,7 @@ const NodeImageSwiperBlock: FC<IProps> = observer(({ node }) => {
|
|||
{images.map((file, i) => (
|
||||
<SwiperSlide className={styles.slide} key={file.id}>
|
||||
<Image
|
||||
style={{ backgroundColor: file.metadata?.dominant_color }}
|
||||
src={getURL(file, ImagePresets['1600'])}
|
||||
width={file.metadata?.width}
|
||||
height={file.metadata?.height}
|
||||
|
|
|
@ -122,6 +122,7 @@
|
|||
border-radius: $radius;
|
||||
transition: box-shadow 1s;
|
||||
box-shadow: transparentize(black, 0.7) 0 3px 5px;
|
||||
background-color: red;
|
||||
|
||||
:global(.swiper-slide-active) & {
|
||||
box-shadow: transparentize(black, 0.9) 0 10px 5px 4px,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue