File size: 4,524 Bytes
2d04ced
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
class CustomFooter extends HTMLElement {
  connectedCallback() {
    this.attachShadow({ mode: 'open' });
    this.shadowRoot.innerHTML = `
      <style>
        :host {
          display: block;
          background-color: #111827; /* gray-900 */
          color: #f3f4f6; /* gray-100 */
          padding: 4rem 1rem 2rem;
        }

        .container {
          max-width: 1200px;
          margin: 0 auto;
        }

        .grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
          gap: 3rem;
        }

        .footer-brand h2 {
          font-size: 1.5rem;
          font-weight: 700;
          color: #10b981; /* emerald-500 */
          margin-bottom: 1rem;
        }

        .footer-brand p {
          color: #9ca3af;
          line-height: 1.6;
          font-size: 0.9rem;
        }

        .footer-col h3 {
          font-size: 1.1rem;
          font-weight: 600;
          margin-bottom: 1rem;
          color: white;
        }

        .footer-col ul {
          list-style: none;
          padding: 0;
        }

        .footer-col li {
          margin-bottom: 0.5rem;
        }

        .footer-col a {
          color: #9ca3af;
          text-decoration: none;
          transition: color 0.3s;
          font-size: 0.9rem;
        }

        .footer-col a:hover {
          color: #eab308; /* yellow-500 */
        }

        .social-icons {
          display: flex;
          gap: 1rem;
          margin-top: 1rem;
        }

        .social-icon {
          color: white;
          transition: transform 0.3s;
        }

        .social-icon:hover {
          color: #10b981;
          transform: translateY(-2px);
        }

        .copyright {
          border-top: 1px solid #374151;
          margin-top: 3rem;
          padding-top: 2rem;
          text-align: center;
          color: #6b7280;
          font-size: 0.85rem;
        }
      </style>
      <footer>
        <div class="container">
          <div class="grid">
            <!-- Brand Column -->
            <div class="footer-brand">
              <h2>WeBalance</h2>
              <p>
                เสริมพลังแบบฟิตเฟิร์มด้วยโปรตีนคุณภาพสูง<br>
                พร้อมส่งมอบสุขภาพที่ดีที่สุดให้คุณ
              </p>
              <div class="social-icons">
                <a href="#" class="social-icon"><i data-feather="facebook"></i></a>
                <a href="#" class="social-icon"><i data-feather="instagram"></i></a>
                <a href="#" class="social-icon"><i data-feather="twitter"></i></a>
                <a href="#" class="social-icon"><i data-feather="youtube"></i></a>
              </div>
            </div>

            <!-- Links Column 1 -->
            <div class="footer-col">
              <h3>ผลิตภัณฑ์</h3>
              <ul>
                <li><a href="#features">คุณสมบัติเด่น</a></li>
                <li><a href="#ingredients">ส่วนประกอบ</a></li>
                <li><a href="#pricing">ราคาและโปรโมชั่น</a></li>
              </ul>
            </div>

            <!-- Links Column 2 -->
            <div class="footer-col">
              <h3>บริการลูกค้า</h3>
              <ul>
                <li><a href="#">วิธีการชำระเงิน</a></li>
                <li><a href="#">การจัดส่งสินค้า</a></li>
                <li><a href="#">นโยบายคืนสินค้า</a></li>
                <li><a href="#">ติดต่อเรา</a></li>
              </ul>
            </div>

             <!-- Contact Column -->
             <div class="footer-col">
                <h3>ติดต่อเรา</h3>
                <p class="text-gray-400 text-sm">
                    Wellness Platform Co., Ltd.<br>
                    123 ถนนสุขุมวิท, กรุงเทพฯ 10110<br>
                    อีเมล: support@webalance.com<br>
                    โทร: 02-123-4567
                </p>
            </div>
          </div>

          <div class="copyright">
            &copy; 2023 WeBalance by Wellness Platform. All rights reserved.
          </div>
        </div>
      </footer>
    `;
  }
}

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