File size: 2,016 Bytes
8876673
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                .footer {
                    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
                }
                
                .link {
                    transition: all 0.2s ease-in-out;
                }
                
                .link:hover {
                    transform: translateY(-1px);
                }
            </style>
            <footer class="footer mt-12">
                <div class="container mx-auto px-4 py-8">
                    <div class="flex flex-col md:flex-row items-center justify-between gap-4">
                        <div class="text-gray-400 text-sm">
                            © ${new Date().getFullYear()} ScreenStream Studio. All streams preserved.
                        </div>
                        <div class="flex items-center gap-6">
                            <a href="#" class="link text-gray-400 hover:text-white transition-colors">
                                <i data-feather="help-circle"></i>
                            </a>
                            <a href="#" class="link text-gray-400 hover:text-white transition-colors">
                                <i data-feather="github"></i>
                            </a>
                            <a href="#" class="link text-gray-400 hover:text-white transition-colors">
                                <i data-feather="settings"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </footer>
        `;
        
        // Ensure feather icons are replaced in shadow DOM
        setTimeout(() => {
            if (this.shadowRoot.querySelector('[data-feather]')) {
                feather.replace(this.shadowRoot);
            }
        }, 100);
    }
}

customElements.define('custom-footer', CustomFooter);