Hello my friends, welcome back to my blog. Today in this blog post, I am going to show you, Reactjs TailwindCSS Free Admin Dashboard Template
![Reactjs TailwindCSS Free Admin Dashboard Template](https://therichpost.com/wp-content/uploads/2021/11/Reactjs-TailwindCSS-Free-Admin-Dashboard-Template-1024x511.png)
For react js new comers, please check the below links:
Friends now I proceed onwards and here is the working code snippet and please use this carefully to avoid the mistakes:
1. Firstly friends we need fresh reactjs setup and for that we need to run below commands into our terminal and also w should have latest node version installed on our system:
Guys you can skip this first step if you already have reactjs fresh setup:
npx create-react-app reacttemplate cd reacttemplate npm start // run the project
2. Now friends, please download zip(in this zip file there are js, css, fonts and images for landing template) file from below path and extract zip and get all the folders.
Create `assets` folder inside reacttemplate/public folder.
Now please put that folders(which we will get from zip file) in “reacttemplate/public/assets” folder.
https://therichpost.com/tailwindCSS.zip
3. Now friends please add below inside reacttemplate/public/index.html file:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="theme-color" content="#000000" /> <meta name="description" content="Web site created using create-react-app" /> <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> <!-- manifest.json provides metadata used when your web app is installed on a user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ --> <link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> <!-- Notice the use of %PUBLIC_URL% in the tags above. It will be replaced with the URL of the `public` folder during the build. Only files inside the `public` folder can be referenced from the HTML. Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will work correctly both with client-side routing and a non-root public URL. Learn how to configure a non-root public URL by running `npm run build`. --> <title>React App</title> <!-- Tailwind is included --> <link rel="stylesheet" href="assets/css/main.css"> <!-- Scripts below are for demo only --> <!-- Icons below are for demo only. Feel free to use any icon pack. Docs: https://bulma.io/documentation/elements/icon/ --> <link rel="stylesheet" href="https://cdn.materialdesignicons.com/4.9.95/css/materialdesignicons.min.css"> </head> <body > <noscript>You need to enable JavaScript to run this app.</noscript> <div id="root"></div> <!-- This HTML file is a template. If you open it directly in the browser, you will see an empty page. You can add webfonts, meta tags, or analytics to this file. The build step will place the bundled scripts into the <body> tag. To begin the development, run `npm start` or `yarn start`. To create a production bundle, use `npm run build` or `yarn build`. --> </body> <!-- Icons library --> <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js"></script> <script type="text/javascript" src="assets/js/chart.sample.min.js"></script> <script type="text/javascript" src="assets/js/main.min.js"></script> </html>
4. Finally friends we need to add below code into our reacttemplate/src/App.js file to get final output on web browser:
import React from 'react'; class App extends React.Component { render(){ return ( <div id="app"> <nav id="navbar-main" class="navbar is-fixed-top"> <div class="navbar-brand"> <a class="navbar-item mobile-aside-button"> <span class="icon"><i class="mdi mdi-forwardburger mdi-24px"></i></span> </a> <div class="navbar-item"> <div class="control"><input placeholder="Search everywhere..." class="input"/></div> </div> </div> <div class="navbar-brand is-right"> <a class="navbar-item --jb-navbar-menu-toggle" data-target="navbar-menu"> <span class="icon"><i class="mdi mdi-dots-vertical mdi-24px"></i></span> </a> </div> <div class="navbar-menu" id="navbar-menu"> <div class="navbar-end"> <div class="navbar-item dropdown has-divider"> <a class="navbar-link"> <span class="icon"><i class="mdi mdi-menu"></i></span> <span>Sample Menu</span> <span class="icon"> <i class="mdi mdi-chevron-down"></i> </span> </a> <div class="navbar-dropdown"> <a href="#" class="navbar-item"> <span class="icon"><i class="mdi mdi-account"></i></span> <span>My Profile</span> </a> <a class="navbar-item"> <span class="icon"><i class="mdi mdi-settings"></i></span> <span>Settings</span> </a> <a class="navbar-item"> <span class="icon"><i class="mdi mdi-email"></i></span> <span>Messages</span> </a> <hr class="navbar-divider" /> <a class="navbar-item"> <span class="icon"><i class="mdi mdi-logout"></i></span> <span>Log Out</span> </a> </div> </div> <div class="navbar-item dropdown has-divider has-user-avatar"> <a class="navbar-link"> <div class="user-avatar"> <img src="https://avatars.dicebear.com/v2/initials/john-doe.svg" alt="John Doe" class="rounded-full" /> </div> <div class="is-user-name"><span>Jassa</span></div> <span class="icon"><i class="mdi mdi-chevron-down"></i></span> </a> <div class="navbar-dropdown"> <a href="#" class="navbar-item"> <span class="icon"><i class="mdi mdi-account"></i></span> <span>My Profile</span> </a> <a class="navbar-item"> <span class="icon"><i class="mdi mdi-settings"></i></span> <span>Settings</span> </a> <a class="navbar-item"> <span class="icon"><i class="mdi mdi-email"></i></span> <span>Messages</span> </a> <hr class="navbar-divider" /> <a class="navbar-item"> <span class="icon"><i class="mdi mdi-logout"></i></span> <span>Log Out</span> </a> </div> </div> <a href="https://therichpost.com" class="navbar-item has-divider desktop-icon-only"> <span class="icon"><i class="mdi mdi-help-circle-outline"></i></span> <span>About</span> </a> <a href="https://therichpost.com" class="navbar-item has-divider desktop-icon-only"> <span class="icon"><i class="mdi mdi-github-circle"></i></span> <span>GitHub</span> </a> <a title="Log out" class="navbar-item desktop-icon-only"> <span class="icon"><i class="mdi mdi-logout"></i></span> <span>Log out</span> </a> </div> </div> </nav> <aside class="aside is-placed-left is-expanded"> <div class="aside-tools"> <div> Admin <b class="font-black">Jassa</b> </div> </div> <div class="menu is-menu-main"> <p class="menu-label">General</p> <ul class="menu-list"> <li class="active"> <a href="#"> <span class="icon"><i class="mdi mdi-desktop-mac"></i></span> <span class="menu-item-label">Dashboard</span> </a> </li> </ul> <p class="menu-label">Examples</p> <ul class="menu-list"> <li class="--set-active-tables-html"> <a href="#"> <span class="icon"><i class="mdi mdi-table"></i></span> <span class="menu-item-label">Tables</span> </a> </li> <li class="--set-active-forms-html"> <a href="#"> <span class="icon"><i class="mdi mdi-square-edit-outline"></i></span> <span class="menu-item-label">Forms</span> </a> </li> <li class="--set-active-profile-html"> <a href="#"> <span class="icon"><i class="mdi mdi-account-circle"></i></span> <span class="menu-item-label">Profile</span> </a> </li> <li> <a href="#"> <span class="icon"><i class="mdi mdi-lock"></i></span> <span class="menu-item-label">Login</span> </a> </li> <li> <a class="dropdown"> <span class="icon"><i class="mdi mdi-view-list"></i></span> <span class="menu-item-label">Submenus</span> <span class="icon"><i class="mdi mdi-plus"></i></span> </a> <ul> <li> <a href="#void"> <span>Sub-item One</span> </a> </li> <li> <a href="#void"> <span>Sub-item Two</span> </a> </li> </ul> </li> </ul> <p class="menu-label">About</p> <ul class="menu-list"> <li> <a href="https://therichpost.com" onclick="alert('Coming soon'); return false" target="_blank" class="has-icon"> <span class="icon"><i class="mdi mdi-credit-card-outline"></i></span> <span class="menu-item-label">Premium Demo</span> </a> </li> <li> <a href="https://therichpost.com" class="has-icon"> <span class="icon"><i class="mdi mdi-help-circle"></i></span> <span class="menu-item-label">About</span> </a> </li> <li> <a href="https://therichpost.com" class="has-icon"> <span class="icon"><i class="mdi mdi-github-circle"></i></span> <span class="menu-item-label">GitHub</span> </a> </li> </ul> </div> </aside> <section class="is-title-bar"> <div class="flex flex-col md:flex-row items-center justify-between space-y-6 md:space-y-0"> <ul> <li>Admin</li> <li>Dashboard</li> </ul> <a href="https://therichpost.com/" onclick="alert('Coming soon'); return false" target="_blank" class="button blue"> <span class="icon"><i class="mdi mdi-credit-card-outline"></i></span> <span>Premium Demo</span> </a> </div> </section> <section class="is-hero-bar"> <div class="flex flex-col md:flex-row items-center justify-between space-y-6 md:space-y-0"> <h1 class="title"> Dashboard </h1> <button class="button light">Button</button> </div> </section> <section class="section main-section"> <div class="grid gap-6 grid-cols-1 md:grid-cols-3 mb-6"> <div class="card"> <div class="card-content"> <div class="flex items-center justify-between"> <div class="widget-label"> <h3> Clients </h3> <h1> 512 </h1> </div> <span class="icon widget-icon text-green-500"><i class="mdi mdi-account-multiple mdi-48px"></i></span> </div> </div> </div> <div class="card"> <div class="card-content"> <div class="flex items-center justify-between"> <div class="widget-label"> <h3> Sales </h3> <h1> $7,770 </h1> </div> <span class="icon widget-icon text-blue-500"><i class="mdi mdi-cart-outline mdi-48px"></i></span> </div> </div> </div> <div class="card"> <div class="card-content"> <div class="flex items-center justify-between"> <div class="widget-label"> <h3> Performance </h3> <h1> 256% </h1> </div> <span class="icon widget-icon text-red-500"><i class="mdi mdi-finance mdi-48px"></i></span> </div> </div> </div> </div> <div class="card mb-6"> <header class="card-header"> <p class="card-header-title"> <span class="icon"><i class="mdi mdi-finance"></i></span> Performance </p> <a href="#" class="card-header-icon"> <span class="icon"><i class="mdi mdi-reload"></i></span> </a> </header> <div class="card-content"> <div class="chart-area"> <div class="h-full"> <div class="chartjs-size-monitor"> <div class="chartjs-size-monitor-expand"> <div></div> </div> <div class="chartjs-size-monitor-shrink"> <div></div> </div> </div> <canvas id="big-line-chart" width="2992" height="1000" class="chartjs-render-monitor block" style={{height: "400px", width: "1197px"}}></canvas> </div> </div> </div> </div> <div class="notification blue"> <div class="flex flex-col md:flex-row items-center justify-between space-y-3 md:space-y-0"> <div> <span class="icon"><i class="mdi mdi-buffer"></i></span> <b>Responsive table</b> </div> <button type="button" class="button small textual --jb-notification-dismiss">Dismiss</button> </div> </div> <div class="card has-table"> <header class="card-header"> <p class="card-header-title"> <span class="icon"><i class="mdi mdi-account-multiple"></i></span> Clients </p> <a href="#" class="card-header-icon"> <span class="icon"><i class="mdi mdi-reload"></i></span> </a> </header> <div class="card-content"> <table> <thead> <tr> <th></th> <th>Name</th> <th>Company</th> <th>City</th> <th>Progress</th> <th>Created</th> <th></th> </tr> </thead> <tbody> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/rebecca-bauch.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Rebecca Bauch</td> <td data-label="Company">Daugherty-Daniel</td> <td data-label="City">South Cory</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="79">79</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Oct 25, 2021">Oct 25, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/felicita-yundt.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Felicita Yundt</td> <td data-label="Company">Johns-Weissnat</td> <td data-label="City">East Ariel</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="67">67</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Jan 8, 2021">Jan 8, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/mr-larry-satterfield-v.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Mr. Larry Satterfield V</td> <td data-label="Company">Hyatt Ltd</td> <td data-label="City">Windlerburgh</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="16">16</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Dec 18, 2021">Dec 18, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/mr-broderick-kub.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Mr. Broderick Kub</td> <td data-label="Company">Kshlerin, Bauch and Ernser</td> <td data-label="City">New Kirstenport</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="71">71</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Sep 13, 2021">Sep 13, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/barry-weber.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Barry Weber</td> <td data-label="Company">Schulist, Mosciski and Heidenreich</td> <td data-label="City">East Violettestad</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="80">80</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Jul 24, 2021">Jul 24, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/bert-kautzer-md.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Bert Kautzer MD</td> <td data-label="Company">Gerhold and Sons</td> <td data-label="City">Mayeport</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="62">62</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Mar 30, 2021">Mar 30, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/lonzo-steuber.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Lonzo Steuber</td> <td data-label="Company">Skiles Ltd</td> <td data-label="City">Marilouville</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="17">17</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Feb 12, 2021">Feb 12, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/jonathon-hahn.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Jonathon Hahn</td> <td data-label="Company">Flatley Ltd</td> <td data-label="City">Billiemouth</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="74">74</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Dec 30, 2021">Dec 30, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/ryley-wuckert.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Ryley Wuckert</td> <td data-label="Company">Heller-Little</td> <td data-label="City">Emeraldtown</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="54">54</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Jun 28, 2021">Jun 28, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> <tr> <td class="image-cell"> <div class="image"> <img src="https://avatars.dicebear.com/v2/initials/sienna-hayes.svg" class="rounded-full" /> </div> </td> <td data-label="Name">Sienna Hayes</td> <td data-label="Company">Conn, Jerde and Douglas</td> <td data-label="City">Jonathanfort</td> <td data-label="Progress" class="progress-cell"> <progress max="100" value="55">55</progress> </td> <td data-label="Created"> <small class="text-gray-500" title="Mar 7, 2021">Mar 7, 2021</small> </td> <td class="actions-cell"> <div class="buttons right nowrap"> <button class="button small green --jb-modal" data-target="sample-modal-2" type="button"> <span class="icon"><i class="mdi mdi-eye"></i></span> </button> <button class="button small red --jb-modal" data-target="sample-modal" type="button"> <span class="icon"><i class="mdi mdi-trash-can"></i></span> </button> </div> </td> </tr> </tbody> </table> <div class="table-pagination"> <div class="flex items-center justify-between"> <div class="buttons"> <button type="button" class="button active">1</button> <button type="button" class="button">2</button> <button type="button" class="button">3</button> </div> <small>Page 1 of 3</small> </div> </div> </div> </div> </section> <footer class="footer"> <div class="flex flex-col md:flex-row items-center justify-between space-y-3 md:space-y-0"> <div class="flex items-center justify-start space-x-3"> <div> © 2021, therichpost.com </div> <div> <p>Distributed By: <a href="https://therichpost.com/" target="_blank">Therichpost</a></p> </div> <a href="https://therichpost.com" style={{height: "20px"}}> <img src="https://img.shields.io/github/v/release/justboil/admin-one-tailwind?color=%23999" /> </a> </div> </div> </footer> <div id="sample-modal" class="modal"> <div class="modal-background --jb-modal-close"></div> <div class="modal-card"> <header class="modal-card-head"> <p class="modal-card-title">Sample modal</p> </header> <section class="modal-card-body"> <p>Lorem ipsum dolor sit amet <b>adipiscing elit</b></p> <p>This is sample modal</p> </section> <footer class="modal-card-foot"> <button class="button --jb-modal-close">Cancel</button> <button class="button red --jb-modal-close">Confirm</button> </footer> </div> </div> <div id="sample-modal-2" class="modal"> <div class="modal-background --jb-modal-close"></div> <div class="modal-card"> <header class="modal-card-head"> <p class="modal-card-title">Sample modal</p> </header> <section class="modal-card-body"> <p>Lorem ipsum dolor sit amet <b>adipiscing elit</b></p> <p>This is sample modal</p> </section> <footer class="modal-card-foot"> <button class="button --jb-modal-close">Cancel</button> <button class="button blue --jb-modal-close">Confirm</button> </footer> </div> </div> </div> ); } } export default App;
Now we are done friends also and If you have any kind of query or suggestion or any requirement then feel free to comment below. Guys I will come with more React-Bootstrap free templates.
Note: Friends, I just tell the basic setup and things, you can change the code according to your requirements. For better understanding must watch video above.
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
Recent Comments