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">
<div class="row">
<div class="col-xl-12">
<div class="card mb-3 card-body">
<div class="row align-items-center">
<div class="col-auto">
<a href="#!.html">
<img src="https://www.bootdey.com/image/280x280/FF00FF/000000" class="width-90 rounded-3" alt=""/>
</a>
</div>
<div class="col">
<div class="overflow-hidden flex-nowrap">
<h6 class="mb-1">
<a href="#!" class="text-reset">CRM dashboard landing page</a>
</h6>
<span class="text-muted d-block mb-2 small">
Updated 2 Hours Ago
</span>
<div class="row align-items-center">
<div class="col-12">
<div class="row align-items-center g-0">
<div class="col-auto">
<small class="me-2">45%</small>
</div>
<div class="col">
<div class="progress bg-tint-success" style={{/*height: 4px;*/}}>
<div class="progress-bar bg-success" role="progressbar" style={{/*width: 45%;*/}} aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card mb-3 card-body">
<div class="row align-items-center">
<div class="col-auto">
<a href="#!.html">
<img src="https://www.bootdey.com/image/280x280/6495ED/000000" class="width-90 rounded-3" alt=""/>
</a>
</div>
<div class="col">
<div class="overflow-hidden flex-nowrap">
<h6 class="mb-1">
<a href="#!" class="text-reset">CRM dashboard landing page</a>
</h6>
<span class="text-muted d-block mb-2 small">
Updated 2 Hours Ago
</span>
<div class="row align-items-center">
<div class="col-12">
<div class="row align-items-center g-0">
<div class="col-auto">
<small class="me-2">55%</small>
</div>
<div class="col">
<div class="progress bg-tint-success" style={{/*height: 4px;*/}}>
<div class="progress-bar bg-success" role="progressbar" style={{/*width: 55%;*/}} aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card mb-3 card-body">
<div class="row align-items-center">
<div class="col-auto">
<a href="#!.html">
<img src="https://www.bootdey.com/image/280x280/00FFFF/000000" class="width-90 rounded-3" alt=""/>
</a>
</div>
<div class="col">
<div class="overflow-hidden flex-nowrap">
<h6 class="mb-1">
<a href="#!" class="text-reset">CRM dashboard landing page</a>
</h6>
<span class="text-muted d-block mb-2 small">
Updated 2 Hours Ago
</span>
<div class="row align-items-center">
<div class="col-12">
<div class="row align-items-center g-0">
<div class="col-auto">
<small class="me-2">25%</small>
</div>
<div class="col">
<div class="progress bg-tint-success" style={{/*height: 4px;*/}}>
<div class="progress-bar bg-success" role="progressbar" style={{/*width: 25%;*/}} aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-12">
<div class="card mb-3 card-body">
<div class="row align-items-center">
<div class="col-auto">
<a href="#!.html">
<img src="https://www.bootdey.com/image/280x280/FFB6C1/000000" class="width-90 rounded-3" alt=""/>
</a>
</div>
<div class="col">
<div class="overflow-hidden flex-nowrap">
<h6 class="mb-1">
<a href="#!" class="text-reset">CRM dashboard landing page</a>
</h6>
<span class="text-muted d-block mb-2 small">
Updated 2 Hours Ago
</span>
<div class="row align-items-center">
<div class="col-12">
<div class="row align-items-center g-0">
<div class="col-auto">
<small class="me-2">65%</small>
</div>
<div class="col">
<div class="progress bg-tint-success" style={{/*height: 4px;*/}}>
<div class="progress-bar bg-success" role="progressbar" style={{/*width: 65%;*/}} aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</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{margin-top:20px;
background:#eee;
}
.card {
box-shadow: 0 20px 27px 0 rgb(0 0 0 / 5%);
}
.width-90 {
width: 90px!important;
}
.rounded-3 {
border-radius: 0.5rem !important;
}
a {
text-decoration:none;
}