feat: integrate NFC infrared peripherals and orchestration
This commit is contained in:
@@ -2413,3 +2413,686 @@ form > .v2-extension-primary {
|
||||
color: #69bfb6;
|
||||
font: 800 7px "SFMono-Regular", Consolas, monospace;
|
||||
}
|
||||
|
||||
/* NFC toy discovery and IR-learning entry ------------------------------- */
|
||||
|
||||
.v2-extension-sync-mount {
|
||||
grid-template-rows: auto auto auto minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.v2-extension-sync-heading > div:first-child {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
align-items: end;
|
||||
column-gap: 8px;
|
||||
}
|
||||
|
||||
.v2-extension-sync-heading > div:first-child > small {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.v2-extension-sync-heading > div:first-child > h3 {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.v2-extension-nfc-launch {
|
||||
min-height: 25px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 7px;
|
||||
color: #dffffa;
|
||||
background: rgba(74, 194, 182, 0.14);
|
||||
border: 1px solid rgba(111, 221, 210, 0.22);
|
||||
border-radius: 7px;
|
||||
font-size: 7.5px;
|
||||
font-weight: 850;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
transition: 150ms ease;
|
||||
}
|
||||
|
||||
.v2-extension-nfc-launch:hover {
|
||||
color: #fff;
|
||||
background: rgba(74, 194, 182, 0.24);
|
||||
border-color: rgba(111, 221, 210, 0.4);
|
||||
}
|
||||
|
||||
.v2-extension-nfc-launch svg {
|
||||
width: 13px;
|
||||
height: 13px;
|
||||
}
|
||||
|
||||
.v2-nfc-inline {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
grid-template-columns: 35px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 9px;
|
||||
padding: 9px;
|
||||
color: #d9efec;
|
||||
background: linear-gradient(135deg, rgba(88, 197, 186, 0.11), rgba(255, 255, 255, 0.035));
|
||||
border: 1px solid rgba(108, 209, 199, 0.14);
|
||||
border-radius: 11px;
|
||||
}
|
||||
|
||||
.v2-nfc-inline[data-state="recognized"] {
|
||||
background: linear-gradient(135deg, rgba(36, 184, 137, 0.16), rgba(255, 255, 255, 0.04));
|
||||
border-color: rgba(65, 211, 161, 0.28);
|
||||
}
|
||||
|
||||
.v2-nfc-inline[data-state="new-card"] {
|
||||
background: linear-gradient(135deg, rgba(226, 172, 74, 0.15), rgba(255, 255, 255, 0.04));
|
||||
border-color: rgba(236, 184, 92, 0.27);
|
||||
}
|
||||
|
||||
.v2-nfc-inline-icon {
|
||||
position: relative;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: #71d4ca;
|
||||
background: rgba(75, 190, 179, 0.12);
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.v2-nfc-inline[data-state="recognized"] .v2-nfc-inline-icon {
|
||||
color: #70e1b6;
|
||||
background: rgba(55, 200, 149, 0.13);
|
||||
}
|
||||
|
||||
.v2-nfc-inline[data-state="new-card"] .v2-nfc-inline-icon {
|
||||
color: #efc070;
|
||||
background: rgba(226, 172, 74, 0.12);
|
||||
}
|
||||
|
||||
.v2-nfc-inline-icon svg {
|
||||
width: 17px;
|
||||
}
|
||||
|
||||
.v2-nfc-inline[data-state="waiting"] .v2-nfc-inline-icon b {
|
||||
position: absolute;
|
||||
inset: 4px;
|
||||
border: 1px solid rgba(112, 215, 204, 0.35);
|
||||
border-radius: 9px;
|
||||
animation: extension-nfc-pulse 1.8s ease-out infinite;
|
||||
}
|
||||
|
||||
.v2-nfc-inline > div {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.v2-nfc-inline small {
|
||||
color: #68bcb4;
|
||||
font: 800 7px/1.2 "SFMono-Regular", Consolas, monospace;
|
||||
letter-spacing: 0.08em;
|
||||
}
|
||||
|
||||
.v2-nfc-inline strong,
|
||||
.v2-nfc-inline p {
|
||||
overflow: hidden;
|
||||
margin: 0;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.v2-nfc-inline strong {
|
||||
color: #effbf9;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.v2-nfc-inline p {
|
||||
color: #8eaaa7;
|
||||
font-size: 7.5px;
|
||||
}
|
||||
|
||||
.v2-nfc-inline > div > div {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
margin-top: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.v2-nfc-inline > div > div i {
|
||||
flex: 0 0 auto;
|
||||
padding: 2px 5px;
|
||||
color: #b9ddd8;
|
||||
background: rgba(96, 196, 185, 0.09);
|
||||
border-radius: 999px;
|
||||
font-size: 6.5px;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.v2-nfc-inline > button {
|
||||
min-height: 29px;
|
||||
padding: 0 8px;
|
||||
color: #123c3a;
|
||||
background: #83d8cf;
|
||||
border: 0;
|
||||
border-radius: 8px;
|
||||
font-size: 7.5px;
|
||||
font-weight: 850;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.v2-nfc-dialog {
|
||||
width: min(900px, calc(100vw - 28px));
|
||||
max-width: 900px;
|
||||
max-height: min(860px, calc(100dvh - 28px));
|
||||
padding: 0;
|
||||
overflow: auto;
|
||||
color: #203d3d;
|
||||
background: #f4f8f7;
|
||||
border: 1px solid #dce8e6;
|
||||
border-radius: 24px;
|
||||
box-shadow: 0 30px 80px rgba(17, 52, 52, 0.28);
|
||||
}
|
||||
|
||||
.v2-nfc-dialog > header {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 3;
|
||||
padding: 22px 24px 17px;
|
||||
background: rgba(248, 251, 250, 0.94);
|
||||
border-bottom: 1px solid #e0e9e7;
|
||||
backdrop-filter: blur(16px);
|
||||
}
|
||||
|
||||
.v2-nfc-dialog > header h2 {
|
||||
font-size: 22px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage {
|
||||
margin: 20px 24px 16px;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
border: 1px solid #dfe9e7;
|
||||
border-radius: 19px;
|
||||
box-shadow: 0 12px 32px rgba(30, 73, 71, 0.07);
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header {
|
||||
display: grid;
|
||||
grid-template-columns: 46px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 15px 17px;
|
||||
background: linear-gradient(135deg, #153b3c, #1c514e);
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header > span {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: #99e6de;
|
||||
background: rgba(114, 219, 208, 0.12);
|
||||
border: 1px solid rgba(139, 230, 221, 0.16);
|
||||
border-radius: 13px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header svg {
|
||||
width: 22px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header > div {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header small {
|
||||
color: #76c5bd;
|
||||
font: 850 9px/1.2 "SFMono-Regular", Consolas, monospace;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header h3 {
|
||||
margin: 3px 0;
|
||||
color: #f5fffd;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header p {
|
||||
margin: 0;
|
||||
color: #a5c5c1;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header > b {
|
||||
padding: 6px 8px;
|
||||
color: #9cb3b0;
|
||||
background: rgba(255, 255, 255, 0.06);
|
||||
border-radius: 7px;
|
||||
font: 850 8px "SFMono-Regular", Consolas, monospace;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header > b[data-state="online"] {
|
||||
color: #8de8c1;
|
||||
background: rgba(52, 202, 147, 0.11);
|
||||
}
|
||||
|
||||
.v2-nfc-body {
|
||||
min-height: 260px;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.v2-nfc-waiting {
|
||||
min-height: 224px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 24px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.v2-nfc-reader-visual {
|
||||
position: relative;
|
||||
width: 104px;
|
||||
height: 104px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: #177d76;
|
||||
background: radial-gradient(circle, #ecf9f7 0 31%, #dff3ef 32% 43%, #f5fbfa 44%);
|
||||
border: 1px solid #d6eeea;
|
||||
border-radius: 30px;
|
||||
}
|
||||
|
||||
.v2-nfc-reader-visual svg {
|
||||
width: 38px;
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
.v2-nfc-reader-visual b {
|
||||
position: absolute;
|
||||
inset: 18px;
|
||||
border: 1px solid rgba(38, 156, 144, 0.28);
|
||||
border-radius: 22px;
|
||||
animation: extension-nfc-pulse 1.8s ease-out infinite;
|
||||
}
|
||||
|
||||
.v2-nfc-reader-visual b:last-child {
|
||||
animation-delay: 900ms;
|
||||
}
|
||||
|
||||
.v2-nfc-waiting.offline .v2-nfc-reader-visual,
|
||||
.v2-nfc-waiting.offline .v2-nfc-reader-visual b {
|
||||
color: #879a98;
|
||||
border-color: #dce5e3;
|
||||
animation: none;
|
||||
}
|
||||
|
||||
.v2-nfc-waiting > div {
|
||||
max-width: 390px;
|
||||
}
|
||||
|
||||
.v2-nfc-waiting small,
|
||||
.v2-nfc-detected-heading small,
|
||||
.v2-nfc-recognized-heading small,
|
||||
.v2-nfc-capability-heading small {
|
||||
color: #6f9793;
|
||||
font: 850 9px/1.3 "SFMono-Regular", Consolas, monospace;
|
||||
letter-spacing: 0.1em;
|
||||
}
|
||||
|
||||
.v2-nfc-waiting strong {
|
||||
display: block;
|
||||
margin: 7px 0 6px;
|
||||
color: #183f3e;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.v2-nfc-waiting p {
|
||||
margin: 0;
|
||||
color: #6c8381;
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.v2-nfc-detected-heading,
|
||||
.v2-nfc-recognized-heading {
|
||||
display: grid;
|
||||
grid-template-columns: 54px minmax(0, 1fr) auto;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 16px;
|
||||
background: #f6faf9;
|
||||
border: 1px solid #e2ecea;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
.v2-nfc-detected-heading > span,
|
||||
.v2-nfc-recognized-heading > span {
|
||||
width: 54px;
|
||||
height: 54px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: #147a73;
|
||||
background: #e3f4f1;
|
||||
border-radius: 15px;
|
||||
}
|
||||
|
||||
.v2-nfc-detected-heading svg,
|
||||
.v2-nfc-recognized-heading svg {
|
||||
width: 25px;
|
||||
}
|
||||
|
||||
.v2-nfc-recognized-heading > i,
|
||||
.v2-nfc-recognized-heading > i svg {
|
||||
width: 27px;
|
||||
height: 27px;
|
||||
color: #27a878;
|
||||
}
|
||||
|
||||
.v2-nfc-detected-heading strong,
|
||||
.v2-nfc-recognized-heading strong {
|
||||
display: block;
|
||||
margin: 3px 0;
|
||||
color: #183f3e;
|
||||
font-size: 17px;
|
||||
}
|
||||
|
||||
.v2-nfc-detected-heading p,
|
||||
.v2-nfc-recognized-heading p {
|
||||
margin: 0;
|
||||
color: #718784;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.v2-nfc-create-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1.4fr 1fr;
|
||||
gap: 12px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.v2-nfc-create-grid label,
|
||||
.v2-nfc-existing {
|
||||
display: grid;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.v2-nfc-create-grid label > span,
|
||||
.v2-nfc-existing > span {
|
||||
color: #55706e;
|
||||
font-size: 10px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.v2-nfc-create-grid input,
|
||||
.v2-nfc-create-grid select,
|
||||
.v2-nfc-existing select {
|
||||
width: 100%;
|
||||
height: 42px;
|
||||
padding: 0 12px;
|
||||
color: #183d3b;
|
||||
background: #fff;
|
||||
border: 1px solid #d5e3e0;
|
||||
border-radius: 10px;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.v2-nfc-create-grid input:focus,
|
||||
.v2-nfc-create-grid select:focus,
|
||||
.v2-nfc-existing select:focus {
|
||||
border-color: #42a69d;
|
||||
box-shadow: 0 0 0 3px rgba(66, 166, 157, 0.1);
|
||||
}
|
||||
|
||||
.v2-nfc-primary-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
margin-top: 13px;
|
||||
}
|
||||
|
||||
.v2-nfc-primary-actions button,
|
||||
.v2-nfc-recognized-actions button {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 7px;
|
||||
}
|
||||
|
||||
.v2-nfc-primary-actions svg,
|
||||
.v2-nfc-recognized-actions svg {
|
||||
width: 15px;
|
||||
}
|
||||
|
||||
.v2-nfc-existing {
|
||||
margin-top: 14px;
|
||||
padding-top: 14px;
|
||||
border-top: 1px solid #e3ecea;
|
||||
}
|
||||
|
||||
.v2-nfc-existing > div {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.v2-nfc-existing button,
|
||||
.v2-nfc-recognized-actions > button:last-child {
|
||||
padding: 0 16px;
|
||||
color: #3a6865;
|
||||
background: #eef6f4;
|
||||
border: 1px solid #d4e5e2;
|
||||
border-radius: 10px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-heading {
|
||||
display: flex;
|
||||
align-items: end;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
margin: 18px 2px 10px;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-heading strong {
|
||||
display: block;
|
||||
margin-top: 2px;
|
||||
color: #193f3d;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-heading > span {
|
||||
color: #4d817c;
|
||||
font-size: 10px;
|
||||
font-weight: 850;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-card {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
background: #f7faf9;
|
||||
border: 1px solid #e1eae8;
|
||||
border-radius: 11px;
|
||||
transition: 150ms ease;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-card:hover {
|
||||
transform: translateY(-1px);
|
||||
border-color: #91c8c1;
|
||||
box-shadow: 0 6px 16px rgba(34, 93, 88, 0.08);
|
||||
}
|
||||
|
||||
.v2-nfc-capability-card.learned {
|
||||
background: #f0faf6;
|
||||
border-color: #cfe9de;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-primary {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
min-height: 62px;
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 18px;
|
||||
grid-template-rows: auto auto;
|
||||
gap: 3px 8px;
|
||||
padding: 10px 11px;
|
||||
text-align: left;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-primary span {
|
||||
overflow: hidden;
|
||||
color: #244744;
|
||||
font-size: 11px;
|
||||
font-weight: 850;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-primary small {
|
||||
overflow: hidden;
|
||||
color: #78908d;
|
||||
font-size: 8px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-primary svg {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / 3;
|
||||
align-self: center;
|
||||
width: 15px;
|
||||
color: #3c988e;
|
||||
}
|
||||
|
||||
.v2-nfc-capability-card.pending .v2-nfc-capability-primary svg {
|
||||
color: #9baaa8;
|
||||
}
|
||||
|
||||
.v2-nfc-relearn {
|
||||
width: 100%;
|
||||
min-height: 28px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 5px;
|
||||
padding: 5px 9px;
|
||||
color: #397b75;
|
||||
background: rgba(255, 255, 255, 0.58);
|
||||
border: 0;
|
||||
border-top: 1px solid #d9ebe4;
|
||||
cursor: pointer;
|
||||
font-size: 9px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.v2-nfc-relearn:hover {
|
||||
color: #175f59;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.v2-nfc-relearn svg {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
}
|
||||
|
||||
.v2-nfc-recognized-actions {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.v2-nfc-recognized-actions button {
|
||||
min-height: 40px;
|
||||
}
|
||||
|
||||
.v2-nfc-recognized-actions button:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.v2-nfc-footnote {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 0 24px 22px;
|
||||
color: #738a87;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.v2-nfc-footnote svg {
|
||||
width: 15px;
|
||||
color: #398e86;
|
||||
}
|
||||
|
||||
@keyframes extension-nfc-pulse {
|
||||
from { transform: scale(0.72); opacity: 0.8; }
|
||||
to { transform: scale(1.48); opacity: 0; }
|
||||
}
|
||||
|
||||
@media (max-width: 720px) {
|
||||
.v2-nfc-dialog {
|
||||
width: calc(100vw - 14px);
|
||||
max-height: calc(100dvh - 14px);
|
||||
border-radius: 18px;
|
||||
}
|
||||
|
||||
.v2-nfc-dialog > header,
|
||||
.v2-nfc-stage > header,
|
||||
.v2-nfc-body {
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage {
|
||||
margin: 12px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header {
|
||||
grid-template-columns: 40px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header > span {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
}
|
||||
|
||||
.v2-nfc-stage > header > b {
|
||||
grid-column: 1 / -1;
|
||||
justify-self: start;
|
||||
}
|
||||
|
||||
.v2-nfc-waiting {
|
||||
min-height: 250px;
|
||||
flex-direction: column;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.v2-nfc-create-grid,
|
||||
.v2-nfc-capability-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.v2-nfc-recognized-heading,
|
||||
.v2-nfc-detected-heading {
|
||||
grid-template-columns: 46px minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.v2-nfc-recognized-heading > span,
|
||||
.v2-nfc-detected-heading > span {
|
||||
width: 46px;
|
||||
height: 46px;
|
||||
}
|
||||
|
||||
.v2-nfc-recognized-heading > i {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user