| import React from 'react' |
| import './HappyClient.css'; |
| |
| |
| import CountUp from 'react-countup'; |
| const HappyClient = () => { |
| const workDetails = [ |
| { title: 'Happy Clients', number: 542, id: 1 }, |
| { title: 'Projects', number: 623, id: 2 }, |
| { title: 'Hours of Support', number: 1634, id: 3 }, |
| { title: 'Hard Workers', number: 31, id: 4 } |
| ] |
| return ( |
| <section className="ourValue"> |
| <div className="row container mx-auto"> |
| { |
| workDetails.map(({ title, number, icon, id }) => { |
| return (<div className="col-md-6 col-lg-3" key={id}> |
| <div className="ourValueDetails"> |
| <span className={`valueIcon valueIcon${id}`}> |
| {/* <FontAwesomeIcon icon={icon}/> */} |
| </span> |
| <div> |
| <p className="ourValueTitle">{title}</p> |
| <h4 className="ourValueNumber"> |
| <CountUp |
| end={`${number}`} |
| start={0} |
| duration={9} |
| /> |
| </h4> |
| </div> |
| </div> |
| </div>) |
| }) |
| } |
| </div> |
| </section> |
| ) |
| } |
|
|
| export default HappyClient |
|
|