Демо данные :
const content : IImageBannerProps = {
title : 'Текст ≈40 симовлов. Короткие слова' ,
description : 'Описание, которое может быть в несколько строк, максимальное количество 3 строки' ,
cost : 'oт <b>0000₽</b>' ,
}
В свойствах title и description поддерживаются некоторые HTML - теги : "<br>, <font color>, <a href>" .
Также в обоих свойствах поддерживается спецсимвол & nbsp .
Изображение прижимается к правому краю, растягивается на максимальную высоту, слева изображение обрезается, если оно шире баннера.
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... imagesFullWidth }
isImageFullWidth
>
{ purpleButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " gradient "
radius = " rounded "
{ ... content }
{ ... imagesFullWidthGradient }
isImageFullWidth
>
{ greenButtons }
</ ImageBanner >
</ ContentArea >
На разрешении 1024+ изображение ограничивается по высоте и ширине размером фрейма. На разрешении 768- изображение ограничивается шириной баннера и высотой 250px. На разрешении 768 - 1024 изображение ограничивается шириной баннера и высотой 280px.
Если изображение больше фрейма, то оно скейлится и вписывается во фрейм по типу contain. При этом выравнивается по центру фрейма по вертикали и горизонтали. Если изображение должно прижиматься к нижнему или верхнему краю, то необходимо поменять вертикальное выравнивание.
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
>
{ purpleButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
>
{ purpleButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " purple "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
>
{ whiteButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " gradient "
radius = " rounded "
{ ... content }
{ ... imagesGradient }
>
{ greenButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " light "
radius = " rounded "
{ ... content }
{ ... imagesGradient }
>
{ greenButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " spbSky0 "
radius = " rounded "
{ ... content }
{ ... imagesGradient }
>
{ greenButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
>
{ purpleButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
>
{ storeButton }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
/>
</ ContentArea >
Тема бейджей зависит от значения backgroundColor
const badges = [
{
text : '≈ 30 символов с пробелами' ,
iconType : 'timer' ,
} ,
{
text : 'короткий текст' ,
iconType : 'price' ,
} ,
] ;
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badges }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
>
{ storeButton }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badges }
backgroundColor = " gradient "
radius = " rounded "
{ ... content }
{ ... imagesGradient }
>
{ storeButton }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badges }
backgroundColor = " green "
radius = " rounded "
{ ... content }
{ ... images }
imageVerticalAlign = " bottom "
adBlock = { AdBlock }
>
{ storeButton }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
>
{ purpleButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
{ ... content }
backgroundColor = " green "
radius = " rounded "
>
{ storeButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
/>
</ ContentArea >
По умолчанию углы прямые, это необходимо при использовании внутри компонента Banner, если используем ImageBanner отдельно, то выставляем закругленные углы.
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
{ ... content }
radius = " corners "
>
{ purpleButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " green "
radius = " rounded "
{ ... content }
radius = " rounded "
>
{ purpleButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " spbSky0 "
radius = " rounded "
{ ... content }
autoHeight
>
{ greenButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " spbSky0 "
radius = " rounded "
{ ... content }
autoHeight
>
{ storeButton }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
backgroundColor = " spbSky0 "
radius = " rounded "
{ ... content }
autoHeight
/>
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
radius = " rounded "
{ ... content }
{ ... imagesFullWidthAutoHeight }
autoHeight
isImageFullWidth
>
{ greenButtons }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
radius = " rounded "
{ ... content }
{ ... imagesFullWidthAutoHeight }
autoHeight
isImageFullWidth
>
{ storeButton }
</ ImageBanner >
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
radius = " rounded "
{ ... content }
{ ... imagesFullWidthAutoHeight }
autoHeight
isImageFullWidth
/>
</ ContentArea >
≈ 30 символов с пробелами
oт
< ContentArea >
< ImageBanner
badges = { badge }
radius = " rounded "
{ ... content }
description = { Description }
{ ... imagesFullWidthAutoHeight }
autoHeight
isImageFullWidth
/>
</ ContentArea >