File size: 1,800 Bytes
801b8b3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                :host {
                    display: block;
                    width: 100%;
                    background-color: white;
                    border-top: 1px solid #e5e7eb;
                }
                footer {
                    padding: 1.5rem 2rem;
                    text-align: center;
                    color: #6b7280;
                    font-size: 0.875rem;
                }
                .footer-links {
                    display: flex;
                    justify-content: center;
                    gap: 1.5rem;
                    margin-bottom: 1rem;
                }
                .footer-link {
                    color: #6b7280;
                    transition: color 0.2s;
                }
                .footer-link:hover {
                    color: #4f46e5;
                }
                @media (max-width: 768px) {
                    .footer-links {
                        flex-direction: column;
                        gap: 0.5rem;
                    }
                }
            </style>
            <footer>
                <div class="footer-links">
                    <a href="#" class="footer-link">Terms</a>
                    <a href="#" class="footer-link">Privacy</a>
                    <a href="#" class="footer-link">Security</a>
                    <a href="#" class="footer-link">Status</a>
                    <a href="#" class="footer-link">Help</a>
                </div>
                <p>© 2023 PyBrowse - A secure Python Chromium browser</p>
            </footer>
        `;
    }
}
customElements.define('custom-footer', CustomFooter);