import React from 'react';
import { Link } from 'react-router-dom';
import { getImageUrl } from 'educoder';

function TeamItem({item}){
  return(
    <div>
      <img alt="" src={getImageUrl(`images/${item.avatar_url}`)}/>
      <div style={{flex:'1'}}>
        <Link to={`/organize/${item.name}`} className="mb5 font-18 color-grey-3 task-hide">{item.name}</Link>
        <div className="task-hide-2">
          {item.description}
        </div>
        <p className="item-news">
          <span>项目：{item.num_projects}</span>
          <span><i className="iconfont icon-shijian color-green mr3 font-12"></i>创建时间：{item.created_at}</span>
        </p>
      </div>
    </div>
  )
}
export default TeamItem;