Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: drop narrational comments from the studio cards

Richie McIlroy617371c6c45b
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/canvas.tsx b/apps/web/components/pages/HomeTwo/studio/cards/canvas.tsx
index ec82e7099..5c3971fc5 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/canvas.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/canvas.tsx
@@ -16,11 +16,6 @@ import {
useLoop,
} from "../shared";
-/* Any canvas, one recording: the editor's real Background section along
- * the bottom (source pill, wallpaper categories, the Cities row, Padding
- * and Corners) and the canvas result above it. The wallpaper appears only
- * as a swatch and as the picked background, never as scenery. */
-
const SOURCES = [
"Desktop",
"Wallpaper",
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/captions.tsx b/apps/web/components/pages/HomeTwo/studio/cards/captions.tsx
index fde1d2b21..3c65ac356 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/captions.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/captions.tsx
@@ -15,10 +15,6 @@ import {
useLoop,
} from "../shared";
-/* Captions, generated locally: the caption itself is the hero, with the
- * active word highlighted the way the Karaoke style does it. The Captions
- * tab beside it is the real one: a local model, a language, Generate. */
-
const WIN = { left: 10, top: 38, scale: 1.12 };
const PANEL = { left: 368, top: 12, w: 196, scale: 1.1 };
const LINES = [
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/clips.tsx b/apps/web/components/pages/HomeTwo/studio/cards/clips.tsx
index 8227288d8..495319452 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/clips.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/clips.tsx
@@ -31,10 +31,6 @@ import {
Waveform,
} from "../shared";
-/* Clips, speed, and music: the timeline card, nothing else. Trim a clip,
- * flip the second one to 2x, add a crossfade, then lay a library track
- * underneath. Sizes are the editor's own, scaled up to read at card size. */
-
const S = 1.5;
const LOGICAL = { w: CANVAS.w / S, h: CANVAS.h / S };
const INSET = 14;
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/grades.tsx b/apps/web/components/pages/HomeTwo/studio/cards/grades.tsx
index e914e1710..2b8073297 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/grades.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/grades.tsx
@@ -21,10 +21,6 @@ import {
useLoop,
} from "../shared";
-/* Color grades: a before/after wipe across the whole frame (background
- * included) each time a preset is picked in the editor's real
- * "Color correction" section. */
-
type Grade = { name: string; filter: string; tint: string };
const GRADES: Grade[] = [
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/mask.tsx b/apps/web/components/pages/HomeTwo/studio/cards/mask.tsx
index 5b5c8d760..50eaf7df3 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/mask.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/mask.tsx
@@ -11,10 +11,6 @@ import {
} from "../../scenes/engine";
import { ED, Ground, RecordedWindow, Segmented, useLoop } from "../shared";
-/* Blur what is private: the mask is drawn on the canvas exactly as the
- * editor draws it (2px #202020 box, black handles), and the real choices
- * follow: Sensitive or Highlight, then the Effect, Blur or Pixelate. */
-
const WIN = { left: 40, top: 44, scale: 1.45 };
const MASK = {
x: WIN.left + Math.round(72 * WIN.scale),
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/scenes.tsx b/apps/web/components/pages/HomeTwo/studio/cards/scenes.tsx
index 419426dd3..83fdf1569 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/scenes.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/scenes.tsx
@@ -27,10 +27,6 @@ import {
useLoop,
} from "../shared";
-/* Scenes for screen and camera: the editor's Camera Layout tiles, clicked
- * one by one, re-arrange the screen and the camera inside the frame. The
- * camera is the subject here, so this is the one card with the webcam. */
-
const MODES = [
"Default",
"Camera Only",
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/text.tsx b/apps/web/components/pages/HomeTwo/studio/cards/text.tsx
index 0535fe8fa..0f445b305 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/text.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/text.tsx
@@ -5,10 +5,6 @@ import { useRef } from "react";
import { easeOut, lerp, span, typed, useSceneState } from "../../scenes/engine";
import { Chip, ED, Ground, RecordedWindow, useLoop } from "../shared";
-/* Text that animates: three of the editor's text templates play over the
- * recording with their real In animation, and the Templates grid along the
- * bottom shows which one is on. */
-
const WIN = { left: 120, top: 12, scale: 1 };
const DURATION = 10000;
const LOWER = { enter: 400, exit: 2900 };
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/three-d.tsx b/apps/web/components/pages/HomeTwo/studio/cards/three-d.tsx
index f5194a3fb..e695c863f 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/three-d.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/three-d.tsx
@@ -4,10 +4,6 @@ import { useRef } from "react";
import { easeInOut, lerp, span, useSceneState } from "../../scenes/engine";
import { CANVAS, Ground, HUE, mix, RecordedWindow, useLoop } from "../shared";
-/* 3D camera moves: the recording tilted into perspective, playing the
- * editor's three starter moves in a row. The starter cards along the
- * bottom are the real "Add a 3D scene" picker, in the editor's dark theme. */
-
const DARK = {
card: "#1b1b1e",
line: "rgba(255,255,255,0.08)",
diff --git a/apps/web/components/pages/HomeTwo/studio/cards/zoom.tsx b/apps/web/components/pages/HomeTwo/studio/cards/zoom.tsx
index 57c7a9a10..7490e08ec 100644
--- a/apps/web/components/pages/HomeTwo/studio/cards/zoom.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/cards/zoom.tsx
@@ -27,10 +27,6 @@ import {
useLoop,
} from "../shared";
-/* Automatic zoom: a recorded click becomes a zoom segment. The frame zooms
- * into the click point, the Zoom lane fills with the generated segment and
- * the segment's own panel shows the real amount and mode. */
-
const WIN = { left: 196, top: 18, scale: 1.05 };
const FOCUS = { x: WIN.left + 300 * WIN.scale, y: WIN.top + 74 * WIN.scale };
const FRAME_H = 292;
diff --git a/apps/web/components/pages/HomeTwo/studio/shared.tsx b/apps/web/components/pages/HomeTwo/studio/shared.tsx
index 4c462e60c..352079e4c 100644
--- a/apps/web/components/pages/HomeTwo/studio/shared.tsx
+++ b/apps/web/components/pages/HomeTwo/studio/shared.tsx
@@ -23,7 +23,8 @@ export type StudioCard = {
export const CANVAS = { w: 600, h: 375 } as const;
-/** The desktop editor's light theme (apps/desktop/src/styles/theme.css, ed-* tokens). */
+// Mirrors the desktop editor's ed-* light tokens (apps/desktop/src/styles/theme.css) and
+// Timeline/styles.css; keep in sync when the editor theme changes.
export const ED = {
window: "#f1f1f3",
card: "#ffffff",
@@ -43,7 +44,6 @@ export const ED = {
popShadow: "0 12px 32px -12px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,0,0,0.075)",
} as const;
-/** Timeline track hues (the editor's single source of truth). */
export const HUE = {
clip: "#3b82f6",
zoom: "#64748b",
@@ -107,11 +107,6 @@ const GROUND_BG: Record<Tone, string> = {
gradient: "linear-gradient(135deg, #C3DCF8 0%, #DACBF9 55%, #F6D9EC 100%)",
};
-/**
- * The card canvas: a flat, quiet ground with nothing on it. Every card
- * decides what earns the eye; nothing shares a wallpaper or a webcam by
- * default.
- */
export const Ground = ({
tone = "light",
className,
@@ -181,7 +176,6 @@ export const RecordedWindow = ({
);
};
-/** Only for the card whose subject is the camera itself. */
export const CameraBubble = ({
playing,
size = 96,
@@ -253,9 +247,6 @@ export const Chip = ({
</span>
);
-/* ---- Editor sidebar primitives (1:1 with apps/desktop/src/routes/editor/ui.tsx) ---- */
-
-/** A floating editor card: white, rounded-xl, the editor's pop shadow. */
export const Panel = ({
className,
style,
@@ -276,7 +267,6 @@ export const Panel = ({
</div>
);
-/** Section title: 12px/500 text-2, min height 22. */
export const SectionTitle = ({
children,
right,
@@ -292,7 +282,6 @@ export const SectionTitle = ({
</div>
);
-/** Stacked field: 13px/400 text-1 label, gap 8. */
export const Field = ({
label,
value,
@@ -335,7 +324,6 @@ export const Field = ({
</div>
);
-/** Inline field: 34px row, label left, control right. */
export const InlineField = ({
label,
value,
@@ -439,7 +427,6 @@ export const Segmented = ({
</div>
);
-/** The editor's `Toggle` (md): 44x24, accent when on. */
export const Toggle = ({ on }: { on: boolean }) => (
<span
className="relative inline-flex h-6 w-11 shrink-0 rounded-full p-0.5 transition-colors duration-200"
@@ -455,7 +442,6 @@ export const Toggle = ({ on }: { on: boolean }) => (
</span>
);
-/** Small editor button: 22px, 12px/500, rounded 7. */
export const EditorButton = ({
children,
primary,
@@ -482,7 +468,6 @@ export const EditorButton = ({
</span>
);
-/** Selectable tile like the Camera Layout / preset grids: 30px, ctl bg, hover-ish when selected. */
export const Tile = ({
selected,
children,
@@ -509,14 +494,11 @@ export const Tile = ({
</span>
);
-/* ---- Editor timeline primitives (1:1 with Timeline/styles.css) ---- */
-
export const TRACK_H = 44;
export const TRACK_GAP = 6;
export const TRACK_GUTTER = 96;
export const RULER_H = 26;
-/** The 96px row gutter: a 22px hue tile + an 11px label. */
export const TrackLabel = ({
hue,
icon,
@@ -577,7 +559,6 @@ export const Lane = ({
</div>
);
-/** A timeline segment: 13% tint, 1px ring, 3px hue bar on the left, dark tinted labels. */
export const Segment = ({
hue,
label,
@@ -640,7 +621,6 @@ export const Segment = ({
</div>
);
-/** The ruler header: 26px, 11px tabular labels in text-3. */
export const Ruler = ({
labels,
span: total,
@@ -675,7 +655,6 @@ export const Ruler = ({
</div>
);
-/** The playhead: a 1px line with a 12px dot ringed in card white. */
export const Playhead = ({
playheadRef,
top = 0,
@@ -709,7 +688,6 @@ export const WAVES = Array.from({ length: 64 }, (_, i) => {
return { key: `w${i}`, h: 0.25 + 0.7 * (0.5 * a + 0.5 * b) };
});
-/** The 18px waveform strip drawn along the bottom of a clip, in the track hue. */
export const Waveform = ({
from = 0,
to = WAVES.length,
@@ -740,7 +718,6 @@ export const Waveform = ({
</span>
);
-/** The speed chip inside a clip segment. */
export const SpeedChip = ({
children,
active,