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 rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" />
<div class="container">
<div class="row">
<div class="col-12 col-sm-12 col-md-12">
<div class="card">
<div class="card-header">
<h4>Assign Project List</h4>
</div>
<div class="card-body">
<div class="table-responsive" id="proTeamScroll" tabindex="2" style={{/*height: 400px; overflow: hidden; outline: none;*/}}>
<table class="table table-striped">
<thead>
<tr>
<th>Cust.</th>
<th>Project</th>
<th>Assign Date</th>
<th>Team</th>
<th>Priority</th>
<th>Status</th>
<th>Edit</th>
</tr>
</thead>
<tbody>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar8.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">Wordpress Website</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> Airi Satou</span>
</p>
</td>
<td>20-02-2018</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-red">High</div>
</td>
<td class="align-middle">
<div class="progress-text">50%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar bg-success" data-width="50%" style={{/*width: 50%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">Android Game App</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> Sarah Smith</span>
</p>
</td>
<td>22-05-2019</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-green">Low</div>
</td>
<td class="align-middle">
<div class="progress-text">55%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar bg-purple" data-width="55%" style={{/*width: 55%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar5.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">Java Web Service</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> Cara Stevens</span>
</p>
</td>
<td>11-04-2019</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-blue">Medium</div>
</td>
<td class="align-middle">
<div class="progress-text">70%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar" data-width="70%" style={{/*width: 70%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">Wedding IOS App</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> John Doe</span>
</p>
</td>
<td>19-05-2019</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-red">High</div>
</td>
<td class="align-middle">
<div class="progress-text">45%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar bg-cyan" data-width="45%" style={{/*width: 45%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">Blize Admin Template</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> Ashton Cox</span>
</p>
</td>
<td>25-07-2019</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar5.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-blue">Medium</div>
</td>
<td class="align-middle">
<div class="progress-text">67%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar bg-red" data-width="67%" style={{/*width: 67%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">React js website</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> Sarah Smith </span>
</p>
</td>
<td>11-08-2019</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-green">Low</div>
</td>
<td class="align-middle">
<div class="progress-text">41%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar bg-orange" data-width="41%" style={{/*width: 41%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">SEO improvement</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> Janak Gandhi</span>
</p>
</td>
<td>22-02-2018</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-red">High</div>
</td>
<td class="align-middle">
<div class="progress-text">70%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar bg-success" data-width="70%" style={{/*width: 70%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
<tr>
<td class="table-img"><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt=""/>
</td>
<td>
<h6 class="mb-0 font-13">Laravel Website</h6>
<p class="m-0 font-12">
Assigned to<span class="col-green font-weight-bold"> Mili Rain</span>
</p>
</td>
<td>31-03-2019</td>
<td class="text-truncate">
<ul class="list-unstyled order-list m-b-0">
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar8.png" alt="user" data-toggle="tooltip" title="" data-original-title="Wildan Ahdian"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="user" data-toggle="tooltip" title="" data-original-title="John Deo"/></li>
<li class="team-member team-member-sm"><img class="rounded-circle" src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="user" data-toggle="tooltip" title="" data-original-title="Sarah Smith"/></li>
<li class="avatar avatar-sm"><span class="badge badge-primary">+4</span></li>
</ul>
</td>
<td>
<div class="badge-outline col-green">Low</div>
</td>
<td class="align-middle">
<div class="progress-text">55%</div>
<div class="progress" data-height="6" style={{/*height: 6px;*/}}>
<div class="progress-bar bg-purple" data-width="55%" style={{/*width: 55%;*/}}></div>
</div>
</td>
<td>
<a data-toggle="tooltip" title="" data-original-title="Edit"><i class="fas fa-pencil-alt"></i></a>
<a data-toggle="tooltip" title="" data-original-title="Delete"><i class="far fa-trash-alt"></i></a>
</td>
</tr>
</tbody>
</table>
</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 :
body{
background-color: #f6f6f6;
margin-top:20px;
}
.card {
background-color: #fff;
border-radius: 10px;
border: none;
position: relative;
margin-bottom: 30px;
box-shadow: 0 0.46875rem 2.1875rem rgba(90,97,105,0.1), 0 0.9375rem 1.40625rem rgba(90,97,105,0.1), 0 0.25rem 0.53125rem rgba(90,97,105,0.12), 0 0.125rem 0.1875rem rgba(90,97,105,0.1);
}
.card .card-header {
border-bottom-color: #f9f9f9;
line-height: 30px;
-ms-grid-row-align: center;
align-self: center;
width: 100%;
padding: 10px 25px;
display: flex;
align-items: center;
}
.card .card-header, .card .card-body, .card .card-footer {
background-color: transparent;
padding: 20px 25px;
}
.card-header:first-child {
border-radius: calc(.25rem - 1px) calc(.25rem - 1px) 0 0;
}
.card-header {
padding: .75rem 1.25rem;
margin-bottom: 0;
background-color: rgba(0,0,0,.03);
border-bottom: 1px solid rgba(0,0,0,.125);
}
.table:not(.table-sm) thead th {
border-bottom: none;
background-color: #e9e9eb;
color: #666;
padding-top: 15px;
padding-bottom: 15px;
}
.table .table-img img {
width: 35px;
height: 35px;
border-radius: 50%;
border: 2px solid #bbbbbb;
-webkit-box-shadow: 5px 6px 15px 0px rgba(49,47,49,0.5);
-moz-box-shadow: 5px 6px 15px 0px rgba(49,47,49,0.5);
-ms-box-shadow: 5px 6px 15px 0px rgba(49,47,49,0.5);
box-shadow: 5px 6px 15px 0px rgba(49,47,49,0.5);
text-shadow: 0 0 black;
}
.table .team-member-sm {
width: 32px;
-webkit-transition: all 0.25s ease;
-o-transition: all 0.25s ease;
-moz-transition: all 0.25s ease;
transition: all 0.25s ease;
}
.table .team-member {
position: relative;
width: 30px;
white-space: nowrap;
border-radius: 1000px;
vertical-align: bottom;
display: inline-block;
}
.table .order-list li img {
border: 2px solid #ffffff;
box-shadow: 4px 3px 6px 0 rgba(0,0,0,0.2);
}
.table .team-member img {
width: 100%;
max-width: 100%;
height: auto;
border: 0;
border-radius: 1000px;
}
.rounded-circle {
border-radius: 50% !important;
}
.table .order-list li+li {
margin-left: -14px;
background: transparent;
}
.avatar.avatar-sm {
font-size: 12px;
height: 30px;
width: 30px;
}
.avatar {
background: #6777ef;
border-radius: 50%;
color: #e3eaef;
display: inline-block;
font-size: 16px;
font-weight: 300;
margin: 0;
position: relative;
vertical-align: middle;
line-height: 1.28;
height: 45px;
width: 45px;
}
.table .order-list li .badge {
background: rgba(228,222,222,0.8);
color: #6b6f82;
margin-bottom: 6px;
}
.badge {
vertical-align: middle;
padding: 7px 12px;
font-weight: 600;
letter-spacing: 0.3px;
border-radius: 30px;
font-size: 12px;
}
.progress-bar {
display: -ms-flexbox;
display: -webkit-box;
display: flex;
-ms-flex-direction: column;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
-ms-flex-pack: center;
-webkit-box-pack: center;
justify-content: center;
overflow: hidden;
color: #fff;
text-align: center;
white-space: nowrap;
background-color: #007bff;
-webkit-transition: width .6s ease;
transition: width .6s ease;
}
.bg-success {
background-color: #54ca68 !important;
}
.bg-purple {
background-color: #9c27b0 !important;
color: #fff;
}
.bg-cyan {
background-color: #10cfbd !important;
color: #fff;
}
.bg-red {
background-color: #f44336 !important;
color: #fff;
}
.progress {
-webkit-box-shadow: 0 0.4rem 0.6rem rgba(0,0,0,0.15);
box-shadow: 0 0.4rem 0.6rem rgba(0,0,0,0.15);
}