-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor component imports and fix formatting
- Loading branch information
1 parent
5e8d0dd
commit 0aeb2ed
Showing
22 changed files
with
881 additions
and
537 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,85 @@ | ||
import React from 'react'; | ||
import './insights.css'; | ||
import CountUp from 'react-countup'; | ||
import VisibilitySensor from 'react-visibility-sensor'; | ||
|
||
import React from "react"; | ||
import CountUp from "react-countup"; | ||
import VisibilitySensor from "react-visibility-sensor"; | ||
import "./insights.css"; | ||
|
||
const Insights = () => { | ||
return ( | ||
<div id="projectFacts" className="sectionclassName"> | ||
<div className="fullWidth eight columns"> | ||
<div className="projectFactsWrap "> | ||
<div className="item wow fadeInUpBig animated bg-transparent" data-number="12" style={{ visibility: 'visible' }}> | ||
<div | ||
className="item wow fadeInUpBig animated bg-transparent" | ||
data-number="12" | ||
style={{ visibility: "visible" }} | ||
> | ||
<i className="fa fa-briefcase"></i> | ||
<p>Projects done</p> | ||
<p className='number'><CountUp end={3} duration={2}>{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)}</CountUp></p> | ||
|
||
<p className="number"> | ||
<CountUp end={3} duration={2}> | ||
{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)} | ||
</CountUp> | ||
</p> | ||
</div> | ||
<div className="item wow fadeInUpBig animated bg-transparent" data-number="55" style={{ visibility: 'visible' }}> | ||
<div | ||
className="item wow fadeInUpBig animated bg-transparent" | ||
data-number="55" | ||
style={{ visibility: "visible" }} | ||
> | ||
<i className="fas fa-user-graduate"></i> | ||
<p>Course Enrollment</p> | ||
<p className='number'><CountUp end={50} duration={3}>{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)}</CountUp></p> | ||
|
||
<p className="number"> | ||
<CountUp end={50} duration={3}> | ||
{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)} | ||
</CountUp> | ||
</p> | ||
</div> | ||
<div className="item wow fadeInUpBig animated bg-transparent" data-number="359" style={{ visibility: 'visible' }}> | ||
<div | ||
className="item wow fadeInUpBig animated bg-transparent" | ||
data-number="359" | ||
style={{ visibility: "visible" }} | ||
> | ||
<i className="fas fa-award"></i> | ||
<p>No. Of events</p> | ||
<p className='number'><CountUp end={10} duration={5}>{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)}</CountUp></p> | ||
|
||
<p className="number"> | ||
<CountUp end={10} duration={5}> | ||
{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)} | ||
</CountUp> | ||
</p> | ||
</div> | ||
<div className="item wow fadeInUpBig animated bg-transparent" data-number="359" style={{ visibility: 'visible' }}> | ||
<div | ||
className="item wow fadeInUpBig animated bg-transparent" | ||
data-number="359" | ||
style={{ visibility: "visible" }} | ||
> | ||
<i className="fas fa-book-open"></i> | ||
<p>No. of Courses</p> | ||
<p className='number'><CountUp end={30} duration={5}>{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)}</CountUp></p> | ||
<p className="number"> | ||
<CountUp end={30} duration={5}> | ||
{({ countUpRef, start }) => ( | ||
<VisibilitySensor onChange={start} delayedCall> | ||
<span ref={countUpRef} /> | ||
</VisibilitySensor> | ||
)} | ||
</CountUp> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
); | ||
}; | ||
|
||
export default Insights | ||
export default Insights; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.