File size: 3,942 Bytes
d6c8af7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2dcfe74
 
 
a1d6c90
 
2dcfe74
 
d6c8af7
 
 
 
 
 
 
 
 
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
class CustomNavbar extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                nav {
                    background: rgba(17, 24, 39, 0.8);
                    backdrop-filter: blur(10px);
                    padding: 1rem 2rem;
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    position: fixed;
                    width: 100%;
                    top: 0;
                    z-index: 50;
                    border-bottom: 1px solid rgba(255,255,255,0.1);
                }
                .logo {
                    color: white;
                    font-weight: bold;
                    font-size: 1.5rem;
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                }
                .logo-icon {
                    color: #818cf8;
                }
                ul {
                    display: flex;
                    gap: 2rem;
                    list-style: none;
                    margin: 0;
                    padding: 0;
                }
                a {
                    color: white;
                    text-decoration: none;
                    transition: color 0.2s;
                    font-weight: 500;
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                }
                a:hover {
                    color: #a5b4fc;
                }
                .nav-buttons {
                    display: flex;
                    gap: 1rem;
                }
                .nav-button {
                    padding: 0.5rem 1.5rem;
                    border-radius: 0.375rem;
                    font-weight: 500;
                    transition: all 0.2s;
                }
                .primary {
                    background-color: #4f46e5;
                    color: white;
                }
                .primary:hover {
                    background-color: #4338ca;
                }
                .secondary {
                    border: 1px solid #4f46e5;
                    color: #4f46e5;
                }
                .secondary:hover {
                    background-color: #eef2ff;
                }
                @media (max-width: 768px) {
                    nav {
                        flex-direction: column;
                        padding: 1rem;
                    }
                    ul {
                        margin-top: 1rem;
                        flex-wrap: wrap;
                        justify-content: center;
                        gap: 1rem;
                    }
                }
            </style>
            <nav>
                <a href="/" class="logo">
                    <i data-feather="cpu" class="logo-icon"></i>
                    AI Forge
                </a>
                <ul>
                <li><a href="/features.html"><i data-feather="zap"></i> Features</a></li>
                <li><a href="/solutions.html"><i data-feather="briefcase"></i> Solutions</a></li>
                <li><a href="/healthcare-dashboard.html"><i data-feather="activity"></i> Healthcare AI</a></li>
                <li><a href="/automation-generator.html"><i data-feather="code"></i> Automation Generator</a></li>
<li><a href="/pricing.html"><i data-feather="dollar-sign"></i> Pricing</a></li>
                <li><a href="/docs.html"><i data-feather="book"></i> Docs</a></li>
</ul>
                <div class="nav-buttons">
                    <a href="/login.html" class="nav-button secondary">Log In</a>
                    <a href="/signup.html" class="nav-button primary">Sign Up Free</a>
                </div>
            </nav>
        `;
    }
}
customElements.define('custom-navbar', CustomNavbar);