File size: 2,970 Bytes
d78b9be
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ccd5ef3
 
 
 
 
 
 
 
 
 
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>
                :host {
                    display: block;
                    position: fixed;
                    top: 0;
                    left: 0;
                    right: 0;
                    z-index: 50;
                    background-color: var(--primary);
                    color: white;
                    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
                }
                
                .container {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 0.75rem 1rem;
                    max-width: 100%;
                }
                
                .logo {
                    font-weight: 600;
                    font-size: 1.25rem;
                    display: flex;
                    align-items: center;
                }
                
                .logo-icon {
                    margin-right: 0.5rem;
                }
                
                .actions {
                    display: flex;
                    align-items: center;
                    gap: 0.75rem;
                }
                
                .action-btn {
                    background-color: rgba(255, 255, 255, 0.1);
                    border-radius: 0.375rem;
                    padding: 0.5rem;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    cursor: pointer;
                    transition: background-color 0.2s;
                }
                
                .action-btn:hover {
                    background-color: rgba(255, 255, 255, 0.2);
                }
                
                .dark-mode-toggle {
                    background-color: transparent;
                    border: none;
                    color: inherit;
                    cursor: pointer;
                }
            </style>
            
            <div class="container">
                <div class="logo">
                    <i class="logo-icon" data-feather="message-square"></i>
                    <span>ChatVerse</span>
                </div>
                
                <div class="actions">
                <button class="action-btn" id="voice-btn" title="Voice Input">
                    <i data-feather="mic"></i>
                </button>
                <span id="voice-status" class="text-xs"></span>
                <button class="action-btn" id="screen-share-btn" title="Share Screen">
                    <i data-feather="monitor"></i>
                </button>
                <button class="dark-mode-toggle action-btn" id="dark-mode-toggle" title="Toggle Dark Mode">
                    <i data-feather="moon"></i>
                </button>