Files
zpark-ems/frontend/public/devices/sensor.svg
Du Wenbo 026c837b91 Squashed 'core/' content from commit 92ec910
git-subtree-dir: core
git-subtree-split: 92ec910a132e379a3a6e442a75bcb07cac0f0010
2026-04-04 18:17:10 +08:00

39 lines
2.4 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewBox="0 0 400 300">
<defs>
<linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#1a2332;stop-opacity:1" />
<stop offset="100%" style="stop-color:#0c1524;stop-opacity:1" />
</linearGradient>
<radialGradient id="glow" cx="50%" cy="50%" r="50%">
<stop offset="0%" style="stop-color:#3b82f6;stop-opacity:0.3" />
<stop offset="100%" style="stop-color:#3b82f6;stop-opacity:0" />
</radialGradient>
</defs>
<rect width="400" height="300" fill="url(#bg)" rx="12"/>
<!-- Glow effect -->
<circle cx="200" cy="130" r="80" fill="url(#glow)"/>
<!-- Sensor body -->
<rect x="160" y="60" width="80" height="120" rx="12" fill="#f9fafb" stroke="#e5e7eb" stroke-width="2"/>
<!-- Display -->
<rect x="172" y="75" width="56" height="35" rx="4" fill="#1f2937"/>
<text x="200" y="96" text-anchor="middle" fill="#22c55e" font-family="monospace" font-size="18" font-weight="bold">23.5</text>
<text x="200" y="106" text-anchor="middle" fill="#6b7280" font-family="monospace" font-size="8">°C</text>
<!-- Humidity bar -->
<rect x="175" y="120" width="50" height="6" rx="3" fill="#1f2937"/>
<rect x="175" y="120" width="32" height="6" rx="3" fill="#3b82f6"/>
<text x="200" y="138" text-anchor="middle" fill="#6b7280" font-family="Arial" font-size="9">湿度 64%</text>
<!-- Antenna -->
<line x1="200" y1="60" x2="200" y2="30" stroke="#9ca3af" stroke-width="2"/>
<circle cx="200" cy="26" r="4" fill="#22c55e"/>
<!-- Signal waves -->
<path d="M 210 35 Q 218 26, 210 17" fill="none" stroke="#22c55e" stroke-width="1.5" opacity="0.6"/>
<path d="M 214 39 Q 226 26, 214 13" fill="none" stroke="#22c55e" stroke-width="1.5" opacity="0.4"/>
<path d="M 218 43 Q 234 26, 218 9" fill="none" stroke="#22c55e" stroke-width="1.5" opacity="0.2"/>
<!-- Wall mount -->
<rect x="185" y="180" width="30" height="20" rx="4" fill="#d1d5db"/>
<circle cx="195" cy="190" r="3" fill="#9ca3af"/>
<circle cx="205" cy="190" r="3" fill="#9ca3af"/>
<!-- Label -->
<text x="200" y="238" text-anchor="middle" fill="#a78bfa" font-family="Arial, sans-serif" font-size="20" font-weight="bold">温湿度传感器</text>
<text x="200" y="258" text-anchor="middle" fill="#6b7280" font-family="Arial, sans-serif" font-size="12">Temperature &amp; Humidity Sensor</text>
</svg>