Spaces:
Runtime error
Runtime error
Antigravity AI Agent commited on
Commit ·
a49ce24
1
Parent(s): 5ed261a
UI: Add camera icon to Scan toggle button with lime glow animation
Browse files- frontend/index.html +2 -2
- frontend/styles.css +18 -0
frontend/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
| 5 |
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
| 6 |
<meta name="theme-color" content="#071a18">
|
| 7 |
<title>FalconScan — Customs terms, made clear</title>
|
| 8 |
-
<link rel="stylesheet" href="/static/styles.css?v=1.
|
| 9 |
</head>
|
| 10 |
<body>
|
| 11 |
<header>
|
|
@@ -45,7 +45,7 @@
|
|
| 45 |
<div id="qualityPill" class="quality-pill" hidden></div>
|
| 46 |
<div id="selectionHint" class="selection-hint" hidden>Select or highlight document text for a live business insight</div>
|
| 47 |
<button id="documentInfo" class="document-info" type="button" aria-label="Summarize this document" hidden><span aria-hidden="true">i</span></button>
|
| 48 |
-
<button id="detailsToggle" class="details-toggle" aria-expanded="false" aria-controls="scanDetails"><
|
| 49 |
</div>
|
| 50 |
<aside id="scanDetails" class="control-panel" aria-hidden="true">
|
| 51 |
<button id="detailsClose" class="details-close" aria-label="Close scan details">×</button>
|
|
|
|
| 5 |
<meta name="viewport" content="width=device-width,initial-scale=1,viewport-fit=cover">
|
| 6 |
<meta name="theme-color" content="#071a18">
|
| 7 |
<title>FalconScan — Customs terms, made clear</title>
|
| 8 |
+
<link rel="stylesheet" href="/static/styles.css?v=1.3">
|
| 9 |
</head>
|
| 10 |
<body>
|
| 11 |
<header>
|
|
|
|
| 45 |
<div id="qualityPill" class="quality-pill" hidden></div>
|
| 46 |
<div id="selectionHint" class="selection-hint" hidden>Select or highlight document text for a live business insight</div>
|
| 47 |
<button id="documentInfo" class="document-info" type="button" aria-label="Summarize this document" hidden><span aria-hidden="true">i</span></button>
|
| 48 |
+
<button id="detailsToggle" class="details-toggle" aria-expanded="false" aria-controls="scanDetails" aria-label="Open scan panel"><svg class="toggle-cam-icon" aria-hidden="true" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"/><circle cx="12" cy="13" r="4"/></svg><span class="toggle-label">Scan</span><i aria-hidden="true">⌃</i></button>
|
| 49 |
</div>
|
| 50 |
<aside id="scanDetails" class="control-panel" aria-hidden="true">
|
| 51 |
<button id="detailsClose" class="details-close" aria-label="Close scan details">×</button>
|
frontend/styles.css
CHANGED
|
@@ -294,6 +294,24 @@ main { width: 100%; max-width: 1320px; margin: auto; padding: 30px 14px calc(64p
|
|
| 294 |
}
|
| 295 |
.details-toggle i { font-style: normal; transition: transform .3s ease; }
|
| 296 |
.details-open .details-toggle i { transform: rotate(180deg); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 297 |
|
| 298 |
.control-panel {
|
| 299 |
position: relative; display: flex; flex-direction: column; max-height: 0; overflow: hidden;
|
|
|
|
| 294 |
}
|
| 295 |
.details-toggle i { font-style: normal; transition: transform .3s ease; }
|
| 296 |
.details-open .details-toggle i { transform: rotate(180deg); }
|
| 297 |
+
.toggle-cam-icon {
|
| 298 |
+
width: 16px; height: 16px; flex-shrink: 0;
|
| 299 |
+
color: var(--lime); transition: filter 0.2s;
|
| 300 |
+
}
|
| 301 |
+
.details-toggle:hover .toggle-cam-icon {
|
| 302 |
+
filter: drop-shadow(0 0 4px rgba(181, 242, 29, 0.55));
|
| 303 |
+
}
|
| 304 |
+
.toggle-label {
|
| 305 |
+
font-size: 11px; font-weight: 700; letter-spacing: .04em;
|
| 306 |
+
color: #fff;
|
| 307 |
+
}
|
| 308 |
+
.viewport.active .toggle-cam-icon {
|
| 309 |
+
animation: cam-pulse 2.2s infinite ease-in-out;
|
| 310 |
+
}
|
| 311 |
+
@keyframes cam-pulse {
|
| 312 |
+
0%, 100% { color: var(--lime); }
|
| 313 |
+
50% { color: #fff; filter: drop-shadow(0 0 5px rgba(181, 242, 29, 0.7)); }
|
| 314 |
+
}
|
| 315 |
|
| 316 |
.control-panel {
|
| 317 |
position: relative; display: flex; flex-direction: column; max-height: 0; overflow: hidden;
|