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.3.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="content">
<div class="container">
<div class="row">
<div class="col-sm-4"><a href="#custom-modal" class="btn btn-custom waves-effect waves-light mb-4" data-animation="fadein" data-plugin="custommodal" data-overlayspeed="200" data-overlaycolor="#36404a"><i class="mdi mdi-plus"></i> Add Member</a></div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar2.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Freddie J. Plourde</h4>
<p class="text-muted">@Founder <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>2563</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>6952</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>1125</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Julie L. Arsenault</h4>
<p class="text-muted">@Programmer <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>8471</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>8512</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>4751</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar4.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Christopher Gallardo</h4>
<p class="text-muted">@Webdesigner <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>1021</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>4562</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>3621</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar5.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Joseph M. Rohr</h4>
<p class="text-muted">@Webdesigner <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>7845</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>1254</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>5846</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Mark K. Horne</h4>
<p class="text-muted">@Director <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>4851</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>10250</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>895</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar7.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>James M. Fonville</h4>
<p class="text-muted">@Manager <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>4560</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>12350</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>742</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Jade M. Walker</h4>
<p class="text-muted">@Webdeveloper <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>3520</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>4587</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>423</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Mathias L. Lassen</h4>
<p class="text-muted">@Webdesigner <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>7851</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>10020</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>1036</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="text-center card-box">
<div class="member-card pt-2 pb-2">
<div class="thumb-lg member-thumb mx-auto"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" class="rounded-circle img-thumbnail" alt="profile-image"/></div>
<div class="">
<h4>Alfred M. Bach</h4>
<p class="text-muted">@Manager <span>| </span><span><a href="#/" class="text-pink">websitename.com</a></span></p>
</div>
<ul class="social-links list-inline">
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Facebook"><i class="fa fa-facebook"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Twitter"><i class="fa fa-twitter"></i></a></li>
<li class="list-inline-item"><a title="" data-placement="top" data-toggle="tooltip" class="tooltips" href="" data-original-title="Skype"><i class="fa fa-skype"></i></a></li>
</ul>
<button type="button" class="btn btn-primary mt-3 btn-rounded waves-effect w-md waves-light">Message Now</button>
<div class="mt-4">
<div class="row">
<div class="col-4">
<div class="mt-3">
<h4>7421</h4>
<p class="mb-0 text-muted">Wallets Balance</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>14754</h4>
<p class="mb-0 text-muted">Income amounts</p>
</div>
</div>
<div class="col-4">
<div class="mt-3">
<h4>11525</h4>
<p class="mb-0 text-muted">Total Transactions</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="text-right">
<ul class="pagination pagination-split mt-0 float-right">
<li class="page-item"><a class="page-link" href="#/" aria-label="Previous"><span aria-hidden="true">«</span> <span class="sr-only">Previous</span></a></li>
<li class="page-item active"><a class="page-link" href="#/">1</a></li>
<li class="page-item"><a class="page-link" href="#/">2</a></li>
<li class="page-item"><a class="page-link" href="#/">3</a></li>
<li class="page-item"><a class="page-link" href="#/">4</a></li>
<li class="page-item"><a class="page-link" href="#/">5</a></li>
<li class="page-item"><a class="page-link" href="#/" aria-label="Next"><span aria-hidden="true">»</span> <span class="sr-only">Next</span></a></li>
</ul>
</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{
background:#DCDCDC;
margin-top:20px;
}
.card-box {
padding: 20px;
border-radius: 3px;
margin-bottom: 30px;
background-color: #fff;
}
.social-links li a {
border-radius: 50%;
color: rgba(121, 121, 121, .8);
display: inline-block;
height: 30px;
line-height: 27px;
border: 2px solid rgba(121, 121, 121, .5);
text-align: center;
width: 30px
}
.social-links li a:hover {
color: #797979;
border: 2px solid #797979
}
.thumb-lg {
height: 88px;
width: 88px;
}
.img-thumbnail {
padding: .25rem;
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: .25rem;
max-width: 100%;
height: auto;
}
.text-pink {
color: #ff679b!important;
}
.btn-rounded {
border-radius: 2em;
}
.text-muted {
color: #98a6ad!important;
}
h4 {
line-height: 22px;
font-size: 18px;
}