1. First, we need fresh reactjs setup, and for that, we need to run below commands into out terminal, and also we should have latest node version installed on our system:
npx create-react-app my-awesome-project
cd my-awesome-project
npm start
2. Now we need to run below commands into our project terminal to get bootstrap and related modules into our reactjs application:
npm install [email protected] --save
npm start //For start project again
3. Finally for the main output, we need to add below code into our my-awesome-project/src/App.js file or if you have fresh setup then you can replace my-awesome-project/src/App.js file code with below code:
import React from 'react';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';
function App() {
return (
<div>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />
<section id="team" class="team_member section-padding">
<div class="container">
<div class="section-title text-center">
<h1>Meet our experts</h1>
<p>It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout.</p>
</div>
<div class="row text-center">
<div class="col-md-3 col-sm-6 col-xs-12 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.1s" data-wow-offset="0">
<div class="our-team">
<div class="team_img">
<img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="team-image"/>
<ul class="social">
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#/"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="team-content">
<h3 class="title">Stephen Cronin</h3>
<span class="post">Designer</span>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.2s" data-wow-offset="0">
<div class="our-team">
<div class="team_img">
<img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="team-image"/>
<ul class="social">
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#/"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="team-content">
<h3 class="title">Rachel Park</h3>
<span class="post">Developer</span>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.3s" data-wow-offset="0">
<div class="our-team">
<div class="team_img">
<img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="team-image"/>
<ul class="social">
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#/"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="team-content">
<h3 class="title">Dan Billson</h3>
<span class="post">Marketer</span>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.4s" data-wow-offset="0">
<div class="our-team">
<div class="team_img">
<img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="team-image"/>
<ul class="social">
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#/"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="team-content">
<h3 class="title">Gina Mellow</h3>
<span class="post">Co-founder</span>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
</div>
<div class="col-md-3 col-sm-6 col-xs-12 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.5s" data-wow-offset="0">
<div class="our-team">
<div class="team_img">
<img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="team-image"/>
<ul class="social">
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#/"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="team-content">
<h3 class="title">John Stuart</h3>
<span class="post">Graphics Expert</span>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 wow fadeInUp" data-wow-duration="1s" data-wow-delay="0.6s" data-wow-offset="0">
<div class="our-team">
<div class="team_img">
<img src="https://bootdey.com/img/Content/avatar/avatar5.png" alt="team-image"/>
<ul class="social">
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-linkedin"></i></a></li>
<li><a href="#/"><i class="fa fa-instagram"></i></a></li>
</ul>
</div>
<div class="team-content">
<h3 class="title">Maikel Clark</h3>
<span class="post">Animator</span>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
);
}
export default App;
4. Now we need to add below code into our my-awesome-project/src/App.css file :
body{margin-top:20px;}
.team_member {
background: rgba(199,201,209,.09);
padding-bottom: 50px;
overflow: hidden;
}
.single_team_content{
padding:45px;
margin-top:60px;
}
.single_team_content h1 {
font-size: 50px;
font-weight: 600;
line-height: 60px;
}
.single_team_content p{}
.our-team {
margin-bottom: 30px;
box-shadow: 0 10px 40px -10px rgba(0,64,128,.09);
}
.our-team .team_img{
position: relative;
overflow: hidden;
}
.our-team .team_img:after{
content: "";
width: 100%;
height: 100%;
background-color: rgba(255,255,255,0.2);
position: absolute;
bottom: -100%;
left: 0;
transition: all 0.3s ease 0s;
}
.our-team:hover .team_img:after{
bottom: 0;
}
.our-team img{
width: 100%;
height: auto;
}
.our-team .social{
padding: 0 0 18px 0;
margin: 0;
list-style: none;
position: absolute;
top: -100%;
right: 10px;
background: #ffaa17;
border-radius: 0 0 20px 20px;
z-index: 1;
transition: all 0.3s ease 0s;
}
.our-team:hover .social{
top: 0;
}
.our-team .social li a{
display: block;
padding: 15px;
font-size: 15px;
color: #232434;
}
.our-team:hover .social li a:hover{
color: #fff;
}
.our-team .team-content{
padding: 20px 0;
background: #fff;
}
.our-team .title{
font-size: 18px;
font-weight: bold;
color: #ffaa17;
text-transform: capitalize;
margin: 0 0 20px;
position: relative;
}
.our-team .title:before{
content: "";
width: 25px;
height: 1px;
background: #ffaa17;
position: absolute;
bottom: -10px;
right: 50%;
margin-right: 9px;
transition-duration: 0.25s;
}
.our-team .title:after{
content: "";
width: 25px;
height: 1px;
background: #ffaa17;
position: absolute;
bottom: -10px;
left: 50%;
margin-left: 9px;
transition-duration: 0.25s;
}
.our-team:hover .title:before,
.our-team:hover .title:after{
width: 50px;
}
.our-team .post{
display: inline-block;
font-size: 15px;
text-transform: capitalize;
}
.our-team .post:before{
content: "";
display: block;
width: 7px;
height: 7px;
border-radius: 50%;
background: #ffaa17;
margin: 0 auto;
position: relative;
top: -13px;
}
@media only screen and (max-width: 990px){
.our-team{ margin-bottom: 30px; }
}