File size: 2,604 Bytes
a85611d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class TestFooter extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                :host {
                    display: block;
                    background-color: white;
                    border-top: 1px solid #e2e8f0;
                    padding: 2rem 0;
                    margin-top: 3rem;
                }
                
                .footer-container {
                    max-width: 1400px;
                    margin: 0 auto;
                    padding: 0 2rem;
                }
                
                .footer-content {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    text-align: center;
                }
                
                .footer-links {
                    display: flex;
                    gap: 1.5rem;
                    margin-bottom: 1rem;
                }
                
                .footer-link {
                    color: #64748b;
                    text-decoration: none;
                    transition: color 0.2s;
                }
                
                .footer-link:hover {
                    color: #3b82f6;
                }
                
                .footer-copyright {
                    color: #94a3b8;
                    font-size: 0.875rem;
                }
                
                @media (min-width: 768px) {
                    .footer-content {
                        flex-direction: row;
                        justify-content: space-between;
                        text-align: left;
                    }
                    
                    .footer-links {
                        margin-bottom: 0;
                    }
                }
            </style>
            
            <div class="footer-container">
                <div class="footer-content">
                    <div class="footer-links">
                        <a href="#" class="footer-link">About</a>
                        <a href="#" class="footer-link">Documentation</a>
                        <a href="#" class="footer-link">Privacy</a>
                        <a href="#" class="footer-link">Terms</a>
                        <a href="#" class="footer-link">Contact</a>
                    </div>
                    <p class="footer-copyright">© 2023 TestCase Master Pro. All rights reserved.</p>
                </div>
            </div>
        `;
    }
}

customElements.define('test-footer', TestFooter);