Spaces:
Running
Running
File size: 1,992 Bytes
beaca28 d49575d beaca28 d49575d beaca28 d49575d beaca28 d49575d beaca28 d49575d beaca28 d49575d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | :root {
--bg: #f7f3ec;
--ink: #2f2a24;
--panel: #fffaf2;
--accent: #7a5b3d;
--ok: #1f7a43;
--bad: #a1352f;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
color: var(--ink);
background: radial-gradient(circle at top, #fffdf8, var(--bg));
}
.app {
max-width: 760px;
margin: 0 auto;
padding: 16px;
}
h1 {
margin: 0 0 6px;
font-size: 1.35rem;
}
h2 {
margin: 0 0 10px;
font-size: 1rem;
}
p {
margin: 0 0 14px;
}
.camera-wrap {
position: relative;
border-radius: 14px;
overflow: hidden;
background: #ddd;
aspect-ratio: 3 / 4;
}
video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.reticle {
position: absolute;
left: 50%;
top: 50%;
width: 70px;
height: 70px;
transform: translate(-50%, -50%);
border: 3px solid #fff;
border-radius: 10px;
box-shadow: 0 0 0 200vmax rgba(0, 0, 0, 0.1);
}
.controls {
display: flex;
gap: 10px;
margin-top: 12px;
flex-wrap: wrap;
}
button {
border: 0;
border-radius: 10px;
padding: 10px 14px;
background: var(--accent);
color: #fff;
font-weight: 600;
}
button:disabled {
opacity: 0.55;
}
.panel {
margin-top: 12px;
background: var(--panel);
border: 1px solid #eadfcd;
border-radius: 12px;
padding: 12px;
}
.sample-row {
display: flex;
align-items: center;
gap: 10px;
margin-top: 8px;
}
.swatch {
width: 34px;
height: 34px;
border-radius: 8px;
border: 1px solid #bbb;
}
.palette-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
gap: 8px;
}
.chip {
border-radius: 8px;
padding: 6px;
text-align: center;
font-size: 12px;
border: 1px solid #d9cfbf;
background: #fff;
}
.chip-color {
height: 26px;
border-radius: 6px;
border: 1px solid rgba(0, 0, 0, 0.15);
margin-bottom: 4px;
}
.ok {
color: var(--ok);
font-weight: 700;
}
.bad {
color: var(--bad);
font-weight: 700;
}
|