js+css实现图片色盘故事卡片生成器代码
代码语言:html
所属分类:其他
代码由gemimi-3.5-flash ai生成,可能有错误,仅供参考:点击查看提示词
代码描述:图片色盘故事卡片生成器
代码标签: js css 图片 色盘 故事 卡片 生成器 代码
下面为部分代码预览,完整代码请点击下载或在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>留影色盘 - 故事卡片生成器</title>
<!-- 引入谷歌字体提升排版高级感 -->
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Noto+Serif+SC:wght@300;500;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
<!-- 引入html2canvas用于导出图片 -->
<script src="https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js"></script>
<style>
:root {
--bg-workspace: #121316;
--bg-sidebar: #1c1d22;
--border-color: #2e3038;
--text-main: #f3f4f6;
--text-muted: #9ca3af;
--accent: #8b5cf6;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background-color: var(--bg-workspace);
color: var(--text-main);
font-family: 'Inter', 'Noto Serif SC', -apple-system, sans-serif;
display: flex;
height: 100vh;
overflow: hidden;
}
/* 侧边栏 */
.sidebar {
width: 380px;
background-color: var(--bg-sidebar);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
height: 100%;
z-index: 10;
}
.sidebar-header {
padding: 30px 24px 20px 24px;
border-bottom: 1px solid var(--border-color);
}
.sidebar-header h1 {
font-family: 'Cinzel', serif;
font-size: 22px;
letter-spacing: 2px;
background: linear-gradient(to right, #a78bfa, #f43f5e);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.sidebar-header p {
font-size: 12px;
color: var(--text-muted);
margin-top: 6px;
}
.controls {
padding: 24px;
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 24px;
}
.control-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.control-group label {
font-size: 13px;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 1px;
}
/* 按钮与输入框 */
.btn-upload {
background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
color: white;
border: none;
padding: 14px;
border-radius: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.........完整代码请登录后点击上方下载按钮下载查看















网友评论0