Files
drawlogo/works/avatar-picker.html
sgp e801e14575 feat(works): 头像选型按保留清单精简为 25 个(8 个图标库)
- 移除 Tabler / Heroicons 两个分组及对应 tab,其余 6 组按保留清单裁剪
- 卡片重新编号 01-25,分组计数与说明文案同步(8 个图标库)
- 历史 localStorage 选择会过滤掉已删除的 ref,避免复制清单出现无效项
- works.js 索引同步(候选 25 / 图标库 8),版本号 bump
2026-11-15 22:37:36 +08:00

131 lines
24 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>默认头像选型 · 线条人像</title>
<style>
:root{--brand:#C8102E;--bg:#F5F6FA;--line:#E8EAF0;--text:#222;--muted:#8A8F99;--ink:#2B2F36}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Arial,sans-serif;padding-bottom:96px}
header{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);padding:16px 24px 12px}
h1{margin:0;font-size:18px;letter-spacing:.5px}
.sub{margin-top:6px;font-size:12px;color:var(--muted)}
.tabs{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.tab{border:1px solid var(--line);background:#fff;color:#555;border-radius:999px;padding:6px 14px;font-size:13px;cursor:pointer}
.tab.active{background:var(--brand);border-color:var(--brand);color:#fff}
main{padding:18px 24px 0}
section{margin-bottom:26px}
.sec-title{display:flex;align-items:baseline;gap:10px;margin:0 0 12px;font-size:14px;font-weight:600}
.sec-title span{font-size:12px;font-weight:400;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:12px}
.card{position:relative;background:#fff;border:2px solid transparent;border-radius:14px;padding:10px 6px 8px;text-align:center;cursor:pointer;transition:.15s;user-select:none}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(20,30,60,.08)}
.card.sel{border-color:var(--brand);box-shadow:0 8px 18px rgba(200,16,46,.16)}
.thumb{width:76px;height:76px;margin:0 auto 8px;border-radius:50%;background:#F1F3F8;display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--ink)}
.thumb svg{width:62%;height:62%}
.name{font-size:11px;color:#666;word-break:break-all;line-height:1.3}
.idx{position:absolute;left:8px;top:6px;font-size:10px;color:var(--muted)}
.check{position:absolute;right:6px;top:6px;width:18px;height:18px;border-radius:50%;background:var(--brand);color:#fff;font-size:12px;line-height:18px;display:none}
.card.sel .check{display:block}
footer{position:fixed;left:0;right:0;bottom:0;background:#fff;border-top:1px solid var(--line);padding:12px 24px;display:flex;align-items:center;gap:16px;box-shadow:0 -6px 20px rgba(20,30,60,.06)}
#picked{flex:1;font-size:12px;color:#444;line-height:1.5;max-height:52px;overflow:auto;word-break:break-all}
#picked b{color:var(--brand)}
.btn{border:0;border-radius:10px;padding:10px 18px;font-size:13px;cursor:pointer}
.btn.primary{background:var(--brand);color:#fff}
.btn.ghost{background:#F1F3F8;color:#555}
.tip{font-size:12px;color:var(--muted);margin:0 0 14px}
</style></head><body>
<header><h1>默认头像选型 · 线条人像</h1><div class="sub">点击卡片自由多选(不限数量),底部可复制清单发我。全部为线条/描边风格人物图标,共 8 个图标库。素材来源:画个标素材 API</div>
<div class="tabs"><button class="tab active" data-filter="all">全部</button>
<button class="tab" data-filter="lucide">Lucide</button>
<button class="tab" data-filter="feather">Feather</button>
<button class="tab" data-filter="remix">Remix</button>
<button class="tab" data-filter="bootstrap">Bootstrap</button>
<button class="tab" data-filter="iconoir">Iconoir</button>
<button class="tab" data-filter="phosphor">Phosphor</button>
<button class="tab" data-filter="carbon">IBM Carbon</button>
<button class="tab" data-filter="hugeicons">Hugeicons</button>
</div></header><main>
<p class="tip">同一风格内选多个不同人物造型会更有层次;也可跨库混搭。缩到小圆头像后,线条粗一点的更清晰。</p>
<section data-group="lucide"><h2 class="sec-title">Lucide<span>3 个</span></h2><div class="grid">
<div class="card" data-group="lucide" data-ref="lucide:user" data-num="01" data-label="user"><span class="idx">01</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" /> <circle cx="12" cy="7" r="4" /></svg></div><div class="name">user</div></div>
<div class="card" data-group="lucide" data-ref="lucide:user-round" data-num="02" data-label="user-round"><span class="idx">02</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="8" r="5" /> <path d="M20 21a8 8 0 0 0-16 0" /></svg></div><div class="name">user-round</div></div>
<div class="card" data-group="lucide" data-ref="lucide:users" data-num="03" data-label="users"><span class="idx">03</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" /> <path d="M16 3.128a4 4 0 0 1 0 7.744" /> <path d="M22 21v-2a4 4 0 0 0-3-3.87" /> <circle cx="9" cy="7" r="4" /></svg></div><div class="name">users</div></div>
</div></section>
<section data-group="feather"><h2 class="sec-title">Feather<span>2 个</span></h2><div class="grid">
<div class="card" data-group="feather" data-ref="feather:users" data-num="04" data-label="users"><span class="idx">04</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg></div><div class="name">users</div></div>
<div class="card" data-group="feather" data-ref="feather:user" data-num="05" data-label="user"><span class="idx">05</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg></div><div class="name">user</div></div>
</div></section>
<section data-group="remix"><h2 class="sec-title">Remix<span>2 个</span></h2><div class="grid">
<div class="card" data-group="remix" data-ref="remix:user-line" data-num="06" data-label="user-line"><span class="idx">06</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M4 22C4 17.5817 7.58172 14 12 14C16.4183 14 20 17.5817 20 22H18C18 18.6863 15.3137 16 12 16C8.68629 16 6 18.6863 6 22H4ZM12 13C8.685 13 6 10.315 6 7C6 3.685 8.685 1 12 1C15.315 1 18 3.685 18 7C18 10.315 15.315 13 12 13ZM12 11C14.21 11 16 9.21 16 7C16 4.79 14.21 3 12 3C9.79 3 8 4.79 8 7C8 9.21 9.79 11 12 11Z"/></svg></div><div class="name">user-line</div></div>
<div class="card" data-group="remix" data-ref="remix:user-3-line" data-num="07" data-label="user-3-line"><span class="idx">07</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M20 22H18V20C18 18.3431 16.6569 17 15 17H9C7.34315 17 6 18.3431 6 20V22H4V20C4 17.2386 6.23858 15 9 15H15C17.7614 15 20 17.2386 20 20V22ZM12 13C8.68629 13 6 10.3137 6 7C6 3.68629 8.68629 1 12 1C15.3137 1 18 3.68629 18 7C18 10.3137 15.3137 13 12 13ZM12 11C14.2091 11 16 9.20914 16 7C16 4.79086 14.2091 3 12 3C9.79086 3 8 4.79086 8 7C8 9.20914 9.79086 11 12 11Z"/></svg></div><div class="name">user-3-line</div></div>
</div></section>
<section data-group="bootstrap"><h2 class="sec-title">Bootstrap<span>3 个</span></h2><div class="grid">
<div class="card" data-group="bootstrap" data-ref="bootstrap:person" data-num="08" data-label="person"><span class="idx">08</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M12 12a4.5 4.5 0 1 0 0 -9 4.5 4.5 0 0 0 0 9m3 -4.5a3 3 0 1 1 -6 0 3 3 0 0 1 6 0m6 12c0 1.5 -1.5 1.5 -1.5 1.5H4.5s-1.5 0 -1.5 -1.5 1.5 -6 9 -6 9 4.5 9 6m-1.5 -0.006c-0.0015 -0.369 -0.231 -1.479 -1.248 -2.496C17.274 16.02 15.4335 15 12 15s-5.274 1.02 -6.252 1.998c-1.017 1.017 -1.245 2.127 -1.248 2.496z"/></svg></div><div class="name">person</div></div>
<div class="card" data-group="bootstrap" data-ref="bootstrap:person-check" data-num="09" data-label="person-check"><span class="idx">09</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M18.75 24a5.25 5.25 0 1 0 0 -10.5 5.25 5.25 0 0 0 0 10.5m2.5185 -6.7395 -2.0025 3.339a1.125 1.125 0 0 1 -1.761 0.216l-1.161 -1.1595a0.75 0.75 0 0 1 1.062 -1.062l0.8205 0.822 1.755 -2.9265a0.75 0.75 0 1 1 1.287 0.771M16.5 7.5a4.5 4.5 0 1 1 -9 0 4.5 4.5 0 0 1 9 0M12 10.5a3 3 0 1 0 0 -6 3 3 0 0 0 0 6"/><path d="M12.384 21a6.75 6.75 0 0 1 -0.3435 -1.506H4.5c0.0015 -0.369 0.231 -1.479 1.248 -2.496C6.726 16.02 8.5665 15 12 15q0.585 0 1.11 0.0375c0.339 -0.5115 0.744 -0.975 1.206 -1.377Q13.266 13.503 12 13.5c-7.5 0 -9 4.5 -9 6s1.5 1.5 1.5 1.5z"/></svg></div><div class="name">person-check</div></div>
<div class="card" data-group="bootstrap" data-ref="bootstrap:person-vcard" data-num="10" data-label="person-vcard"><span class="idx">10</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M7.5 12a3 3 0 1 0 0 -6 3 3 0 0 0 0 6m6 -3.75a0.75 0.75 0 0 1 0.75 -0.75h6a0.75 0.75 0 0 1 0 1.5h-6a0.75 0.75 0 0 1 -0.75 -0.75M13.5 12a0.75 0.75 0 0 1 0.75 -0.75h6a0.75 0.75 0 0 1 0 1.5h-6A0.75 0.75 0 0 1 13.5 12m1.5 3.75a0.75 0.75 0 0 1 0.75 -0.75h4.5a0.75 0.75 0 0 1 0 1.5h-4.5a0.75 0.75 0 0 1 -0.75 -0.75"/><path d="M3 3a3 3 0 0 0 -3 3v12a3 3 0 0 0 3 3h18a3 3 0 0 0 3 -3V6a3 3 0 0 0 -3 -3zM1.5 6a1.5 1.5 0 0 1 1.5 -1.5h18a1.5 1.5 0 0 1 1.5 1.5v12a1.5 1.5 0 0 1 -1.5 1.5H13.44q0.06 -0.3675 0.06 -0.75C13.5 15.8505 10.815 13.5 7.5 13.5c-3.129 0 -5.7 2.097 -5.976 4.7715A1.5 1.5 0 0 1 1.5 18z"/></svg></div><div class="name">person-vcard</div></div>
</div></section>
<section data-group="iconoir"><h2 class="sec-title">Iconoir<span>5 个</span></h2><div class="grid">
<div class="card" data-group="iconoir" data-ref="iconoir:user" data-num="11" data-label="user"><span class="idx">11</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 20V19C5 15.134 8.13401 12 12 12V12C15.866 12 19 15.134 19 19V20" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> <path d="M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg></div><div class="name">user</div></div>
<div class="card" data-group="iconoir" data-ref="iconoir:user-square" data-num="12" data-label="user-square"><span class="idx">12</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 18V17C7 14.2386 9.23858 12 12 12V12C14.7614 12 17 14.2386 17 17V18" stroke="currentColor" stroke-linecap="round"/> <path d="M12 12C13.6569 12 15 10.6569 15 9C15 7.34315 13.6569 6 12 6C10.3431 6 9 7.34315 9 9C9 10.6569 10.3431 12 12 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> <path d="M21 3.6V20.4C21 20.7314 20.7314 21 20.4 21H3.6C3.26863 21 3 20.7314 3 20.4V3.6C3 3.26863 3.26863 3 3.6 3H20.4C20.7314 3 21 3.26863 21 3.6Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg></div><div class="name">user-square</div></div>
<div class="card" data-group="iconoir" data-ref="iconoir:user-badge-check" data-num="13" data-label="user-badge-check"><span class="idx">13</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2 20V19C2 15.134 5.13401 12 9 12V12" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> <path d="M15.8038 12.3135C16.4456 11.6088 17.5544 11.6088 18.1962 12.3135V12.3135C18.5206 12.6697 18.9868 12.8628 19.468 12.8403V12.8403C20.4201 12.7958 21.2042 13.5799 21.1597 14.532V14.532C21.1372 15.0132 21.3303 15.4794 21.6865 15.8038V15.8038C22.3912 16.4456 22.3912 17.5544 21.6865 18.1962V18.1962C21.3303 18.5206 21.1372 18.9868 21.1597 19.468V19.468C21.2042 20.4201 20.4201 21.2042 19.468 21.1597V21.1597C18.9868 21.1372 18.5206 21.3303 18.1962 21.6865V21.6865C17.5544 22.3912 16.4456 22.3912 15.8038 21.6865V21.6865C15.4794 21.3303 15.0132 21.1372 14.532 21.1597V21.1597C13.5799 21.2042 12.7958 20.4201 12.8403 19.468V19.468C12.8628 18.9868 12.6697 18.5206 12.3135 18.1962V18.1962C11.6088 17.5544 11.6088 16.4456 12.3135 15.8038V15.8038C12.6697 15.4794 12.8628 15.0132 12.8403 14.532V14.532C12.7958 13.5799 13.5799 12.7958 14.532 12.8403V12.8403C15.0132 12.8628 15.4794 12.6697 15.8038 12.3135V12.3135Z" stroke="currentColor" stroke-width="1.5"/> <path d="M15.3636 17L16.4546 18.0909L18.6364 15.9091" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> <path d="M9 12C11.2091 12 13 10.2091 13 8C13 5.79086 11.2091 4 9 4C6.79086 4 5 5.79086 5 8C5 10.2091 6.79086 12 9 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg></div><div class="name">user-badge-check</div></div>
<div class="card" data-group="iconoir" data-ref="iconoir:user-crown" data-num="14" data-label="user-crown"><span class="idx">14</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 12C14.2091 12 16 10.2091 16 8C16 5.79086 14.2091 4 12 4C9.79086 4 8 5.79086 8 8C8 10.2091 9.79086 12 12 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> <path d="M5 20V19C5 15.134 8.13401 12 12 12C13.0736 12 14.0907 12.2417 15 12.6736" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> <path d="M21 22L22 16L18.5 17.8L17 16L15.5 17.8L12 16L13 22H21Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/></svg></div><div class="name">user-crown</div></div>
<div class="card" data-group="iconoir" data-ref="iconoir:user-circle" data-num="15" data-label="user-circle"><span class="idx">15</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 18V17C7 14.2386 9.23858 12 12 12V12C14.7614 12 17 14.2386 17 17V18" stroke="currentColor" stroke-linecap="round"/> <path d="M12 12C13.6569 12 15 10.6569 15 9C15 7.34315 13.6569 6 12 6C10.3431 6 9 7.34315 9 9C9 10.6569 10.3431 12 12 12Z" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"/> <circle cx="12" cy="12" r="10" stroke="currentColor" stroke-width="1.5"/></svg></div><div class="name">user-circle</div></div>
</div></section>
<section data-group="phosphor"><h2 class="sec-title">Phosphor<span>1 个</span></h2><div class="grid">
<div class="card" data-group="phosphor" data-ref="phosphor:user" data-num="16" data-label="user"><span class="idx">16</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill="currentColor" d="M21.6488 19.875c-1.4278 -2.4684 -3.6281 -4.2384 -6.1959 -5.0775a6.75 6.75 0 1 0 -6.9056 0c-2.5678 0.8381 -4.7681 2.6081 -6.1959 5.0775a0.75 0.75 0 1 0 1.2984 0.75c1.7663 -3.0525 4.8881 -4.875 8.3503 -4.875s6.5841 1.8225 8.3503 4.875a0.75 0.75 0 1 0 1.2984 -0.75M6.75 9a5.25 5.25 0 1 1 5.25 5.25a5.2556 5.2556 0 0 1 -5.25 -5.25"/></svg></div><div class="name">user</div></div>
</div></section>
<section data-group="carbon"><h2 class="sec-title">IBM Carbon<span>4 个</span></h2><div class="grid">
<div class="card" data-group="carbon" data-ref="carbon:user--admin" data-num="17" data-label="user--admin"><span class="idx">17</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M9 3A3.75 3.75 0 1 1 5.25 6.75a3.75 3.75 0 0 1 3.75 -3.75m0 -1.5a5.25 5.25 0 1 0 5.25 5.25A5.25 5.25 0 0 0 9 1.5Z"/><path d="M16.5 22.5H15V18.75a3.75 3.75 0 0 0 -3.75 -3.75H6.75a3.75 3.75 0 0 0 -3.75 3.75v3.75H1.5V18.75a5.25 5.25 0 0 1 5.25 -5.25h4.5a5.25 5.25 0 0 1 5.25 5.25Z"/><path d="M18.75 12.135 16.8075 10.1925 15.75 11.25 18.75 14.25 24 9 22.9425 7.9425 18.75 12.135z"/></svg></div><div class="name">user--admin</div></div>
<div class="card" data-group="carbon" data-ref="carbon:user--profile" data-num="18" data-label="user--profile"><span class="idx">18</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M9 3A3.75 3.75 0 1 1 5.25 6.75a3.75 3.75 0 0 1 3.75 -3.75m0 -1.5a5.25 5.25 0 1 0 5.25 5.25A5.25 5.25 0 0 0 9 1.5Z"/><path d="M16.5 22.5H15V18.75a3.75 3.75 0 0 0 -3.75 -3.75H6.75a3.75 3.75 0 0 0 -3.75 3.75v3.75H1.5V18.75a5.25 5.25 0 0 1 5.25 -5.25h4.5a5.25 5.25 0 0 1 5.25 5.25Z"/><path d="M16.5 3H24V4.5H16.5z"/><path d="M16.5 6.75H24V8.25H16.5z"/><path d="M16.5 10.5H21.75V12H16.5z"/></svg></div><div class="name">user--profile</div></div>
<div class="card" data-group="carbon" data-ref="carbon:user--avatar" data-num="19" data-label="user--avatar"><span class="idx">19</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M12 6a3.75 3.75 0 1 0 3.75 3.75A3.75 3.75 0 0 0 12 6Zm0 6a2.25 2.25 0 1 1 2.25 -2.25A2.2526 2.2526 0 0 1 12 12Z"/><path d="M12 1.5A10.5 10.5 0 1 0 22.5 12 10.5119 10.5119 0 0 0 12 1.5ZM7.5 19.7824V18.75a2.2525 2.2525 0 0 1 2.25 -2.25h4.5a2.2525 2.2525 0 0 1 2.25 2.25v1.0324a8.9242 8.9242 0 0 1 -9 0Zm10.4944 -1.088A3.7512 3.7512 0 0 0 14.25 15H9.75a3.7512 3.7512 0 0 0 -3.7444 3.6944 9 9 0 1 1 11.9888 0Z"/></svg></div><div class="name">user--avatar</div></div>
<div class="card" data-group="carbon" data-ref="carbon:user" data-num="20" data-label="user"><span class="idx">20</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M12 3a3.75 3.75 0 1 1 -3.75 3.75 3.75 3.75 0 0 1 3.75 -3.75m0 -1.5a5.25 5.25 0 1 0 5.25 5.25A5.25 5.25 0 0 0 12 1.5Z"/><path d="M19.5 22.5H18V18.75a3.75 3.75 0 0 0 -3.75 -3.75H9.75a3.75 3.75 0 0 0 -3.75 3.75v3.75H4.5V18.75a5.25 5.25 0 0 1 5.25 -5.25h4.5a5.25 5.25 0 0 1 5.25 5.25Z"/></svg></div><div class="name">user</div></div>
</div></section>
<section data-group="hugeicons"><h2 class="sec-title">Hugeicons<span>5 个</span></h2><div class="grid">
<div class="card" data-group="hugeicons" data-ref="hugeicons:user-square" data-num="21" data-label="user-square"><span class="idx">21</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M4.691 20.707c.821-2.605 3.414-4.527 6.313-4.67q.467-.021.999-.037l.995.066c2.926.195 5.496 2.05 6.313 4.64"/><path d="M2.5 12c0-4.478 0-6.718 1.391-8.109S7.521 2.5 12 2.5c4.478 0 6.718 0 8.109 1.391S21.5 7.521 21.5 12c0 4.478 0 6.718-1.391 8.109S16.479 21.5 12 21.5c-4.478 0-6.718 0-8.109-1.391S2.5 16.479 2.5 12"/><path d="M14.996 10a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/></g></svg></div><div class="name">user-square</div></div>
<div class="card" data-group="hugeicons" data-ref="hugeicons:user-circle" data-num="22" data-label="user-circle"><span class="idx">22</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M18.498 19.151c-1.16-1.75-3.203-2.95-5.567-3.094L11.998 16q-.498.013-.936.032c-2.345.106-4.396 1.348-5.562 3.12M14.996 10a3 3 0 1 1-6 0a3 3 0 0 1 6 0"/><path d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10"/></g></svg></div><div class="name">user-circle</div></div>
<div class="card" data-group="hugeicons" data-ref="hugeicons:user-03" data-num="23" data-label="user-03"><span class="idx">23</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M20 21c0-2.267 0-3.4-.407-4.29a4.5 4.5 0 0 0-2.086-2.154c-.876-.436-2.007-.556-4.28-.55L10.772 14c-2.273 0-3.378.107-4.244.528a4.48 4.48 0 0 0-2.135 2.2C4 17.606 4 18.738 4 21M16 7a4 4 0 1 1-8 0a4 4 0 0 1 8 0"/></svg></div><div class="name">user-03</div></div>
<div class="card" data-group="hugeicons" data-ref="hugeicons:user-02" data-num="24" data-label="user-02"><span class="idx">24</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><circle cx="12" cy="7" r="4"/><path d="M12 14c-5 0-8 2.5-8 5a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2c0-2.5-3-5-8-5"/></g></svg></div><div class="name">user-02</div></div>
<div class="card" data-group="hugeicons" data-ref="hugeicons:user" data-num="25" data-label="user"><span class="idx">25</span><span class="check">✓</span><div class="thumb"><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5"><path d="M20 21a7.53 7.53 0 0 0-7.005-6.934L12 14q-.531.015-1 .038c-3.7.181-6.716 3.268-7 6.962"/><circle cx="12" cy="7" r="4"/></g></svg></div><div class="name">user</div></div>
</div></section>
</main>
<footer>
<div id="picked"></div>
<button class="btn ghost" id="clear">清空</button>
<button class="btn primary" id="copy">复制清单</button>
</footer>
<script>
const KEY = 'dm_avatar_pick_line_v1';
const cards = Array.from(document.querySelectorAll('.card'));
const validRefs = new Set(cards.map(c => c.dataset.ref));
// 只保留仍存在的选项(清单精简后,历史选择里可能有已删除的 ref)
let picked = JSON.parse(localStorage.getItem(KEY) || '[]').filter(r => validRefs.has(r));
function render() {
cards.forEach(c => c.classList.toggle('sel', picked.includes(c.dataset.ref)));
const el = document.getElementById('picked');
if (!picked.length) { el.innerHTML = '尚未选择 · 已选 <b>0</b> 张'; return; }
el.innerHTML = '已选 <b>' + picked.length + '</b> 张:' + picked.join('、');
}
function toggle(ref) {
const i = picked.indexOf(ref);
if (i >= 0) picked.splice(i, 1);
else picked.push(ref);
localStorage.setItem(KEY, JSON.stringify(picked));
render();
}
cards.forEach(c => c.addEventListener('click', () => toggle(c.dataset.ref)));
document.getElementById('clear').addEventListener('click', () => { picked = []; localStorage.setItem(KEY, '[]'); render(); });
document.getElementById('copy').addEventListener('click', async () => {
const text = picked.map((r, i) => String(i + 1).padStart(2, '0') + '. ' + r).join('\n') || '(未选择)';
try { await navigator.clipboard.writeText(text); alert('已复制:\n' + text); }
catch (e) { prompt('复制下面内容发我:', text); }
});
document.querySelectorAll('.tab').forEach(t => t.addEventListener('click', () => {
document.querySelectorAll('.tab').forEach(x => x.classList.remove('active'));
t.classList.add('active');
const f = t.dataset.filter;
document.querySelectorAll('section').forEach(s => s.style.display = (f === 'all' || s.dataset.group === f) ? '' : 'none');
}));
render();
</script>
</body></html>