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="whos-speaking-area speakers pad100">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="section-title text-center">
<div class="title-text mb50">
<h2>All Speakers</h2>
</div>
</div>
</div>
</div>
<div class="row mb50">
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
<div class="speakers xs-mb30">
<div class="spk-img">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="trainer-img" />
<ul>
<li>
<a href="#/"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-camera"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-life-ring"></i></a>
</li>
</ul>
</div>
<div class="spk-info">
<h3>Harman Kardon</h3>
<p>CEO,Mockplus</p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
<div class="speakers xs-mb30">
<div class="spk-img">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="trainer-img" />
<ul>
<li>
<a href="#/"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-camera"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-life-ring"></i></a>
</li>
</ul>
</div>
<div class="spk-info">
<h3>Toni Duggan</h3>
<p>GM, Pixelperfect</p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
<div class="speakers xs-mb30">
<div class="spk-img">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="trainer-img" />
<ul>
<li>
<a href="#/"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-camera"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-life-ring"></i></a>
</li>
</ul>
</div>
<div class="spk-info">
<h3>Philipp Lahm</h3>
<p>Digital photography</p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-3 d-md-none d-lg-block col-sm-12">
<div class="speakers">
<div class="spk-img">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="trainer-img" />
<ul>
<li>
<a href="#/"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-camera"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-life-ring"></i></a>
</li>
</ul>
</div>
<div class="spk-info">
<h3>Lieke Martens</h3>
<p>CEO, Animation Studios</p>
</div>
</div>
</div>
</div>
<div class="row">
<div class="offset-2 no-gutter"></div>
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
<div class="speakers xs-mb30">
<div class="spk-img">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar5.png" alt="trainer-img" />
<ul>
<li>
<a href="#/"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-camera"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-life-ring"></i></a>
</li>
</ul>
</div>
<div class="spk-info">
<h3>Fara Williams</h3>
<p>Designer, Treehouse</p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
<div class="speakers xs-mb30">
<div class="spk-img">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="trainer-img" />
<ul>
<li>
<a href="#/"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-camera"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-life-ring"></i></a>
</li>
</ul>
</div>
<div class="spk-info">
<h3>Manuel Neuer</h3>
<p>CEO, Spingboard</p>
</div>
</div>
</div>
<div class="col-xl-3 col-lg-3 col-md-4 col-sm-12">
<div class="speakers">
<div class="spk-img">
<img class="img-fluid" src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="trainer-img" />
<ul>
<li>
<a href="#/"><i class="fa fa-twitter"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-camera"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-facebook"></i></a>
</li>
<li>
<a href="#/"><i class="fa fa-life-ring"></i></a>
</li>
</ul>
</div>
<div class="spk-info">
<h3>Lieke Martens</h3>
<p>Digital photography</p>
</div>
</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 :
.whos-speaking-area .speakers {
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
border: 1px solid #dee2e6;
border-radius: 6px;
}
.whos-speaking-area .speakers:hover {
-webkit-box-shadow: 0 0 6px 5px #ddd;
box-shadow: 0 0 6px 5px #ddd;
border-radius: 6px;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
border: 1px solid #dee2e6;
}
.whos-speaking-area .speakers .spk-img {
position: relative;
}
.whos-speaking-area .speakers .spk-img:before {
background: rgba(91, 69, 213, 0.8);
content: "";
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
-webkit-transform: scale(0);
-ms-transform: scale(0);
transform: scale(0);
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
z-index: 5;
}
.whos-speaking-area .speakers .spk-img:hover:before {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
}
.whos-speaking-area .speakers .spk-img img {
width: 100%;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
.whos-speaking-area .speakers .spk-img ul {
position: absolute;
display: inline-block;
top: 35%;
left: 40%;
width: 100px;
line-height: 3;
opacity: 0;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
.whos-speaking-area .speakers .spk-img ul:before {
position: absolute;
content: "";
height: 110px;
width: 110px;
background: transparent;
top: -15%;
left: -15px;
border: 1px solid #fff;
-webkit-transform: rotate(44deg) scale(1.4);
-ms-transform: rotate(44deg) scale(1.4);
transform: rotate(44deg) scale(1.4);
opacity: 0;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
.whos-speaking-area .speakers .spk-img ul li {
display: inline-block;
margin: 0 3px;
-webkit-transform: perspective(50px) rotatey(80deg);
transform: perspective(50px) rotatey(80deg);
-webkit-transition: all 0.5s ease 0.2s;
-o-transition: all 0.5s ease 0.2s;
transition: all 0.5s ease 0.2s;
margin: 0 5px;
}
.whos-speaking-area .speakers .spk-img ul li a i.fa {
color: rgba(255, 78, 0, 0.8);
font-size: 18px;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
width: 28px;
color: #fff;
height: 28px;
line-height: 21px;
text-align: center;
}
.whos-speaking-area .speakers .spk-img ul li a i.fa:hover {
color: #cf057c;
}
.whos-speaking-area .speakers .spk-img ul li:nth-child(1) {
-webkit-transform: translate3d(-53px, -50px, 0);
transform: translate3d(-53px, -50px, 0);
}
.whos-speaking-area .speakers .spk-img ul li:nth-child(2) {
-webkit-transform: translate3d(53px, -50px, 0);
transform: translate3d(53px, -50px, 0);
}
.whos-speaking-area .speakers .spk-img ul li:nth-child(3) {
-webkit-transform: translate3d(-53px, 50px, 0);
transform: translate3d(-53px, 50px, 0);
}
.whos-speaking-area .speakers .spk-img ul li:nth-child(4) {
-webkit-transform: translate3d(53px, 50px, 0);
transform: translate3d(53px, 50px, 0);
}
.whos-speaking-area .speakers .spk-img:hover ul {
left: 35%;
opacity: 1;
z-index: 9;
}
.whos-speaking-area .speakers .spk-img:hover ul:before {
opacity: 1;
-webkit-transform: rotate(44deg) scale(1);
-ms-transform: rotate(44deg) scale(1);
transform: rotate(44deg) scale(1);
}
.whos-speaking-area .speakers .spk-img:hover ul li:nth-child(1),
.whos-speaking-area .speakers .spk-img:hover ul li:nth-child(2),
.whos-speaking-area .speakers .spk-img:hover ul li:nth-child(3),
.whos-speaking-area .speakers .spk-img:hover ul li:nth-child(4) {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
.whos-speaking-area .speakers .spk-info {
text-align: center;
padding: 30px 0;
}
.whos-speaking-area .speakers .spk-info h3 {
color: #252525;
font-size: 20px;
line-height: 20px;
margin-bottom: 5px;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
text-transform: capitalize;
}
.whos-speaking-area .speakers .spk-info h3:hover {
color: #4125dd;
}
.whos-speaking-area .speakers .spk-info p {
font-size: 15px;
margin-bottom: 0;
color: #656565;
}
.whos-speaking-area-two .title-text h2 {
color: #fff;
}
.whos-speaking-area-two .speakers {
position: relative;
overflow: hidden;
}
.whos-speaking-area-two .speakers:hover img {
-webkit-transform: translate3d(0px, 0px, 0px);
transform: translate3d(0px, 0px, 0px);
}
.whos-speaking-area-two .speakers img {
position: relative;
-webkit-transform: translate3d(0px, 0px, 0px);
transform: translate3d(0px, 0px, 0px);
-webkit-transition: all 0.3s linear 0s;
-o-transition: all 0.3s linear 0s;
transition: all 0.3s linear 0s;
}
.whos-speaking-area-two .speakers .img-overlay {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
opacity: 0;
background: rgba(91, 69, 213, 0.9);
-webkit-transition: all 0.3s ease 0s;
-o-transition: all 0.3s ease 0s;
transition: all 0.3s ease 0s;
}
.whos-speaking-area-two .speakers:hover .img-overlay {
opacity: 1;
}
.whos-speaking-area-two .speakers .name a {
position: absolute;
bottom: -20%;
left: 10%;
color: #fff;
font-size: 20px;
font-weight: 600;
text-transform: capitalize;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
.whos-speaking-area-two .speakers .name a:hover {
color: #cf057c;
}
.whos-speaking-area-two .speakers:hover .name a {
bottom: 10%;
}
.whos-speaking-area-two .speakers .social-icons {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
position: absolute;
bottom: 23%;
left: 0;
-webkit-transition: all 0.4s;
-o-transition: all 0.4s;
transition: all 0.4s;
}
.whos-speaking-area-two .speakers .social-icons li {
margin-right: 10px;
}
.whos-speaking-area-two .speakers .social-icons li a {
color: #fff;
}
.whos-speaking-area-two .speakers .social-icons li a:hover {
color: #252525;
}
.whos-speaking-area-two .speakers:hover .social-icons {
left: 27px;
}
ul {
list-style: outside none none;
margin: 0;
padding: 0;
outline: none;
}
.mb50 {
margin-bottom: 50px;
}