Add documentation and utility modules

- Add API specification documentation
- Add system specification document
- Add UI mockups and documentation
- Add utility modules (wifi)
This commit is contained in:
2026-01-11 21:34:18 +13:00
parent 5f6e45af09
commit 9e2409430c
26 changed files with 7374 additions and 0 deletions

View File

@@ -0,0 +1,153 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Color Picker Demo - Cross-Platform</title>
<link rel="stylesheet" href="color-picker.css">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
padding: 40px 20px;
}
.container {
max-width: 800px;
margin: 0 auto;
background: white;
border-radius: 12px;
padding: 40px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
h1 {
color: #667eea;
margin-bottom: 8px;
}
p {
color: #666;
margin-bottom: 32px;
}
.demo-section {
margin-bottom: 40px;
padding: 24px;
background: #f7fafc;
border-radius: 8px;
}
.demo-section h2 {
color: #333;
margin-bottom: 16px;
font-size: 1.25rem;
}
.color-pickers {
display: flex;
gap: 24px;
flex-wrap: wrap;
margin-bottom: 16px;
}
.color-display {
margin-top: 16px;
padding: 12px;
background: white;
border-radius: 6px;
font-family: 'Courier New', monospace;
font-size: 0.875rem;
}
.color-display strong {
color: #667eea;
}
</style>
</head>
<body>
<div class="container">
<h1>Custom Color Picker</h1>
<p>Consistent color picker that works the same across all operating systems and browsers</p>
<div class="demo-section">
<h2>Single Color Picker</h2>
<div class="color-pickers">
<div id="picker1"></div>
</div>
<div class="color-display">
Selected color: <strong id="color1-display">#FF0000</strong>
</div>
</div>
<div class="demo-section">
<h2>Multiple Color Pickers</h2>
<p style="margin-bottom: 16px;">Example: Multiple colors for LED patterns</p>
<div class="color-pickers">
<div id="picker2"></div>
<div id="picker3"></div>
<div id="picker4"></div>
</div>
<div class="color-display">
Colors: <strong id="colors-display">#FF0000, #00FF00, #0000FF</strong>
</div>
</div>
<div class="demo-section">
<h2>Features</h2>
<ul style="color: #666; line-height: 1.8;">
<li>✅ Consistent UI across Windows, macOS, Linux, iOS, Android</li>
<li>✅ Works in Chrome, Firefox, Safari, Edge, Opera</li>
<li>✅ Touch support for mobile devices</li>
<li>✅ HSB (Hue, Saturation, Brightness) color model</li>
<li>✅ Hex and RGB input support</li>
<li>✅ Keyboard accessible</li>
<li>✅ Customizable styling</li>
</ul>
</div>
</div>
<script src="color-picker.js"></script>
<script>
// Initialize color pickers
const picker1 = new ColorPicker('#picker1', {
initialColor: '#FF0000',
onColorChange: (color) => {
document.getElementById('color1-display').textContent = color;
}
});
const picker2 = new ColorPicker('#picker2', {
initialColor: '#FF0000',
onColorChange: updateColors
});
const picker3 = new ColorPicker('#picker3', {
initialColor: '#00FF00',
onColorChange: updateColors
});
const picker4 = new ColorPicker('#picker4', {
initialColor: '#0000FF',
onColorChange: updateColors
});
function updateColors() {
const colors = [
picker2.getColor(),
picker3.getColor(),
picker4.getColor()
];
document.getElementById('colors-display').textContent = colors.join(', ');
}
</script>
</body>
</html>