add app, fix ble, use flash

This commit is contained in:
zyphlar
2026-07-04 03:28:14 -07:00
parent e6a2a65b82
commit 24de5d8d39
13 changed files with 1028 additions and 249 deletions
+89
View File
@@ -0,0 +1,89 @@
:root {
--bg: #140d2b;
--bg2: #1f1147;
--card: #271a52;
--accent: #b794ff;
--accent2: #7c4dff;
--text: #ece8ff;
--muted: #a99fd0;
--ok: #4ade80;
--line: #3a2a6b;
}
* { box-sizing: border-box; }
body {
margin: 0;
font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
background: linear-gradient(160deg, var(--bg), var(--bg2));
color: var(--text);
min-height: 100vh;
-webkit-tap-highlight-color: transparent;
}
header {
display: flex; align-items: center; justify-content: space-between;
gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-top));
position: sticky; top: 0; background: rgba(20,13,43,.85);
backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 5;
}
.brand { display: flex; align-items: center; gap: 10px; }
h1 { font-size: 1.1rem; margin: 0; letter-spacing: .5px; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin: 0 0 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; }
.card-head h2 { margin-bottom: 0; }
.conn { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #6b6b6b; box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
.dot.on { background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }
main { max-width: 640px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
button {
font: inherit; cursor: pointer; border: 1px solid var(--line);
background: #34246b; color: var(--text); padding: 10px 16px; border-radius: 10px;
transition: filter .15s, transform .05s;
}
button:hover:not(:disabled) { filter: brightness(1.15); }
button:active:not(:disabled) { transform: translateY(1px); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary { background: linear-gradient(135deg, var(--accent2), var(--accent)); border: none; color: #1a0f3a; font-weight: 600; }
button.mini { padding: 6px 10px; border-radius: 8px; }
select {
font: inherit; background: #1c123e; color: var(--text);
border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
label { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.drop {
border: 2px dashed var(--line); border-radius: 14px; padding: 26px 16px;
text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.hover { border-color: var(--accent); background: rgba(124,77,255,.08); }
.drop p { margin: 0 0 4px; font-weight: 600; }
.drop small { color: var(--muted); }
.opts { display: flex; gap: 16px; margin: 14px 0; flex-wrap: wrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.info { font-size: .9rem; color: var(--muted); min-height: 1.2em; margin: 12px 0 0; }
.hint { font-size: .8rem; color: var(--muted); margin: -6px 0 12px; }
.progress { height: 8px; background: #1c123e; border-radius: 6px; margin-top: 14px; overflow: hidden; }
.progress.active .bar { transition: width .2s; }
.bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent2), var(--accent)); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.slots li { display: flex; align-items: center; justify-content: space-between; gap: 10px;
background: #1c123e; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.slots li.empty { color: var(--muted); justify-content: center; font-size: .9rem; }
.slot-meta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.slot-num { background: var(--accent2); color: #1a0f3a; font-weight: 700; border-radius: 8px;
width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.slot-meta b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46vw; }
.slot-meta small { color: var(--muted); }
.slot-actions { display: flex; gap: 6px; flex: none; }
.banner { background: #5a2a2a; color: #ffd9d9; padding: 10px 16px; text-align: center; font-size: .9rem; }
.log { background: #0d0822; border: 1px solid var(--line); border-radius: 10px; padding: 12px;
font-size: .78rem; color: var(--muted); max-height: 200px; overflow: auto; white-space: pre-wrap; margin: 0; }
footer { text-align: center; color: var(--muted); font-size: .78rem; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); }
footer a { color: var(--accent); }