Download Easy-Consulting-react/src/component/Home/HappyClient/HappyClient.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.77 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Easy-Consulting-react/src/component/Home/HappyClient/HappyClient.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Easy-Consulting-react/src/component/Home/HappyClient/HappyClient.jsx
-
curl -L -o HappyClient.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Easy-Consulting-react/src/component/Home/HappyClient/HappyClient.jsx
1.77 kB
| import React from 'react' | |
| import './HappyClient.css'; | |
| // import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; | |
| // import { faSmileBeam, faTasks, faHeadset, faUsers } from '@fortawesome/free-solid-svg-icons'; | |
| 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 | |