Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(marketing): smooth mobile transitions and refine homepage demos (#7343)

Jacob Beckerman4dcc0d2529c6
diff --git a/apps/marketing/src/features/marketing/components/HomepageUnification.tsx b/apps/marketing/src/features/marketing/components/HomepageUnification.tsx
index d53c5b35ff..68bb3a139f 100644
--- a/apps/marketing/src/features/marketing/components/HomepageUnification.tsx
+++ b/apps/marketing/src/features/marketing/components/HomepageUnification.tsx
@@ -13,18 +13,24 @@ export function HomepageUnification(
onMount(() => {
const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');
const scroller = section.parentElement!;
- const animations: { animation: Animation; end: number; time: number }[] =
- [];
+ const animations: {
+ animation: Animation;
+ start: number;
+ end: number;
+ time: number;
+ }[] = [];
const hiddenSources = new Map<HTMLElement, string>();
let overlay: HTMLDivElement | undefined;
let prepared = false;
let start = 0;
let distance = 1;
let lastProgress = -1;
+ let traveling = false;
const clear = () => {
prepared = false;
lastProgress = -1;
+ traveling = false;
animations.forEach(({ animation }) => animation.cancel());
animations.length = 0;
overlay?.remove();
@@ -48,7 +54,12 @@ export function HomepageUnification(
});
animation.pause();
animation.currentTime = 0;
- animations.push({ animation, end: delay + duration, time: 0 });
+ animations.push({
+ animation,
+ start: delay,
+ end: delay + duration,
+ time: 0,
+ });
return animation;
};
@@ -124,11 +135,12 @@ export function HomepageUnification(
opacity: '1',
animation: 'none',
transform: 'none',
+ // Moving backdrop filters resample the scene beneath every bubble.
+ backdropFilter: 'none',
willChange: 'transform, opacity',
});
overlay!.append(ghost);
hiddenSources.set(source, source.style.visibility);
- source.style.visibility = 'hidden';
const dx = target.left + target.width / 2 - rect.left - rect.width / 2;
const dy = target.top + target.height / 2 - rect.top - rect.height / 2;
const scale = merges ? 0.22 : target.width / rect.width;
@@ -237,20 +249,28 @@ export function HomepageUnification(
if (progress === lastProgress) return;
lastProgress = progress;
if (!prepared && progress > 0) prepare();
- section.dataset.motion =
+ const motion =
progress === 0 ? 'waiting' : progress === 1 ? 'complete' : 'scrubbing';
+ if (section.dataset.motion !== motion) section.dataset.motion = motion;
// A paused timeline is only a set of keyframes. The scroll offset is its
// sole clock: no autoplay, easing toward a target, or scroll interception.
for (const entry of animations) {
- const time = Math.min(entry.end, progress * 1500);
+ // Delayed and finished effects do not need seeking on every frame.
+ const time = Math.max(
+ entry.start,
+ Math.min(entry.end, progress * 1500)
+ );
if (time === entry.time) continue;
entry.animation.currentTime = time;
entry.time = time;
}
- if (overlay) overlay.hidden = progress === 0 || progress === 1;
- for (const [source, visibility] of hiddenSources) {
- source.style.visibility =
- progress > 0 && progress < 1 ? 'hidden' : visibility;
+ const active = progress > 0 && progress < 1;
+ if (active !== traveling) {
+ traveling = active;
+ if (overlay) overlay.hidden = !active;
+ for (const [source, visibility] of hiddenSources) {
+ source.style.visibility = active ? 'hidden' : visibility;
+ }
}
};
@@ -264,6 +284,11 @@ export function HomepageUnification(
// Finish when the section reaches the upper fifth of the viewport,
// before its heading and supporting copy are fully in view.
distance = Math.max(1, scroller.clientHeight * 0.64);
+ // Build the travel layers before the first gesture, not in its first frame.
+ if (!reduced.matches) {
+ prepare();
+ overlay!.hidden = true;
+ }
update();
};
let replayFrame = 0;
diff --git a/apps/marketing/src/features/marketing/components/animateDemoEntrance.ts b/apps/marketing/src/features/marketing/components/animateDemoEntrance.ts
index 770457d770..944b28284c 100644
--- a/apps/marketing/src/features/marketing/components/animateDemoEntrance.ts
+++ b/apps/marketing/src/features/marketing/components/animateDemoEntrance.ts
@@ -202,14 +202,10 @@ export function animateDemoEntrance(
viewport.top +
scroller.scrollTop +
target.offsetHeight / 2;
- // Start the reveal 100px earlier.
- const advance = 100;
- start = top - scroller.clientHeight * 0.82 - advance;
- // Finish 250px before the workspace reaches the viewport center.
- distance = Math.max(
- 1,
- center - scroller.clientHeight * 0.5 - 150 - advance - start
- );
+ // Hold the readable constellation for 100px longer before it leaves.
+ start = top - scroller.clientHeight * 0.82;
+ // Keep the travel length: the reveal also finishes 100px later.
+ distance = Math.max(1, center - scroller.clientHeight * 0.5 - 150 - start);
update();
};
// Once somebody uses the workspace, scrolling must never hide their work.
diff --git a/apps/marketing/src/features/marketing/components/animateOpenSource.test.ts b/apps/marketing/src/features/marketing/components/animateOpenSource.test.ts
new file mode 100644
index 0000000000..4f389ef535
--- /dev/null
+++ b/apps/marketing/src/features/marketing/components/animateOpenSource.test.ts
@@ -0,0 +1,173 @@
+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
+import { animateOpenSource } from './animateOpenSource';
+
+let dispose = () => {};
+let frames = new Map<number, FrameRequestCallback>();
+let nextFrame = 0;
+let effects: {
+ currentTime: number;
+ pause: () => void;
+ cancel: ReturnType<typeof vi.fn>;
+}[];
+let reduced: MediaQueryList;
+const originalAnimate = Object.getOwnPropertyDescriptor(
+ Element.prototype,
+ 'animate'
+);
+
+beforeEach(() => {
+ frames = new Map();
+ nextFrame = 0;
+ effects = [];
+ reduced = Object.assign(new EventTarget(), {
+ matches: false,
+ }) as MediaQueryList;
+ vi.stubGlobal('matchMedia', () => reduced);
+ vi.stubGlobal(
+ 'ResizeObserver',
+ class {
+ observe() {}
+ unobserve() {}
+ disconnect() {}
+ }
+ );
+ vi.stubGlobal('requestAnimationFrame', (callback: FrameRequestCallback) => {
+ frames.set(++nextFrame, callback);
+ return nextFrame;
+ });
+ vi.stubGlobal('cancelAnimationFrame', (id: number) => frames.delete(id));
+ Object.defineProperty(Element.prototype, 'animate', {
+ configurable: true,
+ value: vi.fn(() => {
+ const effect = { currentTime: 0, pause() {}, cancel: vi.fn() };
+ effects.push(effect);
+ return effect as unknown as Animation;
+ }),
+ });
+});
+afterEach(() => {
+ dispose();
+ dispose = () => {};
+ document.body.replaceChildren();
+ vi.restoreAllMocks();
+ vi.unstubAllGlobals();
+ if (originalAnimate)
+ Object.defineProperty(Element.prototype, 'animate', originalAnimate);
+ else Reflect.deleteProperty(Element.prototype, 'animate');
+});
+
+function setup() {
+ const scroller = document.createElement('div');
+ scroller.innerHTML = `<section class="homepage-unification"><div class="feature-flow"><div class="feature-flow-node"><div class="feature-flow-icon"><svg></svg></div></div></div></section><section class="homepage-open-source"><div class="homepage-github-mark"></div></section>`;
+ document.body.append(scroller);
+ const section = scroller.querySelector<HTMLElement>('.homepage-open-source')!;
+ const scene = scroller.querySelector<HTMLElement>('.feature-flow')!;
+ const node = scroller.querySelector<HTMLElement>('.feature-flow-node')!;
+ const source = scroller.querySelector<HTMLElement>('.feature-flow-icon')!;
+ const target = section.querySelector<HTMLElement>('.homepage-github-mark')!;
+ Object.defineProperty(scroller, 'clientHeight', { value: 800 });
+ Object.defineProperty(section, 'offsetWidth', { value: 400 });
+ Object.defineProperty(scene, 'offsetWidth', { value: 400 });
+ Object.defineProperties(node, {
+ offsetLeft: { value: 100 },
+ offsetTop: { value: 80 },
+ offsetWidth: { value: 48 },
+ offsetHeight: { value: 48 },
+ });
+ Object.defineProperties(source, {
+ offsetWidth: { value: 48 },
+ offsetHeight: { value: 48 },
+ });
+ Object.defineProperty(target, 'offsetHeight', { value: 100 });
+ vi.spyOn(scroller, 'getBoundingClientRect').mockImplementation(
+ () => new DOMRect(0, 0, 400, 800)
+ );
+ vi.spyOn(section, 'getBoundingClientRect').mockImplementation(
+ () => new DOMRect(0, 1000 - scroller.scrollTop, 400, 600)
+ );
+ vi.spyOn(scene, 'getBoundingClientRect').mockImplementation(
+ () => new DOMRect(0, 600 - scroller.scrollTop, 400, 300)
+ );
+ vi.spyOn(target, 'getBoundingClientRect').mockImplementation(
+ () => new DOMRect(150, 1100 - scroller.scrollTop, 100, 100)
+ );
+ // The prior transition has transformed this bubble away from its rest position.
+ vi.spyOn(source, 'getBoundingClientRect').mockReturnValue(
+ new DOMRect(200, 200, 10, 10)
+ );
+ dispose = animateOpenSource(section, scroller);
+ const scroll = (top: number) => {
+ scroller.scrollTop = top;
+ scroller.dispatchEvent(new Event('scroll'));
+ };
+ return { scroller, section, source, scroll };
+}
+function step() {
+ const pending = [...frames.values()];
+ frames.clear();
+ pending.forEach((callback) => callback(16));
+}
+
+describe('mobile bubble scroll transition', () => {
+ it('prepares settled bubble geometry before the first gesture and batches scrolling', () => {
+ const { section, source, scroll } = setup();
+ expect(effects).toHaveLength(2);
+ const overlay = section.querySelector<HTMLElement>(
+ '.homepage-open-source-travel'
+ )!;
+ expect(overlay.hidden).toBe(true);
+ expect(overlay.firstElementChild?.getAttribute('style')).toContain(
+ 'left: 76px'
+ );
+ expect(overlay.firstElementChild?.getAttribute('style')).toContain(
+ 'top: -344px'
+ );
+ expect(source.style.visibility).toBe('');
+ scroll(400);
+ step();
+ expect(overlay.hidden).toBe(true);
+ expect(source.style.visibility).toBe('');
+ scroll(450);
+ scroll(500);
+ expect(frames.size).toBe(1);
+ expect(effects[0].currentTime).toBe(0);
+ step();
+ expect(effects).toHaveLength(2);
+ expect(effects[0].currentTime).toBeGreaterThan(0);
+ expect(overlay.hidden).toBe(false);
+ expect(source.style.visibility).toBe('hidden');
+ scroll(0);
+ step();
+ expect(overlay.hidden).toBe(true);
+ expect(source.style.visibility).toBe('');
+ expect(effects[0].currentTime).toBe(0);
+ });
+ it('clamps finished effects and restores sources and pending work on disposal', () => {
+ const { section, source, scroll } = setup();
+ scroll(940);
+ step();
+ expect(effects[1].currentTime).toBe(1300);
+ scroll(950);
+ step();
+ expect(effects[1].currentTime).toBe(1300);
+ scroll(960);
+ expect(frames.size).toBe(1);
+ dispose();
+ expect(frames.size).toBe(0);
+ expect(source.style.visibility).toBe('');
+ expect(section.querySelector('.homepage-open-source-travel')).toBeNull();
+ expect(
+ effects.every((effect) => effect.cancel.mock.calls.length === 1)
+ ).toBe(true);
+ dispose = () => {};
+ });
+ it('shows the finished state without preparing travel effects for reduced motion', () => {
+ Object.defineProperty(reduced, 'matches', { value: true });
+ const { section, source, scroll } = setup();
+ scroll(500);
+ step();
+ expect(effects).toHaveLength(0);
+ expect(section.querySelector('.homepage-open-source-travel')).toBeNull();
+ expect(source.style.visibility).toBe('');
+ });
+});
diff --git a/apps/marketing/src/features/marketing/components/animateOpenSource.ts b/apps/marketing/src/features/marketing/components/animateOpenSource.ts
index 7902e56ca1..c63d83e23c 100644
--- a/apps/marketing/src/features/marketing/components/animateOpenSource.ts
+++ b/apps/marketing/src/features/marketing/components/animateOpenSource.ts
@@ -3,7 +3,12 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
const reduced = window.matchMedia('(prefers-reduced-motion: reduce)');
let sourceSection = scroller.querySelector('.homepage-unification');
const target = section.querySelector<HTMLElement>('.homepage-github-mark')!;
- const animations: Animation[] = [];
+ const animations: {
+ animation: Animation;
+ start: number;
+ end: number;
+ time: number;
+ }[] = [];
const sources = new Map<HTMLElement, string>();
let overlay: HTMLDivElement | undefined;
let start = 0;
@@ -13,7 +18,7 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
let traveling = false;
const clear = () => {
- animations.forEach((animation) => animation.cancel());
+ animations.forEach(({ animation }) => animation.cancel());
animations.length = 0;
for (const [source, visibility] of sources)
source.style.visibility = visibility;
@@ -38,7 +43,12 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
});
animation.pause();
animation.currentTime = 0;
- animations.push(animation);
+ animations.push({
+ animation,
+ start: delay,
+ end: delay + duration,
+ time: 0,
+ });
};
const prepare = () => {
prepared = true;
@@ -46,10 +56,13 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
overlay.className = 'homepage-open-source-travel';
overlay.setAttribute('aria-hidden', 'true');
overlay.inert = true;
- section.append(overlay);
const origin = section.getBoundingClientRect();
const destination = target.getBoundingClientRect();
const scale = section.offsetWidth / origin.width;
+ const scene = sourceSection?.querySelector<HTMLElement>('.feature-flow');
+ const sceneRect = scene?.getBoundingClientRect();
+ const sceneScale =
+ scene && sceneRect ? sceneRect.width / scene.offsetWidth : 1;
const icons =
sourceSection?.querySelectorAll<HTMLElement>(
'.feature-flow-icon, .feature-flow-core'
@@ -60,9 +73,24 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
const styles = getComputedStyle(source);
const svg = source.querySelector('svg');
const svgStyles = svg ? getComputedStyle(svg) : undefined;
+ const node = source.closest<HTMLElement>(
+ '.feature-flow-node, .feature-flow-core'
+ )!;
+ // The previous transition may still be seeking the parent node. Cache its
+ // settled layout position so this scene can be prepared before scrolling.
+ const rect = sceneRect
+ ? new DOMRect(
+ sceneRect.left +
+ (node.offsetLeft - node.offsetWidth / 2) * sceneScale,
+ sceneRect.top +
+ (node.offsetTop - node.offsetHeight / 2) * sceneScale,
+ source.offsetWidth * sceneScale,
+ source.offsetHeight * sceneScale
+ )
+ : source.getBoundingClientRect();
return {
source,
- rect: source.getBoundingClientRect(),
+ rect,
background: styles.background,
borderRadius: styles.borderRadius,
boxShadow: styles.boxShadow,
@@ -71,6 +99,8 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
svgHeight: svgStyles?.height,
};
});
+ // Finish all layout/style reads before inserting travel layers.
+ section.append(overlay);
snapshots.forEach(
({ source, rect, svgWidth, svgHeight, ...surface }, index) => {
const ghost = source.cloneNode(true) as HTMLElement;
@@ -157,8 +187,11 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
if (progress === lastProgress) return;
lastProgress = progress;
if (!prepared && progress > 0) prepare();
- animations.forEach((animation) => {
- animation.currentTime = progress * 1450;
+ animations.forEach((entry) => {
+ const time = Math.max(entry.start, Math.min(entry.end, progress * 1450));
+ if (time === entry.time) return;
+ entry.animation.currentTime = time;
+ entry.time = time;
});
if (overlay) overlay.hidden = progress === 0 || progress === 1;
const active = progress > 0 && progress < 1;
@@ -179,21 +212,39 @@ export function animateOpenSource(section: HTMLElement, scroller: HTMLElement) {
viewport.top +
scroller.scrollTop +
target.offsetHeight / 2;
- start = top - scroller.clientHeight * 0.82;
- // Finish when the GitHub mark reaches the upper third of the viewport.
- distance = Math.max(1, center - scroller.clientHeight * 0.32 - start);
+ // Hold the readable constellation for 100px longer before it leaves.
+ const delay = 100;
+ start = top - scroller.clientHeight * 0.82 + delay;
+ // Shift the whole transition, preserving its travel length and speed.
+ distance = Math.max(
+ 1,
+ center - scroller.clientHeight * 0.32 + delay - start
+ );
+ if (!reduced.matches) {
+ prepare();
+ overlay!.hidden = true;
+ }
update();
};
const resize = new ResizeObserver(measure);
resize.observe(section);
resize.observe(scroller);
if (sourceSection) resize.observe(sourceSection);
- scroller.addEventListener('scroll', update, { passive: true });
+ let updateFrame = 0;
+ const scheduleUpdate = () => {
+ if (updateFrame) return;
+ updateFrame = requestAnimationFrame(() => {
+ updateFrame = 0;
+ update();
+ });
+ };
+ scroller.addEventListener('scroll', scheduleUpdate, { passive: true });
reduced.addEventListener('change', measure);
measure();
return () => {
resize.disconnect();
- scroller.removeEventListener('scroll', update);
+ scroller.removeEventListener('scroll', scheduleUpdate);
+ cancelAnimationFrame(updateFrame);
reduced.removeEventListener('change', measure);
clear();
};
diff --git a/apps/marketing/src/features/marketing/components/demo-mentions.css b/apps/marketing/src/features/marketing/components/demo-mentions.css
index 652ecfa467..b92862b5c3 100644
--- a/apps/marketing/src/features/marketing/components/demo-mentions.css
+++ b/apps/marketing/src/features/marketing/components/demo-mentions.css
@@ -69,8 +69,8 @@
.workspace-demo .demo-inline-mention.mention-person {
padding: 2px;
border-radius: 6px;
- color: var(--color-accent, #59a8ed);
- background: color-mix(in srgb, var(--color-accent, #59a8ed) 8%, transparent);
+ color: var(--color-link, #59a8ed);
+ background: color-mix(in srgb, var(--color-link, #59a8ed) 8%, transparent);
white-space: nowrap;
}
.workspace-demo .demo-inline-mention > .demo-mention-icon { position: relative; top: .125em; width: 1em; height: 1em; margin-inline: 4px; }
diff --git a/apps/marketing/src/features/marketing/components/email/email-demos.css b/apps/marketing/src/features/marketing/components/email/email-demos.css
index 5e0aa673e8..368a555c36 100644
--- a/apps/marketing/src/features/marketing/components/email/email-demos.css
+++ b/apps/marketing/src/features/marketing/components/email/email-demos.css
@@ -119,7 +119,7 @@
.homepage-email-app-surface {
position: relative; display: flex; flex-direction: column;
- min-height: var(--homepage-email-height, 560px); padding: 16px;
+ min-height: var(--homepage-email-height, 500px); padding: 16px;
}
.homepage-email-app-toolbar {
display: flex; flex: none; align-items: center; justify-content: flex-end;
diff --git a/apps/marketing/src/features/marketing/components/homepage-email-compose.css b/apps/marketing/src/features/marketing/components/homepage-email-compose.css
index 74238587a1..4206c780a5 100644
--- a/apps/marketing/src/features/marketing/components/homepage-email-compose.css
+++ b/apps/marketing/src/features/marketing/components/homepage-email-compose.css
@@ -1,5 +1,5 @@
/* Reserve the generated draft's space, but let edits grow with the page. */
-.homepage-email-demo { position: relative; isolation: isolate; min-height: var(--homepage-email-height, 560px); }
+.homepage-email-demo { position: relative; isolation: isolate; min-height: var(--homepage-email-height, 500px); }
.homepage-email-demo [data-slot='button'][data-size='sm'][data-variant='ghost'] {
background: transparent;
border: 0;
@@ -35,7 +35,7 @@
.homepage-email-demo::after, .homepage-email-demo [data-document-mention] { animation: none; }
}
/* Frozen composer geometry and colors: changing the app cannot restyle the site. */
-.homepage-email-surface { position: relative; display: flex; flex-direction: column; min-height: var(--homepage-email-height, 560px); padding: 16px; border: 0; border-radius: 26.25px; background: oklch(0.17 0.002 250); color: #fff; box-shadow: 0 10px 40px -8px #0004; }
+.homepage-email-surface { position: relative; display: flex; flex-direction: column; min-height: var(--homepage-email-height, 500px); padding: 16px; border: 0; border-radius: 26.25px; background: oklch(0.17 0.002 250); color: #fff; box-shadow: 0 10px 40px -8px #0004; }
.homepage-email-surface::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; border: 1px solid #ffffff08; background: linear-gradient(135deg, #ffffff18, transparent 45%) border-box; mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0); mask-composite: exclude; padding: 1px; }
.homepage-email-fields { flex: none; padding-bottom: 4px; }
.homepage-email-row { display: flex; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid #ffffff0d; }
@@ -48,7 +48,7 @@
.homepage-email-bcc { margin-left: auto; border: 0; background: transparent; padding: 0 8px; height: 24px; color: #a8a8a8; font-size: 12px; line-height: 16px; }
.homepage-email-generating { margin-left: auto; color: #a8a8a8; font-size: 12px; }
.homepage-email-body-wrap { flex: 1 0 auto; min-height: 0; margin-top: 16px; overflow: visible; font-size: 14px; line-height: 24px; }
-.homepage-email-body { min-height: 224px; overflow: visible; outline: none; overflow-wrap: anywhere; }
+.homepage-email-body { min-height: 184px; overflow: visible; outline: none; overflow-wrap: anywhere; }
.homepage-email-body p { margin: 16px 0; font-size: 14px; line-height: 24px; }
.homepage-email-body p:first-child { margin-top: 6px; }
.homepage-email-body p:last-child { margin-bottom: 6px; }
diff --git a/apps/marketing/src/features/marketing/components/workspace-story.css b/apps/marketing/src/features/marketing/components/workspace-story.css
index dbc809d072..8aa0cf5b4d 100644
--- a/apps/marketing/src/features/marketing/components/workspace-story.css
+++ b/apps/marketing/src/features/marketing/components/workspace-story.css
@@ -53,7 +53,7 @@
.homepage-founder-rule { color: color-mix(in srgb, var(--color-ink) 16%, transparent); }
@media (max-width: 699px) { .homepage-founder-letter { font-size: 12px; } }
.homepage-feature-email, .homepage-feature-spreadsheet { max-width: 920px; margin-inline: auto; }
-.homepage-feature-email { --homepage-email-height: 560px; }
+.homepage-feature-email { --homepage-email-height: 500px; }
.homepage-feature-email .homepage-email-demo { --color-composer: var(--color-surface-0); }
.homepage-feature-email .homepage-compose-loading { height: var(--homepage-email-height); min-height: var(--homepage-email-height); }
.homepage-spreadsheet { display: flex; flex-direction: column; height: 460px; overflow: hidden; border: 1px solid var(--color-edge-muted); border-radius: 16px; background: var(--color-surface); }
@@ -114,6 +114,6 @@
.homepage-agent-avatar { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--color-panel); border: 1px solid var(--color-edge-muted); color: var(--color-ink); }
.homepage-agent-avatar[data-agent=claude] { color: #d97757; }
.homepage-agent-label { margin-left: 7px; font-size: 10px; color: var(--color-ink-placeholder); }
-.homepage-person-mention { color: var(--color-orange); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
+.homepage-person-mention { color: var(--color-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 30%, transparent); text-underline-offset: 3px; }
/* Keep the next transition's traveling layer behind the unification copy. */
.homepage-sections { z-index: 1; }
diff --git a/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.ts b/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.ts
index 26c6738152..c2c1dd0a03 100644
--- a/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.ts
+++ b/apps/marketing/src/features/marketing/primitives/createEmailDemoGeneration.ts
@@ -9,7 +9,6 @@ const parts: EmailDemoToken[] = [
' and the ',
{ kind: 'md', label: 'Team rollout plan' },
'.\n',
- 'I’ve cc’d Julia to help with setup. Does Thursday at 9 AM work for a follow-up?\n',
'Best,\nJacob',
];
const tokens = parts.flatMap((part): EmailDemoToken[] =>
diff --git a/apps/marketing/src/features/setup/components/WelcomeSteps.tsx b/apps/marketing/src/features/setup/components/WelcomeSteps.tsx
index 0f74c25de4..f97e5e7e21 100644
--- a/apps/marketing/src/features/setup/components/WelcomeSteps.tsx
+++ b/apps/marketing/src/features/setup/components/WelcomeSteps.tsx
@@ -137,11 +137,11 @@ export function WelcomeStep(props: {
<h1
tabindex="-1"
data-welcome-heading
- class="font-[Roboto_Slab_Variable] font-[315] text-4xl leading-[1.12] tracking-tight sm:text-5xl md:text-[60px]"
+ class="font-[Roboto_Slab_Variable] font-[315] text-[clamp(24px,8vw,36px)] leading-[1.12] tracking-tight sm:text-5xl md:text-[60px]"
>
{props.title ?? (
<>
- The unified workspace
+ <span class="whitespace-nowrap">The unified workspace</span>
<br />
<span class="inline-block" data-welcome-company>
for your company.