File size: 1,335 Bytes
4ea3c28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        :host {
          display: block;
          width: 100%;
          padding: 3rem 0;
          margin-top: 4rem;
          background-color: #F8F8F8;
          color: #6B6B6B;
          font-size: 0.875rem;
        }
        .footer-content {
          max-width: 1440px;
          margin: 0 auto;
          padding: 0 2rem;
          text-align: center;
        }
        .footer-links {
          display: flex;
          justify-content: center;
          gap: 1.5rem;
          margin-bottom: 1rem;
        }
        .footer-links a {
          color: inherit;
          text-decoration: none;
          transition: color 0.2s;
        }
        .footer-links a:hover {
          color: #1A1A1A;
        }
        .copyright {
          opacity: 0.7;
        }
      </style>
      <div class="footer-content">
        <div class="footer-links">
          <a href="/about">About</a>
          <a href="/terms">Terms</a>
          <a href="/dmca">DMCA</a>
        </div>
        <div class="copyright">© ${new Date().getFullYear()} AIPHY. All sounds belong to their respective owners.</div>
      </div>
    `;
  }
}
customElements.define('custom-footer', CustomFooter);