import React from 'react';
import UI from 'cem/components/ui';

import styles from 'cem/styles/id/main';

const {
  Grid: { Row, Col },
  Grid,
  Button,
  Media,
  Label,
} = UI;

const Image = (props) => (
  <UI.Image src={props.src} kind="circle" width="64" height="64" title="" alt="" />
);

const Description = () => (
  <div>
    <h4 className={styles.taskTitle}>Оськин Александр</h4>
    <div>
      <a className={styles.linkPhone} href="tel:+79263081000">+7 (926) 308-10-00</a>
    </div>
    <div>
      <a className={styles.linkMail} href="mailto:ceo@dtrussia.com">ceo@dtrussia.com</a>
    </div>
  </div>
);

export default () => (
  <Grid.Container>
    <div>
      <Row>
        <Col sm="2" className={styles.textAlign}>
          <p><time dateTime="2015-11-21 15:45">21.11.2015<br />15:45</time></p>
        </Col>
        <Col sm="18">
          <div className={styles.taskWrapper}>
            <Row className={styles.pushedBottom30}>
              <Col xs="20">
                <h2 className={styles.taskKind}>Звонок</h2>
                <Label kind="primary">Ожидается</Label>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <dl className={styles.taskList}>
                  <dt className={styles.taskTitle}>Цель</dt>
                  <dd className={styles.taskDescription}>Попытка утонить еще раз что же он готов рассмотерть</dd>
                </dl>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <h3 className={styles.taskTitle}>Ответственный</h3>
                <Media left={<Image src="//images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?fit=crop&fm=jpg&h=750&ixlib=rb-0.3.5&q=80&w=1300" />} body={<Description />} />
              </Col>
              <div className={styles.btnPositioning}>
                <Button size="xs" kind="accent" className={styles.pushedRight}>Выполнить</Button>
                <Button size="xs" kind="danger" className={styles.pushedRight}>Отменить</Button>
                <Button to="/properties/1/tasks/1" size="xs">Подробнее</Button>
              </div>
            </Row>
          </div>
        </Col>
      </Row>
    </div>
    <div>
      <Row>
        <Col sm="2" className={styles.textAlign}>
          <p><time dateTime="2015-11-21 15:45">21.11.2015<br />15:45</time></p>
        </Col>
        <Col sm="18">
          <div className={styles.taskWrapper}>
            <Row className={styles.pushedBottom30}>
              <Col xs="20">
                <h2 className={styles.taskKind}>Звонок</h2>
                <Label kind="success">Выполнено</Label>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <dl className={styles.taskList}>
                  <dt className={styles.taskTitle}>Цель</dt>
                  <dd className={styles.taskDescription}>Под детский сад аренда</dd>
                </dl>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <dl className={styles.taskList}>
                  <dt className={styles.taskTitle}>Результат</dt>
                  <dd className={styles.taskDescription}>Пока нет вариантов</dd>
                </dl>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <h3 className={styles.taskTitle}>Ответственный</h3>
                <Media left={<Image src="//images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?fit=crop&fm=jpg&h=750&ixlib=rb-0.3.5&q=80&w=1300" />} body={<Description />} />
              </Col>
              <div className={styles.btnPositioning}>
                <Button to="/properties/1/tasks/1" size="xs">Подробнее</Button>
              </div>
            </Row>
          </div>
        </Col>
      </Row>
    </div>
    <div>
      <Row>
        <Col sm="2" className={styles.textAlign}>
          <p><time dateTime="2015-11-21 15:45">21.11.2015<br />15:45</time></p>
        </Col>
        <Col sm="18">
          <div className={styles.taskWrapper}>
            <Row className={styles.pushedBottom30}>
              <Col xs="20">
                <h2 className={styles.taskKind}>Встреча</h2>
                <Label kind="danger">Отменено</Label>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <dl className={styles.taskList}>
                  <dt className={styles.taskTitle}>Цель</dt>
                  <dd className={styles.taskDescription}>Переговоры по снижению цены</dd>
                </dl>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <h3 className={styles.taskTitle}>Ответственный</h3>
                <Media left={<Image src="//images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?fit=crop&fm=jpg&h=750&ixlib=rb-0.3.5&q=80&w=1300" />} body={<Description />} />
              </Col>
              <div className={styles.btnPositioning}>
                <Button to="/properties/1/tasks/1" size="xs">Подробнее</Button>
              </div>
            </Row>
          </div>
        </Col>
      </Row>
    </div>
    <div>
      <Row>
        <Col sm="2" className={styles.textAlign}>
          <p><time dateTime="2015-11-21 15:45">21.11.2015<br />15:45</time></p>
        </Col>
        <Col sm="18">
          <div className={styles.taskWrapper}>
            <Row className={styles.pushedBottom30}>
              <Col xs="20">
                <h2 className={styles.taskKind}>Показ</h2>
                <Label kind="success">Выполнено</Label>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <dl className={styles.taskList}>
                  <dt className={styles.taskTitle}>Результат</dt>
                  <dd className={styles.taskDescription}>Пока нет вариантов</dd>
                </dl>
              </Col>
            </Row>
            <Row>
              <Col sm="10">
                <h3 className={styles.taskTitle}>Ответственный</h3>
                <Media left={<Image src="//images.unsplash.com/photo-1444703686981-a3abbc4d4fe3?fit=crop&fm=jpg&h=750&ixlib=rb-0.3.5&q=80&w=1300" />} body={<Description />} />
              </Col>
              <div className={styles.btnPositioning}>
                <Button to="/properties/1/tasks/1" size="xs">Подробнее</Button>
              </div>
            </Row>
          </div>
        </Col>
      </Row>
    </div>
</Grid.Container>
);
