Music Creation Page: - Vinyl 3D flip to view lyrics, tonearm animation, glow rotation effect - Circular SVG progress ring, speech bubble feedback, confirm dialog - Playlist modal, free creation input, lyrics formatting optimization - MiniMax API real music generation with SSE streaming progress Backend: - FastAPI proxy server.py for MiniMax API calls - Music + lyrics file persistence to Capybara music/ directory - GET /api/playlist endpoint for auto-building playlist from files UI/UX Refinements: - frontend-design skill compliance across all pages - Glassmorphism effects, modal interactions, scroll tap prevention - iPhone 12 Pro responsive layout (390x844) Flutter Development Preparation: - Installed flutter-expert skill with 6 reference docs - Added 5 Cursor Rules: official Flutter, clean architecture, UI performance, testing, Dart standards Assets: - 9 Capybara music MP3 files + lyrics TXT files - MiniMax API documentation Co-authored-by: Cursor <cursoragent@cursor.com>
188 lines
6.3 KiB
HTML
188 lines
6.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-CN">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
|
|
<title>Airhub - 喂养指南</title>
|
|
<link rel="stylesheet" href="styles.css">
|
|
<link href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
|
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">
|
|
<style>
|
|
.page-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
padding-top: calc(env(safe-area-inset-top, 20px) + 48px);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
top: 0;
|
|
z-index: 10;
|
|
}
|
|
|
|
.back-btn {
|
|
background: rgba(255, 255, 255, 0.25);
|
|
backdrop-filter: blur(8px);
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
width: 44px;
|
|
height: 44px;
|
|
border-radius: 22px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #1F2937;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.page-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: #1F2937;
|
|
}
|
|
|
|
.content-scroll {
|
|
padding: calc(env(safe-area-inset-top, 20px) + 120px) 20px 40px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
width: 100%;
|
|
height: 100%;
|
|
box-sizing: border-box;
|
|
position: relative;
|
|
z-index: 2;
|
|
scrollbar-width: none;
|
|
-webkit-mask-image: linear-gradient(to bottom, transparent 0px, transparent 100px, black 130px, black 100%);
|
|
mask-image: linear-gradient(to bottom, transparent 0px, transparent 100px, black 130px, black 100%);
|
|
}
|
|
|
|
.content-scroll::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* 像素风说明书卡片 */
|
|
.manual-card {
|
|
background: #FFF;
|
|
border-radius: 24px;
|
|
padding: 24px;
|
|
margin-bottom: 24px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
|
|
border: 2px solid #F3F4F6;
|
|
}
|
|
|
|
.manual-hero {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.pixel-art-img {
|
|
width: 128px;
|
|
height: 128px;
|
|
image-rendering: pixelated;
|
|
filter: drop-shadow(0 8px 16px rgba(139, 94, 60, 0.15));
|
|
}
|
|
|
|
.manual-section {
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.manual-h2 {
|
|
font-family: 'Press Start 2P', monospace;
|
|
font-size: 14px;
|
|
color: #8B5E3C;
|
|
margin-bottom: 16px;
|
|
line-height: 1.6;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.manual-h2::before {
|
|
content: '';
|
|
display: block;
|
|
width: 8px;
|
|
height: 8px;
|
|
background: #8B5E3C;
|
|
box-shadow: -2px 2px 0 #E6B98D;
|
|
}
|
|
|
|
.manual-p {
|
|
font-size: 15px;
|
|
color: #4B5563;
|
|
line-height: 1.7;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.highlight-box {
|
|
background: #FFF7ED;
|
|
border-left: 4px solid #F97316;
|
|
padding: 12px 16px;
|
|
border-radius: 0 8px 8px 0;
|
|
margin: 16px 0;
|
|
font-size: 14px;
|
|
color: #9A3412;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="app-container">
|
|
<!-- 动态渐变背景 -->
|
|
<div class="gradient-bg">
|
|
<div class="gradient-layer layer-1"></div>
|
|
<div class="gradient-layer layer-2"></div>
|
|
</div>
|
|
|
|
<!-- Header -->
|
|
<header class="page-header">
|
|
<button class="back-btn" onclick="history.back()">
|
|
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
<path d="M15 18l-6-6 6-6" />
|
|
</svg>
|
|
</button>
|
|
<span class="page-title">喂养指南</span>
|
|
<div style="width: 44px;"></div>
|
|
</header>
|
|
|
|
<!-- Main Content -->
|
|
<main class="content-scroll">
|
|
|
|
<div class="manual-card">
|
|
<div class="manual-hero">
|
|
<!-- 使用之前生成的像素画 -->
|
|
<img src="pixel_capybara_eating_guide_1770187625762.png" class="pixel-art-img"
|
|
alt="Eating Capybara">
|
|
</div>
|
|
|
|
<div class="manual-section">
|
|
<div class="manual-h2">如何喂食你的电子宠物?</div>
|
|
<div class="manual-p">当你的毛绒机芯显示“饿了”的图标时,它需要补充能量!</div>
|
|
<div class="manual-p">1. 打开 APP 首页,点击右下角的 <strong>[能量]</strong> 按钮。</div>
|
|
<div class="manual-p">2. 从列表中选择它喜欢的食物(胡萝卜、西瓜或干草饼干)。</div>
|
|
<div class="manual-p">3. 点击“投喂”,观察它的反应!</div>
|
|
|
|
<div class="highlight-box">
|
|
💡 <strong>小贴士:</strong> 不同的食物会增加不同的心情值哦!西瓜会让它超级开心。
|
|
</div>
|
|
</div>
|
|
|
|
<div class="manual-section">
|
|
<div class="manual-h2">心情与成长</div>
|
|
<div class="manual-p">保持饱腹感可以提升心情值。心情值越高,它的互动反应就越丰富。</div>
|
|
<div class="manual-p">如果你连续 3 天忘记喂食,它可能会变得懒洋洋的,不愿理人哦... 💤</div>
|
|
</div>
|
|
|
|
<div class="manual-section">
|
|
<div class="manual-h2">特殊互动</div>
|
|
<div class="manual-p">在喂食的时候,试着抚摸它的头(在屏幕上滑动),它会发出满意的咕噜声!</div>
|
|
</div>
|
|
</div>
|
|
|
|
</main>
|
|
</div>
|
|
</body>
|
|
|
|
</html> |