File size: 5,793 Bytes
d0b3857
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
class CustomFooter extends HTMLElement {
    constructor() {
        super();
        this.attachShadow({ mode: 'open' });
    }

    connectedCallback() {
        this.shadowRoot.innerHTML = `
            <style>
                :host {
                    display: block;
                    margin-top: auto;
                }
                
                footer {
                    background: linear-gradient(135deg, #065f46, #047857);
                    color: white;
                    padding: 3rem 0 1rem;
                }
                
                .container {
                    max-width: 1200px;
                    margin: 0 auto;
                    padding: 0 1rem;
                }
                
                .footer-content {
                    display: grid;
                    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                    gap: 2rem;
                    margin-bottom: 2rem;
                }
                
                .footer-section h3 {
                    color: #fbbf24;
                    margin-bottom: 1rem;
                    font-size: 1.25rem;
                }
                
                .footer-section p, .footer-section li {
                    color: #d1d5db;
                    line-height: 1.6;
                }
                
                .footer-section ul {
                    list-style: none;
                    padding: 0;
                }
                
                .footer-section li {
                    margin-bottom: 0.5rem;
                    display: flex;
                    align-items: center;
                    gap: 0.5rem;
                }
                
                .footer-bottom {
                    text-align: center;
                    padding-top: 2rem;
                    border-top: 1px solid rgba(255,255,255,0.2);
                    color: #9ca3af;
                }
                
                .social-links {
                    display: flex;
                    gap: 1rem;
                    margin-top: 1rem;
                }
                
                .social-link {
                    width: 2.5rem;
                    height: 2.5rem;
                    background: rgba(255,255,255,0.1);
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: all 0.3s ease;
                }
                
                .social-link:hover {
                    background: #fbbf24;
                    transform: translateY(-2px);
                }
                
                @media (max-width: 768px) {
                    .footer-content {
                        grid-template-columns: 1fr;
                        text-align: center;
                    }
                    
                    .social-links {
                        justify-content: center;
                    }
                }
            </style>
            
            <footer>
                <div class="container">
                    <div class="footer-content">
                        <div class="footer-section">
                            <h3>เกี่ยวกับใจเกษตร</h3>
                            <p>นวัตกรรมอาหารพืชเข้มข้นที่ช่วยเพิ่มผลผลิต ลดต้นทุน และเป็นมิตรต่อสิ่งแวดล้อม</p>
                            <div class="social-links">
                                <a href="#" class="social-link">
                                    <i data-feather="facebook" class="w-5 h-5"></i>
                                </a>
                                <a href="#" class="social-link">
                                    <i data-feather="phone" 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="footer-section">
                            <h3>ผลิตภัณฑ์</h3>
                            <ul>
                                <li><i data-feather="leaf" class="w-4 h-4"></i> สูตร 1 - บำรุงต้น ราก ใบ</li>
                                <li><i data-feather="leaf" class="w-4 h-4"></i> สูตร 2 - เพิ่มผลผลิต ติดดอก</li>
                            </ul>
                        </div>
                        <div class="footer-section">
                            <h3>ติดต่อเรา</h3>
                            <ul>
                                <li><i data-feather="message-circle" class="w-4 h-4"></i> Line: WP ใจเกษตร Openchat</li>
                                <li><i data-feather="phone" class="w-4 h-4"></i> โทร: 089-123-4567</li>
                                <li><i data-feather="map-pin" class="w-4 h-4"></i> กรุงเทพมหานคร</li>
                            </ul>
                        </div>
                    </div>
                    <div class="footer-bottom">
                        <p>&copy; 2024 ใจเกษตร. สงวนลิขสิทธิ์ทุกประการ.</p>
                    </div>
                </div>
            </footer>
        `;

        // Replace feather icons
        feather.replace({ 'stroke-width': 2 });
    }
}

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