File size: 2,188 Bytes
6e8f694
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                footer {
                    padding: 3rem 0;
                    text-align: center;
                    margin-top: 4rem;
                    border-top: 1px solid rgba(255, 255, 255, 0.1);
                }
                
                .social-links {
                    display: flex;
                    justify-content: center;
                    gap: 1.5rem;
                    margin-bottom: 1.5rem;
                }
                
                .social-link {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 40px;
                    height: 40px;
                    border-radius: 50%;
                    background: rgba(255, 255, 255, 0.05);
                    transition: all 0.3s ease;
                }
                
                .social-link:hover {
                    background: var(--primary);
                    transform: translateY(-3px);
                }
                
                .copyright {
                    color: rgba(255, 255, 255, 0.6);
                    font-size: 0.875rem;
                }
            </style>
            <footer>
                <div class="social-links">
                    <a href="#" class="social-link">
                        <i data-feather="github"></i>
                    </a>
                    <a href="#" class="social-link">
                        <i data-feather="twitter"></i>
                    </a>
                    <a href="#" class="social-link">
                        <i data-feather="linkedin"></i>
                    </a>
                    <a href="#" class="social-link">
                        <i data-feather="mail"></i>
                    </a>
                </div>
                <p class="copyright">© ${new Date().getFullYear()} CodeCraft Studio. All rights reserved.</p>
            </footer>
        `;
    }
}
customElements.define('custom-footer', CustomFooter);