Banner.js
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import React from 'react';
import PropTypes from 'prop-types';
import General from '../General/General';
import Selects from '../Selects/Selects';
import Bag from '../Bag/Bag';
import mastercard from '../../../../images/payments/mastercard.svg';
import visa from '../../../../images/payments/visa.svg';
import aexpress from '../../../../images/payments/aexpress.svg';
import paypal from '../../../../images/payments/paypal.svg';
import s from './Banner.module.scss';
const Banner = ({ data }) => (
<div className={s.productDetailsBanner}>
<div className={s.productPhoto} style={{ backgroundImage: `url(${data.img})` }} />
<div className={s.productInfo}>
<General {...data} />
<button className={`btn-link ${s.productGuide}`}>Size Guide</button>
<Selects sizes={[1, 2, 3, 4, 5]} quantity={[1, 2, 3, 4, 5, 6, 7]} />
<Bag />
<div className={s.payments}>
<div style={{ backgroundImage: `url(${visa})` }} />
<div style={{ backgroundImage: `url(${mastercard})` }} />
<div style={{ backgroundImage: `url(${aexpress})` }} />
<div style={{ backgroundImage: `url(${paypal})` }} />
</div>
<span className={s.delivery}>FREE Delivery & Returns</span>
</div>
</div >
);
Banner.propTypes = {
data: PropTypes.any.isRequired,
};
export default Banner;