Banner.js 1.3 KB
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;