Para Ağacı (Pachira) Bakımı: Gövde Örgüsü Nasıl Korunur?
View Source
HTML
<div id="app">
<h1>Pachira (Money Tree) Care Infographic</h1>
<section id="quick-tips">
<h2>Quick Care Tips</h2>
<ul>
<li>Watering: Water when the top inch of soil is dry. <span class="detail">Overwatering can cause root rot; ensure proper drainage.</span></li>
<li>Light: Provide bright, indirect light. <span class="detail">Direct sunlight can scorch leaves; use sheer curtains if needed.</span></li>
<li>Temperature: Keep between 65-80°F. <span class="detail">Avoid temperatures below 50°F to prevent damage.</span></li>
<li>Humidity: Moderate humidity is ideal. <span class="detail">Mist leaves occasionally in dry environments.</span></li>
</ul>
</section>
<section id="trunk-guide">
<h2>Trunk Protection Guide</h2>
<ol>
<li>Handle the braid gently to avoid damage. <div class="braid-animation correct" aria-label="Correct trunk braid handling animation"></div></li>
<li>Do not attempt to unwind or separate the trunks. <div class="braid-animation incorrect" aria-label="Incorrect trunk braid handling animation"></div></li>
<li>Regularly check for signs of injury or disease. <span>Look for cracks or discoloration and address immediately.</span></li>
</ol>
<svg class="braid-svg" width="200" height="150" viewBox="0 0 200 150" aria-hidden="true">
<path class="trunk" d="M100,50 Q90,30 80,50 T60,50 Q50,30 40,50 T20,50" stroke="green" stroke-width="10" fill="none" />
</svg>
</section>
<section id="common-issues">
<h2>Common Issues Comparison</h2>
<table>
<thead>
<tr>
<th>Issue</th>
<th>Symptoms</th>
<th>Solution</th>
</tr>
</thead>
<tbody>
<tr>
<td>Overwatering</td>
<td>Yellowing leaves, root rot</td>
<td>Allow soil to dry out; repot with well-draining soil</td>
</tr>
<tr>
<td>Underwatering</td>
<td>Wilting, dry leaves</td>
<td>Water thoroughly; ensure consistent moisture</td>
</tr>
<tr>
<td>Pests</td>
<td>Visible insects, sticky residue</td>
<td>Use insecticidal soap or neem oil; isolate affected plant</td>
</tr>
</tbody>
</table>
</section>
<section id="care-summary">
<h2>Care Summary</h2>
<p>Pachira aquatica, commonly known as the Money Tree, thrives in bright indirect light and should be watered when the soil is dry. Protect the trunk braid by handling it gently and avoiding separation. Maintain temperatures between 65-80°F and moderate humidity for optimal health.</p>
</section>
<button id="download-btn">Download PDF Summary</button>
</div>
CSS
#app {
font-family: Arial, sans-serif;
color: #333; /* Dark gray for better contrast with background */
background-color: #f5f5dc; /* Beige earthy tone */
padding: 20px;
max-width: 800px;
margin: 0 auto;
box-sizing: border-box;
}
#app h1, #app h2 {
color: #228B22; /* Forest green for headings */
text-align: center;
}
#app section {
margin-bottom: 30px;
padding: 15px;
background-color: #fff; /* White background for sections */
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#app ul {
list-style-type: none;
padding: 0;
}
#app ul li {
position: relative;
padding: 10px;
background-color: #e8f5e9; /* Light green tone */
margin-bottom: 10px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#app ul li:hover {
background-color: #c8e6c9; /* Slightly darker green on hover */
}
#app ul li .detail {
display: none;
position: absolute;
background-color: #fff;
border: 1px solid #ccc;
padding: 10px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
z-index: 10;
width: 200px;
left: 100%;
top: 0;
margin-left: 10px;
}
#app ul li:hover .detail {
display: block;
}
#app ol {
list-style-type: decimal;
padding-left: 20px;
}
#app ol li {
margin-bottom: 15px;
}
.braid-animation {
display: inline-block;
width: 50px;
height: 50px;
margin-left: 10px;
vertical-align: middle;
}
.braid-animation.correct {
background-color: #4CAF50; /* Green for correct */
animation: correctAnim 2s infinite ease-in-out;
}
.braid-animation.incorrect {
background-color: #F44336; /* Red for incorrect */
animation: incorrectAnim 2s infinite ease-in-out;
}
@keyframes correctAnim {
0% { transform: scale(1); }
50% { transform: scale(1.1); }
100% { transform: scale(1); }
}
@keyframes incorrectAnim {
0% { transform: rotate(0deg); }
50% { transform: rotate(-10deg); }
100% { transform: rotate(0deg); }
}
.braid-svg {
display: block;
margin: 20px auto;
}
.braid-svg .trunk {
transition: stroke 0.3s ease;
}
#app table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
#app table th, #app table td {
border: 1px solid #ddd;
padding: 10px;
text-align: left;
}
#app table th {
background-color: #228B22; /* Green background for headers */
color: #fff;
}
#app button {
display: block;
width: 200px;
margin: 20px auto;
padding: 10px;
background-color: #228B22; /* Green button */
color: #fff;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s ease;
}
#app button:hover {
background-color: #1e7a1e; /* Darker green on hover */
}
/* Responsive design */
@media (max-width: 600px) {
#app {
padding: 10px;
}
#app ul li .detail {
position: static;
width: auto;
margin-top: 5px;
display: none; /* Hide on mobile, or adjust as needed */
}
#app ul li:hover .detail {
display: block; /* Show on hover if supported, but mobile may use touch */
}
#app table {
font-size: 14px;
}
#app table th, #app table td {
padding: 8px;
}
.braid-animation {
display: none; /* Hide animations on mobile for simplicity */
}
}
JavaScript
// Handle download button click
document.addEventListener('DOMContentLoaded', function() {
const downloadBtn = document.getElementById('download-btn');
const summaryElement = document.querySelector('#care-summary p');
if (summaryElement) {
downloadBtn.addEventListener('click', function() {
const summaryText = summaryElement.textContent;
const blob = new Blob([summaryText], { type: 'text/plain' });
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = 'pachira_care_summary.pdf'; // Note: This is a text file simulated as PDF for simplicity
a.click();
URL.revokeObjectURL(url);
});
} else {
console.error('Summary element not found'); // Basic error handling
}
});