Add cydweb HTML UI preview for catalog cards.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
51
firmware/cyd/media/preview.html
Normal file
51
firmware/cyd/media/preview.html
Normal file
@@ -0,0 +1,51 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>HW-069</title>
|
||||
<style>
|
||||
|
||||
*{box-sizing:border-box;margin:0;padding:0}
|
||||
html,body{width:320px;height:240px;overflow:hidden;background:#000;margin:0}
|
||||
.bezel{width:320px;height:240px;background:#1a1408}
|
||||
.screen{width:320px;height:240px;background:#0A1016;color:#EAF0F6;font:12px/1.2 system-ui,sans-serif;position:relative;overflow:hidden}
|
||||
.muted{color:#7A8B9C}.ok{color:#3DDC97}.bad{color:#E85D4C}.acc{color:#4FC3F7}.amber{color:#FFB74D}
|
||||
.btn{border:0;border-radius:8px;background:#243140;color:#EAF0F6;font-weight:600}
|
||||
.btn.acc{background:#1A4A6E}.btn.on{background:#1B5E4A}.btn.warn{background:#6B3A1E}
|
||||
|
||||
|
||||
.t{position:absolute;left:0;right:0;top:4px;text-align:center;font-size:24px;font-weight:700}
|
||||
.pin{position:absolute;left:0;right:0;top:36px;text-align:center;font-size:11px}
|
||||
.val{position:absolute;left:0;right:0;top:58px;text-align:center;font-size:40px;font-weight:800;color:#FFB74D;letter-spacing:4px}
|
||||
.row{position:absolute;left:12px;right:12px;top:112px;display:flex;gap:6px}
|
||||
.row .btn{flex:1;height:32px}
|
||||
.br{position:absolute;left:16px;top:152px}
|
||||
.slider{position:absolute;left:110px;right:16px;top:156px;height:12px;border-radius:4px;background:#243140;overflow:hidden}
|
||||
.slider>i{display:block;height:100%;width:60%;background:#FFB74D}
|
||||
.twin{position:absolute;left:12px;right:12px;bottom:12px;display:flex;gap:8px}
|
||||
.twin .btn{flex:1;height:40px}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="bezel"><div class="screen" id="s">
|
||||
|
||||
<div class="t">HW-069</div>
|
||||
<div class="pin muted">v1.1 CLK22 DIO27 TM1637</div>
|
||||
<div class="val">12:34</div>
|
||||
<div class="row">
|
||||
<button class="btn" type="button">-100</button>
|
||||
<button class="btn" type="button">-1</button>
|
||||
<button class="btn" type="button">+1</button>
|
||||
<button class="btn" type="button">+100</button>
|
||||
</div>
|
||||
<div class="br muted">Brightness 60%</div>
|
||||
<div class="slider"><i></i></div>
|
||||
<div class="twin">
|
||||
<button class="btn" type="button">Colon ON</button>
|
||||
<button class="btn on" type="button">Display ON</button>
|
||||
</div>
|
||||
|
||||
</div></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,5 +3,15 @@
|
||||
"name": "CYD HW-069 Digit Display",
|
||||
"summary": "HW-069 v1.1 TM1637 4-digit: CLK GPIO22, DIO GPIO27 — value / brightness / colon / on-off",
|
||||
"description": "SoftSPI touch + LVGL. HW-069 4-digit 7-segment (TM1637) on CLK=22 DIO=27.",
|
||||
"tags": ["hw069", "tm1637", "digit", "display", "touch", "lvgl"]
|
||||
"tags": [
|
||||
"hw069",
|
||||
"tm1637",
|
||||
"digit",
|
||||
"display",
|
||||
"touch",
|
||||
"lvgl"
|
||||
],
|
||||
"media": {
|
||||
"preview": "media/preview.html"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user