เอกสารสรุปข้อมูล: ผลิตภัณฑ์อาหารพืช "ใจเกษตร"
Browse filesบทสรุปสำหรับผู้บริหาร
เอกสารฉบับนี้สังเคราะห์ข้อมูลเชิงลึกเกี่ยวกับผลิตภัณฑ์อาหารพืช "ใจเกษตร" ซึ่งเป็นนวัตกรรมอาหารเสริมเข้มข้นสำหรับพืช โดยนำเสนอเป็นทางเลือกที่มีประสิทธิภาพสูงกว่าปุ๋ยเคมีทั่วไปในท้องตลาด ใจเกษตรถูกพัฒนาขึ้นเพื่อตอบสนองต่อความท้าทายพื้นฐานของการเกษตรกรรม นั่นคือความสำคัญของคุณภาพดินและธาตุอาหารที่จำเป็นต่อการเจริญเติบโตของพืช โดยมุ่งแก้ไขข้อจำกัดของปุ๋ยเคมีแบบดั้งเดิม เช่น น้ำหนักมาก (50 กก.) การดูดซึมต่ำ การเคลื่อนย้ายลำบาก และผลกระทบเชิงลบต่อโครงสร้างดินในระยะยาว
ผลิตภัณฑ์ใจเกษตรโดดเด่นด้วยการรวบรวมธาตุอาหารที่จำเป็นต่อพืชหลายชนิดไว้ในผลิตภัณฑ์เดียว ผ่าน 3 นวัตกรรมหลัก ได้แก่ Hybrid Innovation, Express Innovation และ Plants GPS Innovation ซึ่งช่วยให้พืชดูดซึมสารอาหารได้อย่างรวดเร็วและตรงจุด มีอัตราการดูดซึมสูงถึง 95% และเห็นผลลัพธ์ภายใน 2-5 วัน เมื่อเปรียบเทียบกับปุ๋ยทั่วไปที่มีอัตราการดูดซึมเพียง 30-50% และใช้เวลา 7-14 วันจึงจะเห็นผล นอกจากนี้ ใจเกษตรยังมีคุณสมบัติในการเพิ่มผลผลิตได้ถึง 60-70% มีความปลอดภัยสูง (99.99%) และเป็นมิตรต่อสิ่งแวดล้อม
จุดแข็งที่สำคัญคือความเข้มข้นของผลิตภัณฑ์ โดยใจเกษตร 1 กิโลกรัม มีประสิทธิภาพเทียบเท่าปุ๋ยเคมี 50 กิโลกรัม ช่วยลดต้นทุนด้านแรงงานและการขนส่งได้อย่างมีนัยสำคัญ สามารถใช้ได้กับพืชทุกชนิดในทุกระยะการเจริญเติบโต ผ่านการใช้งานได้ทั้งทางดินและทางใบ จึงนับเป็นโซลูชันที่ครบวงจรสำหรับเกษตรกรที่ต้องการเพิ่มประสิทธิภาพ ลดต้นทุน และทำการเกษตรอย่างยั่งยืน
--------------------------------------------------------------------------------
1. พื้นฐานการเจริญเติบโตของพืชและความสำคัญของดิน
การเจริญเติบโตของพืชขึ้นอยู่กับปัจจัยหลักสองประการ ซึ่งเป็นพื้นฐานสำคัญในการทำความเข้าใจถึงความต้องการของพืช
* ปัจจัยภายใน: ได้แก่ ลักษณะทางพันธุกรรม (Genetic) ของพืชแต่ละชนิด ซึ่งเป็นตัวกำหนดศักยภาพในการเจริญเติบโตและให้ผลผลิต
* ปัจจัยภายนอก: ประกอบด้วย ดิน, น้ำ, อากาศ, แสงแดด, อุณหภูมิ และธาตุอาหาร ซึ่งเป็นปัจจัยที่เกษตรกรสามารถบริหารจัดการได้
ในบรรดาปัจจัยภายนอกทั้งหมด คุณภาพของดิน ถือเป็นหัวใจสำคัญที่สุด ดังคำกล่าวที่ว่า "ดินไม่ดี ปลูกพืชยังไงก็ไม่โต!" ดินเป็นแหล่งกักเก็บธาตุอาหาร, น้ำ และอินทรียวัตถุซึ่งเป็นอาหารของจุลินทรีย์ที่เป็นประโยชน์ ทั้งยังเป็นที่ยึดเหนี่ยวของรากพืช การประเมินและปรับปรุงคุณภาพดินจึงเป็นขั้นตอนแรกที่สำคัญที่สุดในการเพาะปลูก
ประเภทของดินที่มีปัญหาและแนวทางการแก้ไข
ดินที่ไม่มีคุณภาพสามารถจำแนกได้เป็น 4 ประเภทหลัก ซึ่งส่งผลเสียต่อการเจริญเติบโตของพืชแตกต่างกันไป
1. ดินแข็ง: ดินมีสถานะแข็งมาก ทำให้ขุดได้ยาก รากพืชไม่สามารถชอนไชและขยายตัวได้ดี ส่งผลให้มีปริมาณรากน้อย การดูดซึมธาตุอาหารและน้ำทำได้จำกัด ทำให้พืชโตช้า
2. ดินแน่น: โครงสร้างดินอัดแน่น ทำให้รากพืชชอนไชได้ยาก การระบายน้ำไม่ดี เมื่อรดน้ำหรือฝนตกจะเกิดน้ำขังบนผิวดิน ทำให้เกิดความชื้นสูงและเสี่ยงต่อการเกิดโรคจากเชื้อราได้ง่าย
3. ดินไม่อุ้มน้ำ: เช่น ดินทราย หรือดินร่วนปนทราย มีคุณสมบัติระบายน้ำได้ดีเกินไป ทำให้น้ำซึมผ่านชั้นรากพืชลงไปอย่างรวดเร็ว ไม่สามารถกักเก็บความชื้นไว้ได้ ส่งผลให้พืชเกิดอาการขาดน้ำ
4. ดินเปรี้ยว (ดินกรด) และ ดินเค็ม (ดินด่าง): ดินที่มีค่าความเป็นกรด-ด่างไม่เหมาะสม จะไปจับล็อคธาตุอาหารบางชนิดไว้ ทำให้พืชไม่สามารถนำธาตุอาหารเหล่านั้นไปใช้ได้ แม้ว่าจะมีธาตุอาหารนั้นอยู่ในดินก็ตาม ส่งผลให้พืชแสดงอาการขาดธาตุอาหารได้
แนวทางการแก้ไข: สำหรับดินทั้ง 4 ประเภทนี้ ควรปรับปรุงโครงสร้างดินก่อนการเพาะปลูกโดยการเติมอินทรียวัตถุ เช่น ปุ๋ยอินทรีย์ ปุ๋ยหมัก หรือปุ๋ยคอก หรือใช้สารปรับปรุงดิน เช่น ฮิวมิคและฟูลวิค เพื่อความรวดเร็วและสะดวก
2. ความต้องการธาตุอาหารและกฎแห่งปัจจัยจำกัด (Law of Minimum)
พืชต้องการธาตุอาหารทั้งหมด 17 ชนิดเพื่อการเจริญเติบโตที่สมบูรณ์ แบ่งออกเป็นสองกลุ่มหลัก
แหล่งที่มา จำนวน รายชื่อธาตุอาหาร
ได้จาก น้ำและอากาศ 3 ธาตุ คาร์บอน (C), ออกซิเจน (O), ไฮโดรเจน (H)
ได้จาก ดิน 14 ธาตุ ไนโตรเจน (N), ฟอสฟอรัส (P), โพแทสเซียม (K), แคลเซียม (Ca), แมกนีเซียม (Mg), กำมะถัน (S), เหล็ก (Fe), แมงกานีส (Mn), โบรอน (B), โมลิบดีนัม (Mo), ทองแดง (Cu), สังกะสี (Zn), คลอรีน (Cl), นิกเกิล (Ni)
กฎของ Law of Minimum
หลักการนี้ระบุว่า "การเจริ�
- README.md +8 -5
- components/footer.js +144 -0
- components/navbar.js +145 -0
- index.html +209 -19
- script.js +109 -0
- style.css +84 -19
|
@@ -1,10 +1,13 @@
|
|
| 1 |
---
|
| 2 |
-
title: Gold
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: 🌱ใจเกษตร Gold 🌾
|
| 3 |
+
colorFrom: yellow
|
| 4 |
+
colorTo: red
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://huggingface.co/deepsite).
|
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomFooter extends HTMLElement {
|
| 2 |
+
constructor() {
|
| 3 |
+
super();
|
| 4 |
+
this.attachShadow({ mode: 'open' });
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
connectedCallback() {
|
| 8 |
+
this.shadowRoot.innerHTML = `
|
| 9 |
+
<style>
|
| 10 |
+
:host {
|
| 11 |
+
display: block;
|
| 12 |
+
margin-top: auto;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
footer {
|
| 16 |
+
background: linear-gradient(135deg, #065f46, #047857);
|
| 17 |
+
color: white;
|
| 18 |
+
padding: 3rem 0 1rem;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
.container {
|
| 22 |
+
max-width: 1200px;
|
| 23 |
+
margin: 0 auto;
|
| 24 |
+
padding: 0 1rem;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.footer-content {
|
| 28 |
+
display: grid;
|
| 29 |
+
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
| 30 |
+
gap: 2rem;
|
| 31 |
+
margin-bottom: 2rem;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
.footer-section h3 {
|
| 35 |
+
color: #fbbf24;
|
| 36 |
+
margin-bottom: 1rem;
|
| 37 |
+
font-size: 1.25rem;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.footer-section p, .footer-section li {
|
| 41 |
+
color: #d1d5db;
|
| 42 |
+
line-height: 1.6;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.footer-section ul {
|
| 46 |
+
list-style: none;
|
| 47 |
+
padding: 0;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
.footer-section li {
|
| 51 |
+
margin-bottom: 0.5rem;
|
| 52 |
+
display: flex;
|
| 53 |
+
align-items: center;
|
| 54 |
+
gap: 0.5rem;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.footer-bottom {
|
| 58 |
+
text-align: center;
|
| 59 |
+
padding-top: 2rem;
|
| 60 |
+
border-top: 1px solid rgba(255,255,255,0.2);
|
| 61 |
+
color: #9ca3af;
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
.social-links {
|
| 65 |
+
display: flex;
|
| 66 |
+
gap: 1rem;
|
| 67 |
+
margin-top: 1rem;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
.social-link {
|
| 71 |
+
width: 2.5rem;
|
| 72 |
+
height: 2.5rem;
|
| 73 |
+
background: rgba(255,255,255,0.1);
|
| 74 |
+
border-radius: 50%;
|
| 75 |
+
display: flex;
|
| 76 |
+
align-items: center;
|
| 77 |
+
justify-content: center;
|
| 78 |
+
transition: all 0.3s ease;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
.social-link:hover {
|
| 82 |
+
background: #fbbf24;
|
| 83 |
+
transform: translateY(-2px);
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
@media (max-width: 768px) {
|
| 87 |
+
.footer-content {
|
| 88 |
+
grid-template-columns: 1fr;
|
| 89 |
+
text-align: center;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.social-links {
|
| 93 |
+
justify-content: center;
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
</style>
|
| 97 |
+
|
| 98 |
+
<footer>
|
| 99 |
+
<div class="container">
|
| 100 |
+
<div class="footer-content">
|
| 101 |
+
<div class="footer-section">
|
| 102 |
+
<h3>เกี่ยวกับใจเกษตร</h3>
|
| 103 |
+
<p>นวัตกรรมอาหารพืชเข้มข้นที่ช่วยเพิ่มผลผลิต ลดต้นทุน และเป็นมิตรต่อสิ่งแวดล้อม</p>
|
| 104 |
+
<div class="social-links">
|
| 105 |
+
<a href="#" class="social-link">
|
| 106 |
+
<i data-feather="facebook" class="w-5 h-5"></i>
|
| 107 |
+
</a>
|
| 108 |
+
<a href="#" class="social-link">
|
| 109 |
+
<i data-feather="phone" class="w-5 h-5"></i>
|
| 110 |
+
</a>
|
| 111 |
+
<a href="#" class="social-link">
|
| 112 |
+
<i data-feather="mail" class="w-5 h-5"></i>
|
| 113 |
+
</a>
|
| 114 |
+
</div>
|
| 115 |
+
</div>
|
| 116 |
+
<div class="footer-section">
|
| 117 |
+
<h3>ผลิตภัณฑ์</h3>
|
| 118 |
+
<ul>
|
| 119 |
+
<li><i data-feather="leaf" class="w-4 h-4"></i> สูตร 1 - บำรุงต้น ราก ใบ</li>
|
| 120 |
+
<li><i data-feather="leaf" class="w-4 h-4"></i> สูตร 2 - เพิ่มผลผลิต ติดดอก</li>
|
| 121 |
+
</ul>
|
| 122 |
+
</div>
|
| 123 |
+
<div class="footer-section">
|
| 124 |
+
<h3>ติดต่อเรา</h3>
|
| 125 |
+
<ul>
|
| 126 |
+
<li><i data-feather="message-circle" class="w-4 h-4"></i> Line: WP ใจเกษตร Openchat</li>
|
| 127 |
+
<li><i data-feather="phone" class="w-4 h-4"></i> โทร: 089-123-4567</li>
|
| 128 |
+
<li><i data-feather="map-pin" class="w-4 h-4"></i> กรุงเทพมหานคร</li>
|
| 129 |
+
</ul>
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
<div class="footer-bottom">
|
| 133 |
+
<p>© 2024 ใจเกษตร. สงวนลิขสิทธิ์ทุกประการ.</p>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
</footer>
|
| 137 |
+
`;
|
| 138 |
+
|
| 139 |
+
// Replace feather icons
|
| 140 |
+
feather.replace({ 'stroke-width': 2 });
|
| 141 |
+
}
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
customElements.define('custom-footer', CustomFooter);
|
|
@@ -0,0 +1,145 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CustomNavbar extends HTMLElement {
|
| 2 |
+
constructor() {
|
| 3 |
+
super();
|
| 4 |
+
this.attachShadow({ mode: 'open' });
|
| 5 |
+
}
|
| 6 |
+
|
| 7 |
+
connectedCallback() {
|
| 8 |
+
this.shadowRoot.innerHTML = `
|
| 9 |
+
<style>
|
| 10 |
+
:host {
|
| 11 |
+
display: block;
|
| 12 |
+
position: fixed;
|
| 13 |
+
top: 0;
|
| 14 |
+
left: 0;
|
| 15 |
+
right: 0;
|
| 16 |
+
z-index: 1000;
|
| 17 |
+
transition: all 0.3s ease;
|
| 18 |
+
}
|
| 19 |
+
|
| 20 |
+
.navbar {
|
| 21 |
+
background: rgba(255, 255, 255, 0.95);
|
| 22 |
+
backdrop-filter: blur(10px);
|
| 23 |
+
box-shadow: 0 2px 20px rgba(0,0,0,0.1);
|
| 24 |
+
transition: all 0.3s ease;
|
| 25 |
+
}
|
| 26 |
+
|
| 27 |
+
.navbar.scrolled {
|
| 28 |
+
background: rgba(255, 255, 255, 0.98);
|
| 29 |
+
box-shadow: 0 4px 30px rgba(0,0,0,0.15);
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.container {
|
| 33 |
+
max-width: 1200px;
|
| 34 |
+
margin: 0 auto;
|
| 35 |
+
padding: 0 1rem;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.nav-wrapper {
|
| 39 |
+
display: flex;
|
| 40 |
+
justify-content: space-between;
|
| 41 |
+
align-items: center;
|
| 42 |
+
height: 4rem;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
.logo {
|
| 46 |
+
font-size: 1.5rem;
|
| 47 |
+
font-weight: bold;
|
| 48 |
+
color: #10b981;
|
| 49 |
+
text-decoration: none;
|
| 50 |
+
display: flex;
|
| 51 |
+
align-items: center;
|
| 52 |
+
gap: 0.5rem;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
.nav-links {
|
| 56 |
+
display: flex;
|
| 57 |
+
gap: 2rem;
|
| 58 |
+
list-style: none;
|
| 59 |
+
margin: 0;
|
| 60 |
+
padding: 0;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.nav-link {
|
| 64 |
+
text-decoration: none;
|
| 65 |
+
color: #374151;
|
| 66 |
+
font-weight: 500;
|
| 67 |
+
transition: color 0.3s ease;
|
| 68 |
+
position: relative;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
.nav-link:hover {
|
| 72 |
+
color: #10b981;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
.nav-link::after {
|
| 76 |
+
content: '';
|
| 77 |
+
position: absolute;
|
| 78 |
+
bottom: -0.5rem;
|
| 79 |
+
left: 0;
|
| 80 |
+
width: 0;
|
| 81 |
+
height: 2px;
|
| 82 |
+
background: #10b981;
|
| 83 |
+
transition: width 0.3s ease;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.nav-link:hover::after {
|
| 87 |
+
width: 100%;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
.mobile-menu-btn {
|
| 91 |
+
display: none;
|
| 92 |
+
background: none;
|
| 93 |
+
border: none;
|
| 94 |
+
cursor: pointer;
|
| 95 |
+
padding: 0.5rem;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
@media (max-width: 768px) {
|
| 99 |
+
.nav-links {
|
| 100 |
+
display: none;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.mobile-menu-btn {
|
| 104 |
+
display: block;
|
| 105 |
+
}
|
| 106 |
+
}
|
| 107 |
+
</style>
|
| 108 |
+
|
| 109 |
+
<nav class="navbar">
|
| 110 |
+
<div class="container">
|
| 111 |
+
<div class="nav-wrapper">
|
| 112 |
+
<a href="#home" class="logo">
|
| 113 |
+
<i data-feather="leaf" class="w-6 h-6"></i>
|
| 114 |
+
ใจเกษตร
|
| 115 |
+
</a>
|
| 116 |
+
<ul class="nav-links">
|
| 117 |
+
<li><a href="#features" class="nav-link">คุณสมบัติ</a></li>
|
| 118 |
+
<li><a href="#products" class="nav-link">ผลิตภัณฑ์</a></li>
|
| 119 |
+
<li><a href="#calculator" class="nav-link">คำนวณ</a></li>
|
| 120 |
+
<li><a href="#contact" class="nav-link">ติดต่อ</a></li>
|
| 121 |
+
</ul>
|
| 122 |
+
<button class="mobile-menu-btn">
|
| 123 |
+
<i data-feather="menu" class="w-6 h-6"></i>
|
| 124 |
+
</button>
|
| 125 |
+
</div>
|
| 126 |
+
</div>
|
| 127 |
+
</nav>
|
| 128 |
+
`;
|
| 129 |
+
|
| 130 |
+
// Add scroll effect
|
| 131 |
+
window.addEventListener('scroll', () => {
|
| 132 |
+
const navbar = this.shadowRoot.querySelector('.navbar');
|
| 133 |
+
if (window.scrollY > 50) {
|
| 134 |
+
navbar.classList.add('scrolled');
|
| 135 |
+
} else {
|
| 136 |
+
navbar.classList.remove('scrolled');
|
| 137 |
+
}
|
| 138 |
+
});
|
| 139 |
+
|
| 140 |
+
// Replace feather icons
|
| 141 |
+
feather.replace({ 'stroke-width': 2 });
|
| 142 |
+
}
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
customElements.define('custom-navbar', CustomNavbar);
|
|
@@ -1,19 +1,209 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="th">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ใจเกษตร - นวัตกรรมอาหารพืชเข้มข้น</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 11 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 12 |
+
</head>
|
| 13 |
+
<body class="bg-gray-50">
|
| 14 |
+
<custom-navbar></custom-navbar>
|
| 15 |
+
|
| 16 |
+
<!-- Hero Section -->
|
| 17 |
+
<section class="relative bg-gradient-to-br from-emerald-500 via-emerald-600 to-emerald-700 text-white overflow-hidden">
|
| 18 |
+
<div class="absolute inset-0 bg-black opacity-10"></div>
|
| 19 |
+
<div class="relative z-10 container mx-auto px-4 py-24">
|
| 20 |
+
<div class="max-w-4xl mx-auto text-center">
|
| 21 |
+
<h1 class="text-5xl md:text-7xl font-bold mb-6 animate-fade-in">
|
| 22 |
+
ใจเกษตร
|
| 23 |
+
<span class="block text-2xl md:text-3xl font-light mt-4 text-emerald-100">
|
| 24 |
+
นวัตกรรมอาหารพืชเข้มข้น
|
| 25 |
+
</span>
|
| 26 |
+
</h1>
|
| 27 |
+
<p class="text-xl md:text-2xl mb-8 text-emerald-50">
|
| 28 |
+
เพิ่มผลผลิต 60-70% | ดูดซึม 95% | ปลอดภัย 99.99%
|
| 29 |
+
</p>
|
| 30 |
+
<div class="flex flex-col sm:flex-row gap-4 justify-center">
|
| 31 |
+
<a href="#products" class="bg-yellow-500 hover:bg-yellow-600 text-emerald-900 px-8 py-4 rounded-full font-bold text-lg transition-all duration-300 transform hover:scale-105 shadow-lg">
|
| 32 |
+
ดูผลิตภัณฑ์
|
| 33 |
+
</a>
|
| 34 |
+
<a href="#calculator" class="border-2 border-white hover:bg-white hover:text-emerald-600 px-8 py-4 rounded-full font-bold text-lg transition-all duration-300">
|
| 35 |
+
คำนวณอัตราการใช้
|
| 36 |
+
</a>
|
| 37 |
+
</div>
|
| 38 |
+
</div>
|
| 39 |
+
</div>
|
| 40 |
+
<div class="absolute bottom-0 left-0 right-0">
|
| 41 |
+
<svg class="w-full h-12 md:h-24" viewBox="0 0 1200 120" fill="none" xmlns="http://www.w3.org/2000/svg">
|
| 42 |
+
<path d="M0 120L50 110C100 100 200 80 300 60C400 40 500 20 600 15C700 10 800 20 900 35C1000 50 1100 70 1150 80L1200 90V120H1150C1100 120 1000 120 900 120C800 120 700 120 600 120C500 120 400 120 300 120C200 120 100 120 50 120H0Z" fill="#F9FAFB"/>
|
| 43 |
+
</svg>
|
| 44 |
+
</div>
|
| 45 |
+
</section>
|
| 46 |
+
|
| 47 |
+
<!-- Features Section -->
|
| 48 |
+
<section id="features" class="py-20 bg-gray-50">
|
| 49 |
+
<div class="container mx-auto px-4">
|
| 50 |
+
<h2 class="text-4xl font-bold text-center mb-16 text-gray-800">
|
| 51 |
+
ทำไมต้องเลือกใจเกษตร?
|
| 52 |
+
</h2>
|
| 53 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 54 |
+
<div class="bg-white rounded-2xl p-8 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2">
|
| 55 |
+
<div class="w-16 h-16 bg-emerald-500 rounded-full flex items-center justify-center mb-6">
|
| 56 |
+
<i data-feather="zap" class="w-8 h-8 text-white"></i>
|
| 57 |
+
</div>
|
| 58 |
+
<h3 class="text-2xl font-bold mb-4 text-gray-800">ดูดซึมเร็ว</h3>
|
| 59 |
+
<p class="text-gray-600">เห็นผลใน 2-5 วัน ด้วยอัตราการดูดซึมสูงถึง 95%</p>
|
| 60 |
+
</div>
|
| 61 |
+
<div class="bg-white rounded-2xl p-8 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2">
|
| 62 |
+
<div class="w-16 h-16 bg-yellow-500 rounded-full flex items-center justify-center mb-6">
|
| 63 |
+
<i data-feather="trending-up" class="w-8 h-8 text-white"></i>
|
| 64 |
+
</div>
|
| 65 |
+
<h3 class="text-2xl font-bold mb-4 text-gray-800">เพิ่มผลผลิต</h3>
|
| 66 |
+
<p class="text-gray-600">เพิ่มผลผลิตได้ถึง 60-70% เทียบกับปุ๋ยเคมีทั่วไป</p>
|
| 67 |
+
</div>
|
| 68 |
+
<div class="bg-white rounded-2xl p-8 shadow-lg hover:shadow-xl transition-all duration-300 transform hover:-translate-y-2">
|
| 69 |
+
<div class="w-16 h-16 bg-emerald-500 rounded-full flex items-center justify-center mb-6">
|
| 70 |
+
<i data-feather="shield" class="w-8 h-8 text-white"></i>
|
| 71 |
+
</div>
|
| 72 |
+
<h3 class="text-2xl font-bold mb-4 text-gray-800">ปลอดภัยสูง</h3>
|
| 73 |
+
<p class="text-gray-600">ปลอดภัย 99.99% เป็นมิตรต่อสิ่งแวดล้อม</p>
|
| 74 |
+
</div>
|
| 75 |
+
</div>
|
| 76 |
+
</div>
|
| 77 |
+
</section>
|
| 78 |
+
|
| 79 |
+
<!-- Products Section -->
|
| 80 |
+
<section id="products" class="py-20 bg-white">
|
| 81 |
+
<div class="container mx-auto px-4">
|
| 82 |
+
<h2 class="text-4xl font-bold text-center mb-16 text-gray-800">
|
| 83 |
+
ผลิตภัณฑ์ใจเกษตร
|
| 84 |
+
</h2>
|
| 85 |
+
<div class="grid md:grid-cols-2 gap-12 max-w-5xl mx-auto">
|
| 86 |
+
<div class="bg-gradient-to-br from-orange-50 to-orange-100 rounded-3xl p-8 shadow-xl">
|
| 87 |
+
<div class="flex items-center mb-6">
|
| 88 |
+
<div class="w-20 h-20 bg-orange-500 rounded-full flex items-center justify-center mr-6">
|
| 89 |
+
<span class="text-white font-bold text-2xl">สูตร 1</span>
|
| 90 |
+
</div>
|
| 91 |
+
<div>
|
| 92 |
+
<h3 class="text-2xl font-bold text-gray-800">บำรุงต้น ราก ใบ</h3>
|
| 93 |
+
<p class="text-gray-600">ปรับสภาพดิน</p>
|
| 94 |
+
</div>
|
| 95 |
+
</div>
|
| 96 |
+
<ul class="space-y-3 text-gray-700">
|
| 97 |
+
<li class="flex items-center">
|
| 98 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 99 |
+
กระตุ้นการแตกราก
|
| 100 |
+
</li>
|
| 101 |
+
<li class="flex items-center">
|
| 102 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 103 |
+
ดูดซึมอาหารเก่ง
|
| 104 |
+
</li>
|
| 105 |
+
<li class="flex items-center">
|
| 106 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 107 |
+
ต้านทานสภาพอากาศแปรปรวน
|
| 108 |
+
</li>
|
| 109 |
+
<li class="flex items-center">
|
| 110 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 111 |
+
เสริมภูมิต้านทานโรค
|
| 112 |
+
</li>
|
| 113 |
+
</ul>
|
| 114 |
+
</div>
|
| 115 |
+
<div class="bg-gradient-to-br from-blue-50 to-blue-100 rounded-3xl p-8 shadow-xl">
|
| 116 |
+
<div class="flex items-center mb-6">
|
| 117 |
+
<div class="w-20 h-20 bg-blue-500 rounded-full flex items-center justify-center mr-6">
|
| 118 |
+
<span class="text-white font-bold text-2xl">สูตร 2</span>
|
| 119 |
+
</div>
|
| 120 |
+
<div>
|
| 121 |
+
<h3 class="text-2xl font-bold text-gray-800">เพิ่มผลผลิต</h3>
|
| 122 |
+
<p class="text-gray-600">ติดดอก ออกผล</p>
|
| 123 |
+
</div>
|
| 124 |
+
</div>
|
| 125 |
+
<ul class="space-y-3 text-gray-700">
|
| 126 |
+
<li class="flex items-center">
|
| 127 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 128 |
+
ช่วยในการออกดอก ติดผล
|
| 129 |
+
</li>
|
| 130 |
+
<li class="flex items-center">
|
| 131 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 132 |
+
ขยายขนาดผล
|
| 133 |
+
</li>
|
| 134 |
+
<li class="flex items-center">
|
| 135 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 136 |
+
สร้างเนื้อ รสชาติ สีสัน
|
| 137 |
+
</li>
|
| 138 |
+
<li class="flex items-center">
|
| 139 |
+
<i data-feather="check-circle" class="w-5 h-5 text-emerald-500 mr-3"></i>
|
| 140 |
+
ลดการหลุดร่วง
|
| 141 |
+
</li>
|
| 142 |
+
</ul>
|
| 143 |
+
</div>
|
| 144 |
+
</div>
|
| 145 |
+
</div>
|
| 146 |
+
</section>
|
| 147 |
+
|
| 148 |
+
<!-- Calculator Section -->
|
| 149 |
+
<section id="calculator" class="py-20 bg-gray-50">
|
| 150 |
+
<div class="container mx-auto px-4">
|
| 151 |
+
<div class="max-w-4xl mx-auto bg-white rounded-3xl shadow-xl overflow-hidden">
|
| 152 |
+
<div class="bg-emerald-600 p-8 text-white">
|
| 153 |
+
<h2 class="text-3xl font-bold text-center">คำนวณอัตราการใช้ใจเกษตร</h2>
|
| 154 |
+
</div>
|
| 155 |
+
<div class="p-8">
|
| 156 |
+
<div class="grid md:grid-cols-2 gap-8">
|
| 157 |
+
<div>
|
| 158 |
+
<label class="block text-gray-700 font-bold mb-2">ประเภทพืช</label>
|
| 159 |
+
<select id="plantType" class="w-full p-4 border-2 border-gray-300 rounded-xl focus:border-emerald-500 focus:outline-none">
|
| 160 |
+
<option value="vegetable">พืชผัก ไม้ดอก ไม้ประดับ</option>
|
| 161 |
+
<option value="field">พืชไร่ (มัน อ้อย ข้าวโพด)</option>
|
| 162 |
+
<option value="perennial">พืชยืนต้น (ผลไม้ ยาง ปาล์ม)</option>
|
| 163 |
+
</select>
|
| 164 |
+
</div>
|
| 165 |
+
<div>
|
| 166 |
+
<label class="block text-gray-700 font-bold mb-2">พื้นที่ (ไร่)</label>
|
| 167 |
+
<input type="number" id="area" min="0.1" step="0.1" value="1"
|
| 168 |
+
class="w-full p-4 border-2 border-gray-300 rounded-xl focus:border-emerald-500 focus:outline-none">
|
| 169 |
+
</div>
|
| 170 |
+
</div>
|
| 171 |
+
<div class="mt-8 p-6 bg-emerald-50 rounded-xl">
|
| 172 |
+
<h3 class="text-xl font-bold text-gray-800 mb-4">ผลการคำนวณ</h3>
|
| 173 |
+
<div id="result" class="space-y-2 text-gray-700">
|
| 174 |
+
<p>อัตราการใช้: <span class="font-bold text-emerald-600">10-15 กรัม ต่อน้ำ 20 ลิตร</span></p>
|
| 175 |
+
<p>ความถี่: <span class="font-bold text-emerald-600">7-10 วัน/ครั้ง</span></p>
|
| 176 |
+
<p>ปริมาณที่ต้องใช้: <span class="font-bold text-emerald-600">10-15 กรัม</span></p>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
</div>
|
| 180 |
+
</div>
|
| 181 |
+
</div>
|
| 182 |
+
</section>
|
| 183 |
+
|
| 184 |
+
<!-- Contact Section -->
|
| 185 |
+
<section id="contact" class="py-20 bg-white">
|
| 186 |
+
<div class="container mx-auto px-4 text-center">
|
| 187 |
+
<h2 class="text-4xl font-bold mb-8 text-gray-800">ติดต่อสอบถาม</h2>
|
| 188 |
+
<p class="text-xl text-gray-600 mb-8">ปรึกษาปัญหาเรื่องพืชและการใช้ใจเกษตร</p>
|
| 189 |
+
<div class="flex flex-col sm:flex-row gap-4 justify-center items-center">
|
| 190 |
+
<div class="bg-emerald-100 p-6 rounded-2xl flex items-center">
|
| 191 |
+
<i data-feather="message-circle" class="w-8 h-8 text-emerald-600 mr-4"></i>
|
| 192 |
+
<div class="text-left">
|
| 193 |
+
<p class="font-bold text-gray-800">Line Openchat</p>
|
| 194 |
+
<p class="text-gray-600">WP ใจเกษร Openchat</p>
|
| 195 |
+
</div>
|
| 196 |
+
</div>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
</section>
|
| 200 |
+
|
| 201 |
+
<custom-footer></custom-footer>
|
| 202 |
+
|
| 203 |
+
<script src="components/navbar.js"></script>
|
| 204 |
+
<script src="components/footer.js"></script>
|
| 205 |
+
<script src="script.js"></script>
|
| 206 |
+
<script>feather.replace();</script>
|
| 207 |
+
<script src="https://huggingface.co/deepsite/deepsite-badge.js"></script>
|
| 208 |
+
</body>
|
| 209 |
+
</html>
|
|
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Calculator functionality
|
| 2 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 3 |
+
const plantTypeSelect = document.getElementById('plantType');
|
| 4 |
+
const areaInput = document.getElementById('area');
|
| 5 |
+
const resultDiv = document.getElementById('result');
|
| 6 |
+
|
| 7 |
+
const plantData = {
|
| 8 |
+
vegetable: {
|
| 9 |
+
rate: '10-15 กรัม ต่อน้ำ 20 ลิตร',
|
| 10 |
+
frequency: '7-10 วัน/ครั้ง',
|
| 11 |
+
perRai: 12.5
|
| 12 |
+
},
|
| 13 |
+
field: {
|
| 14 |
+
rate: '15-20 กรัม ต่อน้ำ 20 ลิตร',
|
| 15 |
+
frequency: '10-15 วัน/ครั้ง',
|
| 16 |
+
perRai: 17.5
|
| 17 |
+
},
|
| 18 |
+
perennial: {
|
| 19 |
+
rate: '20-30 กรัม ต่อน้ำ 20 ลิตร',
|
| 20 |
+
frequency: '20-30 วัน/ครั้ง',
|
| 21 |
+
perRai: 25
|
| 22 |
+
}
|
| 23 |
+
};
|
| 24 |
+
|
| 25 |
+
function updateResult() {
|
| 26 |
+
const plantType = plantTypeSelect.value;
|
| 27 |
+
const area = parseFloat(areaInput.value) || 1;
|
| 28 |
+
const data = plantData[plantType];
|
| 29 |
+
|
| 30 |
+
const totalAmount = (data.perRai * area).toFixed(1);
|
| 31 |
+
|
| 32 |
+
resultDiv.innerHTML = `
|
| 33 |
+
<p>อัตราการใช้: <span class="font-bold text-emerald-600">${data.rate}</span></p>
|
| 34 |
+
<p>ความถี่: <span class="font-bold text-emerald-600">${data.frequency}</span></p>
|
| 35 |
+
<p>ปริมาณที่ต้องใช้: <span class="font-bold text-emerald-600">${totalAmount} กรัม</span></p>
|
| 36 |
+
`;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
plantTypeSelect.addEventListener('change', updateResult);
|
| 40 |
+
areaInput.addEventListener('input', updateResult);
|
| 41 |
+
});
|
| 42 |
+
|
| 43 |
+
// Smooth scroll for navigation links
|
| 44 |
+
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
| 45 |
+
anchor.addEventListener('click', function (e) {
|
| 46 |
+
e.preventDefault();
|
| 47 |
+
const target = document.querySelector(this.getAttribute('href'));
|
| 48 |
+
if (target) {
|
| 49 |
+
target.scrollIntoView({
|
| 50 |
+
behavior: 'smooth',
|
| 51 |
+
block: 'start'
|
| 52 |
+
});
|
| 53 |
+
}
|
| 54 |
+
});
|
| 55 |
+
});
|
| 56 |
+
|
| 57 |
+
// Add scroll effect to navbar
|
| 58 |
+
window.addEventListener('scroll', function() {
|
| 59 |
+
const navbar = document.querySelector('custom-navbar');
|
| 60 |
+
if (window.scrollY > 100) {
|
| 61 |
+
navbar.classList.add('scrolled');
|
| 62 |
+
} else {
|
| 63 |
+
navbar.classList.remove('scrolled');
|
| 64 |
+
}
|
| 65 |
+
});
|
| 66 |
+
|
| 67 |
+
// Counter animation for statistics
|
| 68 |
+
function animateCounter(element, target, duration = 2000) {
|
| 69 |
+
let start = 0;
|
| 70 |
+
const increment = target / (duration / 16);
|
| 71 |
+
|
| 72 |
+
function updateCounter() {
|
| 73 |
+
start += increment;
|
| 74 |
+
if (start < target) {
|
| 75 |
+
element.textContent = Math.floor(start);
|
| 76 |
+
requestAnimationFrame(updateCounter);
|
| 77 |
+
} else {
|
| 78 |
+
element.textContent = target;
|
| 79 |
+
}
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
updateCounter();
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
// Intersection Observer for animations
|
| 86 |
+
const observerOptions = {
|
| 87 |
+
threshold: 0.1,
|
| 88 |
+
rootMargin: '0px 0px -100px 0px'
|
| 89 |
+
};
|
| 90 |
+
|
| 91 |
+
const observer = new IntersectionObserver(function(entries) {
|
| 92 |
+
entries.forEach(entry => {
|
| 93 |
+
if (entry.isIntersecting) {
|
| 94 |
+
entry.target.classList.add('animate-fade-in');
|
| 95 |
+
|
| 96 |
+
// Animate counters if they exist
|
| 97 |
+
const counters = entry.target.querySelectorAll('[data-counter]');
|
| 98 |
+
counters.forEach(counter => {
|
| 99 |
+
const target = parseInt(counter.getAttribute('data-counter'));
|
| 100 |
+
animateCounter(counter, target);
|
| 101 |
+
});
|
| 102 |
+
}
|
| 103 |
+
});
|
| 104 |
+
}, observerOptions);
|
| 105 |
+
|
| 106 |
+
// Observe elements with animation
|
| 107 |
+
document.querySelectorAll('.animate-on-scroll').forEach(el => {
|
| 108 |
+
observer.observe(el);
|
| 109 |
+
});
|
|
@@ -1,28 +1,93 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
margin-bottom: 10px;
|
| 15 |
-
margin-top: 5px;
|
| 16 |
}
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
margin: 0 auto;
|
| 21 |
-
padding: 16px;
|
| 22 |
-
border: 1px solid lightgray;
|
| 23 |
-
border-radius: 16px;
|
| 24 |
}
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* Custom animations */
|
| 2 |
+
@keyframes fadeIn {
|
| 3 |
+
from { opacity: 0; transform: translateY(30px); }
|
| 4 |
+
to { opacity: 1; transform: translateY(0); }
|
| 5 |
}
|
| 6 |
|
| 7 |
+
.animate-fade-in {
|
| 8 |
+
animation: fadeIn 1s ease-out;
|
|
|
|
| 9 |
}
|
| 10 |
|
| 11 |
+
/* Custom scrollbar */
|
| 12 |
+
::-webkit-scrollbar {
|
| 13 |
+
width: 8px;
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
|
| 16 |
+
::-webkit-scrollbar-track {
|
| 17 |
+
background: #f1f1f1;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
}
|
| 19 |
|
| 20 |
+
::-webkit-scrollbar-thumb {
|
| 21 |
+
background: #10b981;
|
| 22 |
+
border-radius: 4px;
|
| 23 |
}
|
| 24 |
+
|
| 25 |
+
::-webkit-scrollbar-thumb:hover {
|
| 26 |
+
background: #059669;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
/* Smooth scrolling */
|
| 30 |
+
html {
|
| 31 |
+
scroll-behavior: smooth;
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
/* Custom button hover effects */
|
| 35 |
+
.btn-hover-effect {
|
| 36 |
+
transition: all 0.3s ease;
|
| 37 |
+
}
|
| 38 |
+
|
| 39 |
+
.btn-hover-effect:hover {
|
| 40 |
+
transform: translateY(-2px);
|
| 41 |
+
box-shadow: 0 10px 25px rgba(0,0,0,0.1);
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Gradient text */
|
| 45 |
+
.gradient-text {
|
| 46 |
+
background: linear-gradient(135deg, #10b981, #f59e0b);
|
| 47 |
+
-webkit-background-clip: text;
|
| 48 |
+
-webkit-text-fill-color: transparent;
|
| 49 |
+
background-clip: text;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
/* Card hover effects */
|
| 53 |
+
.card-hover {
|
| 54 |
+
transition: all 0.3s ease;
|
| 55 |
+
}
|
| 56 |
+
|
| 57 |
+
.card-hover:hover {
|
| 58 |
+
transform: translateY(-5px);
|
| 59 |
+
box-shadow: 0 20px 40px rgba(0,0,0,0.1);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
/* Responsive typography */
|
| 63 |
+
@media (max-width: 640px) {
|
| 64 |
+
.text-responsive {
|
| 65 |
+
font-size: 2.5rem;
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
/* Custom form styles */
|
| 70 |
+
.form-input {
|
| 71 |
+
transition: all 0.3s ease;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
.form-input:focus {
|
| 75 |
+
transform: scale(1.02);
|
| 76 |
+
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
/* Loading animation */
|
| 80 |
+
.loading {
|
| 81 |
+
display: inline-block;
|
| 82 |
+
width: 20px;
|
| 83 |
+
height: 20px;
|
| 84 |
+
border: 3px solid #f3f3f3;
|
| 85 |
+
border-top: 3px solid #10b981;
|
| 86 |
+
border-radius: 50%;
|
| 87 |
+
animation: spin 1s linear infinite;
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
@keyframes spin {
|
| 91 |
+
0% { transform: rotate(0deg); }
|
| 92 |
+
100% { transform: rotate(360deg); }
|
| 93 |
+
}
|