templates/ui-placeholders.html.twig line 1

Open in your IDE?
  1. {{ include('partials/main.html.twig') }}
  2.     <head>
  3.         
  4.         {{ include('partials/title-meta.html.twig', {title: 'Placeholders'}) }}
  5.         {{ include('partials/head-css.html.twig') }}
  6.     </head>
  7.     {{ include('partials/body.html.twig') }}
  8.         <!-- Begin page -->
  9.         <div id="layout-wrapper">
  10.             {{ include('partials/menu.html.twig') }}
  11.             <!-- ============================================================== -->
  12.             <!-- Start right Content here -->
  13.             <!-- ============================================================== -->
  14.             <div class="main-content">
  15.                 <div class="page-content">
  16.                     <div class="container-fluid">
  17.                         {{ include('partials/page-title.html.twig', {pagetitle: 'Components', title: 'Placeholders'}) }}
  18.                         <div class="row">
  19.                             <div class="col-xl-6">
  20.                                 <div class="card">
  21.                                     <div class="card-header">
  22.                                         <h4 class="card-title">Default Examples</h4>                                        
  23.                                         <p class="card-title-desc">In the example below, we take a typical card component and recreate it with placeholders applied to create a “loading card”. Size and proportions are the same between the two.</p>
  24.                                     </div><!-- end card header -->
  25.                                     <div class="card-body">
  26.                                         <div class="row gap-4">
  27.                                             <div class="col-lg-5">
  28.                                                 <div class="card mb-0">
  29.                                                     <img src="/images/small/img-1.jpg" class="card-img-top" alt="...">
  30.                                                 
  31.                                                     <div class="card-body">
  32.                                                         <h5 class="card-title">Card title</h5>
  33.                                                         <p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's
  34.                                                             content.</p>
  35.                                                         <a href="#" class="btn btn-primary">Go somewhere</a>
  36.                                                     </div>
  37.                                                 </div>
  38.                                             </div>
  39.                                             <div class="col-lg-5">
  40.                                                 <div class="card mb-0" aria-hidden="true">
  41.                                                     <img src="/images/small/img-1.jpg" class="card-img-top" alt="...">
  42.                                                     <div class="card-body">
  43.                                                         <h5 class="card-title placeholder-glow">
  44.                                                             <span class="placeholder col-6"></span>
  45.                                                         </h5>
  46.                                                         <p class="card-text placeholder-glow">
  47.                                                             <span class="placeholder col-7"></span>
  48.                                                             <span class="placeholder col-4"></span>
  49.                                                             <span class="placeholder col-4"></span>
  50.                                                             <span class="placeholder col-6"></span>
  51.                                                             <span class="placeholder col-8"></span>
  52.                                                         </p>
  53.                                                         <a href="#" tabindex="-1" class="btn btn-primary disabled placeholder col-6"></a>
  54.                                                     </div>
  55.                                                 </div>
  56.                                             </div>
  57.                                         </div>
  58.                                     </div><!-- end card-body -->
  59.                                 </div><!-- end card -->
  60.                             </div><!-- end col -->
  61.         
  62.                             <div class="col-xl-6">
  63.                                 <div class="card">
  64.                                     <div class="card-header">
  65.                                         <h4 class="card-title">Placeholders with Grid column</h4>
  66.                                         <p  class="card-title-desc">Create placeholders with the <code>.placeholder</code> class and a grid column class (e.g., <code>.col-6</code>) to set the <code>width</code>. They can replace the text inside an element or be added as a modifier class to an existing component.</p>
  67.                                     </div><!-- end card header -->
  68.                                     <div class="card-body">
  69.                                         <div>
  70.                                             <p aria-hidden="true">
  71.                                                 <span class="placeholder col-6"></span>
  72.                                             </p>
  73.                                               
  74.                                             <a href="#" tabindex="-1" class="btn btn-primary disabled placeholder col-4" aria-hidden="true"></a>
  75.                                         </div>
  76.                                     </div><!-- end card-body -->
  77.                                 </div><!-- end card -->
  78.                                 <div class="card">
  79.                                     <div class="card-header">
  80.                                         <h4 class="card-title">Placeholders Width</h4>
  81.                                         <p class="card-title-desc">You can change the <code>width</code> through grid column classes, width utilities, or inline styles.</p>
  82.                                     </div><!-- end card header -->
  83.                                     <div class="card-body">
  84.                                         <div>
  85.                                             <span class="placeholder col-6"></span>
  86.                                             <span class="placeholder w-75"></span>
  87.                                             <span class="placeholder" style="width: 25%;"></span>
  88.                                         </div>
  89.                                     </div><!-- end card-body -->
  90.                                 </div><!-- end card -->
  91.                             </div><!-- end col -->
  92.                         </div><!-- end row -->
  93.         
  94.                         <div class="row">
  95.                             <div class="col-xl-6">
  96.                                 <div class="card">
  97.                                     <div class="card-header">
  98.                                         <h4 class="card-title">Placeholders Color</h4>
  99.                                         <p  class="card-title-desc">By default, the <code>placeholder</code> uses <code>currentColor</code>. This can be overridden with a custom color or utility class.</p>
  100.                                     </div><!-- end card header -->
  101.                                     <div class="card-body">
  102.                                        
  103.                                         <div>
  104.                                             <span class="placeholder col-12"></span>
  105.                                             <span class="placeholder col-12 bg-primary"></span>
  106.                                             <span class="placeholder col-12 bg-secondary"></span>
  107.                                             <span class="placeholder col-12 bg-success"></span>
  108.                                             <span class="placeholder col-12 bg-danger"></span>
  109.                                             <span class="placeholder col-12 bg-warning"></span>
  110.                                             <span class="placeholder col-12 bg-info"></span>
  111.                                             <span class="placeholder col-12 bg-light"></span>
  112.                                             <span class="placeholder col-12 bg-dark"></span>
  113.                                         </div>
  114.                                     </div><!-- end card-body -->
  115.                                 </div><!-- end card -->
  116.                             </div><!-- end col -->
  117.         
  118.                             <div class="col-xl-6">
  119.                                 <div class="card">
  120.                                     <div class="card-header">
  121.                                         <h4 class="card-title">Placeholders Sizing</h4>
  122.                                         <p class="card-title-desc">The size of <code>.placeholder</code>s are based on the typographic style of the parent element. Customize them with sizing modifiers: <code>.placeholder-lg</code>, <code>.placeholder-sm</code>, or <code>.placeholder-xs</code>.</p>
  123.                                     </div><!-- end card header -->
  124.                                     
  125.                                     <div class="card-body">
  126.                                         <div>
  127.                                             <span class="placeholder col-12 placeholder-lg"></span>
  128.                                             <span class="placeholder col-12"></span>
  129.                                             <span class="placeholder col-12 placeholder-sm"></span>
  130.                                             <span class="placeholder col-12 placeholder-xs"></span>
  131.                                         </div>
  132.                                     </div><!-- end card-body -->
  133.                                 </div><!-- end card -->
  134.                             </div><!-- end col -->
  135.                         </div><!-- end row -->
  136.         
  137.                         <div class="row">
  138.                             <div class="col-xl-6">
  139.                                 <div class="card">
  140.                                     <div class="card-header">
  141.                                         <h4 class="card-title">Animation in Placeholders</h4>
  142.                                         <p class="card-title-desc">Animate placeholders with <code>.placeholder-glow</code> or <code>.placeholder-wave</code> to better convey the perception of something being <em>actively</em> loaded.</p>                                        
  143.                                     </div><!-- end card header -->
  144.                                     <div class="card-body">
  145.                                         <div class="">
  146.                                             <p class="placeholder-glow">
  147.                                                 <span class="placeholder col-12"></span>
  148.                                             </p>
  149.                                     
  150.                                             <p class="placeholder-wave mb-0">
  151.                                                 <span class="placeholder col-12"></span>
  152.                                             </p>
  153.                                         </div>
  154.                                     </div><!-- end card-body -->
  155.                                 </div><!-- end card -->
  156.                             </div> <!-- end col -->
  157.                         </div> <!-- end row -->
  158.         
  159.                     </div>
  160.                     <!-- container-fluid -->
  161.                 </div>
  162.                 <!-- End Page-content -->
  163.                 
  164.                 {{ include('partials/footer.html.twig') }}
  165.             </div>
  166.             <!-- end main content-->
  167.         </div>
  168.         <!-- END layout-wrapper -->
  169.         {{ include('partials/right-sidebar.html.twig') }}
  170.         {{ include('partials/vendor-scripts.html.twig') }}
  171.         <script src="/js/app.js"></script>
  172.     </body>
  173. </html>