js+css实现图片色盘故事卡片生成器代码
代码语言:html
所属分类:其他
代码由kimi-2.6 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=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2canvas/1.4.1/html2canvas.min.js"></script>
<style>
:root {
--bg-primary: #0f0f12;
--bg-secondary: #1a1a20;
--bg-card: #23232a;
--text-primary: #f0f0f5;
--text-secondary: #a0a0b0;
--text-muted: #6a6a7a;
--accent: #e8c547;
--accent-hover: #f0d060;
--border: #2a2a35;
--shadow: rgba(0,0,0,0.4);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans SC', sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
overflow-x: hidden;
}
/* 顶部导航 */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
background: rgba(15,15,18,0.85);
backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border);
padding: 16px 32px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
display: flex;
align-items: center;
gap: 10px;
}
.logo-icon {
width: 36px;
height: 36px;
background: linear-gradient(135deg, #e8c547, #c75b39);
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
}
.logo-text {
font-family: 'Noto Serif SC', serif;
font-size: 20px;
font-weight: 700;
letter-spacing: 1px;
}
.nav-actions {
display: flex;
gap: 12px;
}
.btn {
padding: 10px 22px;
border-radius: 10px;
border: none;
cursor: pointer;
font-family: 'Noto Sans SC', sans-serif;
font-size: 14px;
font-weight: 500;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 6px;
}
.btn-primary {
background: linear-gradient(135deg, #e8c547, #c75b39);
color: #1a1a1a;
font-weight: 600;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 8px 24px rgba(232,197,71,0.3);
}
.btn-secondary {
background: var(--bg-card);
color: var(--text-primary);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--border);
border-color: var(--text-muted);
}
/* 主区域 */
.main-container {
padding-top: 80px;
min-height: 100vh;
}
/* 上传区域 */
.upload-section {
padding: 60px 32px;
text-align: center;
background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
border-bottom: 1px solid var(--border);
}
.upload-title {
font-family: 'Noto Serif SC', serif;
font-size: 42px;
font-weight: 700;
margin-bottom: 12px;
background: linear-gradient(135deg, #f0f0f5, #e8c547);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.upload-subtitle {
color: var(--text-secondary);
font-size: 16px;
margin-bottom: .........完整代码请登录后点击上方下载按钮下载查看















网友评论0