0.1.5 update video and Chinese changelog

Real footage of the installed 0.1.5 apps, composited in Remotion with
shape morphs between sections; synthesized score and UI sounds. Logs
P3-17 (ElyTable keyboard zoom leaves the grid half-scrolled).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-15 09:24:06 -04:00
1 parent 2e1ba5eded
commit 8f31e53cfc
57 files changed
+8051

No files matched your search

@@ -0,0 +1,121 @@
import { cancelRender, continueRender, delayRender, interpolate, staticFile, useCurrentFrame } from 'remotion';
import { COLOR, EASE, FONT } from '../theme';
// The 'before' card mixes faces, as Windows did.
const serif = delayRender('Loading Noto Serif SC', { timeoutInMilliseconds: 120000 });
new FontFace('Noto Serif SC', `url(${staticFile('fonts/NotoSerifSC.ttf')}) format("truetype")`, { weight: '200 900' })
.load()
.then((face) => {
document.fonts.add(face);
continueRender(serif);
}, cancelRender);
const clamp = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const;
const BEAT = 37.5;
const Card: React.FC<{ at: number; x: number; title: string; sub: string; children: React.ReactNode }> = ({ at, x, title, sub, children }) => {
const f = useCurrentFrame();
const p = interpolate(f, [at, at + 34], [0, 1], { ...clamp, easing: EASE.out });
return (
<div
style={{
position: 'absolute',
left: x,
top: 150,
width: 700,
height: 640,
borderRadius: 28,
background: 'linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02))',
border: `1px solid ${COLOR.hairline}`,
boxShadow: '0 30px 80px rgba(0,0,0,0.35)',
opacity: p,
transform: `translateY(${(1 - p) * 40}px) scale(${0.96 + 0.04 * p})`,
overflow: 'hidden',
}}
>
<div style={{ position: 'absolute', inset: '0 0 190px 0' }}>{children}</div>
<div style={{ position: 'absolute', left: 48, right: 48, bottom: 56 }}>
<div style={{ fontFamily: FONT.sans, fontSize: 40, fontWeight: 600, color: COLOR.ink, letterSpacing: '0.02em' }}>{title}</div>
<div style={{ fontFamily: FONT.sans, fontSize: 24, fontWeight: 400, color: COLOR.muted, marginTop: 12, lineHeight: 1.5 }}>{sub}</div>
</div>
</div>
);
};
/** One word in two faces, settling into one. */
const Glyphs: React.FC<{ at: number }> = ({ at }) => {
const f = useCurrentFrame();
const fix = interpolate(f, [at + 2 * BEAT, at + 3.4 * BEAT], [0, 1], { ...clamp, easing: EASE.inOut });
const label = (text: string, on: number) => (
<span style={{ fontFamily: FONT.sans, fontSize: 22, fontWeight: 500, letterSpacing: '0.2em', color: COLOR.faint, opacity: on }}>{text}</span>
);
const word = (style: React.CSSProperties, text: string) => <span style={{ display: 'inline-block', ...style }}>{text}</span>;
return (
<div style={{ position: 'absolute', inset: 0, display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', gap: 26 }}>
<div style={{ position: 'relative', height: 30, width: 200, textAlign: 'center' }}>
<div style={{ position: 'absolute', inset: 0 }}>{label('之前', 1 - fix)}</div>
<div style={{ position: 'absolute', inset: 0 }}>{label('现在', fix)}</div>
</div>
<div style={{ position: 'relative', fontSize: 120, color: COLOR.ink, lineHeight: 1, height: 130 }}>
{word({ fontFamily: FONT.sans, fontVariationSettings: `'wght' ${800 - 300 * fix}`, fontWeight: 800 - 300 * fix }, '打开')}
<span style={{ position: 'relative', display: 'inline-block' }}>
{word({ fontFamily: '"Noto Serif SC"', fontWeight: 300, opacity: 1 - fix, filter: `blur(${fix * 6}px)` }, '仓库')}
{word(
{ position: 'absolute', left: 0, top: 0, fontFamily: FONT.sans, fontWeight: 500, opacity: fix, filter: `blur(${(1 - fix) * 6}px)` },
'仓库',
)}
</span>
</div>
<div style={{ height: 6, width: 360 * fix, borderRadius: 3, background: COLOR.accent, opacity: 0.9 }} />
</div>
);
};
/** A shield draws itself, then a check. */
const Notarized: React.FC<{ at: number }> = ({ at }) => {
const f = useCurrentFrame();
const shield = interpolate(f, [at + 10, at + 10 + 2 * BEAT], [0, 1], { ...clamp, easing: EASE.inOut });
const check = interpolate(f, [at + 2.4 * BEAT, at + 3.4 * BEAT], [0, 1], { ...clamp, easing: EASE.out });
const glow = interpolate(f, [at + 3 * BEAT, at + 4.2 * BEAT], [0, 1], { ...clamp, easing: EASE.out });
const SHIELD = 'M120 20 L210 52 V128 C210 186 172 228 120 248 C68 228 30 186 30 128 V52 Z';
return (
<div style={{ position: 'absolute', inset: 0, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
<svg width={260} height={280} viewBox="0 0 240 270" style={{ overflow: 'visible' }}>
<path d={SHIELD} fill={COLOR.accent} opacity={0.14 * glow} />
<path
d={SHIELD}
fill="none"
stroke={COLOR.ink}
strokeWidth={7}
strokeLinejoin="round"
pathLength={1}
strokeDasharray="1 1"
strokeDashoffset={1 - shield}
/>
<path
d="M78 134 L108 164 L166 102"
fill="none"
stroke={COLOR.accent}
strokeWidth={14}
strokeLinecap="round"
strokeLinejoin="round"
pathLength={1}
strokeDasharray="1 1"
strokeDashoffset={1 - check}
/>
</svg>
</div>
);
};
/** The two cards after the footage, in stage coordinates. */
export const Cards: React.FC<{ at: number }> = ({ at }) => (
<>
<Card at={at} x={100} title="中文显示统一" sub="Windows 上同一个词不再一半粗一半细;界面残留的英文改为中文">
<Glyphs at={at} />
</Card>
<Card at={at + BEAT} x={880} title="macOS 已签名并公证" sub="Developer ID 签名、Apple 公证并钉票,打开时不再提示“无法验证开发者”">
<Notarized at={at + BEAT} />
</Card>
</>
);
@@ -0,0 +1,50 @@
import { AbsoluteFill } from 'remotion';
import { Caption } from '../design/Caption';
import { KeyCap } from '../design/KeyCap';
import { Stage } from '../design/Stage';
import { Clip, type Cut, type Shot } from '../footage/Clip';
import { frameOf, Sounds } from '../footage/Sounds';
const CUTS: Cut[] = [{ take: 'cells', from: 3.1, to: 13.1 }];
const SHOTS: Shot[] = [
{ f: 0, z: 1, x: 1024, y: 576 },
{ f: 60, z: 1.25, x: 1190, y: 440 },
{ f: 110, z: 1.75, x: 1190, y: 420 },
{ f: 470, z: 1.75, x: 1190, y: 420 },
{ f: 560, z: 1.2, x: 1200, y: 460 },
];
// One badge per key, held until the next one.
const KEYS: { t: number; keys: string[] }[] = [
{ t: 4.26, keys: ['点击'] },
{ t: 5.73, keys: ['Tab'] },
{ t: 6.88, keys: ['↓'] },
{ t: 7.94, keys: ['End'] },
{ t: 8.29, keys: ['⌫'] },
{ t: 10.63, keys: ['Enter'] },
];
export const Cells: React.FC = () => {
const at = (t: number) => frameOf(CUTS, t);
const backs = [8.29, 8.5, 8.71].map(at);
return (
<AbsoluteFill>
<Stage
enter={{ from: 'cell' }}
exit={{ to: 'ely-doc' }}
heading={{ title: '表格在格内编辑', sub: '点哪格开哪格,Tab 到下一格,回车写回', app: 'ely-mark' }}
>
<Clip cuts={CUTS} shots={SHOTS} />
</Stage>
{KEYS.map((k, i) => {
const from = at(k.t) - 12;
const to = i + 1 < KEYS.length ? at(KEYS[i + 1].t) - 12 : at(k.t) + 70;
return <KeyCap key={k.t} keys={k.keys} from={from} to={Math.min(to, from + 110)} press={k.keys[0] === '⌫' ? backs : [at(k.t)]} />;
})}
<Caption text="格内显示原文:**粗体** 带着记号" from={at(4.5)} to={at(5.6)} />
<Caption text="Tab、方向键在格间移动" from={at(5.9)} to={at(7.8)} />
<Caption text="回车写回,一步撤销" from={at(10.7)} to={at(12.2)} />
<Sounds cuts={CUTS} />
</AbsoluteFill>
);
};
@@ -0,0 +1,175 @@
import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion';
import { COLOR, EASE, FONT, ICON, SECTION } from '../theme';
import { type ShapeId, SHAPES, boundaryPulse, shapePath } from '../design/morph';
import { ShapeView, type Details, mix, rgba } from '../design/Shape';
// Each icon lands on a beat; the dot breathes for the first two beats.
const STEPS: { shape: ShapeId; land: number; dur: number }[] = [
{ shape: 'ely-doc', land: 75, dur: 30 },
{ shape: 'ely-show', land: 112.5, dur: 24 },
{ shape: 'ely-table', land: 150, dur: 24 },
{ shape: 'ely-tree', land: 187.5, dur: 24 },
{ shape: 'ely-pdf', land: 225, dur: 24 },
{ shape: 'ely-mark', land: 262.5, dur: 24 },
];
const END = SECTION.intro.duration;
const clamp = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const;
const ramp = (f: number, a: number, b: number, ease = EASE.out) => interpolate(f, [a, b], [0, 1], { ...clamp, easing: ease });
const iconAt = (f: number) => {
// Before the wordmark the icon sits a little higher, at the frame's centre.
const cy = ICON.y - 40 * (1 - ramp(f, 150, 240, EASE.inOut));
const pulse = boundaryPulse(f - END);
const index = STEPS.findLastIndex((s) => f >= s.land - s.dur);
if (index < 0) {
const appear = ramp(f, 4, 38);
const breath = 0.16 * Math.exp(-(((f - 37.5) / 8) ** 2));
const k = Math.max(0.001, appear * (1 + breath));
return { d: shapePath('dot', 'stage', 0, k, ICON.x, cy), color: SHAPES.dot.color, k, cy, details: [] as Details[] };
}
const step = STEPS[index];
const from: ShapeId = index === 0 ? 'dot' : STEPS[index - 1].shape;
const start = step.land - step.dur;
const t = EASE.inOut(Math.min(1, (f - start) / step.dur));
const swell = STEPS.slice(0, -1).reduce((sum, s) => sum + 0.03 * Math.exp(-(((f - s.land) / 6) ** 2)), 0);
const k = (1 - 0.07 * Math.sin(Math.PI * t)) * (1 + swell + pulse);
const d = t >= 1 ? shapePath(step.shape, 'stage', 0, k, ICON.x, cy) : shapePath(from, step.shape, t, k, ICON.x, cy);
const details: Details[] = [
{ shape: from, opacity: 1 - ramp(f, start, start + 6, EASE.inOut) },
{ shape: step.shape, opacity: ramp(f, step.land - 3, step.land + 7, EASE.inOut) },
];
return { d, color: mix(SHAPES[from].color, SHAPES[step.shape].color, t), k, cy, details };
};
const Letters: React.FC<{ text: string; start: number; stagger: number; rise: number; blur: number }> = ({ text, start, stagger, rise, blur }) => {
const f = useCurrentFrame();
return (
<>
{Array.from(text).map((char, i) => {
const p = ramp(f, start + i * stagger, start + i * stagger + 32);
const b = (1 - p) * blur;
return (
<span
key={i}
style={{
display: 'inline-block',
whiteSpace: 'pre',
opacity: p,
transform: `translateY(${((1 - p) * rise).toFixed(2)}px)`,
filter: b > 0.05 ? `blur(${b.toFixed(2)}px)` : undefined,
}}
>
{char}
</span>
);
})}
</>
);
};
const WORD: React.CSSProperties = {
fontFamily: FONT.latin,
fontSize: 92,
lineHeight: '100px',
whiteSpace: 'nowrap',
display: 'flex',
alignItems: 'baseline',
gap: 30,
};
const Wordmark: React.FC<{ reveal: boolean; color?: string }> = ({ reveal, color }) => {
const word = (text: string, start: number) =>
reveal ? <Letters text={text} start={start} stagger={2.2} rise={30} blur={10} /> : text.split('').map((c, i) => <span key={i} style={{ display: 'inline-block', whiteSpace: 'pre' }}>{c}</span>);
return (
<div style={WORD}>
<span style={{ fontWeight: 600, letterSpacing: '-0.025em', color: color ?? '#ECEAE6' }}>{word('Ely Office', 150)}</span>
<span style={{ fontWeight: 300, letterSpacing: '0.01em', color: color ?? COLOR.muted }}>{word('0.1.5', 172)}</span>
</div>
);
};
export const Intro: React.FC = () => {
const f = useCurrentFrame();
const icon = iconAt(f);
const dawn = 1 - ramp(f, 0, 50, EASE.inOut);
const ripple = ramp(f, 37.5, 37.5 + 50);
const leaveWord = ramp(f, 272, 294, EASE.in);
const leaveLine = ramp(f, 264, 286, EASE.in);
const rule = ramp(f, 182, 210) * (1 - ramp(f, 258, 278, EASE.inOut));
const sweep = ramp(f, 216, 262, EASE.inOut);
return (
<AbsoluteFill>
{f < 92 ? (
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0 }}>
<circle
cx={ICON.x}
cy={icon.cy}
r={20 + 150 * ripple}
fill="none"
stroke={rgba(SHAPES.dot.color, 0.5 * (1 - ripple) * Math.min(1, ripple * 8))}
strokeWidth={1.5}
/>
</svg>
) : null}
<ShapeView d={icon.d} color={icon.color} cx={ICON.x} cy={icon.cy} k={icon.k} fill={1} lift={0} details={icon.details} />
<div
style={{
position: 'absolute',
left: 0,
width: 1920,
top: 232,
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
opacity: 1 - leaveWord,
transform: `translateY(${(-20 * leaveWord).toFixed(2)}px)`,
filter: leaveWord > 0.01 ? `blur(${(8 * leaveWord).toFixed(2)}px)` : undefined,
}}
>
<div style={{ position: 'relative' }}>
<Wordmark reveal />
{sweep > 0 && sweep < 1 ? (
<div
style={{
position: 'absolute',
inset: 0,
opacity: 0.9,
maskImage: 'linear-gradient(100deg, transparent 0%, transparent 44%, black 50%, transparent 56%, transparent 100%)',
maskSize: '320% 100%',
maskRepeat: 'no-repeat',
maskPosition: `${(100 - sweep * 100).toFixed(2)}% 0%`,
}}
>
<Wordmark reveal={false} color="#FFFFFF" />
</div>
) : null}
</div>
</div>
<div style={{ position: 'absolute', left: 960 - 28, top: 354, width: 56, height: 2, borderRadius: 1, background: COLOR.accent, transform: `scaleX(${rule.toFixed(4)})` }} />
<div
style={{
position: 'absolute',
left: 0,
width: 1920,
top: 372,
textAlign: 'center',
fontFamily: FONT.sans,
fontWeight: 300,
fontSize: 31,
lineHeight: '40px',
letterSpacing: '0.34em',
paddingLeft: '0.34em',
boxSizing: 'border-box',
color: '#BDBAB5',
opacity: 1 - leaveLine,
transform: `translateY(${(-12 * leaveLine).toFixed(2)}px)`,
filter: leaveLine > 0.01 ? `blur(${(6 * leaveLine).toFixed(2)}px)` : undefined,
}}
>
<Letters text="更顺手的一次更新" start={192} stagger={3} rise={14} blur={8} />
</div>
{dawn > 0.001 ? <AbsoluteFill style={{ background: '#09090a', opacity: dawn }} /> : null}
</AbsoluteFill>
);
};
@@ -0,0 +1,46 @@
import { AbsoluteFill } from 'remotion';
import { Caption } from '../design/Caption';
import { KeyCap } from '../design/KeyCap';
import { Stage } from '../design/Stage';
import { Clip, type Cut, type Shot } from '../footage/Clip';
import { frameOf, Sounds } from '../footage/Sounds';
import { Triangle } from '../footage/Triangle';
// The crossing over 插入 plays at half speed.
const CROSS = { from: 7.09, to: 8.04 };
const CUTS: Cut[] = [
{ take: 'menus', from: 3.6, to: 7.0 },
{ take: 'menus', from: 7.0, to: 8.15, rate: 0.5 },
{ take: 'menus', from: 8.15, to: 12.45 },
];
const SHOTS: Shot[] = [
{ f: 0, z: 1, x: 1024, y: 576 },
{ f: 40, z: 1.15, x: 1120, y: 560 },
{ f: 115, z: 1.45, x: 1380, y: 720 },
{ f: 355, z: 1.45, x: 1380, y: 720 },
{ f: 420, z: 1.25, x: 1150, y: 600 },
{ f: 560, z: 1, x: 1024, y: 576 },
];
export const Menus: React.FC = () => {
const right = frameOf(CUTS, 4.43);
const cross = frameOf(CUTS, CROSS.from);
return (
<AbsoluteFill>
<Stage
enter={{ from: 'ely-mark' }}
exit={{ to: 'cell' }}
heading={{ title: '二级菜单更好选', sub: '斜着移向子菜单,路过的项不再抢先弹出', app: 'ely-mark' }}
>
<Clip
cuts={CUTS}
shots={SHOTS}
overlay={(_, t) => <Triangle take="menus" t={t} {...CROSS} passed={[654, 696]} note="路过「插入」,不抢走" />}
/>
</Stage>
<KeyCap keys={['右键']} from={right - 20} to={right + 75} press={[right]} />
<Caption text="0.5× · 安全三角:朝子菜单走,三角内的项不切换" from={cross - 30} to={frameOf(CUTS, 8.6)} />
<Sounds cuts={CUTS} />
</AbsoluteFill>
);
};
@@ -0,0 +1,49 @@
import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion';
import { Caption } from '../design/Caption';
import { KeyCap } from '../design/KeyCap';
import { Stage } from '../design/Stage';
import { Clip, type Cut, type Shot } from '../footage/Clip';
import { frameOf, Sounds } from '../footage/Sounds';
import { EASE } from '../theme';
import { Cards } from './Cards';
const CUTS: Cut[] = [{ take: 'more', from: 2.6, to: 9.0 }];
const SHOTS: Shot[] = [
{ f: 0, z: 1, x: 1024, y: 576 },
{ f: 40, z: 1.4, x: 731, y: 360 },
{ f: 190, z: 1.4, x: 731, y: 360 },
{ f: 240, z: 1.5, x: 683, y: 780 },
{ f: 296, z: 1.5, x: 683, y: 780 },
{ f: 336, z: 1.5, x: 683, y: 384 },
];
// The cards replace the footage from here.
const CARDS = 372;
export const More: React.FC = () => {
const f = useCurrentFrame();
const clear = frameOf(CUTS, 7.38);
const away = interpolate(f, [CARDS - 20, CARDS + 10], [1, 0], { extrapolateLeft: 'clamp', extrapolateRight: 'clamp', easing: EASE.inOut });
return (
<AbsoluteFill>
<Stage
enter={{ from: 'ely-show' }}
exit={{ to: 'dot' }}
heading={[
{ title: '再开文件,进同一个窗口', sub: '应用已开着时,文件直接开成新标签;侧栏可清除最近文件', app: 'ely-mark' },
{ title: '还有', sub: '中文显示统一 · macOS 安装包已公证', at: CARDS },
]}
>
{f < CARDS + 10 ? (
<AbsoluteFill style={{ opacity: away, transform: `scale(${0.97 + 0.03 * away})` }}>
<Clip cuts={CUTS} shots={SHOTS} />
</AbsoluteFill>
) : null}
{f >= CARDS - 20 ? <Cards at={CARDS} /> : null}
</Stage>
<Caption text="第二次打开:交给已开着的那份,开成新标签" from={frameOf(CUTS, 3.4)} to={frameOf(CUTS, 6.7)} />
<KeyCap keys={['点击']} from={clear - 20} to={clear + 60} press={[clear]} />
<Caption text="清除最近文件,重启后仍是空的" from={clear + 10} to={CARDS - 10} />
<Sounds cuts={CUTS} />
</AbsoluteFill>
);
};
@@ -0,0 +1,152 @@
import { AbsoluteFill, interpolate, useCurrentFrame } from 'remotion';
import { APPS, BEAT, COLOR, EASE, FONT, ICON } from '../theme';
import { SHAPES, boundaryPulse, shapePath } from '../design/morph';
import { ShapeView, mix, rgba } from '../design/Shape';
const clamp = { extrapolateLeft: 'clamp', extrapolateRight: 'clamp' } as const;
const ramp = (f: number, a: number, b: number, ease = EASE.out) => interpolate(f, [a, b], [0, 1], { ...clamp, easing: ease });
const lerp = (a: number, b: number, t: number) => a + (b - a) * t;
// Row after the bloom, and the tighter row it gathers into above the wordmark.
const ROW = { gap: 212, y: 470, k: 0.62 };
const GATHER = { gap: 128, y: 384, k: 0.38, at: 5 * BEAT };
const BLOOM = { at: BEAT, every: BEAT / 2, dur: 26 };
const SPLIT = { at: 16, dur: 40 };
const FADE = { from: 390, to: 446 };
const Ring: React.FC<{ start: number; reach: number; width: number }> = ({ start, reach, width }) => {
const f = useCurrentFrame();
const p = ramp(f, start, start + 64);
if (p <= 0 || p >= 1) return null;
return (
<circle
cx={ICON.x}
cy={ICON.y}
r={18 + reach * p}
fill="none"
stroke={rgba(SHAPES.dot.color, 0.55 * (1 - p) * Math.min(1, p * 10))}
strokeWidth={width}
/>
);
};
const AppIcon: React.FC<{ index: number }> = ({ index }) => {
const f = useCurrentFrame();
const app = APPS[index];
const offset = index - (APPS.length - 1) / 2;
const travel = Math.min(1, Math.max(0, (f - SPLIT.at) / SPLIT.dur));
const bloomAt = BLOOM.at + index * BLOOM.every;
const t = EASE.inOut(Math.min(1, Math.max(0, (f - bloomAt) / BLOOM.dur)));
const land = bloomAt + BLOOM.dur;
const gather = ramp(f, GATHER.at + index * 2, GATHER.at + index * 2 + 44, EASE.inOut);
// Split: the dots rise first, then fan out, like a fountain.
// Both start from rest; the rise leads the spread.
const splitX = lerp(ICON.x, ICON.x + offset * ROW.gap, EASE.inOut(Math.max(0, (travel - 0.15) / 0.85)));
const splitY = lerp(ICON.y, ROW.y, EASE.inOut(Math.min(1, travel / 0.7)));
const cx = lerp(splitX, ICON.x + offset * GATHER.gap, gather);
const cy = lerp(splitY, GATHER.y, gather);
const swell = 0.035 * Math.exp(-(((f - land) / 6) ** 2));
const base = lerp(lerp(1 + boundaryPulse(f), ROW.k, EASE.inOut(travel)), GATHER.k, gather);
const k = base * (1 - 0.08 * Math.sin(Math.PI * t)) * (1 + swell);
const d = t >= 1 ? shapePath(app.id, 'stage', 0, k, cx, cy) : shapePath('dot', app.id, t, k, cx, cy);
const color = mix(SHAPES.dot.color, app.color, Math.max(EASE.inOut(travel) * 0.6, t));
return (
<ShapeView
d={d}
color={color}
cx={cx}
cy={cy}
k={k}
fill={1}
lift={0}
presence={lerp(1 / APPS.length, 1, EASE.inOut(travel))}
details={[{ shape: app.id, opacity: ramp(f, land - 4, land + 8, EASE.inOut) }]}
/>
);
};
const Line: React.FC<{ text: string; start: number; stagger: number; style: React.CSSProperties }> = ({ text, start, stagger, style }) => {
const f = useCurrentFrame();
return (
<div style={{ display: 'flex', justifyContent: 'center', whiteSpace: 'nowrap', ...style }}>
{Array.from(text).map((char, i) => {
const p = ramp(f, start + i * stagger, start + i * stagger + 30);
const b = (1 - p) * 8;
return (
<span
key={i}
style={{
display: 'inline-block',
whiteSpace: 'pre',
opacity: p,
transform: `translateY(${((1 - p) * 18).toFixed(2)}px)`,
filter: b > 0.05 ? `blur(${b.toFixed(2)}px)` : undefined,
}}
>
{char}
</span>
);
})}
</div>
);
};
export const Outro: React.FC = () => {
const f = useCurrentFrame();
const fade = 1 - ramp(f, FADE.from, FADE.to, EASE.inOut);
const push = 1 + 0.022 * ramp(f, GATHER.at, FADE.to, EASE.inOut);
const glow = ramp(f, 0, 18) * (1 - ramp(f, 18, 80, EASE.inOut));
return (
<AbsoluteFill style={{ opacity: fade, transform: `scale(${push.toFixed(5)})`, transformOrigin: '960px 520px' }}>
<div
style={{
position: 'absolute',
left: ICON.x - 360,
top: ICON.y - 360,
width: 720,
height: 720,
background: `radial-gradient(closest-side, ${rgba(COLOR.accent, 0.22 * glow)}, ${rgba(COLOR.accent, 0)})`,
}}
/>
<svg width={1920} height={1080} style={{ position: 'absolute', inset: 0 }}>
<Ring start={0} reach={300} width={1.6} />
<Ring start={9} reach={460} width={1} />
</svg>
{f < SPLIT.at ? (
<ShapeView
d={shapePath('dot', 'stage', 0, 1 + boundaryPulse(f), ICON.x, ICON.y)}
color={SHAPES.dot.color}
cx={ICON.x}
cy={ICON.y}
k={1 + boundaryPulse(f)}
fill={1}
lift={0}
/>
) : (
APPS.map((app, i) => <AppIcon key={app.id} index={i} />)
)}
<div style={{ position: 'absolute', left: 0, width: 1920, top: 478 }}>
<Line
text="Ely Office 0.1.5"
start={6 * BEAT}
stagger={1.8}
style={{ fontFamily: FONT.latin, fontWeight: 600, fontSize: 84, lineHeight: '96px', letterSpacing: '-0.02em', color: '#ECEAE6' }}
/>
<Line
text="Windows · macOS · Linux"
start={7 * BEAT}
stagger={1}
style={{ marginTop: 22, fontFamily: FONT.latin, fontWeight: 400, fontSize: 26, lineHeight: '34px', letterSpacing: '0.06em', color: COLOR.muted }}
/>
<Line
text="git.zacharyzhang.com/ZacharyZhang-NY/ElyOffice"
start={8 * BEAT}
stagger={0.6}
style={{ marginTop: 18, fontFamily: FONT.mono, fontWeight: 400, fontSize: 22, lineHeight: '30px', letterSpacing: '0.01em', color: '#86A9E6' }}
/>
</div>
</AbsoluteFill>
);
};
@@ -0,0 +1,65 @@
import { AbsoluteFill } from 'remotion';
import { Caption } from '../design/Caption';
import { KeyCap } from '../design/KeyCap';
import { Stage } from '../design/Stage';
import { Clip, lay, type Cut, type Shot } from '../footage/Clip';
import { frameOf, Sounds } from '../footage/Sounds';
import { Triangle } from '../footage/Triangle';
const CUTS: Cut[] = [
{ take: 'doc', from: 3.9, to: 9.5 },
{ take: 'doc', from: 11.75, to: 13.85, fade: 12 },
{ take: 'table', from: 3.9, to: 7.4, fade: 14 },
{ take: 'show', from: 3.1, to: 7.57, fade: 14 },
];
const [, drag, table, show] = lay(CUTS);
const SHOTS: Shot[] = [
{ f: 0, z: 1, x: 1024, y: 576 },
{ f: 45, z: 1.2, x: 1100, y: 620 },
{ f: 120, z: 1.45, x: 1260, y: 800 },
{ f: 290, z: 1.45, x: 1260, y: 800 },
{ f: drag.start, z: 1.35, x: 920, y: 640 },
{ f: drag.start + 28, z: 1.65, x: 990, y: 620 },
{ f: table.start - 6, z: 1.65, x: 990, y: 620 },
{ f: table.start + 34, z: 1.45, x: 560, y: 380 },
{ f: show.start - 6, z: 1.45, x: 560, y: 380 },
{ f: show.start + 40, z: 1.5, x: 430, y: 620 },
{ f: show.start + 160, z: 1.5, x: 430, y: 620 },
{ f: show.start + 230, z: 1.15, x: 900, y: 560 },
];
export const RightClick: React.FC = () => {
const docRight = frameOf(CUTS.slice(0, 1), 4.95);
const tableRight = table.start + Math.round((4.25 - table.from) * 60);
const wheel = show.start + Math.round((3.42 - show.from) * 60);
return (
<AbsoluteFill>
<Stage
enter={{ from: 'ely-doc' }}
exit={{ to: 'ely-show' }}
heading={[
{ title: '右键照 Word', sub: '正文、表格、图片各有对应的菜单;拖动边线调列宽行高', app: 'ely-doc' },
{ title: '右键照 Excel', sub: '单元格、行列表头、图形各有对应的菜单', app: 'ely-table', at: table.start },
{ title: '右键照 PowerPoint', sub: '缩略图条可用滚轮滚动,表格边线可以拖动', app: 'ely-show', at: show.start },
]}
>
<Clip
cuts={CUTS}
shots={SHOTS}
overlay={(cut, t) =>
cut.take === 'doc' ? (
<Triangle take="doc" t={t} from={7.29} to={8.19} passed={[742, 784]} note="路过「删除」,不抢走" />
) : null
}
/>
</Stage>
<KeyCap keys={['右键']} from={docRight - 20} to={docRight + 75} press={[docRight]} />
<Caption text="拖动表格边线,调整列宽" from={drag.start + 10} to={table.start - 4} />
<KeyCap keys={['右键']} from={tableRight - 20} to={tableRight + 75} press={[tableRight]} />
<Caption text="表头右键:插入、删除、列宽、隐藏" from={tableRight + 30} to={show.start - 4} />
<KeyCap keys={['滚轮']} from={wheel - 16} to={wheel + 170} press={[wheel, wheel + 96]} />
<Caption text="缩略图条可以用滚轮滚动" from={wheel + 10} to={wheel + 190} />
<Sounds cuts={CUTS} />
</AbsoluteFill>
);
};