Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

проблема с добавлением фона #78

Open
alex-krassavin opened this issue Jun 5, 2019 · 0 comments
Open

проблема с добавлением фона #78

alex-krassavin opened this issue Jun 5, 2019 · 0 comments

Comments

@alex-krassavin
Copy link

Здравствуйте, выполняю следующий код и не добавляется изображение, не могу найти ошибку на первый взгляд вроде норм

export default class Opportunities extends React.Component {
render() {
const slideOpportunities = [
require('./images/opportunities/afp.png'),
require('./images/opportunities/event-page.jpg'),
require('./images/opportunities/request.png'),
require('./images/opportunities/invites.jpg'),
require('./images/opportunities/promo.png')
];
var settings = {
infinite: true,
speed: 500,
slidesToShow: 3,
slidesToScroll: 1,
adaptiveHeight: true
};
return (


<Slider {...settings}>
{slideOpportunities.map((index) => (
<div className="slider__Opportunities" style={{ background: url('{index}') no-repeat center center}}>

ds



))}


);
}
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant