use custom image component for slideshow

This commit is contained in:
MathieuG-P
2022-10-15 18:46:48 +02:00
parent 594a71ee36
commit 9fbceb1fe4
2 changed files with 6 additions and 3 deletions
@@ -1,10 +1,11 @@
import { BsmImage } from '../shared/bsm-image.component';
import './slideshow.component.css';
export function Slideshow(props: {className: string, images: string[]}) {
return (
<div className={`slide ${props.className}`}>
{
props.images.map((i, index) => <img key={index} className='w-full h-full object-cover' src={i} style={{animationDelay: `${index * 10}s`}}></img>)
props.images.map((i, index) => <BsmImage key={i} className='w-full h-full object-cover' image={i} style={{animationDelay: `${index * 10}s`}}/>)
}
</div>
)