File size: 2,224 Bytes
b311694
 
 
 
 
 
 
 
 
 
 
 
 
963228a
 
 
b311694
 
 
 
 
 
 
 
 
 
 
 
 
963228a
 
b311694
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
963228a
b311694
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c2e31f2
 
 
 
 
 
 
 
b311694
 
 
 
 
 
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
84
85
86
87
88
89
90
91
92
93
class CustomNavbar extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        :host {
          display: block;
          position: fixed;
          top: 0;
          left: 0;
          right: 0;
          z-index: 1000;
          backdrop-filter: blur(10px);
          background-color: rgba(10, 10, 10, 0.9);
          border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}
        
        nav {
          display: flex;
          justify-content: space-between;
          align-items: center;
          padding: 1rem 2rem;
          max-width: 1400px;
          margin: 0 auto;
        }
        
        .logo {
          font-size: 1.5rem;
          font-weight: 700;
          color: #3b82f6;
}
        
        .nav-links {
          display: flex;
          gap: 2rem;
        }
        
        .nav-links a {
          color: #e2e8f0;
          text-decoration: none;
          font-weight: 500;
          transition: color 0.3s;
          position: relative;
        }
        
        .nav-links a:hover {
          color: #06b6d4;
        }
        
        .nav-links a::after {
          content: '';
          position: absolute;
          bottom: -5px;
          left: 0;
          width: 0;
          height: 2px;
          background: #3b82f6;
transition: width 0.3s;
        }
        
        .nav-links a:hover::after {
          width: 100%;
        }
        
        @media (max-width: 768px) {
          nav {
            flex-direction: column;
            padding: 1rem;
          }
          
          .nav-links {
            margin-top: 1rem;
            gap: 1rem;
          }
        }
      </style>
      <nav>
        <div class="logo">SCO Secure</div>
        <div class="nav-links">
        <a href="#summary">خلاصه اجرایی</a>
        <a href="#challenges">چالش‌ها</a>
        <a href="#solution">راه‌حل</a>
        <a href="#architecture">معماری</a>
        <a href="#cost">هزینه‌ها</a>
        <a href="#roadmap">نقشه راه</a>
        <a href="#contact">تماس</a>
</div>
      </nav>
    `;
  }
}

customElements.define('custom-navbar', CustomNavbar);