File size: 3,968 Bytes
90e733d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
108
109
110
111
112
class CustomHeader extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                .header {
                    border-bottom: 1px solid #4a5568;
                    padding-bottom: 1rem;
                }
                
                .header-top {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 0.5rem;
                }
                
                .system-title {
                    font-family: 'Chakra Petch', monospace;
                    font-size: 1.5rem;
                    text-transform: uppercase;
                    letter-spacing: 0.2em;
                    color: #ff9f1c;
                }
                
                .threat-level {
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                    font-size: 0.75rem;
                }
                
                .threat-indicator {
                    width: 8px;
                    height: 8px;
                    border-radius: 50%;
                    background: #dc2626;
                    box-shadow: 0 0 8px #dc2626;
                    animation: pulse-amber 2s infinite;
                }
                
                .header-stats {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                    gap: 1rem;
                    font-size: 0.75rem;
                }
                
                .stat-item {
                    display: flex;
                    justify-content: space-between;
                    padding: 0.25rem 0;
                    border-bottom: 1px solid rgba(74, 85, 104, 0.3);
                }
                
                .stat-label {
                    color: #4a5568;
                }
                
                .stat-value {
                    color: #ff9f1c;
                    font-weight: 500;
                }
                
                @keyframes pulse-amber {
                    0%, 100% { opacity: 1; }
                    50% { opacity: 0.5; }
                }
                
                @media (max-width: 768px) {
                    .header-stats {
                        grid-template-columns: 1fr;
                    }
                    
                    .system-title {
                        font-size: 1rem;
                    }
                }
            </style>
            <div class="header">
                <div class="header-top">
                    <h1 class="system-title">TIMBERSTACK TERMINAL</h1>
                    <div class="threat-level">
                        <div class="threat-indicator"></div>
                        <span>THREAT LEVEL: ELEVATED</span>
                    </div>
                </div>
                
                <div class="header-stats">
                    <div class="stat-item">
                        <span class="stat-label">OUTSIDE TEMP:</span>
                        <span class="stat-value">-18°C</span>
                    </div>
                    <div class="stat-item">
                        <span class="stat-label">POWER RESERVE:</span>
                        <span class="stat-value">94%</span>
                    </div>
                    <div class="stat-item">
                        <span class="stat-label">ACTIVE THREATS:</span>
                        <span class="stat-value">3</span>
                    </div>
                    <div class="stat-item">
                        <span class="stat-label">TIME:</span>
                        <span class="stat-value">23:47 AKST</span>
                    </div>
                </div>
            </div>
        `;
    }
}

customElements.define('custom-header', CustomHeader);