File size: 1,415 Bytes
280050b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class Breadcrumb extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        nav {
          font-size: 0.875rem;
          margin-bottom: 1rem;
        }
        ol {
          display: flex;
          flex-wrap: wrap;
          list-style: none;
          padding: 0;
          margin: 0;
        }
        li {
          display: flex;
          align-items: center;
        }
        li:not(:last-child)::after {
          content: '/';
          margin: 0 0.5rem;
          color: #6b7280;
        }
        a {
          color: var(--vlc-sky);
          text-decoration: none;
          transition: color 0.2s;
        }
        a:hover {
          color: var(--vlc-leaf);
          text-decoration: underline;
        }
        [aria-current="page"] {
          color: var(--vlc-navy);
          font-weight: 500;
        }
      </style>
      <nav aria-label="Breadcrumb">
        <ol>
          <li><a href="https://www.vlcsolutions.com">Home</a></li>
          <li><a href="https://www.vlcsolutions.com/products.html">Products</a></li>
          <li><a href="https://www.vlcsolutions.com/microsoft-dynamics-365-business-central.html">Business Central</a></li>
          <li aria-current="page">Smart Warehouse Management</li>
        </ol>
      </nav>
    `;
  }
}
customElements.define('custom-breadcrumb', Breadcrumb);