File size: 2,249 Bytes
1d2d740
 
 
 
 
 
979bd80
1d2d740
979bd80
1d2d740
 
 
 
 
 
 
 
 
 
 
 
979bd80
1d2d740
 
979bd80
1d2d740
 
 
 
 
 
 
 
 
 
 
979bd80
1d2d740
 
 
 
 
 
979bd80
1d2d740
 
 
 
 
 
 
 
979bd80
1d2d740
 
 
 
 
979bd80
1d2d740
 
 
 
 
 
 
 
 
 
 
 
 
c56b9f4
 
 
 
 
1d2d740
c56b9f4
1d2d740
 
 
 
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
class CustomNavbar extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        nav {
          background: rgba(17, 24, 39, 0.95);
          backdrop-filter: blur(10px);
          border-bottom: 1px solid rgba(55, 65, 81, 0.5);
          padding: 1rem 2rem;
          display: flex;
          justify-content: space-between;
          align-items: center;
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          z-index: 1000;
          transition: all 0.3s ease;
        }
        .logo { 
          color: #ffffff; 
          font-weight: 800; 
          font-size: 1.5rem;
          background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
        }
        ul { 
          display: flex; 
          gap: 2rem; 
          list-style: none; 
          margin: 0; 
          padding: 0; 
        }
        a { 
          color: #d1d5db; 
          text-decoration: none; 
          font-weight: 500;
          transition: all 0.2s ease;
          position: relative;
        }
        a:hover { 
          color: #ffffff;
        }
        a::after {
          content: '';
          position: absolute;
          width: 0;
          height: 2px;
          bottom: -4px;
          left: 0;
          background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
          transition: width 0.3s ease;
        }
        a:hover::after {
          width: 100%;
        }
@media (max-width: 768px) {
          nav {
            padding: 1rem;
            flex-direction: column;
            gap: 1rem;
          }
          ul {
            gap: 1rem;
          }
        }
      </style>
      <nav>
        <div class="logo">FlexGen Studio</div>
        <ul>
          <li><a href="#hero">ι¦–ι‘΅</a></li>
          <li><a href="#features">η‰Ήζ€§</a></li>
          <li><a href="#generator">η”Ÿζˆε™¨</a></li>
          <li><a href="#documentation">ζ–‡ζ‘£</a></li>
          <li><a href="https://mybatis-flex.com" target="_blank">ζ–‡ζ‘£</a></li>
        </ul>
</nav>
    `;
  }
}
customElements.define('custom-navbar', CustomNavbar);