mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 05:49:45 +00:00
Карусель + корректировка стилей под нее
This commit is contained in:
1 parent
6f53c57994
commit
95b2ee8c4e
7 files changed
+72
-7
No files matched your search
@@ -1,15 +1,44 @@
|
||||
import ScrollCarousel from 'scroll-carousel-react';
|
||||
|
||||
import BlockHeading from '../BlockHeading';
|
||||
import PartnersLogo from './PartnersLogo';
|
||||
import './Partners.styles.scss';
|
||||
import { scb } from '../../../../images';
|
||||
import { porsche } from '../../../../images/partners';
|
||||
import { SCOPABLE_TYPES } from '@babel/types';
|
||||
|
||||
function Partners() {
|
||||
const mock = [
|
||||
{
|
||||
image: porsche,
|
||||
},
|
||||
{
|
||||
image: scb,
|
||||
},
|
||||
{
|
||||
image: porsche,
|
||||
},
|
||||
{
|
||||
image: scb,
|
||||
},
|
||||
{
|
||||
image: porsche,
|
||||
},
|
||||
{
|
||||
image: scb,
|
||||
},
|
||||
];
|
||||
|
||||
function Partners({ partners = mock }) {
|
||||
return (
|
||||
<div className="block partners">
|
||||
<BlockHeading heading="Наши партнеры" />
|
||||
<div className="row">
|
||||
|
||||
</div>
|
||||
<ScrollCarousel
|
||||
autoplay
|
||||
autoplaySpeed={6}
|
||||
speed={1}
|
||||
>
|
||||
{ partners.map(item => <PartnersLogo partner={ item } />) }
|
||||
</ScrollCarousel>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user