69 lines
3.5 KiB
HTML
69 lines
3.5 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh-CN">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
<meta name="robots" content="noindex,nofollow">
|
||
<title>style-lab 自查截图(六方向 × 亮/暗)</title>
|
||
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%230b0d0e'/%3E%3Cpath d='M9 22.5L16 9.5l7 13' fill='none' stroke='%233ecf8e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
|
||
<style>
|
||
:root{--bg:#f1f2f3;--txt:#15181b;--t2:#4a5056;--dim:#8b9199;--line:rgba(0,0,0,.10);--acc:#1f9d63}
|
||
@media (prefers-color-scheme:dark){:root{--bg:#0b0d0e;--txt:#e8eaec;--t2:#c9cdd2;--dim:#767b81;--line:rgba(255,255,255,.10);--acc:#3ecf8e}}
|
||
*{box-sizing:border-box}
|
||
body{margin:0;background:var(--bg);color:var(--txt);font:400 15px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;padding:26px 18px 50px}
|
||
.wrap{width:min(1100px,94vw);margin:0 auto}
|
||
h1{font-size:20px;margin:0 0 6px}
|
||
p{color:var(--t2);font-size:13.5px;margin:0 0 20px}
|
||
h2{font-size:14px;margin:30px 0 10px;color:var(--dim);letter-spacing:.1em;text-transform:uppercase}
|
||
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
|
||
figure{margin:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--bg)}
|
||
figure img{display:block;width:100%;height:auto}
|
||
figcaption{padding:7px 9px;font-size:11.5px;color:var(--t2);border-top:1px solid var(--line)}
|
||
a{color:var(--acc);text-decoration:none}
|
||
a:hover{text-decoration:underline}
|
||
.full{max-width:420px}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div class="wrap">
|
||
<h1>style-lab 自查截图</h1>
|
||
<p>自动生成,用于自证"六个方向 × 亮/暗两套"都真的渲染出来了。原始页面:<a href="/dev/style-lab.html">/dev/style-lab.html</a></p>
|
||
|
||
<h2>联系表 · 上排亮色 / 下排暗色 · 1–6 号方向</h2>
|
||
<div class="full"><figure><img src="contact-sheet.png" alt="contact sheet"><figcaption>contact-sheet.png(2410×1464)</figcaption></figure></div>
|
||
|
||
<h2>逐方向 · 亮色</h2>
|
||
<div class="grid" id="lightGrid"></div>
|
||
<h2>逐方向 · 暗色</h2>
|
||
<div class="grid" id="darkGrid"></div>
|
||
<h2>交互与整页</h2>
|
||
<div class="grid">
|
||
<figure><img src="modal_dark.png" alt="modal"><figcaption>modal_dark.png(弹窗入场后)</figcaption></figure>
|
||
<figure><img src="toast_dark.png" alt="toast"><figcaption>toast_dark.png(点确认后的 toast)</figcaption></figure>
|
||
<figure><img src="full_light.png" alt="full light"><figcaption>full_light.png(整页走查)</figcaption></figure>
|
||
<figure><img src="full_dark.png" alt="full dark"><figcaption>full_dark.png(整页走查)</figcaption></figure>
|
||
</div>
|
||
</div>
|
||
<script>
|
||
(function(){
|
||
var names = {1:'素白极简',2:'精密仪表',3:'玻璃柔光',4:'杂志排版',5:'终端极客',6:'侘寂自然'};
|
||
function fill(id, mode){
|
||
var host = document.getElementById(id);
|
||
for(var n=1;n<=6;n++){
|
||
var f = document.createElement('figure');
|
||
var im = document.createElement('img');
|
||
im.src = 'skin'+n+'_'+mode+'.png';
|
||
im.alt = n+' '+names[n]+' '+mode;
|
||
im.loading = 'lazy';
|
||
var cap = document.createElement('figcaption');
|
||
cap.textContent = n + ' · ' + names[n] + ' · ' + (mode==='light'?'亮色':'暗色');
|
||
f.appendChild(im); f.appendChild(cap); host.appendChild(f);
|
||
}
|
||
}
|
||
fill('lightGrid','light');
|
||
fill('darkGrid','dark');
|
||
})();
|
||
</script>
|
||
</body>
|
||
</html>
|