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="container bootstrap snippets bootdey">
<div class="table-responsive">
<table class="table colored-header datatable project-list">
<thead>
<tr>
<th>Title</th>
<th>Date Start</th>
<th>Days to Deadline</th>
<th>Progress</th>
<th>Priority</th>
<th>Leader</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="#/">Spot Media</a></td>
<td>18-05-2014</td>
<td>12 days</td>
<td>
<div class="progress">
<div class="progress-bar" data-transitiongoal="95" aria-valuenow="95" style={{/*width: 95%;*/}}>95%</div>
</div>
</td>
<td><span class="label label-warning">MEDIUM</span></td>
<td><img src="https://bootdey.com/img/Content/avatar/avatar1.png" alt="Avatar" class="avatar img-circle"/> <a href="#/">Michael</a></td>
<td><span class="label label-success">ACTIVE</span></td>
</tr>
<tr>
<td><a href="#/">E-Commerce Site</a></td>
<td>24-05-2014</td>
<td>30 days</td>
<td>
<div class="progress">
<div class="progress-bar" data-transitiongoal="40" aria-valuenow="40" style={{/*width: 40%;*/}}>40%</div>
</div>
</td>
<td><span class="label label-success">LOW</span></td>
<td><img src="https://bootdey.com/img/Content/avatar/avatar2.png" alt="Avatar" class="avatar img-circle"/> <a href="#/">Antonius</a></td>
<td><span class="label label-warning">PENDING</span></td>
</tr>
<tr>
<td><a href="#/">Project 123GO</a></td>
<td>20-09-2014</td>
<td>50 days</td>
<td>
<div class="progress">
<div class="progress-bar" data-transitiongoal="65" aria-valuenow="65" style={{/*width: 65%;*/}}>65%</div>
</div>
</td>
<td><span class="label label-danger">HIGH</span></td>
<td><img src="https://bootdey.com/img/Content/avatar/avatar3.png" alt="Avatar" class="avatar"/> <a href="#/">Antonius</a></td>
<td><span class="label label-success">ACTIVE</span></td>
</tr>
<tr>
<td><a href="#/">Wordpress Theme</a></td>
<td>05-10-2014</td>
<td>40 days</td>
<td>
<div class="progress">
<div class="progress-bar" data-transitiongoal="77" aria-valuenow="77" style={{/*width: 77%;*/}}>77%</div>
</div>
</td>
<td><span class="label label-warning">MEDIUM</span></td>
<td><img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="Avatar" class="avatar"/> <a href="#/">Michael</a></td>
<td><span class="label label-success">ACTIVE</span></td>
</tr>
<tr>
<td><a href="#/">Redesign Landing Page</a></td>
<td>15-11-2014</td>
<td>30 days</td>
<td>
<div class="progress">
<div class="progress-bar" data-transitiongoal="25" aria-valuenow="25" style={{/*width: 25%;*/}}>25%</div>
</div>
</td>
<td><span class="label label-success">LOW</span></td>
<td><img src="https://bootdey.com/img/Content/avatar/avatar4.png" alt="Avatar" class="avatar"/> <a href="#/">Jason</a></td>
<td><span class="label label-success">ACTIVE</span></td>
</tr>
<tr>
<td><a href="#/">Wordpress Theme</a></td>
<td>05-10-2014</td>
<td>N/A</td>
<td>
<div class="progress">
<div class="progress-bar progress-bar-default" data-transitiongoal="100" aria-valuenow="100" style={{/*width: 100%;*/}}>100%</div>
</div>
</td>
<td><span class="label label-default">MEDIUM</span></td>
<td><img src="https://bootdey.com/img/Content/avatar/avatar6.png" alt="Avatar" class="avatar"/> <a href="#/">Michael</a></td>
<td><span class="label label-default">CLOSED</span></td>
</tr>
<tr>
<td><a href="#/">Redesign Landing Page</a></td>
<td>15-11-2014</td>
<td>30 days</td>
<td>
<div class="progress">
<div class="progress-bar" data-transitiongoal="33" aria-valuenow="33" style={{/*width: 33%;*/}}>33%</div>
</div>
</td>
<td><span class="label label-success">LOW</span></td>
<td><img src="https://bootdey.com/img/Content/avatar/avatar7.png" alt="Avatar" class="avatar"/> <a href="#/">Jason</a></td>
<td><span class="label label-warning">PENDING</span></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
);
}
export default App;
4. Now we need to add below code into our my-awesome-project/src/App.css file :
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 13px;
color: #555;
background: #ececec;
margin-top:20px;
}
.project-list > tbody > tr > td {
padding: 12px 8px;
}
.project-list > tbody > tr > td .avatar {
width: 22px;
border: 1px solid #CCC;
}