File size: 2,181 Bytes
e34da73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
    connectedCallback() {
        this.attachShadow({ mode: 'open' });
        this.shadowRoot.innerHTML = `
            <style>
                :host {
                    display: block;
                    width: 100%;
                }
                
                footer {
                    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.1) 100%);
                }
                
                .footer-link {
                    transition: all 0.2s ease;
                }
                
                .footer-link:hover {
                    transform: translateY(-2px);
                    color: #10b981;
                }
            </style>
            <footer class="py-8 px-6 border-t border-emerald-200 dark:border-gray-700 mt-12">
                <div class="container mx-auto">
                    <div class="flex flex-col md:flex-row justify-between items-center">
                        <div class="mb-4 md:mb-0">
                            <p class="text-sm text-gray-600 dark:text-gray-300">
                                &copy; ${new Date().getFullYear()} Algorithmic ARboretum. All rights reserved.
                            </p>
                        </div>
                        <div class="flex gap-4">
                            <a href="#" class="footer-link text-gray-600 dark:text-gray-300 hover:text-emerald-500">
                                <i data-feather="github"></i>
                            </a>
                            <a href="#" class="footer-link text-gray-600 dark:text-gray-300 hover:text-emerald-500">
                                <i data-feather="twitter"></i>
                            </a>
                            <a href="#" class="footer-link text-gray-600 dark:text-gray-300 hover:text-emerald-500">
                                <i data-feather="mail"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </footer>
        `;
        
        feather.replace();
    }
}

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