Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

feat(onboarding): real copy and drag-in demos, autoplay, desktop taskbar

Deepender258bd90535e3fb
diff --git a/src/Onboarding.tsx b/src/Onboarding.tsx
index 36a60be..0e20788 100644
--- a/src/Onboarding.tsx
+++ b/src/Onboarding.tsx
@@ -23,6 +23,9 @@ import { DEFAULT_SETTINGS, type Settings, type StickPosition } from '../shared/t
import { PEN_PATH, PEN_TRANSFORM, PEN_WIDTH, GLASS_BOX, SHADOW_BOX, BLUR_BOX, penProgress } from './onboarding/lettering'
import { DEMOS, Run, STOP, itemsFor, playLooped, resetDemoState, watchActivity, type Stage } from './onboarding/tour'
import { laptopBar, tourBar, shelfTransform, SHELF_SCALE, TOUR_SCREEN_TOP } from './onboarding/edgeBar'
+import { PAGE_LINES, STACK_FILES } from './onboarding/demoItems'
+import { Autoplay, readingMs } from './onboarding/autoplay'
+import { fileIconUrl, fileKindOf } from './lib/fileKind'
import skyUrl from './assets/onboarding/sky.png'
import glassUrl from './assets/onboarding/glass.png'
import glassShadowUrl from './assets/onboarding/glass-shadow.png'
@@ -45,13 +48,26 @@ const TOUCH_MS = 450
const WRITE_MS = 3200
const HOLD_MS = 600
+/** File Explorer in the drag-in demo: the PDF it drags in, and the files the stack demos copy later. */
+const FOLDER: Array<[string, number]> = [['Itinerary.pdf', 412_000], ...STACK_FILES]
+
+/** A Windows 11 window's caption buttons: minimize, maximize, close. */
+const Caption = () => (
+ <svg width="76" height="10" viewBox="0 0 76 10" fill="none" stroke="currentColor" strokeWidth="1">
+ <path d="M2 5.5h9" />
+ <rect x="33.5" y="1.5" width="8" height="8" rx="1.5" />
+ <path d="M65 1.5l7 7M72 1.5l-7 7" />
+ </svg>
+)
+
export function Onboarding() {
const { t } = useTranslation()
const steps: Step[] = [
{ key: 'welcome', view: 'frame', open: false, title: t('onboarding.welcomeTitle'), body: t('onboarding.welcomeDesc') },
{ key: 'collect', view: 'full', open: false, title: t('onboarding.collectTitle'), body: t('onboarding.collectDesc') },
- { key: 'drag', view: 'full', open: true, title: t('onboarding.dragTitle'), body: t('onboarding.dragDesc') },
+ { key: 'dropin', view: 'full', open: false, title: t('onboarding.dropInTitle'), body: t('onboarding.dropInDesc') },
{ key: 'stacks', view: 'full', open: true, title: t('onboarding.stacksTitle'), body: t('onboarding.stacksDesc') },
+ { key: 'drag', view: 'full', open: true, title: t('onboarding.dragTitle'), body: t('onboarding.dragDesc') },
{ key: 'ungroup', view: 'full', open: true, title: t('onboarding.ungroupTitle'), body: t('onboarding.ungroupDesc') },
{ key: 'merge', view: 'full', open: true, title: t('onboarding.mergeTitle'), body: t('onboarding.mergeDesc') },
{ key: 'preview', view: 'full', open: true, title: t('onboarding.previewTitle'), body: t('onboarding.previewDesc') },
@@ -70,9 +86,11 @@ export function Onboarding() {
const [barShown, setBarShown] = useState(true)
/** Settings frame: the bar moves to the user's real edge once the frame is back in place. */
const [realEdge, setRealEdge] = useState(false)
- /** Settings frame: the camera moves in on the screen (with its taskbar), as on the user's own desktop. */
+ /** Settings frame: the camera moves in on the screen, as on the user's own desktop. */
const [closeUp, setCloseUp] = useState(false)
const [real, setReal] = useState<Settings | null>(null)
+ /** Autoplay: on unless the user asked for reduced motion; the button by the progress dots toggles it. */
+ const [playing, setPlaying] = useState(true)
const stageRef = useRef<HTMLDivElement>(null)
const cursorRef = useRef<HTMLDivElement>(null)
@@ -80,6 +98,8 @@ export function Onboarding() {
const keysLabelRef = useRef<HTMLSpanElement>(null)
const notesRef = useRef<HTMLDivElement>(null)
const notesImageRef = useRef<HTMLDivElement>(null)
+ const browserRef = useRef<HTMLDivElement>(null)
+ const explorerRef = useRef<HTMLDivElement>(null)
const penRef = useRef<SVGPathElement>(null)
const lettersRef = useRef<HTMLDivElement>(null)
const shadowRef = useRef<SVGImageElement>(null)
@@ -88,6 +108,29 @@ export function Onboarding() {
const later = (ms: number, fn: () => void) => timers.current.push(window.setTimeout(fn, ms))
+ // Autoplay moves on from whichever step is up, with the latest go (see below).
+ const atRef = useRef(0)
+ const goRef = useRef<(i: number) => void>(() => {})
+ const autoplay = useRef<Autoplay | null>(null)
+ if (!autoplay.current) {
+ autoplay.current = new Autoplay(() => {
+ const i = atRef.current
+ // it never ends the tour: the last step (the user's own choices) waits for Get Started
+ if (i < last) goRef.current(i + 1)
+ }, true)
+ }
+ const attachFill = useCallback((el: HTMLElement | null) => autoplay.current!.attach(el), [])
+ useEffect(() => autoplay.current!.setPlaying(playing), [playing])
+ useEffect(() => {
+ const vis = () => autoplay.current!.setHidden(document.visibilityState === 'hidden')
+ vis()
+ document.addEventListener('visibilitychange', vis)
+ return () => {
+ document.removeEventListener('visibilitychange', vis)
+ autoplay.current!.stop()
+ }
+ }, [])
+
const stage = (): Stage => ({
root: stageRef.current!,
cursor: cursorRef.current!,
@@ -95,6 +138,8 @@ export function Onboarding() {
keysLabel: keysLabelRef.current!,
notes: notesRef.current!,
notesImage: notesImageRef.current!,
+ browser: browserRef.current!,
+ explorer: explorerRef.current!,
showShelf: (on) => {
setShelf(on)
setBarShown(!on)
@@ -106,7 +151,7 @@ export function Onboarding() {
const s = steps[i]
const demo = DEMOS[s.key]
if (!demo) return
- run.sleep(delay).then(() => playLooped(run, stage(), s.key, s.open, demo)).catch((e) => { if (e !== STOP) console.error(e) })
+ run.sleep(delay).then(() => playLooped(run, stage(), s.key, s.open, demo, () => autoplay.current!.played())).catch((e) => { if (e !== STOP) console.error(e) })
}
// The tour's own store: the user's settings (language, motion, accent), the
@@ -136,6 +181,7 @@ export function Onboarding() {
open: false
})
applyReduceMotion(settings.reduceMotion)
+ if (settings.reduceMotion) setPlaying(false)
// Start once every image is decoded, so the first frame is already the blurred scene.
const decode = (src: string) => { const im = new Image(); im.src = src; return im.decode().catch(() => {}) }
await Promise.all([skyUrl, glassUrl, glassShadowUrl, glassBlurUrl, fogHeavyUrl, fogMidUrl].map(decode))
@@ -197,7 +243,7 @@ export function Onboarding() {
const s = steps[i]
const prev = steps[at]
runRef.current?.cancel()
- resetDemoState(stage())
+ resetDemoState(stage(), s.key)
const run = new Run()
runRef.current = run
setAt(i)
@@ -237,6 +283,16 @@ export function Onboarding() {
window.close()
}
+ atRef.current = at
+ goRef.current = go
+
+ // Autoplay's clock for a step starts when its text is up: after the intro, then on each step change.
+ useEffect(() => {
+ if (intro !== 'done') return
+ autoplay.current!.shown(steps[at].key, readingMs(steps[at].title, steps[at].body))
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [at, intro])
+
const next = () => (at < last ? go(at + 1) : void finish())
// Settings the user picks on the last step are saved for real.
@@ -267,16 +323,55 @@ export function Onboarding() {
{/* The cloud wallpaper: one pixel per 2px dither cell, drawn crisp (it never moves). */}
<img className="ob-sky" src={skyUrl} alt="" />
+ {/* A web page, for the copy demo: a sentence, the address and the photo get copied. */}
+ <div className="ob-win ob-browser" ref={browserRef}>
+ <div className="ob-win-bar">
+ <span className="ob-tab"><i>W</i>Sea of clouds - Wikipedia</span>
+ <Caption />
+ </div>
+ <div className="ob-address">
+ <span className="ob-url"><i className="ob-hl" />en.wikipedia.org/wiki/Sea_of_clouds</span>
+ </div>
+ <div className="ob-page">
+ <div className="ob-article">
+ <b>Sea of clouds</b>
+ {PAGE_LINES.map((line) => <span key={line} className="ob-line"><i className="ob-hl" />{line}</span>)}
+ <span className="ob-rest">It is most often seen on cold, clear mornings.</span>
+ </div>
+ <div className="ob-photo" />
+ </div>
+ <div className="ob-menu">
+ <span>Open image in new tab</span>
+ <span>Save image as…</span>
+ <span className="is-copy">Copy image</span>
+ <span>Copy image link</span>
+ </div>
+ </div>
+
+ {/* File Explorer, for the drag-in demo. */}
+ <div className="ob-win ob-explorer" ref={explorerRef}>
+ <div className="ob-win-bar">
+ <span className="ob-notes-title"><i className="ob-folder" />Documents</span>
+ <Caption />
+ </div>
+ <div className="ob-files">
+ <div className="ob-files-head"><span>Name</span><span>Size</span></div>
+ <i className="ob-band" />
+ {FOLDER.map(([name, size]) => (
+ <div key={name} className={`ob-file${name.endsWith('.pdf') ? ' is-pdf' : ''}`}>
+ <img src={fileIconUrl(fileKindOf(name))} alt="" />
+ <span>{name}</span>
+ <em>{Math.round(size / 1024).toLocaleString('en-US')} KB</em>
+ </div>
+ ))}
+ </div>
+ </div>
+
{/* Another app, for the drag demo. */}
<div className="ob-notes" ref={notesRef}>
<div className="ob-notes-bar">
<span className="ob-notes-title"><i />Trip plan</span>
- {/* Windows caption buttons: minimize, maximize, close */}
- <svg width="76" height="10" viewBox="0 0 76 10" fill="none" stroke="currentColor" strokeWidth="1">
- <path d="M2 5.5h9" />
- <rect x="33.5" y="1.5" width="8" height="8" rx="1.5" />
- <path d="M65 1.5l7 7M72 1.5l-7 7" />
- </svg>
+ <Caption />
</div>
<div className="ob-notes-body">
<b>Weekend at the summit</b>
@@ -306,7 +401,8 @@ export function Onboarding() {
<div className="ob-laptop">
<div className="ob-bezel" />
<div className="ob-base" />
- <div className={`ob-taskbar${closeUp ? ' is-on' : ''}`}>
+ {/* The screen's taskbar: up whenever the whole laptop is in view (welcome, settings). */}
+ <div className={`ob-taskbar${cam === 'frame' ? ' is-on' : ''}`}>
<div className="ob-task-apps"><i className="ob-start" /><i className="ob-search" /><i /><i /><i /></div>
<div className="ob-task-tray">
<svg width="9" height="7" viewBox="0 0 9 7"><path d="M.5 2.6a5.6 5.6 0 0 1 8 0M2 4.1a3.4 3.4 0 0 1 5 0M3.5 5.6a1.3 1.3 0 0 1 2 0" fill="none" stroke="#fff" strokeWidth=".9" strokeLinecap="round" /></svg>
@@ -337,7 +433,31 @@ export function Onboarding() {
</div>
<div className={`ob-ui${locked ? ' is-locked' : ''}${s.key === 'preview' ? ' is-side' : ''}${s.key === 'settings' ? ' is-low' : ''}`}>
- <div className="ob-dots">{steps.map((st, i) => <i key={st.key} className={i === at ? 'on' : ''} />)}</div>
+ <div className="ob-progress">
+ {/* The active dash fills as the step plays and rests (autoplay); the last one is simply full. */}
+ <div className="ob-dots">
+ {steps.map((st, i) => (
+ <i key={st.key} className={i === at ? 'on' : ''}>
+ {i === at && <b ref={i === last ? undefined : attachFill} className={i === last ? 'is-full' : ''} />}
+ </i>
+ ))}
+ </div>
+ {at < last && (
+ <button
+ type="button"
+ className="ob-play"
+ aria-pressed={playing}
+ aria-label={playing ? t('onboarding.pause') : t('onboarding.play')}
+ onClick={() => setPlaying((p) => !p)}
+ >
+ {playing ? (
+ <svg width="8" height="8" viewBox="0 0 8 8" fill="currentColor"><rect x="1" y="0.5" width="2.2" height="7" rx="0.6" /><rect x="4.8" y="0.5" width="2.2" height="7" rx="0.6" /></svg>
+ ) : (
+ <svg width="8" height="8" viewBox="0 0 8 8" fill="currentColor"><path d="M1.6 1.1v5.8c0 .5.5.8.9.5l4.4-2.9c.4-.2.4-.8 0-1L2.5.6c-.4-.3-.9 0-.9.5z" /></svg>
+ )}
+ </button>
+ )}
+ </div>
<div className="ob-copy" key={s.key}>
<h1>{s.title}</h1>
<p>{s.body}</p>
diff --git a/src/assets/onboarding/ridge.png b/src/assets/onboarding/ridge.png
deleted file mode 100644
index 19b8697..0000000
Binary files a/src/assets/onboarding/ridge.png and /dev/null differ
diff --git a/src/components/Panel.tsx b/src/components/Panel.tsx
index c353fef..8bfa273 100644
--- a/src/components/Panel.tsx
+++ b/src/components/Panel.tsx
@@ -121,8 +121,15 @@ export function Panel() {
const [beaconFrame, setBeaconFrame] = useState<{ left: number; top: number; width: number; height: number } | null>(null)
useLayoutEffect(() => {
if (!(showEdgeBeacon || showDragCue) || !containerRef.current) return
+ // In .root's own pixels: the viewport in the app; in the onboarding tour the
+ // shelf is scaled and moved (.ob-shelf), and viewport pixels would land twice transformed.
const r = containerRef.current.getBoundingClientRect()
- setBeaconFrame({ left: r.left, top: r.top, width: r.width, height: r.height })
+ const host = containerRef.current.closest<HTMLElement>('.root')
+ const h = host?.getBoundingClientRect()
+ const k = host && h && host.offsetWidth ? h.width / host.offsetWidth : 1
+ const ox = h?.left ?? 0
+ const oy = h?.top ?? 0
+ setBeaconFrame({ left: (r.left - ox) / k, top: (r.top - oy) / k, width: r.width / k, height: r.height / k })
}, [
showEdgeBeacon,
showDragCue,
diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts
index ac2110b..4df0797 100644
--- a/src/i18n/translations.ts
+++ b/src/i18n/translations.ts
@@ -261,6 +261,8 @@ export interface TranslationKeys {
welcomeDesc: string
collectTitle: string
collectDesc: string
+ dropInTitle: string
+ dropInDesc: string
dragTitle: string
dragDesc: string
stacksTitle: string
@@ -277,6 +279,8 @@ export interface TranslationKeys {
back: string
next: string
getStarted: string
+ play: string
+ pause: string
extractedCard: string
dropToExtract: string
proTips: string
@@ -836,6 +840,8 @@ export const en: TranslationKeys = {
"welcomeDesc": "Everything you copy, one move away. Edge-Drop waits on the edge of your screen: move your pointer there to open it, move away to hide it.",
"collectTitle": "Copy like always",
"collectDesc": "Text, links, images, files: press Ctrl+C and Edge-Drop keeps it, quietly, in the background.",
+ "dropInTitle": "Or drag it in",
+ "dropInDesc": "Drag files, images, links or text to the edge from any app or folder. The shelf opens to catch them.",
"dragTitle": "Drag it where you need it",
"dragDesc": "Open the shelf and drag any card straight into an app, a folder or a document.",
"stacksTitle": "Files stay together",
@@ -852,6 +858,8 @@ export const en: TranslationKeys = {
"back": "Back",
"next": "Next",
"getStarted": "Get Started",
+ "play": "Play the tour",
+ "pause": "Pause the tour",
"extractedCard": "Extracted card",
"dropToExtract": "Drop to extract back into a standalone card",
"proTips": "Pro Tips",
@@ -1237,6 +1245,8 @@ export const es: TranslationKeys = {
"welcomeDesc": "Todo lo que copias, a un gesto. Edge-Drop espera en el borde de la pantalla: lleva el puntero allí para abrirlo y aléjalo para ocultarlo.",
"collectTitle": "Copia como siempre",
"collectDesc": "Texto, enlaces, imágenes, archivos: pulsa Ctrl+C y Edge-Drop lo guarda, discretamente, en segundo plano.",
+ "dropInTitle": "O arrástralo",
+ "dropInDesc": "Arrastra archivos, imágenes, enlaces o texto al borde desde cualquier aplicación o carpeta. El panel se abre para recibirlos.",
"dragTitle": "Arrástralo donde lo necesites",
"dragDesc": "Abre el panel y arrastra cualquier tarjeta directamente a una aplicación, una carpeta o un documento.",
"stacksTitle": "Los archivos, siempre juntos",
@@ -1253,6 +1263,8 @@ export const es: TranslationKeys = {
"back": "Atrás",
"next": "Siguiente",
"getStarted": "Empezar",
+ "play": "Reproducir el recorrido",
+ "pause": "Pausar el recorrido",
"extractedCard": "Tarjeta extraída",
"dropToExtract": "Soltar para extraer como tarjeta independiente",
"proTips": "Consejos",
@@ -1638,6 +1650,8 @@ export const fr: TranslationKeys = {
"welcomeDesc": "Tout ce que vous copiez, à portée de geste. Edge-Drop attend au bord de votre écran : approchez le pointeur pour l'ouvrir, éloignez-le pour le masquer.",
"collectTitle": "Copiez comme d'habitude",
"collectDesc": "Texte, liens, images, fichiers : appuyez sur Ctrl+C et Edge-Drop les conserve, discrètement, en arrière-plan.",
+ "dropInTitle": "Ou glissez-le",
+ "dropInDesc": "Glissez des fichiers, images, liens ou textes vers le bord depuis n'importe quelle application ou dossier. L'étagère s'ouvre pour les recevoir.",
"dragTitle": "Glissez-le là où il faut",
"dragDesc": "Ouvrez l'étagère et glissez n'importe quelle carte directement dans une application, un dossier ou un document.",
"stacksTitle": "Vos fichiers restent groupés",
@@ -1654,6 +1668,8 @@ export const fr: TranslationKeys = {
"back": "Retour",
"next": "Suivant",
"getStarted": "Commencer",
+ "play": "Lancer la visite",
+ "pause": "Mettre la visite en pause",
"extractedCard": "Carte extraite",
"dropToExtract": "Déposer pour réextraire en carte autonome",
"proTips": "Astuces",
@@ -2039,6 +2055,8 @@ export const de: TranslationKeys = {
"welcomeDesc": "Alles, was Sie kopieren, nur eine Bewegung entfernt. Edge-Drop wartet am Bildschirmrand: Zeiger dorthin bewegen zum Öffnen, wegbewegen zum Ausblenden.",
"collectTitle": "Kopieren wie immer",
"collectDesc": "Text, Links, Bilder, Dateien: Drücken Sie Strg+C, und Edge-Drop bewahrt alles auf – leise im Hintergrund.",
+ "dropInTitle": "Oder hineinziehen",
+ "dropInDesc": "Ziehen Sie Dateien, Bilder, Links oder Text aus jeder App oder jedem Ordner an den Rand. Die Ablage öffnet sich und nimmt sie auf.",
"dragTitle": "Ziehen, wohin Sie wollen",
"dragDesc": "Öffnen Sie die Ablage und ziehen Sie eine beliebige Karte direkt in eine App, einen Ordner oder ein Dokument.",
"stacksTitle": "Dateien bleiben zusammen",
@@ -2055,6 +2073,8 @@ export const de: TranslationKeys = {
"back": "Zurück",
"next": "Weiter",
"getStarted": "Loslegen",
+ "play": "Tour abspielen",
+ "pause": "Tour anhalten",
"extractedCard": "Extrahierte Karte",
"dropToExtract": "Ablegen, um als eigenständige Karte zu extrahieren",
"proTips": "Profipps",
@@ -2440,6 +2460,8 @@ export const it: TranslationKeys = {
"welcomeDesc": "Tutto ciò che copi, a portata di gesto. Edge-Drop ti aspetta sul bordo dello schermo: porta lì il puntatore per aprirlo, allontanalo per nasconderlo.",
"collectTitle": "Copia come sempre",
"collectDesc": "Testo, link, immagini, file: premi Ctrl+C ed Edge-Drop li conserva, in silenzio, in background.",
+ "dropInTitle": "Oppure trascinalo dentro",
+ "dropInDesc": "Trascina file, immagini, link o testo verso il bordo da qualsiasi app o cartella. Lo scaffale si apre per accoglierli.",
"dragTitle": "Trascinalo dove ti serve",
"dragDesc": "Apri lo scaffale e trascina qualsiasi scheda direttamente in un'app, una cartella o un documento.",
"stacksTitle": "I file restano insieme",
@@ -2456,6 +2478,8 @@ export const it: TranslationKeys = {
"back": "Indietro",
"next": "Avanti",
"getStarted": "Inizia",
+ "play": "Avvia il tour",
+ "pause": "Metti in pausa il tour",
"extractedCard": "Scheda estratta",
"dropToExtract": "Rilascia per estrarre come scheda autonoma",
"proTips": "Suggerimenti",
@@ -2841,6 +2865,8 @@ export const pt: TranslationKeys = {
"welcomeDesc": "Tudo o que você copia, a um gesto de distância. O Edge-Drop espera na borda da tela: leve o ponteiro até lá para abrir e afaste para ocultar.",
"collectTitle": "Copie como sempre",
"collectDesc": "Texto, links, imagens, arquivos: pressione Ctrl+C e o Edge-Drop guarda tudo, discretamente, em segundo plano.",
+ "dropInTitle": "Ou arraste para dentro",
+ "dropInDesc": "Arraste arquivos, imagens, links ou texto até a borda a partir de qualquer aplicativo ou pasta. A prateleira se abre para recebê-los.",
"dragTitle": "Arraste para onde precisar",
"dragDesc": "Abra a prateleira e arraste qualquer cartão direto para um aplicativo, uma pasta ou um documento.",
"stacksTitle": "Arquivos ficam juntos",
@@ -2857,6 +2883,8 @@ export const pt: TranslationKeys = {
"back": "Voltar",
"next": "Próximo",
"getStarted": "Começar",
+ "play": "Reproduzir o tour",
+ "pause": "Pausar o tour",
"extractedCard": "Cartão extraído",
"dropToExtract": "Solte para extrair como cartão autônomo",
"proTips": "Dicas",
@@ -3242,6 +3270,8 @@ export const ru: TranslationKeys = {
"welcomeDesc": "Всё, что вы копируете, — на расстоянии одного движения. Edge-Drop ждёт у края экрана: наведите туда курсор, чтобы открыть, отведите — чтобы скрыть.",
"collectTitle": "Копируйте как обычно",
"collectDesc": "Текст, ссылки, изображения, файлы: нажмите Ctrl+C, и Edge-Drop незаметно сохранит всё в фоновом режиме.",
+ "dropInTitle": "Или перетащите",
+ "dropInDesc": "Перетащите файлы, изображения, ссылки или текст к краю экрана из любого приложения или папки. Полка откроется и примет их.",
"dragTitle": "Перетащите куда нужно",
"dragDesc": "Откройте полку и перетащите любую карточку прямо в приложение, папку или документ.",
"stacksTitle": "Файлы остаются вместе",
@@ -3258,6 +3288,8 @@ export const ru: TranslationKeys = {
"back": "Назад",
"next": "Далее",
"getStarted": "Начать",
+ "play": "Запустить обзор",
+ "pause": "Приостановить обзор",
"extractedCard": "Извлечённая карточка",
"dropToExtract": "Перетащите, чтобы извлечь как отдельную карточку",
"proTips": "Полезные советы",
@@ -3643,6 +3675,8 @@ export const ja: TranslationKeys = {
"welcomeDesc": "コピーしたものすべてに、ひと動きで。Edge-Drop は画面の端で待機しています。ポインターを近づけると開き、離すと隠れます。",
"collectTitle": "いつも通りコピー",
"collectDesc": "テキスト、リンク、画像、ファイル。Ctrl+C を押すだけで、Edge-Drop がバックグラウンドで静かに保存します。",
+ "dropInTitle": "ドラッグでも追加",
+ "dropInDesc": "どのアプリやフォルダーからでも、ファイル・画像・リンク・テキストを画面の端へドラッグ。パネルが開いて受け取ります。",
"dragTitle": "必要な場所へドラッグ",
"dragDesc": "パネルを開き、カードをアプリやフォルダー、ドキュメントへそのままドラッグできます。",
"stacksTitle": "ファイルはひとまとめに",
@@ -3659,6 +3693,8 @@ export const ja: TranslationKeys = {
"back": "戻る",
"next": "次へ",
"getStarted": "はじめる",
+ "play": "ツアーを再生",
+ "pause": "ツアーを一時停止",
"extractedCard": "抽出されたカード",
"dropToExtract": "ドロップして単独のカードに戻します",
"proTips": "使いこなすヒント",
@@ -4044,6 +4080,8 @@ export const ko: TranslationKeys = {
"welcomeDesc": "복사한 모든 것을 손짓 한 번으로. Edge-Drop은 화면 가장자리에서 기다립니다. 포인터를 가져가면 열리고, 멀어지면 숨겨집니다.",
"collectTitle": "평소처럼 복사하세요",
"collectDesc": "텍스트, 링크, 이미지, 파일. Ctrl+C를 누르면 Edge-Drop이 백그라운드에서 조용히 보관합니다.",
+ "dropInTitle": "끌어다 놓아도 돼요",
+ "dropInDesc": "어떤 앱이나 폴더에서든 파일, 이미지, 링크, 텍스트를 화면 가장자리로 드래그하세요. 선반이 열려 받아 줍니다.",
"dragTitle": "필요한 곳으로 드래그하세요",
"dragDesc": "선반을 열고 카드를 앱, 폴더 또는 문서로 바로 드래그하세요.",
"stacksTitle": "파일은 함께 모입니다",
@@ -4060,6 +4098,8 @@ export const ko: TranslationKeys = {
"back": "뒤로",
"next": "다음",
"getStarted": "시작하기",
+ "play": "둘러보기 재생",
+ "pause": "둘러보기 일시 정지",
"extractedCard": "추출된 카드",
"dropToExtract": "드롭하여 개별 카드로 추출",
"proTips": "프로 팁",
@@ -4445,6 +4485,8 @@ export const zhCN: TranslationKeys = {
"welcomeDesc": "复制的一切,触手可及。Edge-Drop 静候在屏幕边缘:将指针移过去即可打开,移开即可隐藏。",
"collectTitle": "照常复制",
"collectDesc": "文本、链接、图片、文件:按下 Ctrl+C,Edge-Drop 就会在后台悄悄保存。",
+ "dropInTitle": "或者拖进来",
+ "dropInDesc": "从任意应用或文件夹,把文件、图片、链接或文字拖到屏幕边缘,搁架会打开接住它们。",
"dragTitle": "拖到需要的地方",
"dragDesc": "打开搁架,将任意卡片直接拖入应用、文件夹或文档。",
"stacksTitle": "文件不再分散",
@@ -4461,6 +4503,8 @@ export const zhCN: TranslationKeys = {
"back": "上一步",
"next": "下一步",
"getStarted": "开始使用",
+ "play": "播放导览",
+ "pause": "暂停导览",
"extractedCard": "提取的卡片",
"dropToExtract": "拖放以提取为独立卡片",
"proTips": "专业技巧",
@@ -4846,6 +4890,8 @@ export const zhTW: TranslationKeys = {
"welcomeDesc": "複製的一切,觸手可及。Edge-Drop 靜候在螢幕邊緣:將指標移過去即可開啟,移開即可隱藏。",
"collectTitle": "照常複製",
"collectDesc": "文字、連結、圖片、檔案:按下 Ctrl+C,Edge-Drop 就會在背景悄悄保存。",
+ "dropInTitle": "或者拖進來",
+ "dropInDesc": "從任何應用程式或資料夾,把檔案、圖片、連結或文字拖到螢幕邊緣,層架會打開接住它們。",
"dragTitle": "拖到需要的地方",
"dragDesc": "開啟層架,將任何卡片直接拖入應用程式、資料夾或文件。",
"stacksTitle": "檔案不再分散",
@@ -4862,6 +4908,8 @@ export const zhTW: TranslationKeys = {
"back": "上一步",
"next": "下一步",
"getStarted": "開始使用",
+ "play": "播放導覽",
+ "pause": "暫停導覽",
"extractedCard": "提取的卡片",
"dropToExtract": "拖放以提取為獨立卡片",
"proTips": "專業技巧",
@@ -5247,6 +5295,8 @@ export const hi: TranslationKeys = {
"welcomeDesc": "आपका कॉपी किया हुआ सब कुछ, बस एक इशारे की दूरी पर। Edge-Drop स्क्रीन के किनारे पर इंतज़ार करता है: खोलने के लिए पॉइंटर वहाँ ले जाएँ, छिपाने के लिए हटा लें।",
"collectTitle": "हमेशा की तरह कॉपी करें",
"collectDesc": "टेक्स्ट, लिंक, छवियाँ, फ़ाइलें: Ctrl+C दबाएँ और Edge-Drop उसे चुपचाप बैकग्राउंड में सहेज लेता है।",
+ "dropInTitle": "या खींचकर डालें",
+ "dropInDesc": "किसी भी ऐप या फ़ोल्डर से फ़ाइलें, चित्र, लिंक या टेक्स्ट स्क्रीन के किनारे तक खींचें। शेल्फ़ उन्हें लेने के लिए खुल जाता है।",
"dragTitle": "जहाँ चाहिए, वहाँ खींचें",
"dragDesc": "शेल्फ़ खोलें और किसी भी कार्ड को सीधे किसी ऐप, फ़ोल्डर या दस्तावेज़ में खींचें।",
"stacksTitle": "फ़ाइलें साथ रहती हैं",
@@ -5263,6 +5313,8 @@ export const hi: TranslationKeys = {
"back": "पीछे",
"next": "अगला",
"getStarted": "प्रारंभ करें",
+ "play": "टूर चलाएँ",
+ "pause": "टूर रोकें",
"extractedCard": "निकाला गया कार्ड",
"dropToExtract": "अलग कार्ड में वापस निकालने के लिए छोड़ें",
"proTips": "प्रो युक्तियाँ",
@@ -5648,6 +5700,8 @@ export const ar: TranslationKeys = {
"welcomeDesc": "كل ما تنسخه على بُعد حركة واحدة. ينتظرك Edge-Drop على حافة الشاشة: حرّك المؤشر إليها لفتحه، وأبعده لإخفائه.",
"collectTitle": "انسخ كالمعتاد",
"collectDesc": "نصوص وروابط وصور وملفات: اضغط Ctrl+C وسيحتفظ بها Edge-Drop بهدوء في الخلفية.",
+ "dropInTitle": "أو اسحبه إليه",
+ "dropInDesc": "اسحب الملفات أو الصور أو الروابط أو النصوص إلى حافة الشاشة من أي تطبيق أو مجلد. ينفتح الرف ليستقبلها.",
"dragTitle": "اسحبه حيث تحتاجه",
"dragDesc": "افتح الرف واسحب أي بطاقة مباشرة إلى تطبيق أو مجلد أو مستند.",
"stacksTitle": "الملفات تبقى معاً",
@@ -5664,6 +5718,8 @@ export const ar: TranslationKeys = {
"back": "رجوع",
"next": "التالي",
"getStarted": "ابدأ",
+ "play": "تشغيل الجولة",
+ "pause": "إيقاف الجولة مؤقتًا",
"extractedCard": "بطاقة مستخرجة",
"dropToExtract": "أفلت لاستخراجها كبطاقة مستقلة",
"proTips": "نصائح محترفين",
@@ -6049,6 +6105,8 @@ export const fa: TranslationKeys = {
"welcomeDesc": "هر چی کپی می‌کنی، فقط یه حرکت فاصله داره. Edge-Drop لبه صفحه منتظره: نشانگر رو ببر اونجا تا باز بشه، دورش کن تا قایم بشه.",
"collectTitle": "مثل همیشه کپی کن",
"collectDesc": "متن، لینک، عکس، فایل: Ctrl+C رو بزن و Edge-Drop بی‌سروصدا توی پس‌زمینه نگهش می‌داره.",
+ "dropInTitle": "یا بکشش توش",
+ "dropInDesc": "فایل، عکس، لینک یا متن رو از هر برنامه یا پوشه‌ای بکش لبه‌ی صفحه. قفسه باز میشه تا بگیرتشون.",
"dragTitle": "بکشش هر جا لازمه",
"dragDesc": "قفسه رو باز کن و هر کارتی رو مستقیم بکش توی یه برنامه، پوشه یا سند.",
"stacksTitle": "فایل‌ها کنار هم می‌مونن",
@@ -6065,6 +6123,8 @@ export const fa: TranslationKeys = {
"back": "قبلی",
"next": "بعدی",
"getStarted": "بزن بریم",
+ "play": "پخش راهنما",
+ "pause": "توقف راهنما",
"extractedCard": "کارت جداشده",
"dropToExtract": "اینجا بنداز تا به یه کارت جدا تبدیل بشه",
"proTips": "چندتا نکته کاربردی",
@@ -6450,6 +6510,8 @@ export const bn: TranslationKeys = {
"welcomeDesc": "আপনার কপি করা সবকিছু, মাত্র এক নড়াচড়ার দূরত্বে। Edge-Drop স্ক্রিনের প্রান্তে অপেক্ষা করে: খুলতে পয়েন্টার সেখানে নিয়ে যান, লুকাতে সরিয়ে নিন।",
"collectTitle": "আগের মতোই কপি করুন",
"collectDesc": "টেক্সট, লিংক, ছবি, ফাইল: Ctrl+C চাপুন আর Edge-Drop নিঃশব্দে ব্যাকগ্রাউন্ডে তা রেখে দেয়।",
+ "dropInTitle": "অথবা টেনে আনুন",
+ "dropInDesc": "যেকোনো অ্যাপ বা ফোল্ডার থেকে ফাইল, ছবি, লিংক বা টেক্সট স্ক্রিনের কিনারায় টেনে আনুন। শেলফ খুলে সেগুলো নিয়ে নেয়।",
"dragTitle": "যেখানে দরকার, টেনে নিন",
"dragDesc": "শেলফ খুলুন এবং যেকোনো কার্ড সরাসরি কোনো অ্যাপ, ফোল্ডার বা নথিতে টেনে আনুন।",
"stacksTitle": "ফাইলগুলো একসাথে থাকে",
@@ -6466,6 +6528,8 @@ export const bn: TranslationKeys = {
"back": "পিছনে",
"next": "পরবর্তী",
"getStarted": "শুরু করুন",
+ "play": "ট্যুর চালান",
+ "pause": "ট্যুর থামান",
"extractedCard": "বের করা কার্ড",
"dropToExtract": "স্বতন্ত্র কার্ড হিসাবে ফিরে আনতে ছাড়ুন",
"proTips": "প্রো টিপস",
@@ -6851,6 +6915,8 @@ export const tr: TranslationKeys = {
"welcomeDesc": "Kopyaladığınız her şey tek hareket uzağınızda. Edge-Drop ekranınızın kenarında bekler: açmak için işaretçiyi oraya götürün, gizlemek için uzaklaştırın.",
"collectTitle": "Her zamanki gibi kopyalayın",
"collectDesc": "Metin, bağlantı, görsel, dosya: Ctrl+C'ye basın, Edge-Drop arka planda sessizce saklasın.",
+ "dropInTitle": "Ya da sürükleyip bırakın",
+ "dropInDesc": "Dosyaları, görselleri, bağlantıları veya metni herhangi bir uygulamadan ya da klasörden kenara sürükleyin. Raf onları almak için açılır.",
"dragTitle": "İhtiyacınız olan yere sürükleyin",
"dragDesc": "Rafı açın ve herhangi bir kartı doğrudan bir uygulamaya, klasöre veya belgeye sürükleyin.",
"stacksTitle": "Dosyalar bir arada kalır",
@@ -6867,6 +6933,8 @@ export const tr: TranslationKeys = {
"back": "Geri",
"next": "İleri",
"getStarted": "Başla",
+ "play": "Turu oynat",
+ "pause": "Turu duraklat",
"extractedCard": "Çıkarılan kart",
"dropToExtract": "Bağımsız kart olarak çıkarmak için bırak",
"proTips": "Profesyonel İpuçları",
@@ -7252,6 +7320,8 @@ export const vi: TranslationKeys = {
"welcomeDesc": "Mọi thứ bạn sao chép, chỉ cách một cử động. Edge-Drop chờ sẵn ở mép màn hình: đưa con trỏ tới đó để mở, di ra xa để ẩn.",
"collectTitle": "Sao chép như mọi khi",
"collectDesc": "Văn bản, liên kết, hình ảnh, tệp: nhấn Ctrl+C và Edge-Drop lặng lẽ lưu lại ở chế độ nền.",
+ "dropInTitle": "Hoặc kéo vào",
+ "dropInDesc": "Kéo tệp, hình ảnh, liên kết hoặc văn bản từ bất kỳ ứng dụng hay thư mục nào đến cạnh màn hình. Giá sẽ mở ra để đón chúng.",
"dragTitle": "Kéo đến nơi bạn cần",
"dragDesc": "Mở giá và kéo bất kỳ thẻ nào thẳng vào ứng dụng, thư mục hoặc tài liệu.",
"stacksTitle": "Tệp luôn đi cùng nhau",
@@ -7268,6 +7338,8 @@ export const vi: TranslationKeys = {
"back": "Quay lại",
"next": "Tiếp theo",
"getStarted": "Bắt đầu",
+ "play": "Phát hướng dẫn",
+ "pause": "Tạm dừng hướng dẫn",
"extractedCard": "Thẻ đã trích xuất",
"dropToExtract": "Thả để trích xuất lại thành thẻ độc lập",
"proTips": "Mẹo chuyên nghiệp",
@@ -7653,6 +7725,8 @@ export const pl: TranslationKeys = {
"welcomeDesc": "Wszystko, co kopiujesz, na wyciągnięcie ręki. Edge-Drop czeka przy krawędzi ekranu: najedź tam kursorem, aby go otworzyć, odsuń, aby ukryć.",
"collectTitle": "Kopiuj jak zawsze",
"collectDesc": "Tekst, linki, obrazy, pliki: naciśnij Ctrl+C, a Edge-Drop dyskretnie zachowa je w tle.",
+ "dropInTitle": "Albo przeciągnij",
+ "dropInDesc": "Przeciągnij pliki, obrazy, linki lub tekst do krawędzi z dowolnej aplikacji lub folderu. Półka otworzy się, by je przyjąć.",
"dragTitle": "Przeciągnij tam, gdzie trzeba",
"dragDesc": "Otwórz półkę i przeciągnij dowolną kartę prosto do aplikacji, folderu lub dokumentu.",
"stacksTitle": "Pliki trzymają się razem",
@@ -7669,6 +7743,8 @@ export const pl: TranslationKeys = {
"back": "Wstecz",
"next": "Dalej",
"getStarted": "Zaczynaj",
+ "play": "Odtwórz przewodnik",
+ "pause": "Wstrzymaj przewodnik",
"extractedCard": "Wyodrębniona karta",
"dropToExtract": "Upuść, aby wyodrębnić jako samodzielną kartę",
"proTips": "Wskazówki pro",
@@ -8054,6 +8130,8 @@ export const nl: TranslationKeys = {
"welcomeDesc": "Alles wat je kopieert, één beweging verderop. Edge-Drop wacht aan de rand van je scherm: beweeg je aanwijzer erheen om te openen, beweeg weg om te verbergen.",
"collectTitle": "Kopieer zoals altijd",
"collectDesc": "Tekst, links, afbeeldingen, bestanden: druk op Ctrl+C en Edge-Drop bewaart het, stilletjes, op de achtergrond.",
+ "dropInTitle": "Of sleep het erin",
+ "dropInDesc": "Sleep bestanden, afbeeldingen, links of tekst vanuit elke app of map naar de rand. De plank gaat open om ze op te vangen.",
"dragTitle": "Sleep het waar je het nodig hebt",
"dragDesc": "Open de plank en sleep een kaart direct naar een app, een map of een document.",
"stacksTitle": "Bestanden blijven bij elkaar",
@@ -8070,6 +8148,8 @@ export const nl: TranslationKeys = {
"back": "Terug",
"next": "Volgende",
"getStarted": "Aan de slag",
+ "play": "Rondleiding afspelen",
+ "pause": "Rondleiding pauzeren",
"extractedCard": "Geëxtraheerde kaart",
"dropToExtract": "Neerzetten om terug te extraheren als zelfstandige kaart",
"proTips": "Pro-tips",
@@ -8455,6 +8535,8 @@ export const sv: TranslationKeys = {
"welcomeDesc": "Allt du kopierar, en rörelse bort. Edge-Drop väntar vid skärmens kant: för pekaren dit för att öppna, flytta bort den för att dölja.",
"collectTitle": "Kopiera som vanligt",
"collectDesc": "Text, länkar, bilder, filer: tryck Ctrl+C så sparar Edge-Drop det, diskret, i bakgrunden.",
+ "dropInTitle": "Eller dra in det",
+ "dropInDesc": "Dra filer, bilder, länkar eller text till kanten från valfritt program eller mapp. Hyllan öppnas och tar emot dem.",
"dragTitle": "Dra dit du behöver det",
"dragDesc": "Öppna hyllan och dra valfritt kort direkt till ett program, en mapp eller ett dokument.",
"stacksTitle": "Filer håller ihop",
@@ -8471,6 +8553,8 @@ export const sv: TranslationKeys = {
"back": "Tillbaka",
"next": "Nästa",
"getStarted": "Kom igång",
+ "play": "Spela upp rundturen",
+ "pause": "Pausa rundturen",
"extractedCard": "Extraherat kort",
"dropToExtract": "Släpp för att extrahera som fristående kort",
"proTips": "Proffstips",
@@ -8856,6 +8940,8 @@ export const id: TranslationKeys = {
"welcomeDesc": "Semua yang Anda salin, cukup satu gerakan. Edge-Drop menunggu di tepi layar: arahkan penunjuk ke sana untuk membukanya, jauhkan untuk menyembunyikannya.",
"collectTitle": "Salin seperti biasa",
"collectDesc": "Teks, tautan, gambar, berkas: tekan Ctrl+C dan Edge-Drop menyimpannya diam-diam di latar belakang.",
+ "dropInTitle": "Atau seret ke dalam",
+ "dropInDesc": "Seret file, gambar, tautan, atau teks ke tepi layar dari aplikasi atau folder mana pun. Rak akan terbuka untuk menampungnya.",
"dragTitle": "Seret ke mana pun Anda perlu",
"dragDesc": "Buka rak dan seret kartu mana pun langsung ke aplikasi, folder, atau dokumen.",
"stacksTitle": "Berkas tetap bersama",
@@ -8872,6 +8958,8 @@ export const id: TranslationKeys = {
"back": "Kembali",
"next": "Selanjutnya",
"getStarted": "Mulai",
+ "play": "Putar tur",
+ "pause": "Jeda tur",
"extractedCard": "Kartu yang diekstrak",
"dropToExtract": "Jatuhkan untuk mengekstrak kembali sebagai kartu mandiri",
"proTips": "Tips Pro",
@@ -9257,6 +9345,8 @@ export const uk: TranslationKeys = {
"welcomeDesc": "Усе, що ви копіюєте, — за один рух. Edge-Drop чекає біля краю екрана: наведіть туди курсор, щоб відкрити, відведіть — щоб сховати.",
"collectTitle": "Копіюйте як завжди",
"collectDesc": "Текст, посилання, зображення, файли: натисніть Ctrl+C, і Edge-Drop непомітно збереже все у фоновому режимі.",
+ "dropInTitle": "Або перетягніть",
+ "dropInDesc": "Перетягніть файли, зображення, посилання чи текст до краю екрана з будь-якого застосунку чи папки. Полиця відкриється й прийме їх.",
"dragTitle": "Перетягніть куди потрібно",
"dragDesc": "Відкрийте полицю й перетягніть будь-яку картку просто в додаток, папку чи документ.",
"stacksTitle": "Файли тримаються разом",
@@ -9273,6 +9363,8 @@ export const uk: TranslationKeys = {
"back": "Назад",
"next": "Далі",
"getStarted": "Почати",
+ "play": "Відтворити огляд",
+ "pause": "Призупинити огляд",
"extractedCard": "Витягнута картка",
"dropToExtract": "Перетягніть, щоб витягнути як окрему картку",
"proTips": "Професійні поради",
@@ -9658,6 +9750,8 @@ export const el: TranslationKeys = {
"welcomeDesc": "Ό,τι αντιγράφετε, μία κίνηση μακριά. Το Edge-Drop περιμένει στην άκρη της οθόνης: φέρτε εκεί τον δείκτη για να ανοίξει, απομακρύνετέ τον για να κρυφτεί.",
"collectTitle": "Αντιγράψτε όπως πάντα",
"collectDesc": "Κείμενο, σύνδεσμοι, εικόνες, αρχεία: πατήστε Ctrl+C και το Edge-Drop τα κρατά, αθόρυβα, στο παρασκήνιο.",
+ "dropInTitle": "Ή σύρετέ το μέσα",
+ "dropInDesc": "Σύρετε αρχεία, εικόνες, συνδέσμους ή κείμενο στην άκρη από οποιαδήποτε εφαρμογή ή φάκελο. Το ράφι ανοίγει για να τα υποδεχτεί.",
"dragTitle": "Σύρετέ το όπου χρειάζεστε",
"dragDesc": "Ανοίξτε το ράφι και σύρετε οποιαδήποτε κάρτα κατευθείαν σε μια εφαρμογή, έναν φάκελο ή ένα έγγραφο.",
"stacksTitle": "Τα αρχεία μένουν μαζί",
@@ -9674,6 +9768,8 @@ export const el: TranslationKeys = {
"back": "Πίσω",
"next": "Επόμενο",
"getStarted": "Ξεκινήστε",
+ "play": "Αναπαραγωγή της ξενάγησης",
+ "pause": "Παύση της ξενάγησης",
"extractedCard": "Εξαγμένη κάρτα",
"dropToExtract": "Αφήστε για εξαγωγή ξανά ως αυτόνομη κάρτα",
"proTips": "Επαγγελματικές συμβουλές",
@@ -10059,6 +10155,8 @@ export const cs: TranslationKeys = {
"welcomeDesc": "Vše, co zkopírujete, na dosah jediného pohybu. Edge-Drop čeká u okraje obrazovky: najeďte tam ukazatelem a otevře se, odjeďte a skryje se.",
"collectTitle": "Kopírujte jako obvykle",
"collectDesc": "Text, odkazy, obrázky, soubory: stiskněte Ctrl+C a Edge-Drop si je potichu uloží na pozadí.",
+ "dropInTitle": "Nebo přetáhněte",
+ "dropInDesc": "Přetáhněte soubory, obrázky, odkazy nebo text k okraji obrazovky z libovolné aplikace či složky. Police se otevře a převezme je.",
"dragTitle": "Přetáhněte, kam potřebujete",
"dragDesc": "Otevřete polici a přetáhněte libovolnou kartu přímo do aplikace, složky nebo dokumentu.",
"stacksTitle": "Soubory drží pohromadě",
@@ -10075,6 +10173,8 @@ export const cs: TranslationKeys = {
"back": "Zpět",
"next": "Další",
"getStarted": "Začít",
+ "play": "Přehrát prohlídku",
+ "pause": "Pozastavit prohlídku",
"extractedCard": "Extrahovaná karta",
"dropToExtract": "Přetáhněte pro extrakci zpět jako samostatnou kartu",
"proTips": "Tipy profesionálů",
@@ -10460,6 +10560,8 @@ export const ro: TranslationKeys = {
"welcomeDesc": "Tot ce copiezi, la o singură mișcare distanță. Edge-Drop așteaptă la marginea ecranului: du cursorul acolo ca să-l deschizi, îndepărtează-l ca să-l ascunzi.",
"collectTitle": "Copiază ca de obicei",
"collectDesc": "Text, linkuri, imagini, fișiere: apasă Ctrl+C și Edge-Drop le păstrează, discret, în fundal.",
+ "dropInTitle": "Sau trage-l înăuntru",
+ "dropInDesc": "Trage fișiere, imagini, linkuri sau text spre margine din orice aplicație sau folder. Raftul se deschide ca să le primească.",
"dragTitle": "Trage-l unde ai nevoie",
"dragDesc": "Deschide raftul și trage orice card direct într-o aplicație, un folder sau un document.",
"stacksTitle": "Fișierele rămân împreună",
@@ -10476,6 +10578,8 @@ export const ro: TranslationKeys = {
"back": "Înapoi",
"next": "Următorul",
"getStarted": "Începe",
+ "play": "Redă turul",
+ "pause": "Întrerupe turul",
"extractedCard": "Card extras",
"dropToExtract": "Plasează pentru a extrage înapoi ca pe un card autonom",
"proTips": "Sfaturi Pro",
@@ -10861,6 +10965,8 @@ export const hu: TranslationKeys = {
"welcomeDesc": "Minden, amit másol, egyetlen mozdulatnyira. Az Edge-Drop a képernyő szélén várja: vigye oda a mutatót a megnyitáshoz, húzza el az elrejtéshez.",
"collectTitle": "Másoljon úgy, mint mindig",
"collectDesc": "Szöveg, hivatkozás, kép, fájl: nyomja le a Ctrl+C billentyűket, és az Edge-Drop csendben megőrzi a háttérben.",
+ "dropInTitle": "Vagy húzza be",
+ "dropInDesc": "Húzzon fájlokat, képeket, hivatkozásokat vagy szöveget a képernyő szélére bármely alkalmazásból vagy mappából. A polc kinyílik, és befogadja őket.",
"dragTitle": "Húzza oda, ahová kell",
"dragDesc": "Nyissa meg a polcot, és húzza bármelyik kártyát egyenesen egy alkalmazásba, mappába vagy dokumentumba.",
"stacksTitle": "A fájlok együtt maradnak",
@@ -10877,6 +10983,8 @@ export const hu: TranslationKeys = {
"back": "Vissza",
"next": "Következő",
"getStarted": "Kezdés",
+ "play": "Bemutató lejátszása",
+ "pause": "Bemutató szüneteltetése",
"extractedCard": "Kibontott kártya",
"dropToExtract": "Ejtés kibontáshoz önálló kártyaként",
"proTips": "Pro tippek",
@@ -11262,6 +11370,8 @@ export const da: TranslationKeys = {
"welcomeDesc": "Alt, hvad du kopierer, kun én bevægelse væk. Edge-Drop venter ved skærmens kant: før markøren derhen for at åbne, og væk igen for at skjule.",
"collectTitle": "Kopiér som altid",
"collectDesc": "Tekst, links, billeder, filer: tryk Ctrl+C, og Edge-Drop gemmer det diskret i baggrunden.",
+ "dropInTitle": "Eller træk det ind",
+ "dropInDesc": "Træk filer, billeder, links eller tekst ud til kanten fra en hvilken som helst app eller mappe. Hylden åbner sig og tager imod dem.",
"dragTitle": "Træk det, hvorhen du vil",
"dragDesc": "Åbn hylden, og træk et vilkårligt kort direkte ind i en app, en mappe eller et dokument.",
"stacksTitle": "Filer holder sammen",
@@ -11278,6 +11388,8 @@ export const da: TranslationKeys = {
"back": "Tilbage",
"next": "Næste",
"getStarted": "Kom i gang",
+ "play": "Afspil rundvisningen",
+ "pause": "Sæt rundvisningen på pause",
"extractedCard": "Udtrukket kort",
"dropToExtract": "Slip for at udtrække tilbage som et selvstændigt kort",
"proTips": "Pro-tips",
@@ -11663,6 +11775,8 @@ export const fi: TranslationKeys = {
"welcomeDesc": "Kaikki kopioimasi yhden liikkeen päässä. Edge-Drop odottaa näytön reunalla: vie osoitin sinne avataksesi sen ja pois piilottaaksesi.",
"collectTitle": "Kopioi kuten aina",
"collectDesc": "Tekstit, linkit, kuvat, tiedostot: paina Ctrl+C, niin Edge-Drop tallentaa ne huomaamatta taustalla.",
+ "dropInTitle": "Tai vedä se sisään",
+ "dropInDesc": "Vedä tiedostoja, kuvia, linkkejä tai tekstiä näytön reunaan mistä tahansa sovelluksesta tai kansiosta. Hylly avautuu ottamaan ne vastaan.",
"dragTitle": "Vedä sinne, missä tarvitset",
"dragDesc": "Avaa hylly ja vedä mikä tahansa kortti suoraan sovellukseen, kansioon tai asiakirjaan.",
"stacksTitle": "Tiedostot pysyvät yhdessä",
@@ -11679,6 +11793,8 @@ export const fi: TranslationKeys = {
"back": "Takaisin",
"next": "Seuraava",
"getStarted": "Aloita",
+ "play": "Toista esittely",
+ "pause": "Keskeytä esittely",
"extractedCard": "Poimittu kortti",
"dropToExtract": "Pudota poimiaksesi takaisin itsenäiseksi kortiksi",
"proTips": "Ammattilaisvinkit",
@@ -12064,6 +12180,8 @@ export const th: TranslationKeys = {
"welcomeDesc": "ทุกสิ่งที่คุณคัดลอก อยู่ห่างแค่ขยับเดียว Edge-Drop รออยู่ที่ขอบจอ เลื่อนตัวชี้ไปที่นั่นเพื่อเปิด และเลื่อนออกเพื่อซ่อน",
"collectTitle": "คัดลอกเหมือนเดิม",
"collectDesc": "ข้อความ ลิงก์ รูปภาพ ไฟล์ เพียงกด Ctrl+C แล้ว Edge-Drop จะเก็บไว้เงียบ ๆ ในเบื้องหลัง",
+ "dropInTitle": "หรือลากเข้ามา",
+ "dropInDesc": "ลากไฟล์ รูปภาพ ลิงก์ หรือข้อความจากแอปหรือโฟลเดอร์ใดก็ได้ไปที่ขอบจอ ชั้นวางจะเปิดออกมารับไว้",
"dragTitle": "ลากไปที่ที่ต้องการ",
"dragDesc": "เปิดชั้นวางแล้วลากการ์ดใดก็ได้ไปยังแอป โฟลเดอร์ หรือเอกสารได้โดยตรง",
"stacksTitle": "ไฟล์อยู่ด้วยกัน",
@@ -12080,6 +12198,8 @@ export const th: TranslationKeys = {
"back": "ย้อนกลับ",
"next": "ถัดไป",
"getStarted": "เริ่มต้นใช้งาน",
+ "play": "เล่นทัวร์",
+ "pause": "หยุดทัวร์ชั่วคราว",
"extractedCard": "การ์ดที่แยกออกมา",
"dropToExtract": "วางเพื่อแยกกลับเป็นการ์ดอิสระ",
"proTips": "เคล็ดลับโปร",
@@ -12465,6 +12585,8 @@ export const he: TranslationKeys = {
"welcomeDesc": "כל מה שאתה מעתיק, במרחק תנועה אחת. Edge-Drop ממתין בקצה המסך: הזז לשם את הסמן כדי לפתוח, והרחק אותו כדי להסתיר.",
"collectTitle": "העתק כרגיל",
"collectDesc": "טקסט, קישורים, תמונות, קבצים: לחץ Ctrl+C ו-Edge-Drop ישמור אותם בשקט, ברקע.",
+ "dropInTitle": "או גרור פנימה",
+ "dropInDesc": "גרור קבצים, תמונות, קישורים או טקסט לקצה המסך מכל אפליקציה או תיקיה. המדף נפתח כדי לקבל אותם.",
"dragTitle": "גרור לאן שצריך",
"dragDesc": "פתח את המדף וגרור כל כרטיס ישירות לאפליקציה, לתיקיה או למסמך.",
"stacksTitle": "הקבצים נשארים יחד",
@@ -12481,6 +12603,8 @@ export const he: TranslationKeys = {
"back": "חזור",
"next": "הבא",
"getStarted": "התחל",
+ "play": "הפעל את הסיור",
+ "pause": "השהה את הסיור",
"extractedCard": "כרטיס שחולץ",
"dropToExtract": "שחרר כדי לחלץ בחזרה לכרטיס עצמאי",
"proTips": "טיפים מקצועיים",
@@ -12866,6 +12990,8 @@ export const no: TranslationKeys = {
"welcomeDesc": "Alt du kopierer, bare én bevegelse unna. Edge-Drop venter ved skjermkanten: før pekeren dit for å åpne, og bort igjen for å skjule.",
"collectTitle": "Kopier som vanlig",
"collectDesc": "Tekst, lenker, bilder, filer: trykk Ctrl+C, så tar Edge-Drop vare på det, diskret, i bakgrunnen.",
+ "dropInTitle": "Eller dra det inn",
+ "dropInDesc": "Dra filer, bilder, lenker eller tekst til kanten fra en hvilken som helst app eller mappe. Hyllen åpnes og tar imot dem.",
"dragTitle": "Dra det dit du trenger det",
"dragDesc": "Åpne hyllen og dra et hvilket som helst kort rett inn i en app, en mappe eller et dokument.",
"stacksTitle": "Filer holder sammen",
@@ -12882,6 +13008,8 @@ export const no: TranslationKeys = {
"back": "Tilbake",
"next": "Neste",
"getStarted": "Kom i gang",
+ "play": "Spill av omvisningen",
+ "pause": "Sett omvisningen på pause",
"extractedCard": "Trukket ut kort",
"dropToExtract": "Slipp for å trekke tilbake som et frittstående kort",
"proTips": "Pro-tips",
diff --git a/src/onboarding/autoplay.ts b/src/onboarding/autoplay.ts
new file mode 100644
index 0000000..74dc5c6
--- /dev/null
+++ b/src/onboarding/autoplay.ts
@@ -0,0 +1,158 @@
+/**
+ * The tour's autoplay. Each step stays up for as long as it takes to watch
+ * its demo and read its text, then the tour moves on:
+ *
+ * - the demo always plays to its end, and its result stays up at least
+ * MIN_REST (at most MAX_REST) before the next step;
+ * - the step also stays until its text has been read: reading time counts
+ * from when the text appears, and only half of the time spent watching the
+ * demo counts toward it (people watch the motion, then read).
+ *
+ * The active progress dash fills at one even speed across the whole step, so
+ * the viewer sees when it will move on. Pausing freezes the fill and the
+ * countdown where they are; playing again carries on from there.
+ */
+
+/** The shortest and longest a finished demo's result stays up under autoplay. */
+const MIN_REST = 2400
+const MAX_REST = 6000
+
+/** How long each step's demo runs, from the step appearing to its end (measured), for pacing the fill. */
+const DEMO_MS: Record<string, number> = {
+ welcome: 3900,
+ collect: 11550,
+ dropin: 5800,
+ stacks: 4800,
+ drag: 3350,
+ ungroup: 5000,
+ merge: 3700,
+ preview: 2900
+}
+
+/** Han, kana and Hangul: one character carries about a word. */
+const DENSE = /[ᄀ-ᇿ぀-ヿ㐀-鿿가-힯豈-﫿]/g
+
+/** About how long a step's title and text take to read (~230 words a minute, plus a moment to look over). */
+export function readingMs(title: string, body: string): number {
+ const weight = (s: string) => s.length + 2 * (s.match(DENSE)?.length ?? 0)
+ return 1000 + 25 * weight(title) + 45 * weight(body)
+}
+
+const restFor = (readMs: number, watchedMs: number) => Math.min(MAX_REST, Math.max(MIN_REST, readMs - watchedMs / 2))
+
+const scale = (k: number) => ({ transform: `scaleX(${k})` })
+
+export class Autoplay {
+ private fill: HTMLElement | null = null
+ private anim: Animation | null = null
+ /** The fill's current animation runs between these. */
+ private span: [number, number] = [0, 0]
+ private phase: 'waiting' | 'demo' | 'rest' = 'waiting'
+ private shownAt = 0
+ private readMs = 0
+ private timer = 0
+ private restLeft = 0
+ private restFrom = 0
+ private on: boolean
+ private hidden = false
+
+ constructor(private advance: () => void, playing: boolean) {
+ this.on = playing
+ }
+
+ private get running() {
+ return this.on && !this.hidden
+ }
+
+ /** The active dash's fill: a new element for each step, which starts the step over. */
+ attach(el: HTMLElement | null) {
+ if (el === this.fill) return
+ this.stopTimer()
+ this.anim?.cancel()
+ this.anim = null
+ this.fill = el
+ this.phase = 'waiting'
+ }
+
+ /** The step's text is up (reading starts now); its demo is starting. */
+ shown(step: string, readMs: number) {
+ if (!this.fill || this.phase !== 'waiting') return
+ this.phase = 'demo'
+ this.shownAt = performance.now()
+ this.readMs = readMs
+ const demo = DEMO_MS[step] ?? 5000
+ const total = demo + restFor(readMs, demo)
+ this.fillTo(0, demo / total, demo)
+ }
+
+ /** The step's demo played to its end: the rest of the step, then move on. */
+ played() {
+ if (!this.fill) return
+ const watched = this.phase === 'waiting' ? 0 : performance.now() - this.shownAt
+ const from = this.current()
+ this.stopTimer()
+ this.phase = 'rest'
+ this.restLeft = restFor(this.readMs, watched)
+ this.fillTo(from, 1, this.restLeft)
+ if (this.running) this.startTimer()
+ }
+
+ setPlaying(on: boolean) {
+ this.on = on
+ this.sync()
+ }
+
+ /** The window is hidden or minimized: hold everything until it is back. */
+ setHidden(hidden: boolean) {
+ this.hidden = hidden
+ this.sync()
+ }
+
+ stop() {
+ this.stopTimer()
+ this.anim?.cancel()
+ this.anim = null
+ this.fill = null
+ }
+
+ /** How full the dash is now. */
+ private current() {
+ if (!this.anim) return 0
+ const t = this.anim.effect?.getComputedTiming().progress ?? 1
+ return this.span[0] + (this.span[1] - this.span[0]) * t
+ }
+
+ private fillTo(from: number, to: number, ms: number) {
+ this.anim?.cancel()
+ this.span = [from, to]
+ this.anim = this.fill!.animate([scale(from), scale(to)], { duration: ms, easing: 'linear', fill: 'forwards' })
+ if (!this.running) this.anim.pause()
+ }
+
+ private sync() {
+ if (this.running) {
+ // only un-pause: play() on a finished animation would start it over
+ if (this.anim?.playState === 'paused') this.anim.play()
+ if (this.phase === 'rest' && !this.timer) this.startTimer()
+ } else {
+ if (this.anim?.playState === 'running') this.anim.pause()
+ this.stopTimer()
+ }
+ }
+
+ private startTimer() {
+ this.restFrom = performance.now()
+ this.timer = window.setTimeout(() => {
+ this.timer = 0
+ this.phase = 'waiting'
+ this.advance()
+ }, this.restLeft)
+ }
+
+ private stopTimer() {
+ if (!this.timer) return
+ clearTimeout(this.timer)
+ this.timer = 0
+ this.restLeft = Math.max(0, this.restLeft - (performance.now() - this.restFrom))
+ }
+}
diff --git a/src/onboarding/demoItems.ts b/src/onboarding/demoItems.ts
index 719eb81..e7a88ad 100644
--- a/src/onboarding/demoItems.ts
+++ b/src/onboarding/demoItems.ts
@@ -8,13 +8,12 @@
*/
import type { ClipboardItemDto, FileEntry } from '../../shared/types'
import summitUrl from '../assets/onboarding/summit.png'
-import ridgeUrl from '../assets/onboarding/ridge.png'
export const DEMO_DIR = 'C:\\Users\\You\\Documents\\'
const DIR = DEMO_DIR
/** Pictures carry their own thumbnail (the app would make one from the file, which does not exist here). */
-const PICTURES: Record<string, string> = { 'Summit.png': summitUrl, 'Ridge.png': ridgeUrl }
+const PICTURES: Record<string, string> = { 'Summit.png': summitUrl }
function file(name: string, size: number): FileEntry {
const preview = PICTURES[name]
@@ -31,13 +30,20 @@ function files(id: string, names: Array<[string, number]>, at: number): Clipboar
}
}
+/** The sentence selected on the web page in the copy demo, line by line as the page lays it out. */
+export const PAGE_LINES = [
+ 'A sea of clouds forms when cloud fills the',
+ 'valleys below a summit, and the peaks stand',
+ 'above it like islands.'
+]
+
export function demoText(at: number): ClipboardItemDto {
return {
id: 'demo-text',
capturedAt: at,
hitCount: 1,
pinned: false,
- data: { kind: 'text', isUrl: false, text: 'Trailhead at 6:30 on Saturday. Pack layers, it is 4°C at the summit.' }
+ data: { kind: 'text', isUrl: false, text: PAGE_LINES.join(' ') }
}
}
@@ -65,11 +71,11 @@ export function demoPdf(at: number): ClipboardItemDto {
return files('demo-pdf', [['Itinerary.pdf', 412_000]], at)
}
-/** Three files copied at once: they arrive as one stack. */
+/** Three files of different kinds, selected in File Explorer and copied at once: they arrive as one stack. */
export const STACK_FILES: Array<[string, number]> = [
['Packing list.docx', 96_426],
['Budget.xlsx', 144_639],
- ['Ridge.png', 1_158_210]
+ ['Trip slides.pptx', 2_318_400]
]
export function demoStack(at: number, names = STACK_FILES): ClipboardItemDto {
diff --git a/src/onboarding/tour.ts b/src/onboarding/tour.ts
index 61971c6..b022956 100644
--- a/src/onboarding/tour.ts
+++ b/src/onboarding/tour.ts
@@ -6,10 +6,12 @@
* window); state is written with useStore.setState directly.
*
* What is not the app itself is drawn here: the pointer, the Ctrl+C keys and
- * the other app the card is dropped into. The drag image is the app's own
- * drag ghost (shared/dragGhost).
+ * the other apps (a browser to copy from, File Explorer to drag a file out of,
+ * a notes app to drop a card into). The drag image is the app's own drag
+ * ghost (shared/dragGhost).
*/
import { useStore } from '../store/appStore'
+import { setEdgeDragPull } from '../lib/edgeDrag'
import type { ClipboardItemDto } from '../../shared/types'
import { dragGhostSvg } from '../../shared/dragGhost'
import { fileIconUrl, fileKindOf, type FileKind } from '../lib/fileKind'
@@ -56,6 +58,10 @@ export interface Stage {
keysLabel: HTMLElement
notes: HTMLElement
notesImage: HTMLElement
+ /** The web page the copy demo selects and copies from. */
+ browser: HTMLElement
+ /** File Explorer, the drag-in demo's source. */
+ explorer: HTMLElement
/** Welcome: the real shelf in place of the drawn bar on the laptop (the closed bars match exactly). */
showShelf: (on: boolean) => void
}
@@ -65,31 +71,50 @@ const set = useStore.setState
/** Item states each step starts from, so Back and Continue land on a consistent shelf. */
export function itemsFor(step: string, now = Date.now()): ClipboardItemDto[] {
- const four = [demoText(now - 4000), demoImage(now - 9000), demoLink(now - 14000), demoPdf(now - 19000)]
+ // Copied from the page (text, link, image), then the PDF dragged in from File Explorer.
+ const three = [demoImage(now - 9000), demoLink(now - 14000), demoText(now - 19000)]
+ const four = [demoPdf(now - 4000), ...three]
+ // Dragged out into another app, the image counts as used and moves to the front (as in the app).
+ const used = [demoImage(now - 500), ...four.filter((it) => it.id !== 'demo-image')]
const split = [demoSingle(now - 2000, STACK_FILES[0]), demoStack(now - 3000, STACK_FILES.slice(1))]
switch (step) {
case 'welcome': return four
case 'collect': return []
- case 'drag': return four
+ case 'dropin': return three
case 'stacks': return four
- case 'ungroup': return [demoStack(now - 1000), ...four]
- case 'merge': return [...split, ...four]
+ case 'drag': return [demoStack(now - 1000), ...four]
+ case 'ungroup': return [used[0], demoStack(now - 1000), ...used.slice(1)]
+ case 'merge': return [...split, ...used]
case 'preview':
case 'settings':
- return [demoMerged(now - 2000, STACK_FILES[0]), split[1], four[0], four[2], four[3]]
+ return [demoMerged(now - 2000, STACK_FILES[0]), split[1], ...four.filter((it) => it.id !== 'demo-image')]
default: return []
}
}
-/** Clear everything a demo may have left behind (on cancel, Back, Continue). */
-export function resetDemoState(stage: Stage): void {
+/** The other app each step plays in; a step that follows in the same app keeps it up. */
+const WINDOW_OF: Record<string, (stage: Stage) => HTMLElement> = {
+ collect: (s) => s.browser,
+ dropin: (s) => s.explorer,
+ stacks: (s) => s.explorer,
+ drag: (s) => s.notes
+}
+
+/** Clear everything a demo may have left behind (on cancel, Back, Continue); `next` is the step coming up. */
+export function resetDemoState(stage: Stage, next?: string): void {
stage.root.querySelectorAll('.ob-ghost').forEach((el) => el.remove())
stage.root.querySelectorAll('.force-actions').forEach((el) => el.classList.remove('force-actions'))
- set({ internalDragReq: null, dropTargetId: null, expandedStackId: null, previewItemId: null, previewItemRect: null, copyFlareActive: false })
+ set({
+ internalDragReq: null, dropTargetId: null, expandedStackId: null, previewItemId: null, previewItemRect: null,
+ copyFlareActive: false, externalDrag: false, dragActive: false
+ })
+ setEdgeDragPull(0)
stage.cursor.getAnimations().forEach((a) => a.cancel())
stage.keys.getAnimations().forEach((a) => a.cancel())
- stage.notes.getAnimations().forEach((a) => a.cancel())
stage.notesImage.getAnimations().forEach((a) => a.cancel())
+ clearMarks(stage)
+ const keep = next ? WINDOW_OF[next]?.(stage) : undefined
+ for (const w of [stage.notes, stage.browser, stage.explorer]) if (w !== keep) hideWindow(w)
stage.root.querySelector('.ob-shelf')?.getAnimations().forEach((a) => a.cancel())
}
@@ -106,6 +131,35 @@ const centre = (el: Element) => {
return { x: r.left + r.width / 2, y: r.top + r.height / 2 }
}
+/** The other apps open with a short rise; a replay finds them already up. Not tied to a run: on a step change they fade out (hideWindow) instead of vanishing. */
+function showWindow(el: HTMLElement) {
+ const now = Number(getComputedStyle(el).opacity)
+ if (now > 0.99 && !el.dataset.leaving) return
+ el.getAnimations().forEach((a) => a.cancel())
+ delete el.dataset.leaving
+ el.animate([{ opacity: now, transform: now > 0 ? 'none' : 'translateY(14px) scale(.97)' }, { opacity: 1, transform: 'none' }], {
+ duration: 420, easing: 'cubic-bezier(.3,.8,.2,1)', fill: 'forwards'
+ })
+}
+
+function hideWindow(el: HTMLElement) {
+ if (!el.getAnimations().length || el.dataset.leaving) return
+ const now = getComputedStyle(el).opacity
+ el.getAnimations().forEach((a) => a.cancel())
+ el.dataset.leaving = '1'
+ const a = el.animate([{ opacity: now }, { opacity: 0 }], { duration: 260, easing: 'ease', fill: 'forwards' })
+ a.finished.then(() => { if (el.dataset.leaving) { delete el.dataset.leaving; a.cancel() } }).catch(() => {})
+}
+
+/** Text selections and the selected file in the other apps (they fade on a rewind). */
+const marks = (stage: Stage) => [...stage.root.querySelectorAll<HTMLElement>('.ob-hl')]
+
+function clearMarks(stage: Stage) {
+ marks(stage).forEach((el) => el.getAnimations().forEach((a) => a.cancel()))
+ stage.root.querySelectorAll('.ob-band').forEach((el) => el.getAnimations().forEach((a) => a.cancel()))
+ stage.root.querySelectorAll('.ob-menu, .ob-file.is-on').forEach((el) => el.classList.remove('is-open', 'is-on'))
+}
+
class Pointer {
private at = { x: 560, y: 380 }
constructor(private run: Run, private el: HTMLElement) {}
@@ -120,10 +174,10 @@ class Pointer {
hide() {
return this.run.animate(this.el, [{ opacity: 1, transform: this.tf(this.at) }, { opacity: 0, transform: this.tf(this.at) }], { duration: 250 })
}
- move(x: number, y: number, ms: number) {
+ move(x: number, y: number, ms: number, easing = MOVE) {
const from = this.at
this.at = { x, y }
- return this.run.animate(this.el, [{ opacity: 1, transform: this.tf(from) }, { opacity: 1, transform: this.tf(this.at) }], { duration: ms, easing: MOVE })
+ return this.run.animate(this.el, [{ opacity: 1, transform: this.tf(from) }, { opacity: 1, transform: this.tf(this.at) }], { duration: ms, easing })
}
press() {
return this.run.animate(
@@ -159,10 +213,10 @@ class DragImage {
private tf(p: { x: number; y: number }) {
return `translate(${p.x - this.w / 2}px, ${p.y - this.h / 2}px)`
}
- move(x: number, y: number, ms: number) {
+ move(x: number, y: number, ms: number, easing = MOVE) {
const from = this.at
this.at = { x, y }
- return this.run.animate(this.el, [{ transform: this.tf(from) }, { transform: this.tf(this.at) }], { duration: ms, easing: MOVE })
+ return this.run.animate(this.el, [{ transform: this.tf(from) }, { transform: this.tf(this.at) }], { duration: ms, easing })
}
/** Dropped: the drag image goes the moment the drop lands. */
drop() {
@@ -170,8 +224,42 @@ class DragImage {
}
}
-async function keys(run: Run, stage: Stage, label: string) {
+/**
+ * What Windows shows while a file is dragged out of File Explorer: the file's icon, see-through, riding
+ * just above the pointer, and a "+ Copy" label once it is over a place that takes it.
+ */
+class FileGhost {
+ readonly el: HTMLDivElement
+ constructor(private run: Run, stage: Stage, kind: FileKind, private at: { x: number; y: number }) {
+ this.el = document.createElement('div')
+ this.el.className = 'ob-ghost ob-file-ghost'
+ this.el.innerHTML = `<img src="${fileIconUrl(kind)}" alt=""><span>+ Copy</span>`
+ this.el.style.transform = this.tf(at)
+ stage.root.append(this.el)
+ run.animate(this.el, [{ opacity: 0 }, { opacity: 1 }], { duration: 140, fill: 'none' }).catch(() => {})
+ }
+ private tf(p: { x: number; y: number }) {
+ return `translate(${p.x - 20}px, ${p.y - 34}px)`
+ }
+ move(x: number, y: number, ms: number, easing = MOVE) {
+ const from = this.at
+ this.at = { x, y }
+ return this.run.animate(this.el, [{ transform: this.tf(from) }, { transform: this.tf(this.at) }], { duration: ms, easing })
+ }
+ copying(on: boolean) {
+ this.el.classList.toggle('is-copy', on)
+ }
+ drop() {
+ this.el.remove()
+ }
+}
+
+/** Ctrl+C on screen: centred, or (`at`) beside the app being copied from. */
+async function keys(run: Run, stage: Stage, label: string, at?: { x: number; y: number }) {
stage.keysLabel.textContent = label
+ stage.keys.style.left = at ? `${at.x}px` : ''
+ stage.keys.style.right = at ? 'auto' : ''
+ stage.keys.style.top = at ? `${at.y}px` : ''
await run.animate(stage.keys, [{ opacity: 0, transform: 'translateY(10px) scale(.92)' }, { opacity: 1, transform: 'none' }], { duration: 160 })
await run.sleep(300)
run.animate(stage.keys, [{ opacity: 1, transform: 'none' }, { opacity: 0, transform: 'translateY(-6px)' }], { duration: 200 }).catch(() => {})
@@ -204,36 +292,152 @@ export async function demoWelcome(run: Run, stage: Stage) {
await p.hide()
}
-/** Copy four things while the shelf is closed, then open it: everything is there. */
+/** The selection highlight behind an element (a line of the page, the address). */
+const hl = (el: Element) => el.querySelector<HTMLElement>('.ob-hl')!
+
+/**
+ * Copy from a web page the way people do, with the shelf closed: select a sentence and press Ctrl+C,
+ * click the address and press Ctrl+C, right-click the photo and choose Copy image. Each copy lights the
+ * edge; then the pointer opens the shelf and all three are there.
+ */
export async function demoCollect(run: Run, stage: Stage) {
const p = new Pointer(run, stage.cursor)
+ const page = stage.browser
+ clearMarks(stage)
+ showWindow(page)
+ await run.sleep(250)
+ const box = page.getBoundingClientRect()
+ // Ctrl+C beside the browser, out of the way of what is being copied
+ const side = { x: box.right + 18, y: box.top + box.height / 2 - 34 }
const now = Date.now()
- for (const [item, label] of [
- [demoPdf(now), 'Itinerary.pdf'],
- [demoLink(now), 'A link'],
- [demoImage(now), 'A photo'],
- [demoText(now), 'A note']
- ] as const) {
- await keys(run, stage, label)
- capture(item)
- copyFlare(run)
- await run.sleep(500)
+
+ // 1. a sentence: press at its start and drag to its end, the selection following the pointer line by line
+ const lines = [...page.querySelectorAll<HTMLElement>('.ob-line')]
+ const r0 = lines[0].getBoundingClientRect()
+ await p.show(box.left + box.width * 0.55, box.bottom - 30)
+ await p.move(r0.left, r0.top + r0.height / 2, 650)
+ await p.press()
+ for (const [k, line] of lines.entries()) {
+ const r = line.getBoundingClientRect()
+ const ms = k === 0 ? 520 : 300
+ await Promise.all([
+ p.move(r.right, r.top + r.height / 2, ms, 'linear'),
+ run.animate(hl(line), [{ transform: 'scaleX(0)' }, { transform: 'scaleX(1)' }], { duration: ms, easing: 'linear' })
+ ])
+ }
+ await run.sleep(150)
+ await keys(run, stage, '', side)
+ capture(demoText(now))
+ copyFlare(run)
+ await run.sleep(450)
+
+ // 2. the link: a click in the address bar selects it all
+ const url = page.querySelector<HTMLElement>('.ob-url')!
+ const u = url.getBoundingClientRect()
+ await p.move(u.left + u.width * 0.6, u.top + u.height / 2, 600)
+ await p.press()
+ run.animate(hl(url), [{ transform: 'scaleX(0)', opacity: 0 }, { transform: 'scaleX(1)', opacity: 1 }], { duration: 140 }).catch(() => {})
+ await run.sleep(250)
+ await keys(run, stage, '', side)
+ capture(demoLink(now))
+ copyFlare(run)
+ await run.sleep(450)
+
+ // 3. the photo: right-click, Copy image
+ const photo = page.querySelector<HTMLElement>('.ob-photo')!
+ const ph = photo.getBoundingClientRect()
+ await p.move(ph.left + ph.width * 0.45, ph.top + ph.height * 0.55, 600)
+ await p.press()
+ const menu = page.querySelector<HTMLElement>('.ob-menu')!
+ // at the pointer, flipped to the other side where it would not fit in the window (as real menus do)
+ const mx = ph.left + ph.width * 0.45 - box.left
+ const my = ph.top + ph.height * 0.55 - box.top
+ const fitsRight = mx + 4 + menu.offsetWidth <= box.width - 6
+ const fitsBelow = my + 4 + menu.offsetHeight <= box.height - 6
+ menu.style.left = `${fitsRight ? mx + 4 : mx - 4 - menu.offsetWidth}px`
+ menu.style.top = `${fitsBelow ? my + 4 : my - 4 - menu.offsetHeight}px`
+ menu.style.transformOrigin = `${fitsRight ? 0 : 100}% ${fitsBelow ? 0 : 100}%`
+ menu.classList.add('is-open')
+ await run.sleep(260)
+ const item = menu.querySelector<HTMLElement>('.is-copy')!
+ const it = item.getBoundingClientRect()
+ await p.move(it.left + 34, it.top + it.height / 2, 380)
+ item.classList.add('is-hover')
+ await run.sleep(180)
+ await p.press()
+ menu.classList.remove('is-open')
+ item.classList.remove('is-hover')
+ capture(demoImage(now))
+ copyFlare(run)
+ await run.sleep(700)
+
+ // all of it is on the shelf
+ await p.move(400, TOUR_SCREEN_TOP + 5, 750)
+ set({ open: true })
+ await run.sleep(900)
+ await p.move(560, 380, 600)
+ await p.hide()
+}
+
+/**
+ * Drag a file in from File Explorer: as it nears the edge the bar swells (the app's own pull, in steps),
+ * at the bar the shelf opens into its drop zone, over the shelf the zone lights, and the drop lands as a card.
+ */
+export async function demoDropIn(run: Run, stage: Stage) {
+ const p = new Pointer(run, stage.cursor)
+ const win = stage.explorer
+ clearMarks(stage)
+ showWindow(win)
+ await run.sleep(250)
+ const row = win.querySelector<HTMLElement>('.ob-file.is-pdf')!
+ const icon = row.querySelector('img')!
+ const c = centre(icon)
+ await p.show(560, 380)
+ await p.move(c.x, c.y, 650)
+ row.classList.add('is-on')
+ await p.press()
+ await p.move(c.x + 6, c.y + 8, 120)
+ set({ externalDrag: true })
+ const g = new FileGhost(run, stage, 'pdf', { x: c.x + 6, y: c.y + 8 })
+ // toward the bar: one smooth glide in three legs, the swell growing at each
+ const from = { x: c.x + 6, y: c.y + 8 }
+ const bar = { x: 400, y: TOUR_SCREEN_TOP + 6 }
+ const legs: Array<[number, number, string, number]> = [
+ [0.4, 420, 'cubic-bezier(.45,0,1,1)', 0.3],
+ [0.75, 300, 'linear', 0.6],
+ [1, 360, 'cubic-bezier(0,0,.3,1)', 0.9]
+ ]
+ for (const [t, ms, easing, pull] of legs) {
+ const x = from.x + (bar.x - from.x) * t
+ const y = from.y + (bar.y - from.y) * t
+ await Promise.all([p.move(x, y, ms, easing), g.move(x, y, ms, easing)])
+ setEdgeDragPull(pull)
}
- await p.show(560, 300)
- await p.move(400, TOUR_SCREEN_TOP + 5, 700)
+ // at the bar: the shelf opens straight into its drop zone
set({ open: true })
- await run.sleep(600)
- await p.move(520, 330, 600)
+ await run.sleep(420)
+ const over = { x: 400, y: TOUR_SCREEN_TOP + 62 }
+ await Promise.all([p.move(over.x, over.y, 380), g.move(over.x, over.y, 380)])
+ set({ dragActive: true })
+ g.copying(true)
+ await run.sleep(420)
+ // the drop: the zone takes it in (DropOverlay listens for the drop), then the card is there
+ g.drop()
+ document.dispatchEvent(new Event('drop'))
+ set({ externalDrag: false, dragActive: false })
+ setEdgeDragPull(0)
+ await run.sleep(260)
+ capture(demoPdf(Date.now()))
+ await run.sleep(500)
+ row.classList.remove('is-on')
+ await p.move(560, 380, 600)
await p.hide()
}
/** Drag the image card out of the shelf into another app. */
export async function demoDrag(run: Run, stage: Stage) {
const p = new Pointer(run, stage.cursor)
- // the other app opens once; a replay finds it already there
- if (!stage.notes.getAnimations().length) {
- run.animate(stage.notes, [{ opacity: 0, transform: 'translateY(14px) scale(.97)' }, { opacity: 1, transform: 'none' }], { duration: 420 }).catch(() => {})
- }
+ showWindow(stage.notes)
await p.show(600, 400)
const src = card(stage, 'demo-image')
const c = centre(src)
@@ -248,15 +452,57 @@ export async function demoDrag(run: Run, stage: Stage) {
g.drop()
set({ internalDragReq: null })
await run.animate(stage.notesImage, [{ opacity: 0, transform: 'scale(.8)' }, { opacity: 1, transform: 'none' }], { duration: 300 })
+ // a card dragged out into another app counts as used: it moves to the front (main: movePastedToTop)
+ const items = useStore.getState().items
+ set({ items: [...items.filter((it) => it.id === 'demo-image').map((it) => ({ ...it, capturedAt: Date.now() })), ...items.filter((it) => it.id !== 'demo-image')] })
await run.sleep(300)
await p.hide()
}
-/** Copy three files at once: they arrive as one stack. */
+/**
+ * Select three files in File Explorer (a selection box drawn across them, as on the desktop) and press
+ * Ctrl+C: they land on the shelf as one stack.
+ */
export async function demoStacks(run: Run, stage: Stage) {
- await keys(run, stage, '3 files')
+ const p = new Pointer(run, stage.cursor)
+ const win = stage.explorer
+ clearMarks(stage)
+ showWindow(win)
+ await run.sleep(250)
+ const list = win.querySelector<HTMLElement>('.ob-files')!
+ const band = list.querySelector<HTMLElement>('.ob-band')!
+ const rows = [...list.querySelectorAll<HTMLElement>('.ob-file:not(.is-pdf)')]
+ const lb = list.getBoundingClientRect()
+ const box = win.getBoundingClientRect()
+ const top = rows[0].getBoundingClientRect()
+ const bottom = rows[rows.length - 1].getBoundingClientRect()
+ // from the empty space under the list, up and to the left across the three files
+ const from = { x: lb.right - 24, y: bottom.bottom + 14 }
+ const to = { x: top.left + top.width * 0.42, y: top.top + top.height * 0.5 }
+ await p.show(box.right - 40, box.bottom + 30)
+ await p.move(from.x, from.y, 600)
+ await p.press()
+ const T = 900
+ const rect = (x: number, y: number) => ({ left: `${x - lb.left}px`, top: `${y - lb.top}px` })
+ run.animate(band, [
+ { ...rect(from.x, from.y), width: '0px', height: '0px', opacity: 1 },
+ { ...rect(to.x, to.y), width: `${from.x - to.x}px`, height: `${from.y - to.y}px`, opacity: 1 }
+ ], { duration: T, easing: 'linear' }).catch(() => {})
+ // each file joins the selection as the box's edge reaches it
+ for (const row of rows) {
+ const reach = (from.y - (row.getBoundingClientRect().bottom - 4)) / (from.y - to.y)
+ run.sleep(Math.max(0, reach) * T).then(() => row.classList.add('is-on')).catch(() => {})
+ }
+ await p.move(to.x, to.y, T, 'linear')
+ // let go: the box goes, the three stay selected
+ run.animate(band, [{ opacity: 1 }, { opacity: 0 }], { duration: 160 }).catch(() => {})
+ await run.sleep(300)
+ await keys(run, stage, '', { x: box.right + 18, y: box.top + box.height / 2 - 34 })
capture(demoStack(Date.now()))
copyFlare(run)
+ await run.sleep(600)
+ await p.move(box.right - 40, box.bottom + 30, 600)
+ await p.hide()
}
/** Open the stack, drag one file to the edge light, and it becomes its own card. */
@@ -342,6 +588,7 @@ export async function demoPreview(run: Run, stage: Stage) {
export const DEMOS: Record<string, ((run: Run, stage: Stage) => Promise<void>) | undefined> = {
welcome: demoWelcome,
collect: demoCollect,
+ dropin: demoDropIn,
drag: demoDrag,
stacks: demoStacks,
ungroup: demoUngroup,
@@ -380,6 +627,12 @@ const shelfLayer = (stage: Stage) => stage.root.querySelector<HTMLElement>('.ob-
async function rewind(run: Run, stage: Stage, step: string, open: boolean) {
const st = useStore.getState()
set({ previewItemId: null, previewItemRect: null, expandedStackId: null })
+ for (const m of marks(stage)) {
+ if (!m.getAnimations().length) continue
+ m.getAnimations().forEach((a) => a.cancel())
+ run.animate(m, [{ transform: 'scaleX(1)', opacity: 1 }, { transform: 'scaleX(1)', opacity: 0 }], { duration: 400, easing: 'ease' }).catch(() => {})
+ }
+ stage.root.querySelectorAll('.ob-file.is-on').forEach((el) => el.classList.remove('is-on'))
if (stage.notesImage.getAnimations().length) {
stage.notesImage.getAnimations().forEach((a) => a.cancel())
await run.animate(stage.notesImage, [{ opacity: 1 }, { opacity: 0 }], { duration: 400, easing: 'ease' })
@@ -406,11 +659,13 @@ async function rewind(run: Run, stage: Stage, step: string, open: boolean) {
/**
* A step's demo plays once and rests on its result; after the viewer has been idle a while it rewinds
- * gently and plays again, for as long as the step is up. Next moves on at any moment.
+ * gently and plays again, for as long as the step is up. Next moves on at any moment. `played` is told
+ * each time the demo reaches its end (autoplay times the step on it).
*/
-export async function playLooped(run: Run, stage: Stage, step: string, open: boolean, demo: (run: Run, stage: Stage) => Promise<void>) {
+export async function playLooped(run: Run, stage: Stage, step: string, open: boolean, demo: (run: Run, stage: Stage) => Promise<void>, played?: () => void) {
for (;;) {
await demo(run, stage)
+ if (!run.dead) played?.()
await idleFor(run, REPLAY_IDLE)
await rewind(run, stage, step, open)
}
diff --git a/src/styles/onboarding.css b/src/styles/onboarding.css
index ebc8187..5d51314 100644
--- a/src/styles/onboarding.css
+++ b/src/styles/onboarding.css
@@ -159,6 +159,10 @@
.ob-taskbar.is-on {
opacity: 1;
}
+/* Into the tour it goes at once, before the push-in brings it under the step's text. */
+.ob-taskbar:not(.is-on) {
+ transition: opacity 0.2s ease;
+}
.ob-task-apps {
display: flex;
gap: 6px;
@@ -323,6 +327,217 @@
background: url('../assets/onboarding/summit.png') center / cover;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
+/* The browser (copy demo) and File Explorer (drag-in demo): the same dark Windows 11 windows as the notes app. */
+.ob-win {
+ position: absolute;
+ border-radius: 10px;
+ overflow: hidden;
+ opacity: 0;
+ background: #1d1e22;
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 56px rgba(0, 4, 60, 0.5);
+ color: #ececef;
+ font-size: 11px;
+}
+.ob-win-bar {
+ height: 30px;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 0 14px 0 8px;
+ color: #b8bac2;
+ background: #17181b;
+}
+.ob-browser {
+ left: 168px;
+ top: 104px;
+ width: 430px;
+ height: 208px;
+}
+.ob-tab {
+ height: 22px;
+ margin-top: 8px;
+ padding: 0 12px 0 8px;
+ display: flex;
+ align-items: center;
+ gap: 7px;
+ border-radius: 7px 7px 0 0;
+ background: #1d1e22;
+ color: #dfe0e5;
+ font-size: 10.5px;
+}
+.ob-tab i {
+ width: 13px;
+ height: 13px;
+ border-radius: 50%;
+ display: grid;
+ place-items: center;
+ background: #eceef2;
+ color: #222;
+ font: 700 8px Georgia, serif;
+ font-style: normal;
+}
+.ob-address {
+ margin: 6px 10px 0;
+ height: 24px;
+ padding: 0 12px;
+ display: flex;
+ align-items: center;
+ border-radius: 12px;
+ background: #2a2c31;
+ color: #c9cbd2;
+ font-size: 10.5px;
+}
+.ob-url {
+ position: relative;
+ white-space: nowrap;
+}
+/* A text selection: Windows' selection blue behind the text, grown from the left as the pointer drags. */
+.ob-hl {
+ position: absolute;
+ inset: -1px -1px;
+ z-index: -1;
+ border-radius: 2px;
+ background: rgba(51, 144, 255, 0.55);
+ transform: scaleX(0);
+ transform-origin: 0 50%;
+}
+.ob-url,
+.ob-line {
+ isolation: isolate;
+}
+.ob-page {
+ display: flex;
+ gap: 16px;
+ padding: 14px 18px 0;
+}
+.ob-article {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ min-width: 0;
+}
+.ob-article b {
+ font: 400 17px/1.2 Georgia, 'Times New Roman', serif;
+ color: #f1f2f5;
+ padding-bottom: 6px;
+ margin-bottom: 8px;
+ align-self: stretch;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1);
+}
+.ob-line,
+.ob-rest {
+ position: relative;
+ white-space: nowrap;
+ line-height: 17px;
+ font-size: 10.5px;
+ color: #c9cbd2;
+}
+.ob-rest {
+ margin-top: 3px;
+ color: #8e919b;
+}
+.ob-photo {
+ flex: none;
+ width: 124px;
+ height: 84px;
+ margin-top: 30px;
+ border-radius: 6px;
+ background: url('../assets/onboarding/summit.png') center / cover;
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
+}
+/* The browser's context menu on the photo. */
+.ob-menu {
+ position: absolute;
+ padding: 4px;
+ display: flex;
+ flex-direction: column;
+ border-radius: 8px;
+ background: #2b2d33;
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 30, 0.5);
+ font-size: 10px;
+ color: #dfe0e5;
+ opacity: 0;
+ transform: scale(0.96);
+ transform-origin: 0 0;
+ transition: opacity 0.12s ease, transform 0.12s ease;
+}
+.ob-menu.is-open {
+ opacity: 1;
+ transform: none;
+}
+.ob-menu span {
+ padding: 5px 26px 5px 10px;
+ border-radius: 5px;
+ white-space: nowrap;
+}
+.ob-menu span.is-hover {
+ background: rgba(255, 255, 255, 0.1);
+}
+.ob-explorer {
+ left: 196px;
+ top: 172px;
+ width: 330px;
+ height: 222px;
+}
+.ob-explorer .ob-win-bar {
+ padding-left: 12px;
+}
+/* File Explorer's folder icon */
+.ob-folder {
+ background: linear-gradient(#ffd66b, #f0b429) !important;
+ border-radius: 2px 2px 2.5px 2.5px !important;
+ height: 10px !important;
+ width: 13px !important;
+}
+.ob-files {
+ position: relative;
+ padding: 8px 10px;
+}
+/* Explorer's selection box, drawn from empty space across the files (left/top/size animated). */
+.ob-band {
+ position: absolute;
+ z-index: 1;
+ opacity: 0;
+ pointer-events: none;
+ border: 1px solid rgba(76, 160, 255, 0.9);
+ background: rgba(51, 144, 255, 0.2);
+}
+.ob-files-head,
+.ob-file {
+ display: grid;
+ grid-template-columns: 1fr 64px;
+ align-items: center;
+ padding: 0 8px;
+}
+.ob-files-head {
+ height: 22px;
+ color: #8e919b;
+ font-size: 10px;
+ border-bottom: 1px solid rgba(255, 255, 255, 0.07);
+ margin-bottom: 4px;
+}
+.ob-file {
+ grid-template-columns: 22px 1fr 64px;
+ height: 30px;
+ border-radius: 5px;
+ transition: background 0.2s;
+}
+.ob-files-head span:last-child,
+.ob-file em {
+ text-align: right;
+ font-style: normal;
+ color: #8e919b;
+}
+.ob-file img {
+ width: 18px;
+ height: 18px;
+ object-fit: contain;
+}
+.ob-file.is-on {
+ background: rgba(51, 144, 255, 0.28);
+}
+
.ob-keys {
position: absolute;
left: 0;
@@ -376,6 +591,31 @@
.ob-ghost svg {
display: block;
}
+/* A file dragged out of File Explorer: its icon, see-through, and "+ Copy" once over a drop target. */
+.ob-file-ghost img {
+ display: block;
+ width: 40px;
+ height: 40px;
+ opacity: 0.78;
+ filter: drop-shadow(0 4px 8px rgba(0, 0, 30, 0.35));
+}
+.ob-file-ghost span {
+ position: absolute;
+ left: 30px;
+ top: 50px;
+ padding: 3px 8px;
+ border-radius: 4px;
+ white-space: nowrap;
+ font-size: 10px;
+ color: #ececef;
+ background: #2b2d33;
+ box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 30, 0.4);
+ opacity: 0;
+ transition: opacity 0.15s ease;
+}
+.ob-file-ghost.is-copy span {
+ opacity: 1;
+}
/* ---------- text ---------- */
.ob-ui {
@@ -428,6 +668,8 @@
height: 14px;
}
.ob-dots i {
+ position: relative;
+ overflow: hidden;
width: 4px;
height: 4px;
border-radius: 2px;
@@ -436,7 +678,50 @@
}
.ob-dots i.on {
width: 18px;
+ background: rgba(255, 255, 255, 0.36);
+}
+/* The active dash's fill: the step's progress under autoplay (scaleX set by Autoplay). */
+.ob-dots i b {
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
background: #fff;
+ transform: scaleX(0);
+ transform-origin: 0 50%;
+}
+.ob-dots i b.is-full {
+ transform: none;
+}
+/* The dots stay centred; the play/pause button hangs off their right end. */
+.ob-progress {
+ position: relative;
+ display: flex;
+ justify-content: center;
+}
+.ob-play {
+ position: absolute;
+ left: calc(100% + 10px);
+ top: 50%;
+ width: 20px;
+ height: 20px;
+ margin-top: -10px;
+ padding: 0;
+ border: 0;
+ border-radius: 50%;
+ display: grid;
+ place-items: center;
+ color: #fff;
+ background: rgba(255, 255, 255, 0.14);
+ box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
+ cursor: pointer;
+ transition: background 0.2s;
+}
+.ob-play:hover {
+ background: rgba(255, 255, 255, 0.26);
+}
+.ob-play:focus-visible {
+ outline: 2px solid rgba(255, 255, 255, 0.8);
+ outline-offset: 2px;
}
.ob-copy {
display: flex;