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"/>
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="team-boxes">
<div class="team-thumb overlay-image view-overlay">
<img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt=""/>
<div class="clear">
</div>
<div class="mask team_quote">
<div class="port-zoom-link">
<p>
<span class="accentcolor" style={{/*font-weight:700;*/}}>MOTTO</span>
<br/>
<i>"All the world's a stage<br/>And all the men and women merely players"</i>
</p>
</div>
</div>
</div>
<div class="team-info">
<h2>Kathleen Walsh</h2>
<p>
Logistic Stuff
</p>
</div>
<div class="separator">
</div>
<div class="team-social">
<a href=""><i class="fa fa-facebook-square"></i></a>
<a href=""><i class="fa fa-twitter"></i></a>
<a href=""><i class="fa fa-google-plus"></i></a>
<a href=""><i class="fa fa-linkedin"></i></a>
<a href=""><i class="fa fa-envelope"></i></a>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="team-boxes">
<div class="team-thumb overlay-image view-overlay">
<img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt=""/>
<div class="clear">
</div>
<div class="mask team_quote">
<div class="port-zoom-link">
<p>
<span class="accentcolor" style={{/*font-weight:700;*/}}>ABOUT ME:)</span>
<br/> "I have all these great genes, but they're recessive"
</p>
</div>
</div>
</div>
<div class="team-info">
<h2>Georgia Mccormick</h2>
<p>
Photographer
</p>
</div>
<div class="separator">
</div>
<div class="team-social">
<a href=""><i class="fa fa-facebook-square"></i></a>
<a href=""><i class="fa fa-twitter"></i></a>
<a href=""><i class="fa fa-google-plus"></i></a>
<a href=""><i class="fa fa-linkedin"></i></a>
<a href=""><i class="fa fa-envelope"></i></a>
</div>
</div>
</div>
<div class="col-md-4 col-sm-4 col-xs-12">
<div class="team-boxes">
<div class="team-thumb overlay-image view-overlay">
<img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt=""/>
<div class="clear">
</div>
<div class="mask team_quote">
<div class="port-zoom-link">
<p>
<span class="accentcolor" style={{/*font-weight:700;*/}}>SHOULD I QUOTE?</span>
<br/> "It's knowing what needs to be done that brings strength!"
</p>
</div>
</div>
</div>
<div class="team-info">
<h2>Marjorie Watson</h2>
<p>
Marketing
</p>
</div>
<div class="separator">
</div>
<div class="team-social">
<a href=""><i class="fa fa-facebook-square"></i></a>
<a href=""><i class="fa fa-twitter"></i></a>
<a href=""><i class="fa fa-google-plus"></i></a>
<a href=""><i class="fa fa-linkedin"></i></a>
<a href=""><i class="fa fa-envelope"></i></a>
</div>
</div>
</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{
margin-top:20px;
background:#eee;
}
/*=========================*/
/* Team Boxes */
/*=========================*/
.team-body {
width:100%;
height:100%;
margin:0;
}
.team-wrap {
width:100%;
margin:0 auto;
display:table;
}
.team-wrap img {
width:100%;
}
.team-boxes {
background:#fff;
padding:0;
}
.team-boxes .separator {
height:1px;
width:36px;
margin:7px 0 7px 20px;
clear:both;
background-color:#20b2aa;
}
.team-boxes .team_quote p {
font-size:14px;
color:rgba(255,255,255,0.8);
font-weight:300;
letter-spacing:1px;
}
.team-info {
text-align:left;
margin:15px auto 0 auto;
padding:0 20px;
}
.team-info p {
margin:0;
padding:0;
font-size:14px;
color:#5A5A5A;
text-transform:uppercase;
font-weight:300;
}
.team-info h2 {
margin:0;
padding:5px 0 6px 0;
font-size:16px;
font-weight:600;
text-transform:uppercase;
color:#444;
letter-spacing:1px;
}
.team-social {
width:100%;
margin-top:19px;
padding:5px 20px 26px 20px;
}
.team-social a {
background:#FFF;
height:40px;
width:40px;
text-align:center;
border-radius:5px;
color:#494949;
line-height:40px;
font-size:15px;
border:solid 1px #eee;
-webkit-transition:all 0.3s ease-in;
-moz-transition:all 0.3s ease-in;
-o-transition:all 0.3s ease-in;
transition:all 0.3s ease-in;
display:inline-block;
margin-bottom:3px;
margin-right:4px;
}
.team-social a:hover {
border:solid 1px #4a4a4a;
}
.overlay-image {
width:100%;
height:100%;
overflow:hidden;
position:relative;
text-align:center;
background:#303543;
}
.overlay-image .mask,.overlay-image .content {
width:100%;
height:100%;
position:absolute;
overflow:hidden;
top:0;
left:0;
}
.view-overlay img {
-webkit-transform:scaleY(1);
-moz-transform:scaleY(1);
-o-transform:scaleY(1);
-ms-transform:scaleY(1);
transform:scaleY(1);
-webkit-transition:all 0.7s ease-in-out;
-moz-transition:all 0.7s ease-in-out;
-o-transition:all 0.7s ease-in-out;
-ms-transition:all 0.7s ease-in-out;
transition:all 0.7s ease-in-out;
}
.view-overlay .mask {
-webkit-transition:all 0.5s linear;
-moz-transition:all 0.5s linear;
-o-transition:all 0.5s linear;
-ms-transition:all 0.5s linear;
transition:all 0.5s linear;
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter:alpha(opacity=0);
opacity:0;
}
.port-zoom-link {
position:absolute;
top:30%;
right:0;
bottom:0;
left:0;
margin:auto;
padding:0 20px;
}
.view-overlay:hover img {
-webkit-transform:scale(10);
-moz-transform:scale(10);
-o-transform:scale(10);
-ms-transform:scale(10);
transform:scale(10);
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
filter:alpha(opacity=0);
opacity:0;
}
.view-overlay:hover .mask {
-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
filter:alpha(opacity=100);
opacity: 1;
}