upload
This commit is contained in:
commit
1c7a8cf25f
579 files changed
+83196
No files matched your search
@@ -0,0 +1,14 @@
|
||||
namespace VibranceHud.Remote;
|
||||
|
||||
internal static class PhonePage
|
||||
{
|
||||
internal static string Html()
|
||||
{
|
||||
return "<!doctype html>\r\n<html lang=\"en\">\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,viewport-fit=cover\">\r\n<meta name=\"robots\" content=\"noindex,nofollow\">\r\n<meta name=\"theme-color\" content=\"#151515\">\r\n<title>PlexusX</title>\r\n<style>\r\n /* final/tokens.css, data-look=\"ash\". Nothing on this page is any other colour. */\r\n :root{\r\n --bg:#151515; --surface-1:#1C1C1C; --surface-2:#232323; --pressed:#393939;\r\n --border:#333333; --border-strong:#747474; --track:#3D3D3D;\r\n --text-1:#F3F3F3; --text-2:#C1C1C1; --text-3:#999999;\r\n --accent:#FFFFFF; --accent-pressed:#C4C4C4; --on-accent:#151515; --focus:#FFFFFF;\r\n --knob-ring:#1C1C1C; --success:#5ECE83; --danger:#FF9E93;\r\n --pad:16px;\r\n /* Half the 44 px touch box the knob is drawn in: where the knob's centre sits at either\r\n end of a slider, so the track, the fill and the default tick run between them. */\r\n --knob:22px;\r\n }\r\n *{box-sizing:border-box; -webkit-tap-highlight-color:transparent}\r\n html,body{overscroll-behavior-y:contain}\r\n body{\r\n /* 150 at the bottom, and it was 120. The compare bar is pinned and about 90px tall\r\n before the safe-area inset, so at 120 it sat 136px over the Scenes card - measured,\r\n and invisible from the code because the bar is out of flow. */\r\n margin:0; padding:24px var(--pad) 150px; background:var(--bg); color:var(--text-1);\r\n font:16px/1.55 -apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif;\r\n }\r\n\r\n header{display:flex; align-items:center; justify-content:space-between; margin-bottom:16px}\r\n h1{font-size:20px; line-height:1.3; font-weight:600; margin:0}\r\n\r\n /* components.md §26, inline status: the icon in the status colour, 8, the word in text-1. */\r\n .live{display:flex; align-items:center; gap:8px; font-size:14px; font-weight:600; color:var(--text-1)}\r\n .ico{width:16px; height:16px; flex:none}\r\n .live .ico{display:none}\r\n .live.ok .ico-ok, .live.bad .ico-bad{display:block}\r\n .ico-ok{color:var(--success)}\r\n .ico-bad{color:var(--danger)}\r\n\r\n /* §17: a card - surface-1, a hairline border, radius 8. */\r\n .group{background:var(--surface-1); border:1px solid var(--border); border-radius:8px;\r\n padding:8px var(--pad) 16px; margin-bottom:16px}\r\n .cap{font-size:16px; font-weight:600; color:var(--text-1); margin:8px 0 12px}\r\n\r\n .row{padding:8px 0 0}\r\n .head{display:flex; justify-content:space-between; align-items:baseline}\r\n .name{font-size:16px; color:var(--text-2)}\r\n .val{font-variant-numeric:tabular-nums; color:var(--text-1); font-weight:600; font-size:16px}\r\n .val.off{color:var(--text-3)}\r\n\r\n /* §8, drawn under the range: the 2 px track, the white fill, and the 1 px default tick.\r\n Knowing where \"untouched\" is turns a slider from a number into a decision - it is the\r\n difference between \"gamma 96\" and \"a touch under neutral\". */\r\n .wrap{position:relative}\r\n .line{position:absolute; left:var(--knob); right:var(--knob); top:50%; height:2px;\r\n margin-top:-1px; background:var(--track); pointer-events:none}\r\n .fill{position:absolute; top:50%; height:4px; margin-top:-2px; background:var(--accent);\r\n pointer-events:none}\r\n .tick{position:absolute; top:50%; width:1px; height:14px; margin-top:-7px;\r\n background:var(--text-3); pointer-events:none}\r\n\r\n input[type=range]{\r\n -webkit-appearance:none; appearance:none; width:100%; height:44px;\r\n background:transparent; margin:0; display:block; position:relative;\r\n }\r\n input[type=range]::-webkit-slider-runnable-track{height:44px; background:transparent}\r\n input[type=range]::-moz-range-track{height:44px; background:transparent}\r\n /* The knob: a white disc in its 2 px knob-ring, drawn in the middle of a 44 px touch box. */\r\n input[type=range]::-webkit-slider-thumb{\r\n -webkit-appearance:none; appearance:none; width:44px; height:44px; border:0; border-radius:50%;\r\n background:radial-gradient(circle, var(--accent) 7px, var(--knob-ring) 7px,\r\n var(--knob-ring) 9px, transparent 9px);\r\n }\r\n input[type=range]::-moz-range-thumb{\r\n width:44px; height:44px; border:0; border-radius:50%;\r\n background:radial-gradient(circle, var(--accent) 7px, var(--knob-ring) 7px,\r\n var(--knob-ring) 9px, transparent 9px);\r\n }\r\n input[type=range]:focus-visible{outline:2px solid var(--focus); outline-offset:2px}\r\n\r\n /* §3: every button Secondary but the one Primary; radius 4, 44 tall, 8 apart. */\r\n .presets{display:grid; grid-template-columns:repeat(2,1fr); gap:8px}\r\n button{font:inherit; font-weight:600; color:var(--text-1); background:transparent;\r\n border:1px solid var(--border-strong); border-radius:4px; min-height:44px;\r\n padding:12px 16px; cursor
Line truncated
|
||||
}
|
||||
|
||||
internal static string WrongNetworkHtml(string theirs, string ours)
|
||||
{
|
||||
return $"<!doctype html>\r\n<html lang=\"en\">\r\n<head>\r\n<meta charset=\"utf-8\">\r\n<meta name=\"viewport\" content=\"width=device-width,initial-scale=1,viewport-fit=cover\">\r\n<meta name=\"robots\" content=\"noindex,nofollow\">\r\n<meta name=\"theme-color\" content=\"#151515\">\r\n<title>Different network - PlexusX</title>\r\n<style>\r\n body{{margin:0; padding:24px 16px; background:#151515; color:#F3F3F3;\r\n font:16px/1.55 -apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,sans-serif}}\r\n h1{{font-size:20px; line-height:1.3; font-weight:600; margin:0 0 12px}}\r\n p{{color:#C1C1C1; margin:0 0 12px}}\r\n .rows{{background:#1C1C1C; border:1px solid #333333; border-radius:8px;\r\n padding:12px 16px; margin:16px 0}}\r\n .row{{display:flex; justify-content:space-between; gap:16px; padding:4px 0;\r\n font:14px/1.5 Consolas,ui-monospace,SFMono-Regular,Menlo,monospace}}\r\n .row span:first-child{{color:#999999}}\r\n ul{{color:#C1C1C1; margin:0 0 12px; padding-left:20px}}\r\n li{{margin:8px 0}}\r\n</style>\r\n</head>\r\n<body>\r\n<h1>Your phone is on a different network</h1>\r\n<p>It reached this PC, but PlexusX only takes commands from your own network.</p>\r\n<div class=\"rows\">\r\n <div class=\"row\"><span>This phone</span><span>{theirs}</span></div>\r\n <div class=\"row\"><span>Your PC</span><span>{ours}</span></div>\r\n</div>\r\n<p>Those two need to start with the same three numbers. Usually one of these fixes it:</p>\r\n<ul>\r\n <li>The phone is on a <strong>guest</strong> wifi. Switch it to your normal one.</li>\r\n <li>The phone is on <strong>mobile data</strong>, not wifi.</li>\r\n <li>Your router has two networks (often one ending 2.4G and one 5G) that it keeps apart.</li>\r\n</ul>\r\n<p>Your PC being on a cable is fine - that is not the problem.</p>\r\n</body>\r\n</html>";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user