Hello friends, welcome back to my blog. Today in this blog post, I am going to show you, Reactjs Bootstrap 4 Project Dashboard.
![Reactjs Bootstrap 4 Project Dashboard](https://vinova.sg/wp-content/uploads/2024/01/Reactjs-Bootstrap-4-Project-Dashboard-1024x679-1.png)
For reactjs new comers, please check the below link:
Reactjs Basic Tutorials
Friends now I proceed onwards and here is the working code snippet for Reactjs Bootstrap 4 Project Dashboard and please use this carefully to avoid the mistakes:
Table of Contents
1. Firstly, 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 reacttepmate cd reacttepmate 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 bootstrap --save npm start //For start project again
3. Finally for the main output, we need to add below code into our reacttemplate/src/App.js file or if you have fresh setup then you can replace reacttemplate/src/App.js file code with below code:
import React from 'react'; import './App.css'; import 'bootstrap/dist/css/bootstrap.min.css'; class Home extends React.Component { render() { return ( <div className="maincontainer"> <div class="container"> <div class="row"> <div class="col-xl-3 col-md-6"> <div class="card bg-pattern"> <div class="card-body"> <div class="float-right"> <i class="fa fa-archive text-primary h4 ml-3"></i> </div> <h5 class="font-size-20 mt-0 pt-1">24</h5> <p class="text-muted mb-0">Total Projects</p> </div> </div> </div> <div class="col-xl-3 col-md-6"> <div class="card bg-pattern"> <div class="card-body"> <div class="float-right"> <i class="fa fa-th text-primary h4 ml-3"></i> </div> <h5 class="font-size-20 mt-0 pt-1">18</h5> <p class="text-muted mb-0">Completed Projects</p> </div> </div> </div> <div class="col-xl-3 col-md-6"> <div class="card bg-pattern"> <div class="card-body"> <div class="float-right"> <i class="fa fa-file text-primary h4 ml-3"></i> </div> <h5 class="font-size-20 mt-0 pt-1">06</h5> <p class="text-muted mb-0">Pending Projects</p> </div> </div> </div> <div class="col-xl-3 col-md-6"> <div class="card"> <div class="card-body"> <form> <div class="form-group mb-0"> <label>Search</label> <div class="input-group mb-0"> <input type="text" class="form-control" placeholder="Search..." aria-describedby="project-search-addon" /> <div class="input-group-append"> <button class="btn btn-danger" type="button" id="project-search-addon"><i class="fa fa-search search-icon font-12"></i></button> </div> </div> </div> </form> </div> </div> </div> </div> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-body"> <div class="table-responsive project-list"> <table class="table project-table table-centered table-nowrap"> <thead> <tr> <th scope="col">#</th> <th scope="col">Projects</th> <th scope="col">Start Date</th> <th scope="col">Status</th> <th scope="col">Team</th> <th scope="col">Progress</th> <th scope="col">Action</th> </tr> </thead> <tbody> <tr> <th scope="row">1</th> <td>New admin Design</td> <td>02/5/2019</td> <td> <span class="text-success font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Completed</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Roger Drake"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar6.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Reggie James"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar7.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Gerald Mayberry"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar8.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">100%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-success" role="progressbar" style={{width: "100%"}} aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">2</th> <td>Landing page Design</td> <td>04/6/2019</td> <td> <span class="text-primary font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Pending</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Deborah Mixon"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar2.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Scott Jessie"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar1.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">78%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-primary" role="progressbar" style={{width: "78%"}} aria-valuenow="78" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">3</th> <td>Multipurpose Landing Template</td> <td>06/6/2019</td> <td> <span class="text-success font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Completed</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Neil Wing"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar3.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Stanley Barber"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar4.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Roger Drake"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar5.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Jack Krier"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar6.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">100%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-success" role="progressbar" style={{width: "100%"}} aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">4</th> <td>Blog Template Design</td> <td>07/5/2019</td> <td> <span class="text-success font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Completed</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Roger Drake"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar7.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Reggie James"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar8.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Gerald Mayberry"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar1.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">100%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-success" role="progressbar" style={{width: "100%"}} aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">5</th> <td>Brand logo design</td> <td>08/6/2019</td> <td> <span class="text-primary font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Pending</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Deborah Mixon"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar1.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Scott Jessie"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar2.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">54%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-primary" role="progressbar" style={{width: "54%"}} aria-valuenow="54" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">6</th> <td>Redesign - Landing page</td> <td>10/6/2019</td> <td> <span class="text-primary font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Pending</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Neil Wing"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar6.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Stanley Barber"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar5.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Roger Drake"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar4.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Jack Krier"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar3.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">41%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-primary" role="progressbar" style={{width: "41%"}} aria-valuenow="41" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">7</th> <td>Redesign - Dashboard</td> <td>12/5/2019</td> <td> <span class="text-success font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Completed</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Roger Drake"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar6.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Reggie James"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar7.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">100%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-success" role="progressbar" style={{width: "100%"}} aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">8</th> <td>Landing page Design</td> <td>13/6/2019</td> <td> <span class="text-primary font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Pending</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Deborah Mixon"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar2.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Scott Jessie"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar1.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">84%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-primary" role="progressbar" style={{width: "84%"}} aria-valuenow="84" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> <tr> <th scope="row">9</th> <td>Multipurpose Landing Template</td> <td>15/6/2019</td> <td> <span class="text-success font-12"><i class="mdi mdi-checkbox-blank-circle mr-1"></i> Completed</span> </td> <td> <div class="team"> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Neil Wing"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar4.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Stanley Barber"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar3.png" class="rounded-circle avatar-xs" alt="" /> </a> <a href="javascript: void(0);" class="team-member" data-toggle="tooltip" data-placement="top" title="" data-original-title="Roger Drake"> <img src="https://therichpost.com/wp-content/uploads/2021/03/avatar5.png" class="rounded-circle avatar-xs" alt="" /> </a> </div> </td> <td> <p class="mb-0">Progress<span class="float-right">100%</span></p> <div class="progress mt-2" style={{height: "5px"}}> <div class="progress-bar bg-success" role="progressbar" style={{width: "100%"}} aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div> </div> </td> <td> <div class="action"> <a href="#" class="text-success mr-4" data-toggle="tooltip" data-placement="top" title="" data-original-title="Edit"> <i class="fa fa-pencil h5 m-0"></i></a> <a href="#" class="text-danger" data-toggle="tooltip" data-placement="top" title="" data-original-title="Close"> <i class="fa fa fa-remove h5 m-0"></i></a> </div> </td> </tr> </tbody> </table> </div> <div class="pt-3"> <ul class="pagination justify-content-end mb-0"> <li class="page-item disabled"> <a class="page-link" href="#" tabindex="-1" aria-disabled="true">Previous</a> </li> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item active"><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="#">Next</a> </li> </ul> </div> </div> </div> </div> </div> </div> </div> ) }; } export default Home;
4. Now Friends we need to add below code into our reacttemplate/src/App.css file :
@import url("//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"); body{ background:#f3f3f3!important; margin-top:20px; color: #616f80; } .card { border: none; margin-bottom: 24px; -webkit-box-shadow: 0 0 13px 0 rgba(236,236,241,.44); box-shadow: 0 0 13px 0 rgba(236,236,241,.44); } .avatar-xs { height: 2.3rem; width: 2.3rem; }
Now we are done friends. If you have any kind of query or suggestion or any requirement then feel free to comment below.
Note: Friends, I just tell the basic setup and things, you can change the code according to your requirements.
I will appreciate that if you will tell your views for this post. Nothing matters if your views will be good or bad.
Jassa
Thanks
The post Reactjs Bootstrap 4 Project Dashboard appeared first on Therichpost.
This content was originally published here.