js实现类似dooo0t图片拼贴打孔工具代码
代码语言:html
所属分类:其他
代码由minimax-v3 ai生成,可能有错误,仅供参考:点击查看提示词
代码描述:类似「dooo0t」的图片拼贴打孔工具
代码标签: js 类似 dooo0t 图片 拼贴 打孔 工具 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>◼ DotPunch — 图片打孔拼贴工具</title>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--bg: #0b0b0e;
--panel: #16161b;
--panel-2: #1f1f26;
--line: #2a2a32;
--text: #e8e8ee;
--text-2: #8a8a96;
--accent: #ff3d68;
--accent-2: #ff7090;
--ok: #4ad17b;
--warn: #ffb84d;
}
html, body { height: 100%; }
body {
font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
background: var(--bg);
color: var(--text);
overflow: hidden;
display: flex;
flex-direction: column;
}
header {
height: 56px;
background: var(--panel);
border-bottom: 1px solid var(--line);
display: flex;
align-items: center;
padding: 0 16px;
gap: 12px;
}
.logo {
font-weight: 800;
font-size: 18px;
letter-spacing: 1px;
background: linear-gradient(90deg, #ff3d68, #ffb84d);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.logo::after {
content: '◼';
margin-left: 6px;
color: var(--accent);
-webkit-text-fill-color: var(--accent);
}
.btn {
background: var(--panel-2);
border: 1px solid var(--line);
color: var(--text);
padding: 8px 14px;
border-radius: 6px;
cursor: pointer;
font-size: 13px;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.15s;
font-family: inherit;
}
.btn:hover { background: #2a2a35; border-color: #3a3a45; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.active { background: var(--accent); border-color: var(--accent); color: white; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn svg { width: 14px; height: 14px; }
.spacer { flex: 1; }
main {
flex: 1;
display: grid;
grid-template-columns: 260px 1fr 260px;
overflow: hidden;
}
aside {
background: var(--panel);
overflow-y: auto;
padding: 16px;
}
aside.left { border-right: 1px solid var(--line); }
aside.right { border-left: 1px solid var(--line); }
.section {
margin-bottom: 20px;
}
.section h3 {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text-2);
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 6px;
}
.section h3::after {
content: '';
flex: 1;
height: 1px;
background: var(--line);
}
/* 工具按钮组 */
.tool-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
}
.tool-btn {
background: var(--panel-2);
border: 1px solid var(--line);
color: var(--text);
padding: 10px 6px;
border-radius: 6px;
cursor: pointer;
font-size: 12px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
transition: all 0.15s;
font-family: inherit;
}
.tool-btn:hover { background: #2a2a35; }
.tool-btn.active {
background: var(--accent);
border-color: var(--accent);
color: white;
}
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn span { font-size: 11px; }
/* 滑块 */
.slider-row {
display: flex;
align-items: center;
gap: 8px;
margi.........完整代码请登录后点击上方下载按钮下载查看















网友评论0