Blog

  • Angular 17 PrimeNG Steps(Stepper) Working Example

    Angular 17 PrimeNG Steps(Stepper) Working Example

    Hello friends, welcome back to my blog. Today this blog post will tell you, Angular 17 PrimeNG Steps(Stepper) Working Example.

    Guys first I was installing PrimeNg with normal Angular 17 with standalone true but PrimeNg did not support Angular 17 so I installed new Angular 17 project with standalone false + ssr false then PrimeNg worked fine and below please check complete working tutorial.


    Live Demo

    Angular 17 PrimeNG Steps(Stepper) Working Example
    Angular 17 PrimeNG Steps(Stepper) Working Example

    Angular 17 and Bootstrap 5 came and if you are new then you must check below two links:

    1. Angular 17 Basic Tutorials
    2. PrimeNG
    3. Bootstrap 5

    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 17 setup and for this we need to run below commands but if you already have angular 17 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 angularprimeng --standalone false --ssr false //Create new Angular Project 
    
    cd angularprimeng // Go inside the Angular Project Folder

    2. Now friends we need to run below commands into our project terminal to install primeng modules into our angular application:

    npm install primeng --save
    
    npm install primeicons --save 
    
    npm install @angular/cdk --save
    

    3. Now friends we just need to add below code into angularprimeng/src/app/app.component.html file to get final out on the web browser:

    <p-toast></p-toast>
    
    <h3 class="first">Basic</h3>
    <p-steps [model]="items"></p-steps>
    
    <h3>Clickable</h3>
    <p-steps [model]="items" [(activeIndex)]="activeIndex" [readonly]="false"></p-steps>

    4. Now friends we just need to add below code into angularprimeng/angular.json file:

     "styles": [
                  "src/styles.css",
                  "node_modules/primeng/resources/themes/saga-blue/theme.css",
                  "node_modules/primeng/resources/primeng.min.css",
                  "node_modules/primeflex/primeflex.css",
                  "node_modules/primeicons/primeicons.css",
                ],
    ...

    5. Now friends we just need to add below code into angularprimeng/src/app/app.component.ts file:

    import { Component,OnInit,ViewEncapsulation } from '@angular/core';
    import {MenuItem} from 'primeng/api';
    import {MessageService} from 'primeng/api';
    
    @Component({
      selector: 'app-root',
      templateUrl: './app.component.html',
        providers: [MessageService],
        styles: [`
            .ui-steps .ui-steps-item {
                width: 25%;
            }
            
            .ui-steps.steps-custom {
                margin-bottom: 30px;
            }
            
            .ui-steps.steps-custom .ui-steps-item .ui-menuitem-link {
                padding: 0 1em;
                overflow: visible;
            }
            
            .ui-steps.steps-custom .ui-steps-item .ui-steps-number {
                background-color: #0081c2;
                color: #FFFFFF;
                display: inline-block;
                width: 36px;
                border-radius: 50%;
                margin-top: -14px;
                margin-bottom: 10px;
            }
            
            .ui-steps.steps-custom .ui-steps-item .ui-steps-title {
                color: #555555;
            }
        `],
        encapsulation: ViewEncapsulation.None
    })
    export class AppComponent { 
      items: MenuItem[] = [];
        
        activeIndex: number = 1;
        
        constructor(private messageService: MessageService) {}
    
        ngOnInit() {
            this.items = [{
                    label: 'Personal',
                    command: (event: any) => {
                        this.activeIndex = 0;
                        this.messageService.add({severity:'info', summary:'First Step', detail: event.item.label});
                    }
                },
                {
                    label: 'Seat',
                    command: (event: any) => {
                        this.activeIndex = 1;
                        this.messageService.add({severity:'info', summary:'Seat Selection', detail: event.item.label});
                    }
                },
                {
                    label: 'Payment',
                    command: (event: any) => {
                        this.activeIndex = 2;
                        this.messageService.add({severity:'info', summary:'Pay with CC', detail: event.item.label});
                    }
                },
                {
                    label: 'Confirmation',
                    command: (event: any) => {
                        this.activeIndex = 3;
                        this.messageService.add({severity:'info', summary:'Last Step', detail: event.item.label});
                    }
                }
            ];
        }    
    }
    

    6. Now friends we just need to add below code into angularprimeng/src/app/app.module.ts file:

    import { NgModule } from '@angular/core';
    import { BrowserModule } from '@angular/platform-browser';
    
    import { AppRoutingModule } from './app-routing.module';
    import { AppComponent } from './app.component';
    import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
    
    import { ButtonModule } from 'primeng/button';
    import { StepsModule } from 'primeng/steps';
    import { ToastModule } from 'primeng/toast';
    @NgModule({
      declarations: [
        AppComponent
      ],
      imports: [
        BrowserModule,
        AppRoutingModule,
        BrowserAnimationsModule,
       
        ButtonModule,
        StepsModule,
        ToastModule
      ],
      providers: [],
      bootstrap: [AppComponent]
    })
    export class AppModule { }
    

    Friends in the end must run ng serve command into your terminal to run the angular 17 project.

    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

  • Free Bootstrap 5 Admin Dashboard Template 28

    Free Bootstrap 5 Admin Dashboard Template 28

    Hello guys how are you? Welcome back on my blog Therichpost. Today in this post I am going to share Free Bootstrap 5 Admin Dashboard Template 28.

    Live working demo

    1. Guys here the git repo link for Inventory Management Admin Dashboard from where we will get css, images, fonts and js:

    Free Admin Dashboard

    2. Guys here is the index.html file code:

    <!DOCTYPE html>
    <html lang="en">
      <head>
        <!-- Required meta tags -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
        <title>Purple Admin</title>
        <!-- plugins:css -->
        <link rel="stylesheet" href="css/materialdesignicons.min.css">
        <link rel="stylesheet" href="css/vendor.bundle.base.css">
        <!-- endinject -->
        <!-- Plugin css for this page -->
        <!-- End plugin css for this page -->
        <!-- inject:css -->
        <!-- endinject -->
        <!-- Layout styles -->
        <link rel="stylesheet" href="css/style.css">
        <!-- End layout styles -->
        <link rel="shortcut icon" href="images/favicon.ico" />
      </head>
      <body>
        <div class="container-scroller">
          <div class="row p-0 m-0 proBanner" id="proBanner">
            <div class="col-md-12 p-0 m-0">
              <div class="card-body card-body-padding d-flex align-items-center justify-content-between">
                <div class="ps-lg-1">
                  <div class="d-flex align-items-center justify-content-between">
                    <p class="mb-0 font-weight-medium mr-3 buy-now-text">Free 24/7 customer support, updates, and more with this template!</p>
                    <a href="https://therichpost.com/" target="_blank" class="btn mr-2 buy-now-btn border-0">Get Pro</a>
                  </div>
                </div>
                <div class="d-flex align-items-center justify-content-between">
                  <a href="v"><i class="mdi mdi-home mr-3 text-white"></i></a>
                  <button id="bannerClose" class="btn border-0 p-0">
                    <i class="mdi mdi-close text-white mr-0"></i>
                  </button>
                </div>
              </div>
            </div>
          </div>
          <!-- partial:partials/_navbar.html -->
          <nav class="navbar default-layout-navbar col-lg-12 col-12 p-0 fixed-top d-flex flex-row">
            <div class="text-center navbar-brand-wrapper d-flex align-items-center justify-content-center">
              <a class="navbar-brand brand-logo" href="https://therichpost.com/"><img src="images/logo.svg" alt="logo" /></a>
              <a class="navbar-brand brand-logo-mini" href="https://therichpost.com/"><img src="images/logo-mini.svg" alt="logo" /></a>
            </div>
            <div class="navbar-menu-wrapper d-flex align-items-stretch">
              <button class="navbar-toggler navbar-toggler align-self-center" type="button" data-toggle="minimize">
                <span class="mdi mdi-menu"></span>
              </button>
              <div class="search-field d-none d-md-block">
                <form class="d-flex align-items-center h-100" action="#">
                  <div class="input-group">
                    <div class="input-group-prepend bg-transparent">
                      <i class="input-group-text border-0 mdi mdi-magnify"></i>
                    </div>
                    <input type="text" class="form-control bg-transparent border-0" placeholder="Search projects">
                  </div>
                </form>
              </div>
              <ul class="navbar-nav navbar-nav-right">
                <li class="nav-item nav-profile dropdown">
                  <a class="nav-link dropdown-toggle" id="profileDropdown" href="#" data-toggle="dropdown" aria-expanded="false">
                    <div class="nav-profile-img">
                      <img src="images/face1.jpg" alt="image">
                      <span class="availability-status online"></span>
                    </div>
                    <div class="nav-profile-text">
                      <p class="mb-1 text-black">David Greymaax</p>
                    </div>
                  </a>
                  <div class="dropdown-menu navbar-dropdown" aria-labelledby="profileDropdown">
                    <a class="dropdown-item" href="#">
                      <i class="mdi mdi-cached mr-2 text-success"></i> Activity Log </a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item" href="#">
                      <i class="mdi mdi-logout mr-2 text-primary"></i> Signout </a>
                  </div>
                </li>
                <li class="nav-item d-none d-lg-block full-screen-link">
                  <a class="nav-link">
                    <i class="mdi mdi-fullscreen" id="fullscreen-button"></i>
                  </a>
                </li>
                <li class="nav-item dropdown">
                  <a class="nav-link count-indicator dropdown-toggle" id="messageDropdown" href="#" data-toggle="dropdown" aria-expanded="false">
                    <i class="mdi mdi-email-outline"></i>
                    <span class="count-symbol bg-warning"></span>
                  </a>
                  <div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="messageDropdown">
                    <h6 class="p-3 mb-0">Messages</h6>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item preview-item">
                      <div class="preview-thumbnail">
                        <img src="images/face4.jpg" alt="image" class="profile-pic">
                      </div>
                      <div class="preview-item-content d-flex align-items-start flex-column justify-content-center">
                        <h6 class="preview-subject ellipsis mb-1 font-weight-normal">Mark send you a message</h6>
                        <p class="text-gray mb-0"> 1 Minutes ago </p>
                      </div>
                    </a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item preview-item">
                      <div class="preview-thumbnail">
                        <img src="images/face2.jpg" alt="image" class="profile-pic">
                      </div>
                      <div class="preview-item-content d-flex align-items-start flex-column justify-content-center">
                        <h6 class="preview-subject ellipsis mb-1 font-weight-normal">Cregh send you a message</h6>
                        <p class="text-gray mb-0"> 15 Minutes ago </p>
                      </div>
                    </a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item preview-item">
                      <div class="preview-thumbnail">
                        <img src="images/face3.jpg" alt="image" class="profile-pic">
                      </div>
                      <div class="preview-item-content d-flex align-items-start flex-column justify-content-center">
                        <h6 class="preview-subject ellipsis mb-1 font-weight-normal">Profile picture updated</h6>
                        <p class="text-gray mb-0"> 18 Minutes ago </p>
                      </div>
                    </a>
                    <div class="dropdown-divider"></div>
                    <h6 class="p-3 mb-0 text-center">4 new messages</h6>
                  </div>
                </li>
                <li class="nav-item dropdown">
                  <a class="nav-link count-indicator dropdown-toggle" id="notificationDropdown" href="#" data-toggle="dropdown">
                    <i class="mdi mdi-bell-outline"></i>
                    <span class="count-symbol bg-danger"></span>
                  </a>
                  <div class="dropdown-menu dropdown-menu-right navbar-dropdown preview-list" aria-labelledby="notificationDropdown">
                    <h6 class="p-3 mb-0">Notifications</h6>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item preview-item">
                      <div class="preview-thumbnail">
                        <div class="preview-icon bg-success">
                          <i class="mdi mdi-calendar"></i>
                        </div>
                      </div>
                      <div class="preview-item-content d-flex align-items-start flex-column justify-content-center">
                        <h6 class="preview-subject font-weight-normal mb-1">Event today</h6>
                        <p class="text-gray ellipsis mb-0"> Just a reminder that you have an event today </p>
                      </div>
                    </a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item preview-item">
                      <div class="preview-thumbnail">
                        <div class="preview-icon bg-warning">
                          <i class="mdi mdi-settings"></i>
                        </div>
                      </div>
                      <div class="preview-item-content d-flex align-items-start flex-column justify-content-center">
                        <h6 class="preview-subject font-weight-normal mb-1">Settings</h6>
                        <p class="text-gray ellipsis mb-0"> Update dashboard </p>
                      </div>
                    </a>
                    <div class="dropdown-divider"></div>
                    <a class="dropdown-item preview-item">
                      <div class="preview-thumbnail">
                        <div class="preview-icon bg-info">
                          <i class="mdi mdi-link-variant"></i>
                        </div>
                      </div>
                      <div class="preview-item-content d-flex align-items-start flex-column justify-content-center">
                        <h6 class="preview-subject font-weight-normal mb-1">Launch Admin</h6>
                        <p class="text-gray ellipsis mb-0"> New admin wow! </p>
                      </div>
                    </a>
                    <div class="dropdown-divider"></div>
                    <h6 class="p-3 mb-0 text-center">See all notifications</h6>
                  </div>
                </li>
                <li class="nav-item nav-logout d-none d-lg-block">
                  <a class="nav-link" href="#">
                    <i class="mdi mdi-power"></i>
                  </a>
                </li>
                <li class="nav-item nav-settings d-none d-lg-block">
                  <a class="nav-link" href="#">
                    <i class="mdi mdi-format-line-spacing"></i>
                  </a>
                </li>
              </ul>
              <button class="navbar-toggler navbar-toggler-right d-lg-none align-self-center" type="button" data-toggle="offcanvas">
                <span class="mdi mdi-menu"></span>
              </button>
            </div>
          </nav>
          <!-- partial -->
          <div class="container-fluid page-body-wrapper">
            <!-- partial:partials/_sidebar.html -->
            <nav class="sidebar sidebar-offcanvas" id="sidebar">
              <ul class="nav">
                <li class="nav-item nav-profile">
                  <a href="#" class="nav-link">
                    <div class="nav-profile-image">
                      <img src="images/face1.jpg" alt="profile">
                      <span class="login-status online"></span>
                      <!--change to offline or busy as needed-->
                    </div>
                    <div class="nav-profile-text d-flex flex-column">
                      <span class="font-weight-bold mb-2">David Grey. H</span>
                      <span class="text-secondary text-small">Project Manager</span>
                    </div>
                    <i class="mdi mdi-bookmark-check text-success nav-profile-badge"></i>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="https://therichpost.com/">
                    <span class="menu-title">Dashboard</span>
                    <i class="mdi mdi-home menu-icon"></i>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" data-toggle="collapse" href="#ui-basic" aria-expanded="false" aria-controls="ui-basic">
                    <span class="menu-title">Basic UI Elements</span>
                    <i class="menu-arrow"></i>
                    <i class="mdi mdi-crosshairs-gps menu-icon"></i>
                  </a>
                  <div class="collapse" id="ui-basic">
                    <ul class="nav flex-column sub-menu">
                      <li class="nav-item"> <a class="nav-link" href="https://therichpost.com/">Buttons</a></li>
                      <li class="nav-item"> <a class="nav-link" href="https://therichpost.com/">Typography</a></li>
                    </ul>
                  </div>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="https://therichpost.com/">
                    <span class="menu-title">Icons</span>
                    <i class="mdi mdi-contacts menu-icon"></i>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="https://therichpost.com/">
                    <span class="menu-title">Forms</span>
                    <i class="mdi mdi-format-list-bulleted menu-icon"></i>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="https://therichpost.com/">
                    <span class="menu-title">Charts</span>
                    <i class="mdi mdi-chart-bar menu-icon"></i>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" href="v">
                    <span class="menu-title">Tables</span>
                    <i class="mdi mdi-table-large menu-icon"></i>
                  </a>
                </li>
                <li class="nav-item">
                  <a class="nav-link" data-toggle="collapse" href="#general-pages" aria-expanded="false" aria-controls="general-pages">
                    <span class="menu-title">Sample Pages</span>
                    <i class="menu-arrow"></i>
                    <i class="mdi mdi-medical-bag menu-icon"></i>
                  </a>
                  <div class="collapse" id="general-pages">
                    <ul class="nav flex-column sub-menu">
                      <li class="nav-item"> <a class="nav-link" href="https://therichpost.com/"> Blank Page </a></li>
                      <li class="nav-item"> <a class="nav-link" href="https://therichpost.com/"> Login </a></li>
                      <li class="nav-item"> <a class="nav-link" href="https://therichpost.com/"> Register </a></li>
                      <li class="nav-item"> <a class="nav-link" href="https://therichpost.com/"> 404 </a></li>
                      <li class="nav-item"> <a class="nav-link" href="https://therichpost.com/"> 500 </a></li>
                    </ul>
                  </div>
                </li>
                <li class="nav-item sidebar-actions">
                  <span class="nav-link">
                    <div class="border-bottom">
                      <h6 class="font-weight-normal mb-3">Projects</h6>
                    </div>
                    <button class="btn btn-block btn-lg btn-gradient-primary mt-4">+ Add a project</button>
                    <div class="mt-4">
                      <div class="border-bottom">
                        <p class="text-secondary">Categories</p>
                      </div>
                      <ul class="gradient-bullet-list mt-4">
                        <li>Free</li>
                        <li>Pro</li>
                      </ul>
                    </div>
                  </span>
                </li>
              </ul>
            </nav>
            <!-- partial -->
            <div class="main-panel">
              <div class="content-wrapper">
                <div class="page-header">
                  <h3 class="page-title">
                    <span class="page-title-icon bg-gradient-primary text-white mr-2">
                      <i class="mdi mdi-home"></i>
                    </span> Dashboard
                  </h3>
                  <nav aria-label="breadcrumb">
                    <ul class="breadcrumb">
                      <li class="breadcrumb-item active" aria-current="page">
                        <span></span>Overview <i class="mdi mdi-alert-circle-outline icon-sm text-primary align-middle"></i>
                      </li>
                    </ul>
                  </nav>
                </div>
                <div class="row">
                  <div class="col-md-4 stretch-card grid-margin">
                    <div class="card bg-gradient-danger card-img-holder text-white">
                      <div class="card-body">
                        <img src="images/circle.svg" class="card-img-absolute" alt="circle-image" />
                        <h4 class="font-weight-normal mb-3">Weekly Sales <i class="mdi mdi-chart-line mdi-24px float-right"></i>
                        </h4>
                        <h2 class="mb-5">$ 15,0000</h2>
                        <h6 class="card-text">Increased by 60%</h6>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-4 stretch-card grid-margin">
                    <div class="card bg-gradient-info card-img-holder text-white">
                      <div class="card-body">
                        <img src="images/circle.svg" class="card-img-absolute" alt="circle-image" />
                        <h4 class="font-weight-normal mb-3">Weekly Orders <i class="mdi mdi-bookmark-outline mdi-24px float-right"></i>
                        </h4>
                        <h2 class="mb-5">45,6334</h2>
                        <h6 class="card-text">Decreased by 10%</h6>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-4 stretch-card grid-margin">
                    <div class="card bg-gradient-success card-img-holder text-white">
                      <div class="card-body">
                        <img src="images/circle.svg" class="card-img-absolute" alt="circle-image" />
                        <h4 class="font-weight-normal mb-3">Visitors Online <i class="mdi mdi-diamond mdi-24px float-right"></i>
                        </h4>
                        <h2 class="mb-5">95,5741</h2>
                        <h6 class="card-text">Increased by 5%</h6>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-md-7 grid-margin stretch-card">
                    <div class="card">
                      <div class="card-body">
                        <div class="clearfix">
                          <h4 class="card-title float-left">Visit And Sales Statistics</h4>
                          <div id="visit-sale-chart-legend" class="rounded-legend legend-horizontal legend-top-right float-right"></div>
                        </div>
                        <canvas id="visit-sale-chart" class="mt-4"></canvas>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-5 grid-margin stretch-card">
                    <div class="card">
                      <div class="card-body">
                        <h4 class="card-title">Traffic Sources</h4>
                        <canvas id="traffic-chart"></canvas>
                        <div id="traffic-chart-legend" class="rounded-legend legend-vertical legend-bottom-left pt-4"></div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-12 grid-margin">
                    <div class="card">
                      <div class="card-body">
                        <h4 class="card-title">Recent Tickets</h4>
                        <div class="table-responsive">
                          <table class="table">
                            <thead>
                              <tr>
                                <th> Assignee </th>
                                <th> Subject </th>
                                <th> Status </th>
                                <th> Last Update </th>
                                <th> Tracking ID </th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td>
                                  <img src="images/face1.jpg" class="mr-2" alt="image"> David Grey
                                </td>
                                <td> Fund is not recieved </td>
                                <td>
                                  <label class="badge badge-gradient-success">DONE</label>
                                </td>
                                <td> Dec 5, 2017 </td>
                                <td> WD-12345 </td>
                              </tr>
                              <tr>
                                <td>
                                  <img src="images/face2.jpg" class="mr-2" alt="image"> Stella Johnson
                                </td>
                                <td> High loading time </td>
                                <td>
                                  <label class="badge badge-gradient-warning">PROGRESS</label>
                                </td>
                                <td> Dec 12, 2017 </td>
                                <td> WD-12346 </td>
                              </tr>
                              <tr>
                                <td>
                                  <img src="images/face3.jpg" class="mr-2" alt="image"> Marina Michel
                                </td>
                                <td> Website down for one week </td>
                                <td>
                                  <label class="badge badge-gradient-info">ON HOLD</label>
                                </td>
                                <td> Dec 16, 2017 </td>
                                <td> WD-12347 </td>
                              </tr>
                              <tr>
                                <td>
                                  <img src="images/face4.jpg" class="mr-2" alt="image"> John Doe
                                </td>
                                <td> Loosing control on server </td>
                                <td>
                                  <label class="badge badge-gradient-danger">REJECTED</label>
                                </td>
                                <td> Dec 3, 2017 </td>
                                <td> WD-12348 </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-12 grid-margin stretch-card">
                    <div class="card">
                      <div class="card-body">
                        <h4 class="card-title">Recent Updates</h4>
                        <div class="d-flex">
                          <div class="d-flex align-items-center mr-4 text-muted font-weight-light">
                            <i class="mdi mdi-account-outline icon-sm mr-2"></i>
                            <span>jack Menqu</span>
                          </div>
                          <div class="d-flex align-items-center text-muted font-weight-light">
                            <i class="mdi mdi-clock icon-sm mr-2"></i>
                            <span>October 3rd, 2018</span>
                          </div>
                        </div>
                        <div class="row mt-3">
                          <div class="col-6 pr-1">
                            <img src="images/img_1.jpg" class="mb-2 mw-100 w-100 rounded" alt="image">
                            <img src="images/img_4.jpg" class="mw-100 w-100 rounded" alt="image">
                          </div>
                          <div class="col-6 pl-1">
                            <img src="images/img_2.jpg" class="mb-2 mw-100 w-100 rounded" alt="image">
                            <img src="images/img_3.jpg" class="mw-100 w-100 rounded" alt="image">
                          </div>
                        </div>
                        <div class="d-flex mt-5 align-items-top">
                          <img src="images/face3.jpg" class="img-sm rounded-circle mr-3" alt="image">
                          <div class="mb-0 flex-grow">
                            <h5 class="mr-2 mb-2">School Website - Authentication Module.</h5>
                            <p class="mb-0 font-weight-light">It is a long established fact that a reader will be distracted by the readable content of a page.</p>
                          </div>
                          <div class="ml-auto">
                            <i class="mdi mdi-heart-outline text-muted"></i>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="row">
                  <div class="col-md-7 grid-margin stretch-card">
                    <div class="card">
                      <div class="card-body">
                        <h4 class="card-title">Project Status</h4>
                        <div class="table-responsive">
                          <table class="table">
                            <thead>
                              <tr>
                                <th> # </th>
                                <th> Name </th>
                                <th> Due Date </th>
                                <th> Progress </th>
                              </tr>
                            </thead>
                            <tbody>
                              <tr>
                                <td> 1 </td>
                                <td> Herman Beck </td>
                                <td> May 15, 2015 </td>
                                <td>
                                  <div class="progress">
                                    <div class="progress-bar bg-gradient-success" role="progressbar" style="width: 25%" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td> 2 </td>
                                <td> Messsy Adam </td>
                                <td> Jul 01, 2015 </td>
                                <td>
                                  <div class="progress">
                                    <div class="progress-bar bg-gradient-danger" role="progressbar" style="width: 75%" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td> 3 </td>
                                <td> John Richards </td>
                                <td> Apr 12, 2015 </td>
                                <td>
                                  <div class="progress">
                                    <div class="progress-bar bg-gradient-warning" role="progressbar" style="width: 90%" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td> 4 </td>
                                <td> Peter Meggik </td>
                                <td> May 15, 2015 </td>
                                <td>
                                  <div class="progress">
                                    <div class="progress-bar bg-gradient-primary" role="progressbar" style="width: 50%" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td> 5 </td>
                                <td> Edward </td>
                                <td> May 03, 2015 </td>
                                <td>
                                  <div class="progress">
                                    <div class="progress-bar bg-gradient-danger" role="progressbar" style="width: 35%" aria-valuenow="35" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                </td>
                              </tr>
                              <tr>
                                <td> 5 </td>
                                <td> Ronald </td>
                                <td> Jun 05, 2015 </td>
                                <td>
                                  <div class="progress">
                                    <div class="progress-bar bg-gradient-info" role="progressbar" style="width: 65%" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100"></div>
                                  </div>
                                </td>
                              </tr>
                            </tbody>
                          </table>
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="col-md-5 grid-margin stretch-card">
                    <div class="card">
                      <div class="card-body">
                        <h4 class="card-title text-white">Todo</h4>
                        <div class="add-items d-flex">
                          <input type="text" class="form-control todo-list-input" placeholder="What do you need to do today?">
                          <button class="add btn btn-gradient-primary font-weight-bold todo-list-add-btn" id="add-task">Add</button>
                        </div>
                        <div class="list-wrapper">
                          <ul class="d-flex flex-column-reverse todo-list todo-list-custom">
                            <li>
                              <div class="form-check">
                                <label class="form-check-label">
                                  <input class="checkbox" type="checkbox"> Meeting with Alisa </label>
                              </div>
                              <i class="remove mdi mdi-close-circle-outline"></i>
                            </li>
                            <li class="completed">
                              <div class="form-check">
                                <label class="form-check-label">
                                  <input class="checkbox" type="checkbox" checked> Call John </label>
                              </div>
                              <i class="remove mdi mdi-close-circle-outline"></i>
                            </li>
                            <li>
                              <div class="form-check">
                                <label class="form-check-label">
                                  <input class="checkbox" type="checkbox"> Create invoice </label>
                              </div>
                              <i class="remove mdi mdi-close-circle-outline"></i>
                            </li>
                            <li>
                              <div class="form-check">
                                <label class="form-check-label">
                                  <input class="checkbox" type="checkbox"> Print Statements </label>
                              </div>
                              <i class="remove mdi mdi-close-circle-outline"></i>
                            </li>
                            <li class="completed">
                              <div class="form-check">
                                <label class="form-check-label">
                                  <input class="checkbox" type="checkbox" checked> Prepare for presentation </label>
                              </div>
                              <i class="remove mdi mdi-close-circle-outline"></i>
                            </li>
                            <li>
                              <div class="form-check">
                                <label class="form-check-label">
                                  <input class="checkbox" type="checkbox"> Pick up kids from school </label>
                              </div>
                              <i class="remove mdi mdi-close-circle-outline"></i>
                            </li>
                          </ul>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <!-- content-wrapper ends -->
              <!-- partial:partials/_footer.html -->
              <footer class="footer">
                <div class="container-fluid clearfix">
                  <span class="text-muted d-block text-center text-sm-left d-sm-inline-block">therichpost.com 2023</span>
                </div>
              </footer>
              <!-- partial -->
            </div>
            <!-- main-panel ends -->
          </div>
          <!-- page-body-wrapper ends -->
        </div>
        <!-- container-scroller -->
        <!-- plugins:js -->
        <script src="js/vendor.bundle.base.js"></script>
        <!-- endinject -->
        <!-- Plugin js for this page -->
        <script src="js/Chart.min.js"></script>
        <script src="js/jquery.cookie.js" type="text/javascript"></script>
        <!-- End plugin js for this page -->
        <!-- inject:js -->
        <script src="js/off-canvas.js"></script>
        <script src="js/hoverable-collapse.js"></script>
        <script src="js/misc.js"></script>
        <!-- endinject -->
        <!-- Custom js for this page -->
        <script src="js/dashboard.js"></script>
        <script src="js/todolist.js"></script>
        <!-- End custom js for this page -->
      </body>
    </html>

    Guys for more Admin and Bootstrap 5 templates please click this link : Free Templates

    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.

  • Angular 17 PrimeNG Data Table with Export to Excel Working Demo

    Angular 17 PrimeNG Data Table with Export to Excel Working Demo

    Hello friends, welcome back to my blog. Today this blog post will tell you, Angular 17 PrimeNG Data Table with Export to Excel Working Demo.

    Guys first I was installing PrimeNg with normal Angular 17 with standalone true but PrimeNg did not support Angular 17 so I installed new Angular 17 project with standalone false + ssr false then PrimeNg worked fine and below please check complete working tutorial.


    PrimeNG Data Table with Excel Button

    Angular 17 PrimeNG Data Table with Export to Excel Working Demo
    Angular 17 PrimeNG Data Table with Export to Excel Working Demo

    Angular 17 and Bootstrap 5 came and if you are new then you must check below two links:

    1. Angular 17 Basic Tutorials
    2. PrimeNG
    3. Bootstrap 5

    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 17 setup and for this we need to run below commands but if you already have angular 17 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 angularprimeng --standalone false --ssr false //Create new Angular Project 
    
    cd angularprimeng // Go inside the Angular Project Folder

    2. Now friends we need to run below commands into our project terminal to install primeng and excel file save modules into our angular application:

    npm install primeng --save
    
    npm install primeicons --save 
    
    npm install @angular/cdk --save
    
    npm i file-saver
    
    npm i xlsx
    
    npm install primeflex --save //for flex layout

    3. Now friends we just need to add below code into angularprimeng/src/app/app.component.html file to get final out on the web browser:

    <p-table [value]="sales">
        <ng-template pTemplate="caption">
            <div class="p-d-flex">
               
                <button type="button" pButton pRipple icon="pi pi-file-excel" (click)="exportExcel()" class="p-button-success p-mr-2"></button>
               
            </div>
        </ng-template>
        <ng-template pTemplate="header">
            <tr>
                
                <th pSortableColumn="brand">Brand <p-sortIcon field="brand"></p-sortIcon></th>
                <th>Last Year Sale</th>
                <th>This Year Sale</th>
                <th>Last Year Profit</th>
                <th>This Year Profit</th>
            </tr>
            
        </ng-template>
        <ng-template pTemplate="body" let-sale>
            <tr>
                <td>{{sale.brand}}</td>
                <td>{{sale.lastYearSale}}</td>
                <td>{{sale.thisYearSale}}</td>
                <td>{{sale.lastYearProfit}}</td>
                <td>{{sale.thisYearProfit}}</td>
            </tr>
        </ng-template>
    </p-table>

    4. Now friends we just need to add below code into angularprimeng/angular.json file:

     "styles": [
                  "src/styles.css",
                  "node_modules/primeng/resources/themes/saga-blue/theme.css",
                  "node_modules/primeng/resources/primeng.min.css",
                  "node_modules/primeflex/primeflex.css",
                  "node_modules/primeicons/primeicons.css",
                ],
    ...

    5. Now friends we just need to add below code into angularprimeng/src/app/app.component.ts file:

    import { Component } from '@angular/core';
    
    @Component({
      selector: 'app-root',
      templateUrl: './app.component.html',
      styleUrl: './app.component.scss'
    })
    export class AppComponent {
      title = 'AngularWebApp';
      sales: any;
      ngOnInit() {
        this.sales = [
          { brand: 'Apple', lastYearSale: '51%', thisYearSale: '40%', lastYearProfit: '$54,406.00', thisYearProfit: '$43,342' },
          { brand: 'Samsung', lastYearSale: '83%', thisYearSale: '96%', lastYearProfit: '$423,132', thisYearProfit: '$312,122' },
          { brand: 'Microsoft', lastYearSale: '38%', thisYearSale: '5%', lastYearProfit: '$12,321', thisYearProfit: '$8,500' },
          { brand: 'Philips', lastYearSale: '49%', thisYearSale: '22%', lastYearProfit: '$745,232', thisYearProfit: '$650,323,' },
          { brand: 'Song', lastYearSale: '17%', thisYearSale: '79%', lastYearProfit: '$643,242', thisYearProfit: '500,332' },
          { brand: 'LG', lastYearSale: '52%', thisYearSale: ' 65%', lastYearProfit: '$421,132', thisYearProfit: '$150,005' },
          { brand: 'Sharp', lastYearSale: '82%', thisYearSale: '12%', lastYearProfit: '$131,211', thisYearProfit: '$100,214' },
          { brand: 'Panasonic', lastYearSale: '44%', thisYearSale: '45%', lastYearProfit: '$66,442', thisYearProfit: '$53,322' },
          { brand: 'HTC', lastYearSale: '90%', thisYearSale: '56%', lastYearProfit: '$765,442', thisYearProfit: '$296,232' },
          { brand: 'Toshiba', lastYearSale: '75%', thisYearSale: '54%', lastYearProfit: '$21,212', thisYearProfit: '$12,533' }
      ];
      
    }
    //excel button click functionality
    exportExcel() {
      import("xlsx").then(xlsx => {
          const worksheet = xlsx.utils.json_to_sheet(this.sales); // Sale Data
          const workbook = { Sheets: { 'data': worksheet }, SheetNames: ['data'] };
          const excelBuffer: any = xlsx.write(workbook, { bookType: 'xlsx', type: 'array' });
          this.saveAsExcelFile(excelBuffer, "sales");
      });
    }
    saveAsExcelFile(buffer: any, fileName: string): void {
      import("file-saver").then(FileSaver => {
        let EXCEL_TYPE =
          "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8";
        let EXCEL_EXTENSION = ".xlsx";
        const data: Blob = new Blob([buffer], {
          type: EXCEL_TYPE
        });
        FileSaver.saveAs(
          data,
          fileName + "_export_" + new Date().getTime() + EXCEL_EXTENSION
        );
      });
    }
    }
    

    6. Now friends we just need to add below code into angularprimeng/src/app/app.module.ts file:

    ...
    import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
    import { TableModule } from 'primeng/table';
    import { DropdownModule } from 'primeng/dropdown';
    import { ButtonModule } from 'primeng/button';
    
    @NgModule({
     ...
      imports: [
       ...
        BrowserAnimationsModule,
        TableModule,
        DropdownModule,
        ButtonModule
      ],
      ...

    Friends in the end must run ng serve command into your terminal to run the angular 17 project.

    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

  • How to Move coupon form before subtotal in WooCommerce checkout?

    How to Move coupon form before subtotal in WooCommerce checkout?

    Hello guys how are you? Welcome back to my channel. Today in this post I am going to show you How to Move coupon form before subtotal in WooCommerce checkout?

    Guys I have used both latest versions WordPress 6.3 and WooCommerce 8.1.

    Live Demo

    Guys if you are new in WordPress or in WooCommerce then please check the below links for some good tutorials:

    1. WooCommerce Hooks
    2. WordPress Tricks
    3. WordPress Hooks
    How to Move coupon form before subtotal in WooCommerce checkout?
    How to Move coupon form before subtotal in WooCommerce checkout?

    Guys here is the working code snippet and please use it carefully:

    1. Guys here is the code snippet and you need to add your theme’s functions.php file:

    remove_action( 'woocommerce_before_checkout_form', 'woocommerce_checkout_coupon_form', 10 );
    add_action( 'woocommerce_review_order_after_cart_contents', 'woocommerce_checkout_coupon_form_custom' );
    function woocommerce_checkout_coupon_form_custom() {
        echo '<tr class="coupon-form"><td colspan="2">';
        
        wc_get_template(
            'checkout/form-coupon.php',
            array(
                'checkout' => WC()->checkout(),
            )
        );
        echo '</tr></td>';
    }
    • WooCommerce move coupon field checkout

    This is it guys and if you will have any kind of query, suggestion or requirement then feel free to comment below.

    Jassa

    Developer’s King

    Thanks

  • How to make simple admin sidebar template with Bootstrap 5 and Angular17?

    How to make simple admin sidebar template with Bootstrap 5 and Angular17?

    Hello friends, welcome back to my blog. Today this blog post will tell you, How to make simple admin sidebar template with Bootstrap 5 and Angular17?

    In this post, guys we will cover below things:

    • Bootstrap 5 Angular 17 Free Template Creation.
    • Angular Bootstrap Sidebar Template Fully Responsive.
    • Angular click event functionality to toggle sidebar.

    Angular Bootstrap Sidebar Template Working Video


    Angular 17 came and Bootstrap 5 also and if you are new then you must check below two links:

    1. Angular 17 Basic Tutorials
    2. Bootstrap 5

    Friends now I proceed onwards and here is the working code snippet for How to make simple admin sidebar template with Bootstrap 5 and Angular17? and please use carefully this to avoid the mistakes:

    1. Firstly friends we need fresh angular 17 setup and for this we need to run below commands but if you already have angular 17 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 angularboot5 //Create new Angular Project
    
    cd angularboot5 // Go inside the Angular Project Folder

    2. Now friends we need to run below commands into our project terminal to install bootstrap 5 modules into our angular application:

    npm install bootstrap
    
    npm i @popperjs/core

    3. Now friends we just need to add below code into angularboot5/src/app/app.component.html file to get final out on the web browser:

    <div class="d-flex" id="wrapper">
    
        <!-- Sidebar -->
        <div class="bg-light border-right" id="sidebar-wrapper"  [ngClass]="status ? 'hide' : 'show'">
          <div class="sidebar-heading">Therichpost </div>
          <div class="list-group list-group-flush">
            <a href="#" class="list-group-item list-group-item-action bg-light">Dashboard</a>
            <a href="#" class="list-group-item list-group-item-action bg-light">Shortcuts</a>
            <a href="#" class="list-group-item list-group-item-action bg-light">Overview</a>
            <a href="#" class="list-group-item list-group-item-action bg-light">Events</a>
            <a href="#" class="list-group-item list-group-item-action bg-light">Profile</a>
            <a href="#" class="list-group-item list-group-item-action bg-light">Status</a>
          </div>
        </div>
        <!-- /#sidebar-wrapper -->
      
        <!-- Page Content -->
        <div id="page-content-wrapper">
      
          <nav class="navbar navbar-expand-lg navbar-light bg-light">
           
            <div class="container-fluid">
              <button class="btn btn-primary" (click)="clickEvent()">Toggle Menu</button>
              <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
              </button>
              <div class="collapse navbar-collapse" id="navbarSupportedContent">
                <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                  <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="#">Home</a>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link" href="#">Link</a>
                  </li>
                  <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                      Dropdown
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
                      <li><a class="dropdown-item" href="#">Action</a></li>
                      <li><a class="dropdown-item" href="#">Another action</a></li>
                      <li><hr class="dropdown-divider"></li>
                      <li><a class="dropdown-item" href="#">Something else here</a></li>
                    </ul>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>
                  </li>
                </ul>
                <form class="d-flex">
                  <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
                  <button class="btn btn-outline-success" type="button">Search</button>
                </form>
              </div>
            </div>
          </nav>
      
          <div class="container-fluid">
            <h1 class="mt-4">Angular 17 Bootstrap 5 Simple Sidebar Template</h1>
            <p>The starting state of the menu will appear collapsed on smaller screens, and will appear non-collapsed on larger screens. When toggled using the button below, the menu will change.</p>
            <p>Make sure to keep all page content within the <code>#page-content-wrapper</code>. The top navbar is optional, and just for demonstration.</p>
          </div>
        </div>
        <!-- /#page-content-wrapper -->
      
      </div>
      <!-- /#wrapper -->

    4. Now friends we just need to add below code into angularboot5/angular.json file:

    "styles": [
                  ...
                  "node_modules/bootstrap/dist/css/bootstrap.min.css"
              ],
    "scripts": [
                  ...
                   "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"
               ]

    5. Now friends we just need to add below code into angularboot5/src/app/app.component.css file to add custom styles:

    body {
        overflow-x: hidden;
      }
      
      #sidebar-wrapper {
        min-height: 100vh;
        margin-left: -15rem;
        -webkit-transition: margin .25s ease-out;
        -moz-transition: margin .25s ease-out;
        -o-transition: margin .25s ease-out;
        transition: margin .25s ease-out;
      }
      
      #sidebar-wrapper .sidebar-heading {
        padding: 0.875rem 1.25rem;
        font-size: 1.2rem;
      }
      
      #sidebar-wrapper .list-group {
        width: 15rem;
      }
      
      #page-content-wrapper {
        min-width: 100vw;
      }
      
      #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
      }
      
      @media (min-width: 768px) {
        #sidebar-wrapper {
          margin-left: 0;
        }
      
        #page-content-wrapper {
          min-width: 0;
          width: 100%;
        }
        .show
        {
          margin-left: 0!important;
        }
        .hide
        {
          margin-left: -15rem!important;
        }
      }
      @media (max-width: 767px) {
        
        .hide
        {
          margin-left: -0!important;
        }
      }

    6. Now friends we just need to add below code into angularboot5/src/app/app.component.ts file to add custom scripts:

    ...
    export class AppComponent {
     ...
      status: boolean = false;
      clickEvent(){
          this.status = !this.status;       
      }
    }
    

    Friends in the end must run ng serve command into your terminal to run the angular 17 project.

    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

  • How to Change order of billing fields on checkout page Woocommerce?

    How to Change order of billing fields on checkout page Woocommerce?

    Hello guys how are you? Welcome back to my channel. Today in this post I am going to show you How to Change order of billing fields on checkout page Woocommerce?

    Guys I have used both latest versions WordPress 6.3 and WooCommerce 8.1.

    Live Demo

    Guys if you are new in WordPress or in WooCommerce then please check the below links for some good tutorials:

    1. WooCommerce Hooks
    2. WordPress Tricks
    3. WordPress Hooks
    How to Change order of billing fields on checkout page Woocommerce?
    How to Change order of billing fields on checkout page Woocommerce?

    Guys here is the working code snippet and please use it carefully:

    1. Guys here is the code snippet and you need to add your theme’s functions.php file:

    function custom_override_checkout_fields( $fields ) {
    
      // Do things with your fields like setting the
      // priority, label, required, etc.
      // or removing them
    
      // Example: Set the priorities straight
      // Probably not meant for this since priority is something
      // totally different than order.
      $fields['billing']['billing_first_name']['priority'] = 0;
      $fields['billing']['billing_last_name']['priority'] = 5;
      $fields['billing']['billing_email']['priority'] = 10;
      $fields['billing']['billing_phone']['priority'] = 15;
      $fields['billing']['billing_country']['priority'] = 20;
      $fields['billing']['billing_state']['priority'] = 25;
      $fields['billing']['billing_address_1']['priority'] = 30;
      $fields['billing']['billing_address_2']['priority'] = 35;
      $fields['billing']['billing_postcode']['priority'] = 40;
      $fields['billing']['billing_city']['priority'] = 45;
    
      // Sort the fields based on their 'priority'
      usort($fields['billing'], function($a, $b) {
        return $a['priority'] <=> $b['priority'];
      });
    
      // Send the fields to the function that receives the fields data
      return $fields;
    }
    • Reorder Woocommerce checkout fields
    • Change order of billing fields on checkout page woocommerce
    • Change order of billing fields on checkout page woo

    This is it guys and if you will have any kind of query, suggestion or requirement then feel free to comment below.

    Jassa

    Developer’s King

    Thanks

  • Angular 17 Input type phone number with country codes and country flags Working Example

    Angular 17 Input type phone number with country codes and country flags Working Example

    Hello friends, welcome back to my blog. Today in this blog post, I am going to tell you, Angular 17 Input type phone number with country codes and country flags Working Example.

    Live Demo

    Angular 17 Input type phone number with country codes and country flags Working Example
    Angular 17 Input type phone number with country codes and country flags Working Example

    Angular 17 came and if you are new then you must check below two links:

    1. Angular 17 Basic Tutorials

    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 17 setup and for this we need to run below commands but if you already have angular 17 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 angularsite //Create new Angular Project
    
    cd angularsite // Go inside the Angular Project Folder
    
    ng serve --open // Run and Open the Angular Project
    
    http://localhost:4200/ // Working Angular Project Url

    2. Now friends, here we need to run below commands into our project terminal to install input tel modules into our angular application:

    
    npm install ng2-tel-input intl-tel-input --force

    3. Now friends, here we need to add below  into our angular.json file:

    "styles": [
                  ...
                 
                  "node_modules/intl-tel-input/build/css/intlTelInput.css"
                ],
                "scripts": [
                 ...
                  "node_modules/intl-tel-input/build/js/intlTelInput.min.js"
                ]

    4. Now friends we just need to add below code into src/app/app.component.html file to get final out on the web browser:

    <div class="container p-5">
        <input type="tel" id="phone">
    </div>

    5. Now friends we just need to add below code into src/app/app.component.ts file:

    import { Component } from '@angular/core';
    import { CommonModule } from '@angular/common';
    import { RouterLink } from '@angular/router';
    import { ReactiveFormsModule } from '@angular/forms';
    import {Ng2TelInputModule} from 'ng2-tel-input';
    @Component({
      selector: 'app-root',
      standalone: true,
      imports: [CommonModule, RouterLink, ReactiveFormsModule Ng2TelInputModule],
      templateUrl: './app.component.html',
      styleUrls: ['./app.component.css']
    })
    export class AppComponent {
      title = 'angular17';
      
    }
    

    Friends in the end must run ng serve command into your terminal to run the angular 17 project.

    If you want to get country details and other stuff then please follow below post as well:

    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

  • Avoid vendors to purchase their own product in WooCommerce

    Avoid vendors to purchase their own product in WooCommerce

    Hello guys how are you? Welcome back to my channel. Today in this post I am going to show you Avoid vendors to purchase their own product in WooCommerce.

    Guys I have used both latest versions WordPress 6.3 and WooCommerce 8.1.

    Live Demo

    Guys if you are new in WordPress or in WooCommerce then please check the below links for some good tutorials:

    1. WooCommerce Hooks
    2. WordPress Tricks
    3. WordPress Hooks
    Avoid vendors to purchase their own product in WooCommerce
    Avoid vendors to purchase their own product in WooCommerce

    Guys here is the working code snippet and please use it carefully:

    1. Guys here is the code snippet and you need to add your theme’s functions.php file:

    guys also I will make it with ajax and share that as well

    add_filter('woocommerce_is_purchasable', 'filter_woocommerce_is_purchasable', 10, 2 );
    function filter_woocommerce_is_purchasable( $purchasable, $product ) {
        $seller_id = get_post_field('post_author', $product->get_id());
    
        if( get_current_user_id() == $seller_id ) {
            $purchasable = false;
        }
    
        return $purchasable;
    }

    This is it guys and if you will have any kind of query, suggestion or requirement then feel free to comment below.

    Jassa

    Developer’s King

    Thanks

  • Angular 17 FullCalendar with Dynamic Events Working Example

    Angular 17 FullCalendar with Dynamic Events Working Example

    Hello to all, welcome to therichpost.com. In this post, I will tell you, Angular 17 FullCalendar with Dynamic Events Working Example.

    Angular Full Calendar
    Angular 17 FullCalendar with Dynamic Events Working Example
    Angular 17 FullCalendar with Dynamic Events Working Example
    FullCalendar Dynamic Events Web API
    FullCalendar Dynamic Events Web API

    Angular 17 came and if you are new then you must check below two links:

    1. Angular 17 Tutorials
    2. Angular Free Templates

    Here is the code snippet and please use carefully:

    1. Very first guys, here are common basics steps to add angular 17 application on your machine and also we must have latest nodejs version installed for angular 17:

    $ npm install -g @angular/cli
    
    $ ng new angularfullcalendar // Set Angular 17 Application on your pc
    
    cd angularfullcalendar // Go inside project folder

    2. Now run below commands to set fullcalendar modules into our angular 17 application:

    npm install --save @fullcalendar/core 
    
    npm install --save @fullcalendar/angular
    
    npm install --save @fullcalendar/daygrid

    3. Now we will add below code into our angularfullcalendar/src/app/app.component.ts file:

    import { Component } from '@angular/core';
    import { CommonModule } from '@angular/common';
    import { RouterOutlet, RouterLink } from '@angular/router';
    import { FullCalendarModule } from '@fullcalendar/angular';
    import { CalendarOptions } from '@fullcalendar/core'; // useful for typechecking
    import dayGridPlugin from '@fullcalendar/daygrid';
    import { HttpClientModule } from '@angular/common/http';
    @Component({
      selector: 'app-root',
      standalone: true,
      imports: [CommonModule, RouterOutlet, RouterLink, ReactiveFormsModule, FullCalendarModule, HttpClientModule],
      templateUrl: './app.component.html',
      styleUrls: ['./app.component.css']
    })
    export class AppComponent {
      title = 'angular17';
      constructor(private http:HttpClient) {}
      
      ngOnInit(){
        //web api calling to get dynamic events
        this.http.get('http://localhost/events.php').subscribe(data => {
            this.events.push(data);
            console.log(this.events);
            
       });
    
      calendarOptions: CalendarOptions = {
        initialView: 'dayGridMonth',
        plugins: [dayGridPlugin],
         events: this.events[0]};
      };
    }
    

    5. Finally we will add below code into our angularfullcalendar/src/app/app.component.html file:

    <full-calendar [options]="calendarOptions"></full-calendar>

    6. Guys in the end here is my `events.php` file code and this file is located in xampp/htdocs folder:

    <?php
       header("Access-Control-Allow-Origin: *");
       header("Access-Control-Allow-Methods: PUT, GET, POST");
       header("Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept");
       $events = array(
        array('title' => 'Event 1','start' => '2021-05-25'), array('title' => 'Event 2','start' => '2021-05-26'),
        array('title' => 'Event 3','start' => '2021-05-27'));
      
       echo json_encode($events);
       die();
       ?>

    Now we are done friends and please run ng serve command to check output in browser(locahost:4200). If you have any kind of query then please do comment below.

    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

  • Reactjs Free Stylish Ecommerce Website Template

    Reactjs Free Stylish Ecommerce Website Template

    Hello friends, welcome back to my blog. Today in this blog post, I am going to show you, Reactjs Free Stylish Ecommerce Website Template.

    Live Demo
    Reactjs Free Stylish Ecommerce Website Template
    Reactjs Free Stylish Ecommerce Website Template

    For React and bootstrap 5 new comers, please check the below link:

    Reactjs Basic Tutorials

    Friends now I proceed onwards and here is the working code snippet for react ecommerce template free and please use this carefully to avoid the mistakes:

    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 reactdemo
    
    cd reactdemo

    2. Finally for the main output, we need to add below code into our reactdemo/src/App.js file:

    function App() { return ( 
    
     <div className="app">
            <svg xmlns="http://www.w3.org/2000/svg" style={{display: "none"}}>
        <symbol xmlns="http://www.w3.org/2000/svg" id="shopping-carriage" viewBox="0 0 24 24" fill="none">
          <path
            d="M5 22H19C20.103 22 21 21.103 21 20V9C21 8.73478 20.8946 8.48043 20.7071 8.29289C20.5196 8.10536 20.2652 8 20 8H17V7C17 4.243 14.757 2 12 2C9.243 2 7 4.243 7 7V8H4C3.73478 8 3.48043 8.10536 3.29289 8.29289C3.10536 8.48043 3 8.73478 3 9V20C3 21.103 3.897 22 5 22ZM9 7C9 5.346 10.346 4 12 4C13.654 4 15 5.346 15 7V8H9V7ZM5 10H7V12H9V10H15V12H17V10H19L19.002 20H5V10Z"
            fill="black" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="quick-view" viewBox="0 0 24 24">
          <path fill="currentColor"
            d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396l1.414-1.414l-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8s3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6s-6-2.691-6-6s2.691-6 6-6z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="shopping-cart" viewBox="0 0 24 24" fill="none">
          <path
            d="M21 4H2V6H4.3L7.582 15.025C7.79362 15.6029 8.1773 16.1021 8.68134 16.4552C9.18539 16.8083 9.78556 16.9985 10.401 17H19V15H10.401C9.982 15 9.604 14.735 9.461 14.342L8.973 13H18.246C19.136 13 19.926 12.402 20.169 11.549L21.962 5.275C22.0039 5.12615 22.0109 4.96962 21.9823 4.81763C21.9537 4.66565 21.8904 4.52234 21.7973 4.39889C21.7041 4.27544 21.5837 4.1752 21.4454 4.106C21.3071 4.0368 21.1546 4.00053 21 4ZM18.246 11H8.246L6.428 6H19.675L18.246 11Z"
            fill="black" />
          <path
            d="M10.5 21C11.3284 21 12 20.3284 12 19.5C12 18.6716 11.3284 18 10.5 18C9.67157 18 9 18.6716 9 19.5C9 20.3284 9.67157 21 10.5 21Z"
            fill="black" />
          <path
            d="M16.5 21C17.3284 21 18 20.3284 18 19.5C18 18.6716 17.3284 18 16.5 18C15.6716 18 15 18.6716 15 19.5C15 20.3284 15.6716 21 16.5 21Z"
            fill="black" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="nav-icon" viewBox="0 0 16 16">
          <path
            d="M14 10.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5zm0-3a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0 0 1h7a.5.5 0 0 0 .5-.5zm0-3a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0 0 1h11a.5.5 0 0 0 .5-.5z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="close" viewBox="0 0 16 16">
          <path
            d="M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="navbar-icon" viewBox="0 0 16 16">
          <path
            d="M14 10.5a.5.5 0 0 0-.5-.5h-3a.5.5 0 0 0 0 1h3a.5.5 0 0 0 .5-.5zm0-3a.5.5 0 0 0-.5-.5h-7a.5.5 0 0 0 0 1h7a.5.5 0 0 0 .5-.5zm0-3a.5.5 0 0 0-.5-.5h-11a.5.5 0 0 0 0 1h11a.5.5 0 0 0 .5-.5z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="plus" viewBox="0 0 24 24">
          <path fill="currentColor" d="M19 12.998h-6v6h-2v-6H5v-2h6v-6h2v6h6z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="minus" viewBox="0 0 24 24">
          <path fill="currentColor" d="M19 12.998H5v-2h14z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="dropdown" viewBox="0 0 24 24">
          <path fill="currentColor" d="m7 10l5 5l5-5H7Z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="user" viewBox="0 0 24 24">
          <path fill="currentColor"
            d="M12 2a5 5 0 1 0 5 5a5 5 0 0 0-5-5zm0 8a3 3 0 1 1 3-3a3 3 0 0 1-3 3zm9 11v-1a7 7 0 0 0-7-7h-4a7 7 0 0 0-7 7v1h2v-1a5 5 0 0 1 5-5h4a5 5 0 0 1 5 5v1z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="arrow-right" viewBox="0 0 24 24">
          <path fill="currentColor"
            d="M13.3 17.275q-.3-.3-.288-.725t.313-.725L16.15 13H5q-.425 0-.713-.288T4 12q0-.425.288-.713T5 11h11.15L13.3 8.15q-.3-.3-.3-.713t.3-.712q.3-.3.713-.3t.712.3L19.3 11.3q.15.15.213.325t.062.375q0 .2-.063.375t-.212.325l-4.6 4.6q-.275.275-.687.275t-.713-.3Z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="facebook" viewBox="0 0 24 24">
          <path fill="currentColor"
            d="M9.198 21.5h4v-8.01h3.604l.396-3.98h-4V7.5a1 1 0 0 1 1-1h3v-4h-3a5 5 0 0 0-5 5v2.01h-2l-.396 3.98h2.396v8.01Z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="twitter" viewBox="0 0 512 512">
          <path fill="currentColor" d="M496 109.5a201.8 201.8 0 0 1-56.55 15.3a97.51 97.51 0 0 0 43.33-53.6a197.74 197.74 0 0 1-62.56 23.5A99.14 99.14 0 0 0 348.31 64c-54.42 0-98.46 43.4-98.46 96.9a93.21 93.21 0 0 0 2.54 22.1a280.7 280.7 0 0 1-203-101.3A95.69 95.69 0 0 0 36 130.4c0 33.6 17.53 63.3 44 80.7A97.5 97.5 0 0 1 35.22 199v1.2c0 47 34 86.1 79 95a100.76 100.76 0 0 1-25.94 3.4a94.38 94.38 0 0 1-18.51-1.8c12.51 38.5 48.92 66.5 92.05 67.3A199.59 199.59 0 0 1 39.5 405.6a203 203 0 0 1-23.5-1.4A278.68 278.68 0 0 0 166.74 448c181.36 0 280.44-147.7 280.44-275.8c0-4.2-.11-8.4-.31-12.5A198.48 198.48 0 0 0 496 109.5Z"/>
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="youtube" viewBox="0 0 32 32">
          <path fill="currentColor"
            d="M29.41 9.26a3.5 3.5 0 0 0-2.47-2.47C24.76 6.2 16 6.2 16 6.2s-8.76 0-10.94.59a3.5 3.5 0 0 0-2.47 2.47A36.13 36.13 0 0 0 2 16a36.13 36.13 0 0 0 .59 6.74a3.5 3.5 0 0 0 2.47 2.47c2.18.59 10.94.59 10.94.59s8.76 0 10.94-.59a3.5 3.5 0 0 0 2.47-2.47A36.13 36.13 0 0 0 30 16a36.13 36.13 0 0 0-.59-6.74ZM13.2 20.2v-8.4l7.27 4.2Z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="instagram" viewBox="0 0 256 256">
          <path fill="currentColor"
            d="M128 80a48 48 0 1 0 48 48a48.05 48.05 0 0 0-48-48Zm0 80a32 32 0 1 1 32-32a32 32 0 0 1-32 32Zm48-136H80a56.06 56.06 0 0 0-56 56v96a56.06 56.06 0 0 0 56 56h96a56.06 56.06 0 0 0 56-56V80a56.06 56.06 0 0 0-56-56Zm40 152a40 40 0 0 1-40 40H80a40 40 0 0 1-40-40V80a40 40 0 0 1 40-40h96a40 40 0 0 1 40 40ZM192 76a12 12 0 1 1-12-12a12 12 0 0 1 12 12Z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="pinterest" viewBox="0 0 24 24">
          <path fill="currentColor"
            d="M9.04 21.54c.96.29 1.93.46 2.96.46a10 10 0 0 0 10-10A10 10 0 0 0 12 2A10 10 0 0 0 2 12c0 4.25 2.67 7.9 6.44 9.34c-.09-.78-.18-2.07 0-2.96l1.15-4.94s-.29-.58-.29-1.5c0-1.38.86-2.41 1.84-2.41c.86 0 1.26.63 1.26 1.44c0 .86-.57 2.09-.86 3.27c-.17.98.52 1.84 1.52 1.84c1.78 0 3.16-1.9 3.16-4.58c0-2.4-1.72-4.04-4.19-4.04c-2.82 0-4.48 2.1-4.48 4.31c0 .86.28 1.73.74 2.3c.09.06.09.14.06.29l-.29 1.09c0 .17-.11.23-.28.11c-1.28-.56-2.02-2.38-2.02-3.85c0-3.16 2.24-6.03 6.56-6.03c3.44 0 6.12 2.47 6.12 5.75c0 3.44-2.13 6.2-5.18 6.2c-.97 0-1.92-.52-2.26-1.13l-.67 2.37c-.23.86-.86 2.01-1.29 2.7v-.03Z" />
        </symbol>
        <symbol xmlns="http://www.w3.org/2000/svg" id="search" viewBox="0 0 24 24">
          <path fill="currentColor"
            d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396l1.414-1.414l-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8s3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6s-6-2.691-6-6s2.691-6 6-6z" />
        </symbol>
      </svg>
    
    
      <div class="preloader" style={{position: "fixed",top:"0",left:"0",width: "100%",height: "100%",backgroundColor: "#fff",display: "flex"}}>
        <svg version="1.1" id="L4" width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
        viewBox="0 0 50 100" enableBackground="new 0 0 0 0" xmlSpace="preserve">
        <circle fill="#111" stroke="none" cx="6" cy="50" r="6">
          <animate
            attributeName="opacity"
            dur="1s"
            values="0;1;0"
            repeatCount="indefinite"
            begin="0.1"/>    
        </circle>
        <circle fill="#111" stroke="none" cx="26" cy="50" r="6">
          <animate
            attributeName="opacity"
            dur="1s"
            values="0;1;0"
            repeatCount="indefinite" 
            begin="0.2"/>       
        </circle>
        <circle fill="#111" stroke="none" cx="46" cy="50" r="6">
          <animate
            attributeName="opacity"
            dur="1s"
            values="0;1;0"
            repeatCount="indefinite" 
            begin="0.3"/>     
        </circle>
        </svg>
      </div>
    
      <div class="search-box bg-dark position-relative">
        <div class="search-wrap">
          <div class="close-button">
            <svg class="close" style={{fill: "white"}}>
              <use xlinkHref="#close"></use>
            </svg>
          </div>
          <form id="search-form" class="text-lg-center text-md-left pt-3" action="#" method="get">
            <input type="text" class="search-input" placeholder="Search..." />
            <svg class="search">
              <use xlinkHref="#search"></use>
            </svg>
          </form>
        </div>
      </div>
    
     
      <div class="modal fade" id="modaltoggle" aria-hidden="true" tabIndex="-1">
        <div class="modal-dialog modal-fullscreen-md-down modal-md modal-dialog-centered">
          <div class="modal-content">
            <div class="modal-body">
              <div class="col-lg-12 col-md-12 me-3">
                <div class="image-holder">
                  <img src="assets/images/summary-item1.jpg" alt="Shoes" />
                </div>
              </div>
              <div class="col-lg-12 col-md-12">
                <div class="summary">
                  <div class="summary-content fs-6">
                    <div class="product-header d-flex justify-content-between mt-4">
                      <h3 class="display-7">Running Shoes For Men</h3>
                      <div class="modal-close-btn">
                        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close">
                        </button>
                      </div>
                    </div>
                    <span class="product-price fs-3">$99</span>
                    <div class="product-details">
                      <p class="fs-7">Buy good shoes and a good mattress, because when you're not in one you're in the
                        other. With four pairs of shoes, I can travel the world.</p>
                    </div>
                    <ul class="select">
                      <li>
                        <strong>Colour Shown:</strong> Red, White, Black
                      </li>
                      <li>
                        <strong>Style:</strong> SM3018-100
                      </li>
                    </ul>
                    <div class="variations-form shopify-cart">
                      <div class="row">
                        <div class="col-md-6">
                          <div class="quantity d-flex pb-4">
                            <div
                              class="qty-number align-top qty-number-plus d-flex justify-content-center align-items-center text-center">
                              <span class="increase-qty plus">
                                <svg class="plus">
                                  <use xlinkHref="#plus"></use>
                                </svg>
                              </span>
                            </div>
                            <input type="number" id="quantity_001" class="input-text text-center" step="1" min="1" name="quantity" value="1" title="Qty" />
                            <div
                              class="qty-number qty-number-minus d-flex justify-content-center align-items-center text-center">
                              <span class="increase-qty minus">
                                <svg class="minus">
                                  <use xlinkHref="#minus"></use>
                                </svg>
                              </span>
                            </div>
                          </div>
                        </div>
                        <div class="col-md-6">
                          <a rel="nofollow" data-no-instant="" href="#" class="out-stock button">Out of stock</a>
                          <button type="submit" class="btn btn-medium btn-black hvr-sweep-to-right">Add to cart</button>
                        </div>
                      </div>
                    </div>
                   
                    <div class="categories d-flex flex-wrap pt-3">
                      <strong class="pe-2">Categories:</strong>
                      <a href="#" title="categories">Clothing,</a>
                      <a href="#" title="categories">Men's Clothes,</a>
                      <a href="#" title="categories">Tops & T-Shirts</a>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
    
      <div class="modal fade" id="modallong" tabIndex="-1" aria-modal="true" role="dialog">
        <div class="modal-dialog modal-fullscreen-md-down modal-md modal-dialog-centered">
          <div class="modal-content">
            <div class="modal-header">
              <h2 class="modal-title fs-5">Cart</h2>
              <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
              <div class="shopping-cart">
                <div class="shopping-cart-content">
                  <div class="mini-cart cart-list p-0 mt-3">
                    <div class="mini-cart-item d-flex border-bottom pb-3">
                      <div class="col-lg-2 col-md-3 col-sm-2 me-4">
                        <a href="#" title="product-image">
                          <img src="assets/images/single-product-thumb1.jpg" class="img-fluid" alt="single-product-item" />
                        </a>
                      </div>
                      <div class="col-lg-9 col-md-8 col-sm-8">
                        <div class="product-header d-flex justify-content-between align-items-center mb-3">
                          <h4 class="product-title fs-6 me-5">Sport Shoes For Men</h4>
                          <a href="" class="remove" aria-label="Remove this item" data-product_id="11913"
                            data-cart_item_key="abc" data-product_sku="">
                            <svg class="close">
                              <use xlinkHref="#close"></use>
                            </svg>
                          </a>
                        </div>
                        <div class="quantity-price d-flex justify-content-between align-items-center">
                          <div class="input-group product-qty">
                            <button type="button"
                              class="quantity-left-minus btn btn-light rounded-0 rounded-start btn-number"
                              data-type="minus">
                              <svg width="16" height="16">
                                <use xlinkHref="#minus"></use>
                              </svg>
                            </button>
                            <input type="text" name="quantity" class="form-control input-number quantity" value="1" />
                            <button type="button" class="quantity-right-plus btn btn-light rounded-0 rounded-end btn-number"
                              data-type="plus">
                              <svg width="16" height="16">
                                <use xlinkHref="#plus"></use>
                              </svg>
                            </button>
                          </div>
                          <div class="price-code">
                            <span class="product-price fs-6">$99</span>
                          </div>
                        </div>
                      
                      </div>
                    </div>
                  </div>
                  <div class="mini-cart cart-list p-0 mt-3">
                    <div class="mini-cart-item d-flex border-bottom pb-3">
                      <div class="col-lg-2 col-md-3 col-sm-2 me-4">
                        <a href="#" title="product-image">
                          <img src="assets/images/single-product-thumb2.jpg" class="img-fluid" alt="single-product-item" />
                        </a>
                      </div>
                      <div class="col-lg-9 col-md-8 col-sm-8">
                        <div class="product-header d-flex justify-content-between align-items-center mb-3">
                          <h4 class="product-title fs-6 me-5">Brand Shoes For Men</h4>
                          <a href="" class="remove" aria-label="Remove this item" data-product_id="11913"
                            data-cart_item_key="abc" data-product_sku="">
                            <svg class="close">
                              <use xlinkHref="#close"></use>
                            </svg>
                          </a>
                        </div>
                        <div class="quantity-price d-flex justify-content-between align-items-center">
                          <div class="input-group product-qty">
                            <button type="button"
                              class="quantity-left-minus btn btn-light rounded-0 rounded-start btn-number"
                              data-type="minus">
                              <svg width="16" height="16">
                                <use xlinkHref="#minus"></use>
                              </svg>
                            </button>
                            <input type="text" name="quantity" class="form-control input-number quantity" value="1" />
                            <button type="button" class="quantity-right-plus btn btn-light rounded-0 rounded-end btn-number"
                              data-type="plus">
                              <svg width="16" height="16">
                                <use xlinkHref="#plus"></use>
                              </svg>
                            </button>
                          </div>
                          <div class="price-code">
                            <span class="product-price fs-6">$99</span>
                          </div>
                        </div>
                    
                      </div>
                    </div>
                  </div>
               
                  <div class="mini-cart-total d-flex justify-content-between py-4">
                    <span class="fs-6">Subtotal:</span>
                    <span class="special-price-code">
                      <span class="price-amount amount fs-6" style={{opacity: "1"}}>
                        <bdi>
                          <span class="price-currency-symbol">$</span>198.00 </bdi>
                      </span>
                    </span>
                  </div>
                  <div class="modal-footer my-4 justify-content-center">
                    <button type="button" class="btn btn-red hvr-sweep-to-right dark-sweep">View Cart</button>
                    <button type="button"
                      class="btn btn-outline-gray hvr-sweep-to-right dark-sweep">Checkout</button>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      
    
      <div class="modal fade" id="modallogin" tabIndex="-1" aria-modal="true" role="dialog">
        <div class="modal-dialog modal-fullscreen-md-down modal-md modal-dialog-centered" role="document">
          <div class="modal-content p-4">
            <div class="modal-header mx-auto border-0">
              <h2 class="modal-title fs-3 fw-normal">Login</h2>
            </div>
            <div class="modal-body">
              <div class="login-detail">
                <div class="login-form p-0">
                  <div class="col-lg-12 mx-auto">
                    <form id="login-form">
                      <input type="text" name="username" placeholder="Username or Email Address *"
                        class="mb-3 ps-3 text-input" />
                      <input type="password" name="password" placeholder="Password" class="ps-3 text-input" />
                      <div class="checkbox d-flex justify-content-between mt-4">
                        <p class="checkbox-form">
                          <label class="">
                            <input name="rememberme" type="checkbox" id="remember-me" value="forever" /> Remember me </label>
                        </p>
                        <p class="lost-password">
                          <a href="#">Forgot your password?</a>
                        </p>
                      </div>
                    </form>
                  </div>
                </div>
                <div class="modal-footer mt-5 d-flex justify-content-center">
                  <button type="button" class="btn btn-red hvr-sweep-to-right dark-sweep">Login</button>
                  <button type="button"
                    class="btn btn-outline-gray hvr-sweep-to-right dark-sweep">Register</button>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
     
    
      <header id="header" class="site-header text-black">
        <div class="header-top border-bottom py-2">
          <div class="container-lg">
            <div class="row justify-content-evenly">
              <div class="col">
                <ul class="social-links list-unstyled d-flex m-0">
                  <li class="pe-2">
                    <a href="#">
                      <svg class="facebook" width="20" height="20">
                        <use xlinkHref="#facebook"></use>
                      </svg>
                    </a>
                  </li>
                  <li class="pe-2">
                    <a href="#">
                      <svg class="instagram" width="20" height="20">
                        <use xlinkHref="#instagram"></use>
                      </svg>
                    </a>
                  </li>
                  <li class="pe-2">
                    <a href="#">
                      <svg class="youtube" width="20" height="20">
                        <use xlinkHref="#youtube"></use>
                      </svg>
                    </a>
                  </li>
                  <li>
                    <a href="#">
                      <svg class="pinterest" width="20" height="20">
                        <use xlinkHref="#pinterest"></use>
                      </svg>
                    </a>
                  </li>
                </ul>
              </div>
              <div class="col d-none d-md-block">
                <p class="text-center text-black m-0"><strong>Special Offer</strong>: Free Shipping on all the orders above $100
                </p>
              </div>
              <div class="col">
                <ul class="d-flex justify-content-end gap-3 list-unstyled m-0">
                  <li>
                    <a href="#">Contact</a>
                  </li>
                  <li>
                    <a href="#">Cart</a>
                  </li>
                  <li>
                    <a href="#">Login</a>
                  </li>
                </ul>
              </div>
            </div>
          </div>
        </div>
        <nav id="header-nav" class="navbar navbar-expand-lg">
          <div class="container-lg">
            <a class="navbar-brand" href="#">
              <img src="assets/images/main-logo.png" class="logo" alt="logo" />
            </a>
            <button class="navbar-toggler d-flex d-lg-none order-3 border-0 p-1 ms-2" type="button" data-bs-toggle="offcanvas"
              data-bs-target="#bdNavbar" aria-controls="bdNavbar" aria-expanded="false" aria-label="Toggle navigation">
              <svg class="navbar-icon">
                <use xlinkHref="#navbar-icon"></use>
              </svg>
            </button>
            <div class="offcanvas offcanvas-end" tabIndex="-1" id="bdNavbar">
              <div class="offcanvas-header px-4 pb-0">
                <a class="navbar-brand ps-3" href="#">
                  <img src="assets/images/main-logo.png" class="logo" alt="logo" />
                </a>
                <button type="button" class="btn-close btn-close-black p-5" data-bs-dismiss="offcanvas" aria-label="Close"
                  data-bs-target="#bdNavbar"></button>
              </div>
              <div class="offcanvas-body">
                <ul id="navbar" class="navbar-nav fw-bold justify-content-end align-items-center flex-grow-1">
                  <li class="nav-item dropdown">
                    <a class="nav-link me-5 active dropdown-toggle border-0" href="#" data-bs-toggle="dropdown"
                      aria-expanded="false">Home</a>
                    <ul class="dropdown-menu fw-bold">
                      <li>
                        <a href="#" class="dropdown-item">Home V1</a>
                      </li>
                      <li>
                        <a href="#" class="dropdown-item">Home V2 <span class="badge bg-primary">PRO</span></a>
                      </li>
                    </ul>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link me-5" href="#">Men</a>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link me-5" href="#">Women</a>
                  </li>
                  <li class="nav-item dropdown">
                    <a class="nav-link me-5 active dropdown-toggle border-0" href="#" data-bs-toggle="dropdown"
                      aria-expanded="false">Page</a>
                    <ul class="dropdown-menu fw-bold">
                      <li>
                        <a href="#" class="dropdown-item">About Us <span class="badge bg-primary">PRO</span></a>
                      </li>
                      <li>
                        <a class="dropdown-item" href="#">Shop <span class="badge bg-primary">PRO</span></a>
                      </li>
                      <li>
                        <a class="dropdown-item" href="#">Blog <span class="badge bg-primary">PRO</span></a>
                      </li>
                      <li>
                        <a class="dropdown-item" href="#">Single Product <span class="badge bg-primary">PRO</span></a>
                      </li>
                      <li>
                        <a class="dropdown-item" href="#">Single Post <span class="badge bg-primary">PRO</span></a>
                      </li>
                      <li>
                        <a class="dropdown-item" href="#">Styles <span class="badge bg-primary">PRO</span></a>
                      </li>
                      <li>
                        <a href="#" data-bs-toggle="modal" data-bs-target="#modallong" class="dropdown-item">cart</a>
                      </li>
                      <li>
                        <a href="#" data-bs-toggle="modal" data-bs-target="#modallogin" class="dropdown-item">Login</a>
                      </li>
                    </ul>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link me-5" href="#">Shop</a>
                  </li>
                  <li class="nav-item">
                    <a class="nav-link me-5" href="#">Sale</a>
                  </li>
                  <li class="nav-item">
                    <a class="btn btn-dark rounded-pill" href="https://templatesjungle.gumroad.com/l/stylish-ecommerce-store-template" target="_blank">Get PRO</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="user-items ps-0 ps-md-5">
              <ul class="d-flex justify-content-end list-unstyled align-item-center m-0">
                <li class="pe-3">
                  <a href="#" data-bs-toggle="modal" data-bs-target="#modallogin" class="border-0">
                    <svg class="user" width="24" height="24">
                      <use xlinkHref="#user"></use>
                    </svg>
                  </a>
                </li>
                <li class="pe-3">
                  <a href="#" data-bs-toggle="modal" data-bs-target="#modallong" class="border-0">
                    <svg class="shopping-cart" width="24" height="24">
                      <use xlinkHref="#shopping-cart"></use>
                    </svg>
                  </a>
                </li>
                <li>
                  <a href="#" class="search-item border-0" data-bs-toggle="collapse" data-bs-target="#search-box" aria-label="Toggle navigation">
                    <svg class="search" width="24" height="24">
                      <use xlinkHref="#search"></use>
                    </svg>
                  </a>
                </li>
              </ul>
            </div>
          </div>
        </nav>
      </header>
    
      <section id="intro" class="position-relative mt-4">
        <div class="container-lg">
          <div class="swiper main-swiper">
            <div class="swiper-wrapper">
              <div class="swiper-slide">
                <div class="card d-flex flex-row align-items-end border-0 large jarallax-keep-img">
                  <img src="assets/images/card-image1.jpg" alt="shoes" class="img-fluid jarallax-img" />
                  <div class="cart-concern p-3 m-3 p-lg-5 m-lg-5">
                    <h2 class="card-title display-3 light">Stylish shoes for Women</h2>
                    <a href="#"
                      class="text-uppercase light mt-3 d-inline-block text-hover fw-bold light-border">Shop Now</a>
                  </div>
                </div>
              </div>
              <div class="swiper-slide">
                <div class="row g-4">
                  <div class="col-lg-12 mb-4">
                    <div class="card d-flex flex-row align-items-end border-0 jarallax-keep-img">
                      <img src="assets/images/card-image2.jpg" alt="shoes" class="img-fluid jarallax-img" />
                      <div class="cart-concern p-3 m-3 p-lg-5 m-lg-5">
                        <h2 class="card-title style-2 display-4 light">Sports Wear</h2>
                        <a href="#"
                          class="text-uppercase light mt-3 d-inline-block text-hover fw-bold light-border">Shop Now</a>
                      </div>
                    </div>
                  </div>
                  <div class="col-lg-12">
                    <div class="card d-flex flex-row align-items-end border-0 jarallax-keep-img">
                      <img src="assets/images/card-image3.jpg" alt="shoes" class="img-fluid jarallax-img" />
                      <div class="cart-concern p-3 m-3 p-lg-5 m-lg-5">
                        <h2 class="card-title style-2 display-4 light">Fashion Shoes</h2>
                        <a href="#"
                          class="text-uppercase light mt-3 d-inline-block text-hover fw-bold light-border">Shop Now</a>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <div class="swiper-slide">
                <div class="card d-flex flex-row align-items-end border-0 large jarallax-keep-img">
                  <img src="assets/images/card-image4.jpg" alt="shoes" class="img-fluid jarallax-img" />
                  <div class="cart-concern p-3 m-3 p-lg-5 m-lg-5">
                    <h2 class="card-title display-3 light">Stylish shoes for men</h2>
                    <a href="#"
                      class="text-uppercase light mt-3 d-inline-block text-hover fw-bold light-border">Shop Now</a>
                  </div>
                </div>
              </div>
              <div class="swiper-slide">
                <div class="row g-4">
                  <div class="col-lg-12 mb-4">
                    <div class="card d-flex flex-row align-items-end border-0 jarallax-keep-img">
                      <img src="assets/images/card-image5.jpg" alt="shoes" class="img-fluid jarallax-img" />
                      <div class="cart-concern p-3 m-3 p-lg-5 m-lg-5">
                        <h2 class="card-title style-2 display-4 light">Men Shoes</h2>
                        <a href="#"
                          class="text-uppercase light mt-3 d-inline-block text-hover fw-bold light-border">Shop Now</a>
                      </div>
                    </div>
                  </div>
                  <div class="col-lg-12">
                    <div class="card d-flex flex-row align-items-end border-0 jarallax-keep-img">
                      <img src="assets/images/card-image6.jpg" alt="shoes" class="img-fluid jarallax-img" />
                      <div class="cart-concern p-3 m-3 p-lg-5 m-lg-5">
                        <h2 class="card-title style-2 display-4 light">Women Shoes</h2>
                        <a href="#"
                          class="text-uppercase light mt-3 d-inline-block text-hover fw-bold light-border">Shop Now</a>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="swiper-pagination"></div>
        </div>
      </section>
      <section class="discount-coupon py-2 my-2 py-md-5 my-md-5">
        <div class="container">
          <div class="bg-gray coupon position-relative p-5">
            <div class="bold-text position-absolute">10% OFF</div>
            <div class="row justify-content-between align-items-center">
              <div class="col-lg-7 col-md-12 mb-3">
                <div class="coupon-header">
                  <h2 class="display-7">10% OFF Discount Coupons</h2>
                  <p class="m-0">Subscribe us to get 10% OFF on all the purchases</p>
                </div>
              </div>
              <div class="col-lg-3 col-md-12">
                <div class="btn-wrap">
                  <a href="#" class="btn btn-black btn-medium text-uppercase hvr-sweep-to-right">Email me</a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>
      <section id="featured-products" class="product-store">
        <div class="container-md">
          <div class="display-header d-flex align-items-center justify-content-between">
            <h2 class="section-title text-uppercase">Featured Products</h2>
            <div class="btn-right">
              <a href="#" class="d-inline-block text-uppercase text-hover fw-bold">View all</a>
            </div>
          </div>
          <div class="product-content padding-small">
            <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-5">
              <div class="col mb-4">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item1.jpg" alt="product-item" class="product-image img-fluid"/>
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
                   
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item2.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
                  
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item3.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
              
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item4.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
               
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item5.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
                  
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>
      <section id="collection-products" class="py-2 my-2 py-md-5 my-md-5">
        <div class="container-md">
          <div class="row">
            <div class="col-lg-6 col-md-6 mb-4">
              <div class="collection-card card border-0 d-flex flex-row align-items-end jarallax-keep-img">
                <img src="assets/images/collection-item1.jpg" alt="product-item" class="border-rounded-10 img-fluid jarallax-img" />
                <div class="card-detail p-3 m-3 p-lg-5 m-lg-5">
                  <h3 class="card-title display-3">
                    <a href="#">Minimal Collection</a>
                  </h3>
                  <a href="#" class="text-uppercase mt-3 d-inline-block text-hover fw-bold">Shop Now</a>
                </div>
              </div>
            </div>
            <div class="col-lg-6 col-md-6">
              <div class="collection-card card border-0 d-flex flex-row jarallax-keep-img">
                <img src="assets/images/collection-item2.jpg" alt="product-item" class="border-rounded-10 img-fluid jarallax-img" />
                <div class="card-detail p-3 m-3 p-lg-5 m-lg-5">
                  <h3 class="card-title display-3">
                    <a href="#">Sneakers Collection</a>
                  </h3>
                  <a href="#" class="text-uppercase mt-3 d-inline-block text-hover fw-bold">Shop Now</a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>
      <section id="latest-products" class="product-store py-2 my-2 py-md-5 my-md-5 pt-0">
        <div class="container-md">
          <div class="display-header d-flex align-items-center justify-content-between">
            <h2 class="section-title text-uppercase">Latest Products</h2>
            <div class="btn-right">
              <a href="#" class="d-inline-block text-uppercase text-hover fw-bold">View all</a>
            </div>
          </div>
          <div class="product-content padding-small">
            <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-5">
              <div class="col mb-4 mb-3">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item6.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
               
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4 mb-3">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item7.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
                 
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4 mb-3">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item8.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
                  
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4 mb-3">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item9.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
                
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
              <div class="col mb-4 mb-3">
                <div class="product-card position-relative">
                  <div class="card-img">
                    <img src="assets/images/card-item10.jpg" alt="product-item" class="product-image img-fluid" />
                    <div class="cart-concern position-absolute d-flex justify-content-center">
                      <div class="cart-button d-flex gap-2 justify-content-center align-items-center">
                        <button type="button" class="btn btn-light" data-bs-toggle="modal" data-bs-target="#modallong">
                          <svg class="shopping-carriage">
                            <use xlinkHref="#shopping-carriage"></use>
                          </svg>
                        </button>
                        <button type="button" class="btn btn-light" data-bs-target="#modaltoggle" data-bs-toggle="modal">
                          <svg class="quick-view">
                            <use xlinkHref="#quick-view"></use>
                          </svg>
                        </button>
                      </div>
                    </div>
                 
                  </div>
                  <div class="card-detail d-flex justify-content-between align-items-center mt-3">
                    <h3 class="card-title fs-6 fw-normal m-0">
                      <a href="#">Running shoes for men</a>
                    </h3>
                    <span class="card-price fw-bold">$99</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </section>
    
      <footer id="footer" class="py-5 border-top">
        <div class="container-lg">
          <div class="row">
            <div class="col-lg-2 pb-3">
              <div class="footer-menu">
                <h5 class="widget-title pb-2">Info</h5>
                <ul class="menu-list list-unstyled">
                  <li class="pb-2">
                    <a href="#">Track Your Order</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Our Blog</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Privacy policy</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Shipping</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Contact Us</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Help</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Community</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-lg-2 pb-3">
              <div class="footer-menu">
                <h5 class="widget-title pb-2">About</h5>
                <ul class="menu-list list-unstyled">
                  <li class="pb-2">
                    <a href="#">History</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Our Team</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Services</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Company</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Manufacture</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Wholesale</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Retail</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-lg-2 pb-3">
              <div class="footer-menu">
                <h5 class="widget-title pb-2">Women Shoes</h5>
                <ul class="menu-list list-unstyled">
                  <li class="pb-2">
                    <a href="#">Track Your Order</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Our Blog</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Privacy policy</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Shipping</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Contact Us</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Help</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Community</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-lg-2 pb-3">
              <div class="footer-menu">
                <h5 class="widget-title pb-2">Popular</h5>
                <ul class="menu-list list-unstyled">
                  <li class="pb-2">
                    <a href="#">Prices Drop</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">New Products</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Best Sales</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Stores</a>
                  </li>
                  <li class="pb-2">
                    <a href="#" data-bs-toggle="modal" data-bs-target="#modallogin">Login</a>
                  </li>
                  <li class="pb-2">
                    <a href="#" data-bs-toggle="modal" data-bs-target="#modallong">Cart</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-lg-2 pb-3">
              <div class="footer-menu">
                <h5 class="widget-title pb-2">Mens Collection</h5>
                <ul class="menu-list list-unstyled">
                  <li class="pb-2">
                    <a href="#">Delivery</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">About Us</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Shoes</a>
                  </li>
                  <li class="pb-2">
                    <a href="#">Contact Us</a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-lg-2 pb-3">
              <div class="footer-menu">
                <h5 class="widget-title pb-3">Get In Touch</h5>
                <div class="footer-contact-text">
                  <span>Stylish Online Store 123 Ludhiana. </span>
                  <span> Call us: (+91) 000 000 000-000 </span>
                  <span class="text-hover fw-bold light-border"><a href="mailto:therichpost.com">therichpost.com</a></span>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="col-md-6">
              <p>© Copyright Free 2023.</p>
            </div>
            <div class="col-md-6 text-lg-end">
              <p>Free HTML by <a href="https://therichpost.com/" target="_blank">Jassa</a></p>
            </div>
          </div>
        </div>
      </footer>
              
          </div>
    
     ); } export default App;

    3. Guys now we need to add below code into our reactdemo/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 Templates</title>
        
        <!-- 
        - favicon
      -->
      <link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml">
    
      <!-- 
        - custom css link
      -->
      <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
    
      <!-- 
        - google font link
      -->
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
      <link
        href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,900;1,900&family=Source+Sans+Pro:wght@400;600;700;900&display=swap"
        rel="stylesheet">
        <link
        href="assets/css/vendor.css"
        rel="stylesheet">
        <link
        href="assets/css/style.css"
        rel="stylesheet">
        </head>
      <body id="page-top">
        <noscript>You need to enable JavaScript to run this app.</noscript>
        <div id="root"></div>
        <script src="assets/js/jquery-1.11.0.min.js"></script>
        <script src="assets/js/plugins.js"></script>
        <script src="assets/js/script.js"></script>
      </body>
    </html>
    

    4. Guys here is git repo link and put images, styles inside public/assets folder:

    please create assets folder inside public folder and copy and paste all the folders form below git repo link

    Git Repo

    Friends in the end must run npm start command into your terminal to run the react project.

    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