Skip to content

Commit 46e134d

Browse files
committed
Merge remote-tracking branch 'origin/master' into codex/user-message-line-breaks
2 parents e698cf8 + 7304642 commit 46e134d

17 files changed

Lines changed: 466 additions & 50 deletions

File tree

‎apps/bibo-camera-site/README.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Bibo 官网
22

3+
## 2026-09-30 趣味互动版本
4+
5+
已发布到 [bibo.bot](https://bibo.bot/)。冻结远程主干源码 `ab08164884438733c6516a061da5e00e6589f8ba`(功能提交 `f3577e40e`),Cloudflare version `25bbc7db-367b-4002-b928-6706789a768f`。线上五个 HTML/JS/CSS 资源与冻结构建逐字节一致;桌面、390/360 手机、角色状态/彩蛋/喷花、键盘、介绍、相机四幕、减少动态效果、六个候选路径与未知路径 404 已核验。用户美术验收待反馈。
6+
7+
首屏明确展示个人 AI 搭档的理念:懂你的全局、主动接着做、从经验里改进。紫色角色看向鼠标、回应点击,散落的星星、月亮和小花可以改变心情与手持道具;点喷花筒可以喷出彩色星星,三种心情都探索后有隐藏彩蛋。互动没有开始游戏、积分或任务面板,服务于“有趣、有性格的搭档”形象。
8+
9+
四幕搭档相机在下方展开产品理念,介绍与真实应用入口保留。角色互动是预设品牌体验,不执行真实 AI 工作;减少动态效果时保留文案和状态,关闭喷花与呼吸。页面源码仍是本目录 `dist` 中的手工静态文件,构建时复制到 `.publish`。
10+
11+
产品方向见[可玩官网理念](../../docs/thoughts/2026-09-30-bibo-playable-homepage.thought.md),交互及验收见[本轮设计](../../docs/designs/2026-09-30-bibo-playful-site.design.md)。以下日期条目是历史发布和实验记录,不覆盖本节的当前产品结构。
12+
313
## 2026-09-19 已上线
414

515
正式站 https://bibo.bot/ 已部署4201视觉优化版及介绍抽屉修复。源码 `490a9824b`;Cloudflare version `b3315566-aba6-41a7-9dc1-9b31be4604eb`。线上资源hash、四幕循环、介绍抽屉与六个旧候选路径已核验。下方候选/暂停描述为历史。

‎apps/bibo-camera-site/dist/index.html‎

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
<meta name="theme-color" content="#f5f1df" />
77
<meta
88
name="description"
9-
content="Bibo,你的云端个人 AI 搭档。按一下快门,看见有它参与的日常。"
9+
content="Bibo,你的个人 AI 搭档。懂你的全局,主动接着做,从经验里改进。来认识一个认真、也有点好玩的新搭档。"
1010
/>
1111
<title>Bibo · 日常,多一个我。</title>
1212
<link rel="icon" type="image/svg+xml" sizes="any" href="favicon.svg" />
1313
<link rel="stylesheet" href="styles.css" />
14+
<link rel="stylesheet" href="playground.css" />
1415
<script defer src="bibo-site.controller.js"></script>
16+
<script defer src="playground.controller.js"></script>
1517
</head>
1618
<body>
1719
<header>
@@ -26,12 +28,42 @@
2628
</nav>
2729
</header>
2830
<main>
31+
<section class="playground" id="playground" data-mood="hello" aria-label="和 Bibo 相遇">
32+
<div class="hello-copy">
33+
<p class="hello-kicker"><span></span> A LITTLE FRIEND. A LITTLE MAGIC.</p>
34+
<h1>日常,<br>多一个<span class="hello-me">我<svg viewBox="0 0 180 16" aria-hidden="true"><path d="M3 11Q80 -2 176 8M18 14Q102 4 162 12"/></svg></span>。</h1>
35+
<p class="hello-description">你的个人 AI 搭档。<br>懂你的全局,主动接着做,越做越懂你。</p>
36+
<a class="hello-entry" href="https://app.bibo.bot/">认识你的新搭档 <span aria-hidden="true">↗</span></a>
37+
<p class="hello-footnote">一起想 · 持续跟进 · 从经验里改进</p>
38+
</div>
39+
<div class="little-world" id="little-world">
40+
<div class="world-orbit orbit-one" aria-hidden="true"></div><div class="world-orbit orbit-two" aria-hidden="true"></div>
41+
<span class="world-doodle doodle-plus" aria-hidden="true">✳</span><span class="world-doodle doodle-spark" aria-hidden="true">✧</span>
42+
<span class="world-note">a friend, with a little spark.</span>
43+
<div class="hello-bubble" id="hello-bubble" role="status">嗨,你来啦。<span>我已经开始好奇你了。</span></div>
44+
<div class="friend-shadow" aria-hidden="true"></div>
45+
<div class="friend-wrap" id="friend-wrap">
46+
<button class="little-friend" id="little-friend" aria-label="和 Bibo 打个招呼">
47+
<span class="friend-ear ear-left"></span><span class="friend-ear ear-right"></span>
48+
<span class="friend-body"><span class="friend-highlight"></span><span class="friend-eyes"><i><b></b></i><i><b></b></i></span><span class="friend-cheek cheek-left"></span><span class="friend-cheek cheek-right"></span><span class="friend-mouth"></span></span>
49+
<span class="friend-arm arm-left"></span><span class="friend-arm arm-right"></span><span class="friend-foot foot-left"></span><span class="friend-foot foot-right"></span>
50+
</button>
51+
<span class="held-prop" id="held-prop" aria-hidden="true"></span>
52+
</div>
53+
<button class="world-toy toy-star" data-mood="party" aria-label="送 Bibo 一颗星星" title="送你一颗星星"><svg viewBox="0 0 90 90" aria-hidden="true"><path d="m45 5 11 25 28 3-21 19 6 29-24-15-24 15 6-29L6 33l28-3Z"/><path class="toy-detail" d="m33 43 1 5m22-5-1 5m-17 6q7 7 14 0"/></svg><span>for you!</span></button>
54+
<button class="world-toy toy-moon" data-mood="dream" aria-label="让 Bibo 放松一下" title="也要好好休息"><svg viewBox="0 0 90 90" aria-hidden="true"><path d="M64 10C19 3 3 56 37 76c17 10 38 5 46-13C51 72 33 42 64 10Z"/><path class="toy-detail" d="m37 46 1 4m14 4 1 4m-18 2q5 6 10 2"/></svg><span>慢一点也好</span></button>
55+
<button class="world-toy toy-flower" data-mood="bloom" aria-label="给 Bibo 一朵灵感小花" title="给想法浇点水"><svg viewBox="0 0 90 90" aria-hidden="true"><path d="M45 25C27-5 5 19 25 38-8 38-4 69 27 62c-3 31 28 34 33 4 26 16 43-12 17-28 21-23-6-43-22-17Z"/><circle cx="46" cy="45" r="14"/><path class="toy-detail" d="m41 43 0 3m10-3 0 3m-9 5q5 4 8 0"/></svg><span>一点小灵感</span></button>
56+
<button class="world-toy toy-fountain" id="fountain" aria-label="让 Bibo 拿起喷花筒" title="这是什么?"><svg viewBox="0 0 90 110" aria-hidden="true"><path d="m20 96 26-72 29 69Z"/><path class="cone-stripe" d="m29 73 38 12m-31-32 22 8m-14-43-3-9m17 9 6-7m-29 7-8-3"/><path class="cone-star" d="m48 67 3 6 7 1-5 4 1 7-6-4-5 3 1-6-5-5 7-1Z"/></svg><span>别碰?</span></button>
57+
<span class="world-ground" aria-hidden="true">✦ SMALL THINGS, HAPPY DAYS ✦</span>
58+
</div>
59+
<div class="discovery-note"><span aria-hidden="true">↖</span> 好像,有些小东西藏着惊喜。</div>
60+
</section>
61+
<div class="story-divider"><span>有点好玩,也很靠谱。</span><a href="#camera">看看我怎样陪你过一天 <span aria-hidden="true">↓</span></a></div>
2962
<div class="intro">
3063
<div>
3164
<p class="eyebrow">SOMEONE IN YOUR CORNER.</p>
32-
<h1><span id="headline-start">想到一起。</span><span id="headline-end">安排妥当。</span></h1>
65+
<h2 class="story-headline"><span id="headline-start">想到一起。</span><span id="headline-end">安排妥当。</span></h2>
3366
</div>
34-
<p class="intro-note">懂你的全局,自己接着做。<br />也会回头想,怎样做得更好。</p>
3567
</div>
3668
<section
3769
class="camera"
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
/* Brand playground: one owner for mood, discoveries and transient particles. */
2+
/* global document, window, matchMedia, devicePixelRatio, innerWidth, innerHeight, requestAnimationFrame, cancelAnimationFrame, performance */
3+
{
4+
const world = document.querySelector('#playground');
5+
const friend = document.querySelector('#little-friend');
6+
const wrap = document.querySelector('#friend-wrap');
7+
const bubble = document.querySelector('#hello-bubble');
8+
const prop = document.querySelector('#held-prop');
9+
const fountain = document.querySelector('#fountain');
10+
const reduced = matchMedia('(prefers-reduced-motion: reduce)');
11+
const moods = {
12+
hello: ['嗨,你来啦。', '不只眼前这件事,你在意的事我也想懂。'],
13+
party: ['这一步,值得庆祝!', '大事小事,都陪你认真完成。'],
14+
dream: ['你休息,我轻一点。', '好的搭档,也知道什么时候不打扰。'],
15+
bloom: ['这个想法,一起养大吧。', '先聊聊,再把它接上你的计划。'],
16+
};
17+
const greetings = [
18+
['在呢。', '你的计划、烦恼、小灵感,都可以和我聊。'],
19+
['戳到一个认真听你的我。', '一起想,也一起把事情做完。'],
20+
['被你发现了,我有点好玩。', '做事也认真,会从经验里改进。'],
21+
];
22+
const discovered = new Set();
23+
let greeting = 0;
24+
let surpriseFound = false;
25+
let bounce;
26+
let drawId = 0;
27+
let particles = [];
28+
let emissionUntil = 0;
29+
let lastTime = 0;
30+
const canvas = document.createElement('canvas');
31+
canvas.className = 'spark-canvas';
32+
canvas.setAttribute('aria-hidden', 'true');
33+
document.body.append(canvas);
34+
const ctx = canvas.getContext('2d');
35+
const colors = ['#c7a0e8', '#edb559', '#f29389', '#91bca3', '#e0c1ea'];
36+
37+
function speak(lines) {
38+
const detail = document.createElement('span');
39+
detail.textContent = lines[1];
40+
bubble.replaceChildren(document.createTextNode(lines[0]), detail);
41+
}
42+
43+
function hop() {
44+
bounce?.cancel();
45+
if (reduced.matches) return;
46+
bounce = wrap.animate([
47+
{ translate: '0 0', rotate: '0deg' },
48+
{ translate: '0 -18px', rotate: '-5deg', offset: .42 },
49+
{ translate: '0 2px', rotate: '3deg', offset: .78 },
50+
{ translate: '0 0', rotate: '0deg' },
51+
], { duration: 620, easing: 'ease-out' });
52+
}
53+
54+
function resize() {
55+
const ratio = Math.min(devicePixelRatio || 1, 2);
56+
canvas.width = innerWidth * ratio;
57+
canvas.height = innerHeight * ratio;
58+
ctx?.setTransform(ratio, 0, 0, ratio, 0, 0);
59+
}
60+
61+
function addSpark(x, y, burst = false) {
62+
if (particles.length >= 180) return;
63+
const angle = burst ? Math.random() * Math.PI * 2 : -Math.PI / 2 + .3 + (Math.random() - .5) * 1.05;
64+
const speed = burst ? 80 + Math.random() * 180 : 180 + Math.random() * 220;
65+
particles.push({ x, y, vx: Math.cos(angle) * speed, vy: Math.sin(angle) * speed,
66+
age: 0, life: .8 + Math.random() * .85, size: 2 + Math.random() * 4,
67+
angle: Math.random() * Math.PI, color: colors[Math.floor(Math.random() * colors.length)], star: Math.random() > .55 });
68+
}
69+
70+
function draw(time) {
71+
drawId = 0;
72+
if (!ctx || reduced.matches || document.hidden) { stopSparks(); return; }
73+
const delta = Math.min((time - (lastTime || time)) / 1000, .04);
74+
lastTime = time;
75+
ctx.clearRect(0, 0, innerWidth, innerHeight);
76+
if (time < emissionUntil) {
77+
const rect = prop.getBoundingClientRect();
78+
for (let i = 0; i < 5; i++) addSpark(rect.left + rect.width * .63, rect.top + rect.height * .23);
79+
}
80+
particles = particles.filter(p => p.age < p.life);
81+
for (const p of particles) {
82+
p.age += delta;
83+
p.x += p.vx * delta;
84+
p.y += p.vy * delta;
85+
p.vy += 210 * delta;
86+
p.angle += delta * 2;
87+
paintSpark(p);
88+
}
89+
if (particles.length || time < emissionUntil) drawId = requestAnimationFrame(draw);
90+
else { ctx.clearRect(0, 0, innerWidth, innerHeight); lastTime = 0; }
91+
}
92+
93+
function paintSpark(p) {
94+
ctx.save();
95+
ctx.translate(p.x, p.y);
96+
ctx.rotate(p.angle);
97+
ctx.globalAlpha = Math.max(0, 1 - p.age / p.life);
98+
ctx.fillStyle = p.color;
99+
if (p.star) {
100+
ctx.beginPath();
101+
for (let i = 0; i < 8; i++) {
102+
const radius = i % 2 ? p.size * .32 : p.size;
103+
const angle = i * Math.PI / 4;
104+
const x = Math.cos(angle) * radius, y = Math.sin(angle) * radius;
105+
if (i === 0) ctx.moveTo(x, y); else ctx.lineTo(x, y);
106+
}
107+
ctx.closePath();
108+
ctx.fill();
109+
} else ctx.fillRect(-p.size / 2, -p.size / 2, p.size, p.size * .65);
110+
ctx.restore();
111+
}
112+
113+
function stopSparks() {
114+
cancelAnimationFrame(drawId);
115+
drawId = 0;
116+
particles = [];
117+
emissionUntil = 0;
118+
lastTime = 0;
119+
ctx?.clearRect(0, 0, innerWidth, innerHeight);
120+
}
121+
122+
function spark(burst = false) {
123+
if (!ctx || reduced.matches || document.hidden) return;
124+
if (burst) {
125+
const rect = friend.getBoundingClientRect();
126+
for (let i = 0; i < 70; i++) addSpark(rect.left + rect.width / 2, rect.top + rect.height / 3, true);
127+
} else emissionUntil = performance.now() + 1200;
128+
if (!drawId) drawId = requestAnimationFrame(draw);
129+
}
130+
131+
function hold(button) {
132+
prop.replaceChildren(button.querySelector('svg').cloneNode(true));
133+
world.dataset.holding = 'true';
134+
world.dataset.prop = button.dataset.mood || 'fountain';
135+
}
136+
137+
for (const toy of document.querySelectorAll('.world-toy[data-mood]')) {
138+
toy.addEventListener('click', () => {
139+
stopSparks();
140+
const mood = toy.dataset.mood;
141+
world.dataset.mood = mood;
142+
hold(toy);
143+
speak(moods[mood]);
144+
hop();
145+
discovered.add(mood);
146+
if (mood === 'party') spark(true);
147+
if (discovered.size === 3 && !surpriseFound) {
148+
surpriseFound = true;
149+
speak(['彩蛋:有趣的灵魂,被你找到啦。', '谢谢你愿意了解我。现在,也让我了解你吧。']);
150+
spark(true);
151+
}
152+
});
153+
}
154+
fountain.addEventListener('click', () => {
155+
world.dataset.mood = 'party';
156+
hold(fountain);
157+
speak(['给平凡的一天,放一点花。', '完成一小步,也值得一起开心。']);
158+
hop();
159+
spark();
160+
});
161+
friend.addEventListener('click', () => {
162+
speak(greetings[greeting++ % greetings.length]);
163+
hop();
164+
if (world.dataset.mood === 'party') spark(prop.querySelector('.cone-stripe') === null);
165+
});
166+
world.addEventListener('pointermove', event => {
167+
if (reduced.matches || event.pointerType !== 'mouse') return;
168+
const rect = friend.getBoundingClientRect();
169+
friend.style.setProperty('--look-x', `${Math.max(-6, Math.min(6, (event.clientX - rect.left - rect.width / 2) / 30))}px`);
170+
friend.style.setProperty('--look-y', `${Math.max(-5, Math.min(5, (event.clientY - rect.top - rect.height / 2) / 30))}px`);
171+
});
172+
world.addEventListener('pointerleave', () => {
173+
friend.style.removeProperty('--look-x');
174+
friend.style.removeProperty('--look-y');
175+
});
176+
function settle() { stopSparks(); bounce?.cancel(); }
177+
document.addEventListener('visibilitychange', () => { if (document.hidden) settle(); });
178+
reduced.addEventListener('change', () => { if (reduced.matches) settle(); });
179+
window.addEventListener('pagehide', settle);
180+
window.addEventListener('resize', resize);
181+
resize();
182+
hop();
183+
}

0 commit comments

Comments
 (0)