CSNET's picture
เอกสารข้อมูลผลิตภัณฑ์: WeBalance Whey Protein Isolate
2d04ced verified
Raw History Blame Contribute Delete
4.52 kB
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);