Hello friends, welcome back to my blog. Today this blog post I will tell you, Angular TailwindCSS Free Admin Dashboard Template.
Angular12 came and if you are new then you must check below two links:
Friends now I proceed onwards and here is the working code snippet and please use carefully this to avoid the mistakes:
1. Firstly friends we need fresh angular 12 setup and for this we need to run below commands but if you already have angular 12 setup then you can avoid below commands. Secondly we should also have latest node version installed on our system:
npm install -g @angular/cli ng new angularadmin //Create new Angular Project cd angularadmin // Go inside the Angular Project Folder
2. Now guy’s we need to add below code inside src/app/app.component.html file:
<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>
3. Now friends, please download zip(in this zip file there are css and js for angular dashboard template) file from below path and extract zip and please put all the zip file folders in “src/assets” folder(which we will get from zip file):
https://therichpost.com/tailwindCSS.zip
4. Now guys please add the below code inside src/index.html file to styles and fonts:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>Angular12demos</title> <base href="/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <!-- Tailwind is included --> <link rel="stylesheet" href="assets/css/main.css"> <!-- Scripts below are for demo only --> <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> <!-- 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> <app-root></app-root> </body> <script> </script> </html>
Friends in the end must run ng serve command into your terminal to run the angular 12 project (localhost:4200).
Guys click here to check the Angular 12 Bootstrap 5 Free Templates.
Now we are done friends. If you have any kind of query, suggestion and new requirement then feel free to comment below.
Note: Friends, In this post, 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 because with your views, I will make my next posts more good and helpful.
Jassa
Thanks
Recent Comments