|
|
|
|
@ -37,8 +37,8 @@ export function Article() {
|
|
|
|
|
const generateCarousel = () => {
|
|
|
|
|
if (articleData.data[0].attributes.carousel.data) {
|
|
|
|
|
return (
|
|
|
|
|
<Carousel slideSize="70%" height={500} slideGap="md" loop>
|
|
|
|
|
{articleData.data[0].attributes.carousel.data.map(image => <Carousel.Slide><Image fit='fill' height={500} mx="auto" radius="md" src={`https://strapi.iamonlyherefortheicecream.gq${image.attributes.url}`} alt="Random image" /></Carousel.Slide>)}
|
|
|
|
|
<Carousel slideSize="70%" mih={200} mah={500} slideGap="md" loop>
|
|
|
|
|
{articleData.data[0].attributes.carousel.data.map(image => <Carousel.Slide><Image fit='fill' mih={200} mah={500} mx="auto" radius="md" src={`https://strapi.litmusmap.ru${image.attributes.url}`} alt="Random image" /></Carousel.Slide>)}
|
|
|
|
|
</Carousel>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|