third-eye / assets /redesign_preview.html
mitvho09's picture
Upload folder using huggingface_hub
031e3f9 verified
Raw
History Blame Contribute Delete
12.6 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Third Eye — Redesign Preview</title>
<style>
:root {
--page: #f6f7f8;
--card: #ffffff;
--ink: #1a1a1b;
--muted: #6b7280;
--faint: #9aa1ac;
--line: #e6e8eb;
--line-strong: #d7dade;
--accent: #ff5630;
--accent-ink: #ffffff;
--accent-soft: #fff1ec;
--good: #1f9d55;
--frame: #0e1116;
--radius: 16px;
--radius-sm: 12px;
--shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
--shadow-hover: 0 2px 4px rgba(16,24,40,.06), 0 12px 28px rgba(16,24,40,.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
background: var(--page);
color: var(--ink);
font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
-webkit-font-smoothing: antialiased;
padding: 28px 20px 64px;
}
.wrap { max-width: 1080px; margin: 0 auto; }
/* ---------- Top bar ---------- */
.topbar {
display: flex; align-items: center; justify-content: space-between;
gap: 16px; margin-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
width: 44px; height: 44px; border-radius: 13px;
background: var(--accent); color: #fff;
display: grid; place-items: center; flex: none;
box-shadow: 0 4px 12px rgba(255,86,48,.30);
}
.logo svg { width: 26px; height: 26px; }
.brand h1 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand p { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); }
.lang {
display: inline-flex; align-items: center; gap: 8px;
background: var(--card); border: 1px solid var(--line-strong);
border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 600;
box-shadow: var(--shadow); cursor: pointer;
}
.lang svg { width: 15px; height: 15px; color: var(--muted); }
/* ---------- Mode cards ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.mode {
background: var(--card); border: 1px solid var(--line);
border-radius: var(--radius); padding: 16px; cursor: pointer;
box-shadow: var(--shadow); transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
display: flex; gap: 13px; align-items: flex-start;
}
.mode:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.mode.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft), var(--shadow); }
.mode .ic {
width: 40px; height: 40px; border-radius: 11px; flex: none;
display: grid; place-items: center; background: #f1f3f5; color: var(--ink);
}
.mode.active .ic { background: var(--accent-soft); color: var(--accent); }
.mode .ic svg { width: 21px; height: 21px; }
.mode h3 { margin: 0 0 2px; font-size: 15.5px; font-weight: 750; letter-spacing: -.01em; }
.mode p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
/* ---------- Work area ---------- */
.work { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; align-items: start; }
.card {
background: var(--card); border: 1px solid var(--line);
border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-head {
display: flex; align-items: center; justify-content: space-between;
padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.card-head h2 { margin: 0; font-size: 14px; font-weight: 750; letter-spacing: .01em; }
.card-head .hint { font-size: 12.5px; color: var(--faint); }
.card-body { padding: 18px; }
.frame {
border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3;
background:
radial-gradient(120% 90% at 50% 0%, #1b2230, var(--frame));
display: grid; place-items: center; color: #7b8494; position: relative;
border: 1px solid #1c2330;
}
.frame .ph { text-align: center; }
.frame .ph svg { width: 46px; height: 46px; opacity: .7; }
.frame .ph span { display: block; margin-top: 8px; font-size: 13px; }
.frame .badge {
position: absolute; left: 12px; top: 12px;
background: rgba(8,11,16,.72); color: #d7deea; backdrop-filter: blur(4px);
border: 1px solid rgba(255,255,255,.08);
font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
}
.examples { display: flex; gap: 10px; margin-top: 14px; }
.examples .ex {
flex: 1; aspect-ratio: 1/1; border-radius: 10px; border: 1px solid var(--line);
background: #eef0f2; display: grid; place-items: center; color: var(--faint);
font-size: 11px; cursor: pointer; transition: border-color .12s, transform .12s;
}
.examples .ex:hover { border-color: var(--accent); transform: translateY(-1px); }
.ex-label { font-size: 12px; color: var(--muted); margin: 16px 0 8px; font-weight: 600; }
/* status chip */
.chip {
display: inline-flex; align-items: center; gap: 8px;
background: #f1f3f5; border: 1px solid var(--line);
border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 650; color: var(--ink);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); position: relative; }
.dot::after {
content: ""; position: absolute; inset: -4px; border-radius: 50%;
background: var(--good); opacity: .35; animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }
.field-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 7px; }
.qbox {
background: #f7f8f9; border: 1px solid var(--line); border-radius: 10px;
padding: 11px 14px; font-size: 14.5px; color: var(--ink);
}
.answer {
background: var(--card); border: 1px solid var(--line); border-radius: 12px;
padding: 16px 18px; font-size: 18.5px; line-height: 1.6; color: var(--ink); min-height: 120px;
}
.audio {
margin-top: 14px; display: flex; align-items: center; gap: 12px;
background: #f7f8f9; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
}
.audio .play { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.audio .play svg { width: 15px; height: 15px; }
.audio .bar { flex: 1; height: 4px; border-radius: 2px; background: #e3e6e9; position: relative; }
.audio .bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 42%; background: var(--accent); border-radius: 2px; }
.audio .t { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* primary action */
.cta {
margin-top: 18px; width: 100%; border: none; cursor: pointer;
background: var(--accent); color: var(--accent-ink);
font: 700 16.5px/1 "Inter", system-ui, sans-serif; letter-spacing: .01em;
padding: 16px; border-radius: 12px; box-shadow: 0 6px 16px rgba(255,86,48,.28);
transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
display: flex; align-items: center; justify-content: center; gap: 10px;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 8px 22px rgba(255,86,48,.34); }
.cta svg { width: 18px; height: 18px; }
.foot { text-align: center; margin-top: 34px; font-size: 12.5px; color: var(--faint); }
.foot b { color: var(--muted); font-weight: 650; }
.note { text-align:center; font-size:12px; color:var(--faint); margin-top:8px; }
@media (max-width: 820px) {
.modes { grid-template-columns: 1fr; }
.work { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<div class="wrap">
<!-- Top bar -->
<div class="topbar">
<div class="brand">
<div class="logo" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z"/><circle cx="12" cy="12" r="3"/>
</svg>
</div>
<div>
<h1>Third Eye</h1>
<p>Point your camera. Ask out loud. Listen to the answer.</p>
</div>
</div>
<div class="lang" role="button" tabindex="0">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20"/></svg>
English
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" style="width:13px"><path d="M6 9l6 6 6-6"/></svg>
</div>
</div>
<!-- Mode cards -->
<div class="modes">
<div class="mode active">
<div class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-5-5L5 21"/></svg></div>
<div><h3>Describe</h3><p>Tell me everything in the scene in front of me.</p></div>
</div>
<div class="mode">
<div class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"/><path d="M19 10v2a7 7 0 0 1-14 0v-2M12 19v4"/></svg></div>
<div><h3>Ask</h3><p>Speak a question about what the camera sees.</p></div>
</div>
<div class="mode">
<div class="ic"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg></div>
<div><h3>Read Text</h3><p>Read labels, menus and signs out loud, word for word.</p></div>
</div>
</div>
<!-- Work area -->
<div class="work">
<!-- Capture -->
<div class="card">
<div class="card-head"><h2>CAPTURE</h2><span class="hint">Camera or upload</span></div>
<div class="card-body">
<div class="frame">
<span class="badge">● Live camera</span>
<div class="ph">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" 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>Point your camera, or upload a photo</span>
</div>
</div>
<div class="ex-label">Or try an example</div>
<div class="examples">
<div class="ex">Menu</div>
<div class="ex">Label</div>
<div class="ex">Sign</div>
</div>
<button class="cta">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-7 11-7 11 7 11 7-4 7-11 7-11-7-11-7z"/><circle cx="12" cy="12" r="3"/></svg>
Describe what I see
</button>
</div>
</div>
<!-- Result -->
<div class="card">
<div class="card-head">
<h2>ANSWER</h2>
<span class="chip"><span class="dot"></span> Speaking</span>
</div>
<div class="card-body">
<div class="field-label">You asked</div>
<div class="qbox">Describe this image for a blind person, including any text.</div>
<div class="field-label">Answer</div>
<div class="answer">A medicine label on a white box. The brand reads <b>“Paracetamol 500&nbsp;mg”</b>. Below it: “Take one tablet every 6 hours. Do not exceed 8 tablets in 24 hours.” The expiry date is 09 / 2027.</div>
<div class="audio">
<div class="play"><svg viewBox="0 0 24 24" fill="currentColor"><path d="M8 5v14l11-7z"/></svg></div>
<div class="bar"></div>
<div class="t">0:06 / 0:14</div>
</div>
</div>
</div>
</div>
<div class="foot">
Built with <b>MiniCPM-V-2</b>, <b>VoxCPM2</b> and <b>Cohere Transcribe</b>. Your image never leaves your device in mock mode.
</div>
<div class="note">Static preview of the proposed redesign — not the live app.</div>
</div>
</body>
</html>