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="home-doctors clearfix">
<div class="container bootstrap snippets bootdey">
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12 ">
<div class="slogan-section animated fadeInUp clearfix ae-animation-fadeInUp">
<h2>Meet our <span>Dental Specialists</span></h2><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p> </div>
</div>
</div>
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-6 text-center doc-item">
<div class="common-doctor animated fadeInUp clearfix ae-animation-fadeInUp">
<ul class="list-inline social-lists animate">
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
</ul>
<figure>
<img width="670" height="500" src="https://bootdey.com/img/Content/avatar/avatar1.png" class="doc-img animate attachment-gallery-post-single wp-post-image" alt="doctor-2"/>
</figure>
<div class="text-content">
<h5>Dr. Jeremy</h5>
<h5><small>Dentist Title</small></h5>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6 text-center doc-item">
<div class="common-doctor animated fadeInUp clearfix ae-animation-fadeInUp">
<ul class="list-inline social-lists animate">
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
</ul>
<figure>
<img width="670" height="500" src="https://bootdey.com/img/Content/avatar/avatar6.png" class="doc-img animate attachment-gallery-post-single wp-post-image" alt="doctor-2"/>
</figure>
<div class="text-content">
<h5>Dr. Jeremy</h5>
<h5><small>Dentist Title</small></h5>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6 text-center doc-item">
<div class="common-doctor animated fadeInUp clearfix ae-animation-fadeInUp">
<ul class="list-inline social-lists animate">
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
</ul>
<figure>
<img width="670" height="500" src="https://bootdey.com/img/Content/avatar/avatar7.png" class="doc-img animate attachment-gallery-post-single wp-post-image" alt="doctor-2"/>
</figure>
<div class="text-content">
<h5>Dr. Jeremy</h5>
<h5><small>Dentist Title</small></h5>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3 col-sm-6 text-center doc-item">
<div class="common-doctor animated fadeInUp clearfix ae-animation-fadeInUp">
<ul class="list-inline social-lists animate">
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-skype"></i></a></li>
<li><a href="#/"><i class="fa fa-twitter"></i></a></li>
<li><a href="#/"><i class="fa fa-facebook"></i></a></li>
</ul>
<figure>
<img width="670" height="500" src="https://bootdey.com/img/Content/avatar/avatar8.png" class="doc-img animate attachment-gallery-post-single wp-post-image" alt="doctor-2"/>
</figure>
<div class="text-content">
<h5>Dr. Jeremy</h5>
<h5><small>Dentist Title</small></h5>
</div>
</div>
</div>
<div class="visible-sm clearfix margin-gap"></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 :
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css);
body{margin-top:20px;}
.animate {
-webkit-transition: all 0.3s ease-in-out;
-moz-transition: all 0.3s ease-in-out;
-o-transition: all 0.3s ease-in-out;
-ms-transition: all 0.3s ease-in-out;
transition: all 0.3s ease-in-out;
}
/*=============== Home-team ===============*/
.home-doctors {
text-align: center;
padding: 70px 0 80px;
background: #f0f5f6;
}
.home-doctors h2 {
font-weight: normal;
}
.home-doctors .common-doctor {
background-color: #fff;
}
.home-doctors .common-doctor figure {
overflow: hidden;
width: 100%;
height: 196px;
}
.home-doctors img {
width: 100%;
height: auto;
margin-top: -6em;
}
.home-doctors .common-doctor h5 {
margin: 0 0 7px;
font-size: 18px;
font-weight: 700;
color: #3a3c41;
}
.home-doctors .common-doctor .for-border {
margin-bottom: 20px;
}
.home-doctors .common-doctor .text-content {
padding: 19px 14px 13px;
}
.home-doctors.doctors-var-two {
text-align: left;
background-color: #fff;
}
.home-doctors.doctors-var-two .slogan-section {
text-align: left;
}
.home-doctors.doctors-var-two .common-doctor {
background-color: transparent;
}
.home-doctors.doctors-var-two .common-doctor .for-border {
display: none;
}
.home-doctors.doctors-var-two .common-doctor .text-content {
padding: 20px 0 20px;
}
.home-doctors.doctors-var-two .text-center {
text-align: left;
}
.slogan-section {
margin-bottom: 50px;
text-align: center;
}
.home-doctors .common-doctor .for-border {
margin-bottom: 20px;
}
.for-border {
height: 11px;
width: 100%;
background: transparent url(http://omarhabash.com/nova/wp-content/uploads/2014/08/feature-border.png) center center no-repeat;
border: none;
}
.home-doctors .common-doctor h5 small {
color: #008fd5;
font-weight: bold;
font-size: 0.8em;
font-style: italic;
}
.home-doctors .common-doctor ul{
position: absolute;
top: 50%;
left: 0;
width: 100%;
margin-top: -28px;
text-align: center;
margin-top: 10em;
opacity: 0;
z-index: 1;
}
.home-doctors .common-doctor li a {
background: #008fd5;
color: white;
padding: 0.75em;
border: 5px solid rgba(255, 255, 255, 0.33);
}
.doc-img{
/* Webkit for Chrome and Safari */
-webkit-transform: scale(1, 1);
-webkit-transition-duration: 500ms;
-webkit-transition-timing-function: ease-out;
/* Webkit for Mozila Firefox */
-moz-transform: scale(1, 1);
-moz-transition-duration: 500ms;
-moz-transition-timing-function: ease-out;
/* Webkit for IE( Version: 11, 10 ) */
-ms-transform: scale(1, 1);
-ms-transition-duration: 500ms;
-ms-transition-timing-function: ease-out;
}
.doc-item:hover .doc-img{
/* Webkit for Chrome and Safari */
-webkit-transform: scale(1.2, 1.2);
-webkit-transition-duration: 500ms;
-webkit-transition-timing-function: ease-out;
/* Webkit for Mozila Firefox */
-moz-transform: scale(1.2, 1.2);
-moz-transition-duration: 500ms;
-moz-transition-timing-function: ease-out;
/* Webkit for IE( Version: 11, 10 ) */
-ms-transform: scale(1.20, 1.20);
-ms-transition-duration: 500ms;
-ms-transition-timing-function: ease-out;
opacity: 0.7;
}
.doc-item:hover .social-lists{
margin-top: -2em;
opacity: 1;
}
/*=============== //Home-team ===============*/