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>
<div class="container">
<div class="row justify-content-center">
<div class="col-xl-8 col-lg-8 col-md-10 text-center">
<div class="mb-3">
<h2>Meet Our Superheros</h2>
<p>Without clarity, you send a very garbled message out to the Universe. We know that the Law of Attraction says that we will attract what we focus on, so if we don’t have clarity, we will attract confusion.</p>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 col-md-6">
<div class="team">
<div class="team-avatar">
<img class="w-100" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt=""/>
</div>
<div class="team-content">
<div class=" team-content-inner">
<div class="d-flex">
<div class="team-info">
<h5 class="mb-0"><a href="#/" class="avatar-name">John Doe</a></h5>
<span class="team-position">CEO</span>
</div>
<div class="team-social ml-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-instagram"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-dribbble"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="team-contact mt-2">
<a class="text-white d-block" href="#/">
<i class="fas fa-phone fa-flip-horizontal mr-1"></i>
Call Now 123 123 1234
</a>
<a class="text-white d-block" href="#/">
<i class="far fa-envelope mr-1"></i>
[email protected]
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="team">
<div class="team-avatar">
<img class="w-100" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""/>
</div>
<div class="team-content">
<div class=" team-content-inner">
<div class="d-flex">
<div class="team-info">
<h5 class="mb-0"><a href="#/" class="avatar-name">John Doe</a></h5>
<span class="team-position">Design</span>
</div>
<div class="team-social ml-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-instagram"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-dribbble"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="team-contact mt-2">
<a class="text-white d-block" href="#/">
<i class="fas fa-phone fa-flip-horizontal mr-1"></i>
Call Now 123 123 1234
</a>
<a class="text-white d-block" href="#/">
<i class="far fa-envelope mr-1"></i>
[email protected]
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="team">
<div class="team-avatar">
<img class="w-100" src="https://bootdey.com/img/Content/avatar/avatar7.png" alt=""/>
</div>
<div class="team-content">
<div class=" team-content-inner">
<div class="d-flex">
<div class="team-info">
<h5 class="mb-0"><a href="#/" class="avatar-name">John Doe</a></h5>
<span class="team-position">Community</span>
</div>
<div class="team-social ml-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-instagram"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-dribbble"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="team-contact mt-2">
<a class="text-white d-block" href="#/">
<i class="fas fa-phone fa-flip-horizontal mr-1"></i>
Call Now 123 123 1234
</a>
<a class="text-white d-block" href="#/">
<i class="far fa-envelope mr-1"></i>
[email protected]
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="team">
<div class="team-avatar">
<img class="w-100" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt=""/>
</div>
<div class="team-content">
<div class=" team-content-inner">
<div class="d-flex">
<div class="team-info">
<h5 class="mb-0"><a href="#/" class="avatar-name">John Doe</a></h5>
<span class="team-position">Financial Services</span>
</div>
<div class="team-social ml-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-instagram"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-dribbble"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="team-contact mt-2">
<a class="text-white d-block" href="#/">
<i class="fas fa-phone fa-flip-horizontal mr-1"></i>
Call Now 123 123 1234
</a>
<a class="text-white d-block" href="#/">
<i class="far fa-envelope mr-1"></i>
[email protected]
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="team">
<div class="team-avatar">
<img class="w-100" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt=""/>
</div>
<div class="team-content">
<div class=" team-content-inner">
<div class="d-flex">
<div class="team-info">
<h5 class="mb-0"><a href="#/" class="avatar-name">John Doe</a></h5>
<span class="team-position">Technology Officer</span>
</div>
<div class="team-social ml-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-instagram"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-dribbble"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="team-contact mt-2">
<a class="text-white d-block" href="#/">
<i class="fas fa-phone fa-flip-horizontal mr-1"></i>
Call Now 123 123 1234
</a>
<a class="text-white d-block" href="#/">
<i class="far fa-envelope mr-1"></i>
[email protected]
</a>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 col-md-6">
<div class="team">
<div class="team-avatar">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar5.png" alt=""/>
</div>
<div class="team-content">
<div class=" team-content-inner">
<div class="d-flex">
<div class="team-info">
<h5 class="mb-0"><a href="#/" class="avatar-name">John Doe</a></h5>
<span class="team-position">Sales Officer</span>
</div>
<div class="team-social ml-auto">
<ul class="nav">
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-facebook-f"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-instagram"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-twitter"></i>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#/">
<i class="fab fa-dribbble"></i>
</a>
</li>
</ul>
</div>
</div>
<div class="team-contact mt-2">
<a class="text-white d-block" href="#/">
<i class="fas fa-phone fa-flip-horizontal mr-1"></i>
Call Now 123 123 1234
</a>
<a class="text-white d-block" href="#/">
<i class="far fa-envelope mr-1"></i>
[email protected]
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center mb-2">
Here are some tips and methods for motivating yourself.
<a class="btn btn-link" href="#/">View All Projects</a>
</div>
</div>
</div>
</div>
);
}
export default App;
4. Now we need to add below code into our my-awesome-project/src/App.css file :
body{
background:#eee;
margin-top:20px;}
.team {
position: relative;
margin-bottom: 20px;
}
.team .team-content {
position: absolute;
bottom: 25px;
margin: 0 20px;
left: 0;
right: 0;
}
.team .team-content-inner {
background-color: #ffffff;
padding: 20px 20px;
width: 100%;
-webkit-box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.1);
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.team .team-content-inner .team-social {
margin-left: auto;
}
.team .team-content-inner .team-social .nav .nav-link {
padding-top: 0;
padding-bottom: 0;
}
.team .team-content-inner .team-contact {
opacity: 0;
position: absolute;
bottom: 0px;
left: 20px;
-webkit-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
.team:hover .team-content-inner {
background-color: #009b72;
color: #ffffff;
padding: 20px 20px 90px;
}
.team:hover .team-content-inner .team-info .team-position {
color: #ffffff;
}
.team:hover .team-content-inner .team-contact {
opacity: 1;
bottom: 20px;
}
.team:hover .team-content-inner .team-contact .nav .nav-link {
color: #ffffff;
}
.team:hover .team-content-inner .team-contact .nav .nav-link:hover {
color: #000000;
}
.team:hover .team-content-inner .team-social .nav .nav-link {
color: #ffffff;
}
.team:hover .team-content-inner .team-social .nav .nav-link:hover {
color: #000000;
}
.team:hover .team-info .avatar-name {
color: #ffffff;
}
.team-content-inner .team-info .avatar-name {
margin-bottom: 0;
font-weight: 600;
}
.team-content-inner .team-info .team-position {
color: #009b72;
}
.team-02 {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
}
.team-02 .team-avatar {
-webkit-box-flex: 0;
-ms-flex: 0 50%;
flex: 0 50%;
}
.team-02 .team-content {
-webkit-box-flex: 0;
-ms-flex: 0 50%;
flex: 0 50%;
}
.team-02 .team-content-inner {
padding: 0px;
}
.team-02 .team-content-inner .team-contact {
margin-top: 20px;
}
.team-02 .team-content-inner .team-contact .nav .nav-link {
color: #2d3037;
padding: 5px;
}
.team-02 .team-content-inner .team-contact .nav .nav-link:hover {
color: #009b72;
}
.team-02 .team-content-inner .team-desc {
color: #2d3037;
}
.social a.text-muted:hover {
color: #009b72 !important;
}
@media (max-width: 575.98px) {
.team .team-content {
margin: 0 15px;
}
}
.nav {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
padding-left: 0;
margin-bottom: 0;
list-style: none;
}