item-atlas/docs/ui/concept.html

299 lines
16 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Item Atlas · 界面方向稿</title>
<style>
:root {
color-scheme: light;
--surface: #ffffff;
--paper: #faf9f5;
--board: #efeee8;
--ink: #192922;
--muted: #526059;
--accent: #245443;
--accent-hover: #1d4436;
--green-wash: #e9f1ea;
--line: #dfe4dc;
--amber: #815008;
--amber-wash: #fcf0d8;
font: 15px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", sans-serif;
color: var(--ink);
background: var(--board);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.artboard { padding: 42px 36px 44px; margin: 0 auto; }
.mobile-artboard { max-width: 886px; }
.desktop-artboard { max-width: 1292px; }
.board-title { margin-bottom: 23px; }
.board-title h1 { font-size: 26px; letter-spacing: -.025em; }
.board-title p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.mobile-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.screen-label { font-size: 13px; color: var(--muted); margin: 0 0 9px 6px; }
.product { background: var(--paper); border: 1px solid #d7ddd3; }
.phone { display: flex; flex-direction: column; min-height: 586px; border-radius: 20px; overflow: hidden; }
.phone-bar {
display: flex; justify-content: space-between; align-items: center;
min-height: 63px; padding: 8px 18px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 730; letter-spacing: -.02em; }
.brand-mark {
display: grid; grid-template-columns: repeat(2, 5px); grid-template-rows: repeat(2, 5px);
place-content: center; gap: 3px; width: 25px; height: 25px;
background: var(--accent); border-radius: 7px;
}
.brand-mark i { background: #fff; border-radius: 1px; }
.brand-mark i:last-child { opacity: .56; }
.home-name { color: var(--muted); font-size: 13px; white-space: nowrap; }
.phone-content { padding: 20px 18px; flex: 1; }
.page-title { font-size: 25px; letter-spacing: -.025em; font-weight: 720; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.search {
display: flex; align-items: center; gap: 10px; min-height: 46px;
background: var(--surface); border: 1px solid #cbd7cc; border-radius: 9px; padding: 8px 12px;
font-weight: 550;
}
.search-icon { width: 13px; height: 13px; border: 1.8px solid var(--accent); border-radius: 50%; position: relative; margin-right: 2px; flex: 0 0 13px; }
.search-icon::after { content: ""; width: 6px; height: 1.8px; background: var(--accent); position: absolute; top: 9px; left: 8px; transform: rotate(45deg); transform-origin: left; }
.small-label { font-size: 12px; color: var(--muted); }
.search-meta { margin: 20px 0 8px; }
.item-list { display: grid; gap: 8px; }
.item-row {
display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; align-items: center; gap: 11px;
border: 1px solid var(--line); border-radius: 10px; min-height: 73px; padding: 10px 11px;
background: var(--surface);
}
.item-glyph {
background: var(--green-wash); color: var(--accent); width: 37px; height: 37px;
border-radius: 8px; display: grid; place-content: center; font-size: 11px; font-weight: 780;
}
.item-name { font-weight: 690; font-size: 15px; line-height: 1.3; }
.item-path { font-size: 12px; color: var(--muted); margin-top: 4px; }
.quantity { margin-left: 5px; color: var(--muted); font-weight: 520; white-space: nowrap; }
.chevron { font-size: 17px; color: var(--muted); padding-right: 1px; }
.action-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.button {
min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
border-radius: 8px; padding: 7px 12px; font-size: 13px; font-weight: 650;
}
.button.primary { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
a.button.primary:hover { background: var(--accent-hover); }
.button.secondary { color: var(--accent); background: var(--surface); border: 1px solid #c9d7cc; }
.button.pending { background: #e6e9e1; color: #4f5d55; border: 1px solid #e6e9e1; }
.phone-nav { min-height: 51px; display: flex; border-top: 1px solid var(--line); background: var(--surface); }
.phone-nav > * { display: grid; place-content: center; flex: 1; color: var(--muted); font-size: 13px; }
.phone-nav .active { color: var(--accent); font-weight: 700; box-shadow: inset 0 2px 0 var(--accent); }
.draft-input { margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; }
.draft-input p + p { margin-top: 4px; font-size: 13px; line-height: 1.6; }
.draft-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; }
.draft-head h3 { font-size: 14px; }
.draft-list { display: grid; gap: 7px; }
.draft-row {
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px;
min-height: 55px; background: var(--surface); border: 1px solid var(--line);
border-radius: 9px; padding: 8px 11px;
}
.draft-row.needs-review { background: #fffbf1; border-color: #ebd6aa; }
.draft-row .item-name { font-size: 14px; }
.row-text { color: var(--accent); font-size: 12px; font-weight: 650; white-space: nowrap; }
.row-text.skip { color: var(--muted); }
.row-text.review { color: var(--amber); }
.draft-actions .button { flex: 1; }
.desktop-surface {
display: grid; grid-template-columns: 186px minmax(0, 1fr); min-height: 530px;
border-radius: 13px; overflow: hidden;
}
.desktop-menu { padding: 21px 15px; border-right: 1px solid var(--line); background: #f1f3ed; }
.desktop-menu .brand { margin: 0 0 27px 5px; }
.desktop-menu .home-name { display: block; margin: 0 0 10px 5px; }
.menu-list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.menu-list li { padding: 8px 10px; border-radius: 7px; color: var(--muted); }
.menu-list li.active { font-weight: 700; background: var(--green-wash); color: var(--accent); }
.desktop-content { min-width: 0; padding: 23px; }
.desktop-columns { display: grid; grid-template-columns: minmax(210px, .93fr) minmax(225px, 1fr); gap: 18px; }
.results, .detail { min-width: 0; }
.results .search-meta { margin-top: 15px; }
.selected { background: #f1f6f0; border-color: #9bb7a6; }
.detail { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.detail .page-head { margin-bottom: 12px; }
.detail h3 { font-size: 20px; }
.detail-place { display: grid; gap: 4px; background: var(--green-wash); border-radius: 7px; padding: 11px 12px; }
.detail-place p:last-child { font-weight: 670; }
.detail-group { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.detail-group:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-group dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.detail-group dd { margin: 0; font-size: 14px; }
.stars { color: var(--accent); letter-spacing: 2px; margin-right: 6px; }
@media (max-width: 760px) {
.mobile-pair { grid-template-columns: minmax(0, 388px); justify-content: center; }
.desktop-surface { grid-template-columns: minmax(0, 1fr); }
.desktop-menu { border-right: 0; border-bottom: 1px solid var(--line); }
.desktop-menu .brand { margin-bottom: 10px; }
.menu-list { display: flex; flex-wrap: wrap; }
.desktop-columns { grid-template-columns: minmax(0, 1fr); }
.artboard { padding: 25px 15px 27px; }
}
@media (prefers-reduced-motion: no-preference) {
.button { transition: background-color .14s ease; }
}
</style>
</head>
<body>
<main>
<section id="mobile" class="artboard mobile-artboard" aria-labelledby="mobile-title">
<header class="board-title">
<h1 id="mobile-title">Item Atlas · 移动网页</h1>
<p>找物与批量录入</p>
</header>
<div class="mobile-pair">
<section id="mobile-search" aria-labelledby="mobile-search-label">
<h2 id="mobile-search-label" class="screen-label">找物 · 搜索结果</h2>
<div class="product phone">
<header class="phone-bar">
<div class="brand"><span class="brand-mark" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Item Atlas</div>
<span class="home-name">我家</span>
</header>
<div class="phone-content">
<header class="page-head"><h3 class="page-title">找东西</h3></header>
<div class="search"><span class="search-icon" aria-hidden="true"></span>视频线</div>
<p class="small-label search-meta">搜索结果 · 2 件</p>
<div class="item-list">
<article class="item-row">
<span class="item-glyph" aria-hidden="true">HD</span>
<div>
<p class="item-name">HDMI 线<span class="quantity">×2</span></p>
<p class="item-path">书房 / 书桌 / 右抽屉</p>
</div>
<span class="chevron" aria-hidden="true">›</span>
</article>
<article class="item-row">
<span class="item-glyph" aria-hidden="true">DP</span>
<div>
<p class="item-name">DisplayPort 线</p>
<p class="item-path">客厅 / 电视柜 / 左边收纳盒</p>
</div>
<span class="chevron" aria-hidden="true">›</span>
</article>
</div>
<div class="action-row">
<span class="button secondary">记一件</span>
<a class="button primary" href="#mobile-intake">批量记</a>
</div>
</div>
<nav class="phone-nav" aria-label="找物页导航">
<span class="active" aria-current="page">找物</span>
<span>位置</span>
<a href="#mobile-intake">录入</a>
<span>收藏</span>
</nav>
</div>
</section>
<section id="mobile-intake" aria-labelledby="mobile-intake-label">
<h2 id="mobile-intake-label" class="screen-label">录入 · 核对草稿</h2>
<div class="product phone">
<header class="phone-bar">
<div class="brand"><span class="brand-mark" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Item Atlas</div>
<span class="home-name">我家</span>
</header>
<div class="phone-content">
<header class="page-head"><h3 class="page-title">核对草稿</h3></header>
<div class="draft-input">
<p class="small-label">原始输入</p>
<p>两根 HDMI 线放书房右抽屉。读卡器先别动。备用钥匙好像在玄关白盒。</p>
</div>
<header class="draft-head"><h3>识别结果</h3><span class="small-label">1 项待确认</span></header>
<div class="draft-list">
<article class="draft-row">
<div><p class="item-name">HDMI 线<span class="quantity">×2</span></p><p class="item-path">书房 / 书桌 / 右抽屉</p></div>
<span class="row-text">修改</span>
</article>
<article class="draft-row">
<div><p class="item-name">读卡器</p><p class="item-path">按原话保留在原处</p></div>
<span class="row-text skip">跳过</span>
</article>
<article class="draft-row needs-review">
<div><p class="item-name">备用钥匙</p><p class="item-path">可能在 玄关 / 白盒</p></div>
<span class="row-text review">选择位置</span>
</article>
</div>
<div class="action-row draft-actions">
<span class="button secondary">手工录入</span>
<span class="button pending" aria-disabled="true">确认并提交</span>
</div>
</div>
<nav class="phone-nav" aria-label="录入页导航">
<a href="#mobile-search">找物</a>
<span>位置</span>
<span class="active" aria-current="page">录入</span>
<span>收藏</span>
</nav>
</div>
</section>
</div>
</section>
<section id="desktop" class="artboard desktop-artboard" aria-labelledby="desktop-title">
<header class="board-title">
<h2 id="desktop-title" style="font-size:26px;letter-spacing:-.025em">Item Atlas · PC 网页</h2>
<p>找物列表与物品详情</p>
</header>
<div class="product desktop-surface">
<aside class="desktop-menu">
<div class="brand"><span class="brand-mark" aria-hidden="true"><i></i><i></i><i></i><i></i></span>Item Atlas</div>
<span class="home-name">我家</span>
<ul class="menu-list">
<li class="active">找物</li>
<li>位置</li>
<li>录入草稿</li>
<li>我的收藏</li>
</ul>
</aside>
<div class="desktop-content">
<header class="page-head">
<h3 class="page-title">找东西</h3>
<span class="button primary">+ 记一件</span>
</header>
<div class="desktop-columns">
<div class="results">
<div class="search"><span class="search-icon" aria-hidden="true"></span>视频线</div>
<p class="small-label search-meta">搜索结果 · 2 件</p>
<div class="item-list">
<article class="item-row selected">
<span class="item-glyph" aria-hidden="true">HD</span>
<div><p class="item-name">HDMI 线<span class="quantity">×2</span></p><p class="item-path">书房 / 书桌 / 右抽屉</p></div>
<span class="chevron" aria-hidden="true">›</span>
</article>
<article class="item-row">
<span class="item-glyph" aria-hidden="true">DP</span>
<div><p class="item-name">DisplayPort 线</p><p class="item-path">客厅 / 电视柜 / 左边收纳盒</p></div>
<span class="chevron" aria-hidden="true">›</span>
</article>
</div>
</div>
<section class="detail" aria-labelledby="detail-name">
<header class="page-head">
<h3 id="detail-name">HDMI 线<span class="quantity">×2</span></h3>
<span class="button secondary">移位</span>
</header>
<div class="detail-place">
<p class="small-label">当前位置</p>
<p>书房 / 书桌 / 右抽屉</p>
</div>
<dl class="detail-group"><dt>别名</dt><dd>视频线</dd></dl>
<dl class="detail-group"><dt>关联物品</dt><dd>HDMI 转接头 <span class="item-path">· 玄关 / 白盒</span></dd></dl>
<dl class="detail-group"><dt>上一次移位</dt><dd>客厅 / 电视柜 → 书房 / 书桌 / 右抽屉</dd></dl>
<dl class="detail-group"><dt>我的使用记录</dt><dd><span class="stars" aria-label="4 星">★★★★☆</span>已收藏</dd></dl>
</section>
</div>
</div>
</div>
</section>
</main>
</body>
</html>