File size: 2,241 Bytes
eb8c123
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        footer {
          background-color: rgba(17, 24, 39, 0.9);
          backdrop-filter: blur(8px);
          border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .footer-container {
          max-width: 1280px;
          margin: 0 auto;
          padding: 2rem 1rem;
        }
        
        .social-link {
          color: rgba(156, 163, 175, 0.9);
          transition: color 0.2s ease, transform 0.2s ease;
        }
        
        .social-link:hover {
          color: white;
          transform: translateY(-2px);
        }
      </style>
      <footer class="text-gray-400 py-8">
        <div class="footer-container">
          <div class="flex flex-col md:flex-row justify-between items-center">
            <div class="mb-6 md:mb-0">
              <div class="flex items-center space-x-2 mb-4">
                <i data-feather="mountain" class="text-blue-400"></i>
                <span class="text-xl font-bold text-white">TerrainGen Explorer</span>
              </div>
              <p class="text-sm max-w-md">
                A visual playground for exploring procedural terrain generation algorithms.
              </p>
            </div>
            
            <div class="flex space-x-6">
              <a href="#" class="social-link">
                <i data-feather="github" class="w-5 h-5"></i>
              </a>
              <a href="#" class="social-link">
                <i data-feather="twitter" class="w-5 h-5"></i>
              </a>
              <a href="#" class="social-link">
                <i data-feather="linkedin" class="w-5 h-5"></i>
              </a>
              <a href="#" class="social-link">
                <i data-feather="mail" class="w-5 h-5"></i>
              </a>
            </div>
          </div>
          
          <div class="mt-8 pt-8 border-t border-gray-800 text-sm text-center">
            <p>© ${new Date().getFullYear()} TerrainGen Explorer. All rights reserved.</p>
          </div>
        </div>
      </footer>
    `;
  }
}

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