File size: 2,457 Bytes
615132b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class PluginHeader extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                :host {
                    display: block;
                    background: white;
                    border-radius: 0.75rem;
                    padding: 1.5rem;
                    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
                    margin-bottom: 2rem;
                }
                .header-container {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                }
                .title-container {
                    display: flex;
                    align-items: center;
                }
                .title-icon {
                    color: #ef4444;
                    margin-right: 0.75rem;
                    width: 2rem;
                    height: 2rem;
                }
                .title-text {
                    font-size: 1.5rem;
                    font-weight: 700;
                    color: #1f2937;
                }
                .controls {
                    display: flex;
                    align-items: center;
                    gap: 1rem;
                }
                .version-badge {
                    padding: 0.25rem 0.75rem;
                    background-color: #eff6ff;
                    color: #1e40af;
                    border-radius: 9999px;
                    font-size: 0.875rem;
                    font-weight: 500;
                }
                .settings-button {
                    color: #6b7280;
                    transition: color 0.2s;
                }
                .settings-button:hover {
                    color: #374151;
                }
            </style>
            <div class="header-container">
                <div class="title-container">
                    <i data-feather="alert-triangle" class="title-icon"></i>
                    <h1 class="title-text">AI Video Detective</h1>
                </div>
                <div class="controls">
                    <span class="version-badge">v1.0.0</span>
                    <button class="settings-button">
                        <i data-feather="settings"></i>
                    </button>
                </div>
            </div>
        `;
    }
}

customElements.define('plugin-header', PluginHeader);