Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Add Loom migration CTA, analytics & UI

Richie McIlroyab3af7d30f27
diff --git a/apps/web/app/(site)/tools/loom-downloader/page.tsx b/apps/web/app/(site)/tools/loom-downloader/page.tsx
index 595b362b2..449ab3370 100644
--- a/apps/web/app/(site)/tools/loom-downloader/page.tsx
+++ b/apps/web/app/(site)/tools/loom-downloader/page.tsx
@@ -5,9 +5,10 @@ import type { ToolPageContent } from "@/components/tools/types";
import { createBreadcrumbSchema } from "@/utils/web-schema";
export const metadata: Metadata = {
- title: "Loom Video Downloader — Download Loom Videos Free Online | Cap",
+ title:
+ "Loom Video Downloader — Download Loom Videos Free + Migrate to Cap | Cap",
description:
- "Download any Loom video for free with Cap's online Loom video downloader. No signup, no software needed — just paste your Loom link and save the MP4 instantly.",
+ "Download any Loom video for free with Cap's online Loom video downloader. Then migrate your entire Loom library to Cap — the open source Loom alternative — with 20% off using code MIGRATE20.",
keywords: [
"loom video downloader",
"download loom video",
@@ -22,11 +23,14 @@ export const metadata: Metadata = {
"import loom videos",
"loom video importer",
"migrate from loom",
+ "loom to cap migration",
+ "loom alternative",
+ "switch from loom",
],
openGraph: {
- title: "Loom Video Downloader — Download Loom Videos Free | Cap",
+ title: "Loom Video Downloader — Free Download + Migrate to Cap",
description:
- "Download any Loom video for free. Paste the link, get the MP4. No signup required. Built by Cap, the open source Loom alternative.",
+ "Download any Loom video for free. Then migrate your whole Loom library to Cap and save 20% with MIGRATE20. Built by Cap, the open source Loom alternative.",
url: "https://cap.so/tools/loom-downloader",
siteName: "Cap",
type: "website",
@@ -41,9 +45,9 @@ export const metadata: Metadata = {
},
twitter: {
card: "summary_large_image",
- title: "Loom Video Downloader — Download Loom Videos Free | Cap",
+ title: "Loom Video Downloader — Free Download + Migrate to Cap",
description:
- "Download any Loom video for free. Paste the link, get the MP4. No signup required.",
+ "Download any Loom video for free — then migrate your whole library to Cap with 20% off using MIGRATE20.",
images: ["/og.png"],
},
alternates: {
@@ -54,10 +58,10 @@ export const metadata: Metadata = {
const pageContent: ToolPageContent = {
title: "Loom Video Downloader",
description:
- "Download any public Loom video as an MP4 file. Just paste the link — no account, no installs, completely free.",
- featuresTitle: "Why Use Cap's Loom Video Downloader?",
+ "Download any public Loom video as an MP4 — or skip the one-by-one downloads and migrate your whole Loom library to Cap with 20% off using code MIGRATE20.",
+ featuresTitle: "Download Loom videos, then move your whole library to Cap",
featuresDescription:
- 'Cap\'s Loom downloader is fast, free, and requires zero setup. Built by the team behind <a href="/">Cap — the open source Loom alternative</a>.',
+ "Cap's Loom downloader is free, fast, and requires zero setup. When you're ready to leave Loom for good, Cap Pro's built-in <a href=\"/loom-alternative\">Loom video importer</a> moves your entire workspace in one click.",
features: [
{
title: "Instant Downloads",
@@ -70,79 +74,82 @@ const pageContent: ToolPageContent = {
"No signup, no login, no email. Just paste your Loom URL and download the video immediately.",
},
{
- title: "100% Free",
+ title: "100% Free to Download",
description:
- "Completely free to use with no limits. Download as many Loom videos as you need, whenever you need them.",
+ "Completely free with no limits on downloads. Save as many Loom videos as you need — then switch to Cap to stop paying Loom's $18/user/month.",
},
{
- title: "Works with Any Public Loom Video",
+ title: "Import Your Whole Loom Library",
description:
- "Supports all public Loom video links including share links, embed links, and direct URLs.",
+ 'Cap Pro includes a built-in <a href="/loom-alternative">Loom video importer</a> that transfers every Loom video you\'ve recorded — titles, transcripts, and chapters included — without manual re-uploads.',
},
{
- title: "Nothing Stored on Our Servers",
+ title: "Half the Price of Loom",
description:
- "We only fetch the download URL from Loom's servers. Your videos are never uploaded to or stored on Cap.",
+ "Cap Pro starts from just $8.16/user/month vs Loom's $18/user/month. Use code <strong>MIGRATE20</strong> at checkout for an extra 20% off your first year.",
},
{
- title: "MP4 Format",
+ title: "Open Source & Privacy-First",
description:
- "Videos are downloaded in MP4 format — the most widely supported video format across all devices and platforms.",
+ 'Cap is the <a href="/">open source Loom alternative</a>. Bring your own S3 bucket, connect your own domain, and own 100% of your video data.',
},
],
faqs: [
{
question: "How do I download a Loom video?",
answer:
- 'Simply paste the Loom video URL into the input field above and click "Download Video". The MP4 file will start downloading automatically. You can find Loom URLs by clicking the share button on any Loom video.',
+ 'Paste the Loom video URL into the input above and click "Download Video". The MP4 file will start downloading automatically. You can find Loom URLs by clicking the share button on any Loom video.',
},
{
question: "Is this Loom video downloader free?",
answer:
- "Yes, 100% free with no limits. There's no signup required, no premium tier, and no restrictions on the number of downloads.",
+ "Yes, 100% free with no limits. There's no signup required, no premium tier, and no cap on the number of videos you can download.",
},
{
- question: "Can I download private Loom videos?",
+ question: "What is MIGRATE20 and how do I use it?",
answer:
- "No, this tool only works with publicly accessible Loom videos. If a video requires a password or is set to private, you'll need to ask the video creator to make it public or share the download directly.",
+ '<strong>MIGRATE20</strong> is a 20% discount code for new Cap Pro subscribers who are switching from Loom. Just apply it at <a href="/pricing">checkout on the pricing page</a> to take 20% off your first year of Cap Pro — including the built-in Loom video importer.',
},
{
- question: "What video format are downloads in?",
+ question: "Can I import all my Loom videos into Cap at once?",
answer:
- "All Loom videos are downloaded in MP4 format, which is compatible with virtually every device, media player, and video editor.",
+ 'Yes. Cap Pro\'s built-in <a href="/loom-alternative">Loom video importer</a> connects to your Loom workspace and transfers every video in one go — titles, transcripts, chapters, and all — without you having to download and re-upload anything manually.',
},
{
- question: "Is there a file size limit?",
+ question: "Why migrate from Loom to Cap?",
answer:
- "There's no file size limit on our end. The download size depends on the length and quality of the original Loom recording.",
+ "Cap is the open source Loom alternative built for teams that care about data ownership and price. You get unlimited cloud storage, instant shareable links, AI captions, custom domains, and your own S3 bucket — all from $8.16/user/month vs Loom's $18/user/month. Use MIGRATE20 for an additional 20% off.",
},
{
- question: "Why can't I download a specific Loom video?",
+ question: "Can I download private Loom videos?",
answer:
- "Some Loom videos may be restricted by the creator (private, password-protected, or expired links). Make sure the video is publicly accessible. If you see an error, double-check that the URL is correct and the video hasn't been deleted.",
+ "No, this tool only works with publicly accessible Loom videos. If a video requires a password or is set to private, you'll need to ask the video creator to make it public or share the download directly.",
},
{
- question: "Do you store my downloaded videos?",
+ question: "What video format are downloads in?",
answer:
- "No. We never store, cache, or process your videos. Our server simply fetches the direct download URL from Loom and passes it to your browser. The video downloads directly from Loom's servers to your device.",
+ "All Loom videos are downloaded in MP4 format, which is compatible with virtually every device, media player, and video editor.",
},
{
- question:
- "Can I import my Loom videos into Cap instead of downloading them?",
+ question: "Do you store my downloaded videos?",
answer:
- 'Yes! Cap Pro includes a built-in <a href="/loom-alternative">Loom video importer</a> that lets you transfer your Loom recordings directly into your Cap library. It\'s the easiest way to migrate from Loom without manually downloading and re-uploading each video.',
+ "No. We never store, cache, or process your videos. Our server simply fetches the direct download URL from Loom and passes it to your browser. The video downloads directly from Loom's servers to your device.",
},
{
question: "What is Cap?",
answer:
- 'Cap is the <a href="/">open source alternative to Loom</a>. It\'s a lightweight, privacy-focused screen recorder that lets you record, edit, and share videos instantly. If you\'re looking for a Loom replacement, <a href="/download">download Cap for free</a>.',
+ 'Cap is the <a href="/">open source alternative to Loom</a>. It\'s a privacy-focused screen recorder that lets you record, edit, and share videos instantly — with unlimited storage, custom domains, and a built-in Loom video importer. <a href="/download">Download Cap for free</a>.',
},
],
cta: {
- title: "Looking for a Loom alternative?",
+ title: "Ready to leave Loom for good?",
description:
- "Cap is the open source screen recorder that gives you full control. Record, edit, and share — all for free. Plus, import your existing Loom videos directly into Cap with our built-in Loom video importer.",
- buttonText: "Download Cap Free",
+ "Skip the one-by-one downloads. Cap Pro imports your entire Loom library in one click — and costs half what Loom charges. Use MIGRATE20 at checkout for an extra 20% off your first year.",
+ buttonText: "Migrate to Cap Pro — save 20%",
+ buttonHref:
+ "/pricing?promo=MIGRATE20&utm_source=loom-downloader&utm_campaign=migrate20",
+ secondaryButtonText: "Download Cap free",
+ secondaryButtonHref: "/download",
},
};
diff --git a/apps/web/components/pages/DownloadPage.tsx b/apps/web/components/pages/DownloadPage.tsx
index 47f774c14..e9c453521 100644
--- a/apps/web/components/pages/DownloadPage.tsx
+++ b/apps/web/components/pages/DownloadPage.tsx
@@ -3,6 +3,7 @@
import { Button } from "@cap/ui";
import { useDetectPlatform } from "hooks/useDetectPlatform";
import Link from "next/link";
+import { trackEvent } from "@/app/utils/analytics";
import {
getDownloadButtonText,
getDownloadUrl,
@@ -14,6 +15,17 @@ import {
export const DownloadPage = () => {
const { platform, isIntel } = useDetectPlatform();
const loading = platform === null;
+ const primaryDownloadUrl = getDownloadUrl(platform, isIntel);
+
+ const trackDownloadClick = (ctaLocation: string, targetUrl: string) => {
+ trackEvent("download_cta_clicked", {
+ source_page: "download_page",
+ cta_location: ctaLocation,
+ target_url: targetUrl,
+ detected_platform: platform ?? "unknown",
+ is_intel: Boolean(isIntel),
+ });
+ };
return (
<div className="py-32 md:py-40 wrapper wrapper-sm">
@@ -30,7 +42,8 @@ export const DownloadPage = () => {
<Button
variant="blue"
size="lg"
- href={getDownloadUrl(platform, isIntel)}
+ href={primaryDownloadUrl}
+ onClick={() => trackDownloadClick("primary", primaryDownloadUrl)}
className="flex justify-center items-center py-6 font-medium text-white"
>
{!loading && getPlatformIcon(platform)}
@@ -64,7 +77,7 @@ export const DownloadPage = () => {
</div>
<div className="flex justify-center items-center fade-in-up animate-delay-2">
- <PlatformIcons />
+ <PlatformIcons source="download_page" />
</div>
<div className="pb-4 mt-6 fade-in-up animate-delay-2">
@@ -75,6 +88,12 @@ export const DownloadPage = () => {
{platform !== "windows" && (
<a
href="/download/windows"
+ onClick={() =>
+ trackDownloadClick(
+ "other_option_windows",
+ "/download/windows",
+ )
+ }
className="text-sm transition-all text-gray-10 hover:underline"
>
Windows (Beta)
@@ -83,6 +102,12 @@ export const DownloadPage = () => {
{platform === "macos" && isIntel && (
<a
href="/download/apple-silicon"
+ onClick={() =>
+ trackDownloadClick(
+ "other_option_apple_silicon",
+ "/download/apple-silicon",
+ )
+ }
className="text-sm transition-all text-gray-10 hover:underline"
>
Apple Silicon
@@ -91,6 +116,12 @@ export const DownloadPage = () => {
{platform === "macos" && !isIntel && (
<a
href="/download/apple-intel"
+ onClick={() =>
+ trackDownloadClick(
+ "other_option_apple_intel",
+ "/download/apple-intel",
+ )
+ }
className="text-sm transition-all text-gray-10 hover:underline"
>
Apple Intel
@@ -100,12 +131,24 @@ export const DownloadPage = () => {
<>
<a
href="/download/apple-silicon"
+ onClick={() =>
+ trackDownloadClick(
+ "other_option_apple_silicon",
+ "/download/apple-silicon",
+ )
+ }
className="text-sm transition-all text-gray-8 hover:underline"
>
Apple Silicon
</a>
<a
href="/download/apple-intel"
+ onClick={() =>
+ trackDownloadClick(
+ "other_option_apple_intel",
+ "/download/apple-intel",
+ )
+ }
className="text-sm transition-all text-gray-8 hover:underline"
>
Apple Intel
@@ -114,6 +157,9 @@ export const DownloadPage = () => {
)}
<Link
href="/download/versions"
+ onClick={() =>
+ trackDownloadClick("all_versions", "/download/versions")
+ }
className="text-sm transition-all text-gray-10 hover:underline"
>
All versions
diff --git a/apps/web/components/pages/HomePage/Header.tsx b/apps/web/components/pages/HomePage/Header.tsx
index 52968f3d9..046639355 100644
--- a/apps/web/components/pages/HomePage/Header.tsx
+++ b/apps/web/components/pages/HomePage/Header.tsx
@@ -10,6 +10,7 @@ import Image from "next/image";
import Link from "next/link";
import { useRef, useState, useTransition } from "react";
import { sendDownloadLink } from "@/actions/send-download-link";
+import { trackEvent } from "@/app/utils/analytics";
import { LogoMarquee } from "@/components/ui/LogoMarquee";
import {
getDownloadButtonText,
@@ -63,6 +64,8 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {
>("idle");
const [emailError, setEmailError] = useState("");
const [isPending, startTransition] = useTransition();
+ const primaryDownloadUrl =
+ platform === "windows" ? "/download" : getDownloadUrl(platform, isIntel);
const handleEmailSubmit = (e: React.FormEvent) => {
e.preventDefault();
@@ -131,10 +134,15 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {
>
<Button
variant="dark"
- href={
- platform === "windows"
- ? "/download"
- : getDownloadUrl(platform, isIntel)
+ href={primaryDownloadUrl}
+ onClick={() =>
+ trackEvent("download_cta_clicked", {
+ source_page: "home_header",
+ cta_location: "primary",
+ target_url: primaryDownloadUrl,
+ detected_platform: platform ?? "unknown",
+ is_intel: Boolean(isIntel),
+ })
}
size="lg"
className="flex justify-center items-center font-medium max-w-fit"
@@ -211,10 +219,19 @@ const Header = ({ serverHomepageCopyVariant = "" }: HeaderProps) => {
custom={5}
variants={fadeIn}
>
- <PlatformIcons />
+ <PlatformIcons source="home_header" />
<Link
href="/download"
+ onClick={() =>
+ trackEvent("download_cta_clicked", {
+ source_page: "home_header",
+ cta_location: "see_other_options",
+ target_url: "/download",
+ detected_platform: platform ?? "unknown",
+ is_intel: Boolean(isIntel),
+ })
+ }
className="mt-2 text-sm underline text-gray-10 hover:text-gray-12"
>
{homepageCopy.header.cta.seeOtherOptionsText}
diff --git a/apps/web/components/pages/_components/ComparePlans.tsx b/apps/web/components/pages/_components/ComparePlans.tsx
index 38de1de06..cb27a1852 100644
--- a/apps/web/components/pages/_components/ComparePlans.tsx
+++ b/apps/web/components/pages/_components/ComparePlans.tsx
@@ -8,6 +8,7 @@ import { useMemo, useRef, useState } from "react";
import { toast } from "sonner";
import { useCurrentUser } from "@/app/Layout/AuthContext";
import { useStripeContext } from "@/app/Layout/StripeContext";
+import { trackEvent } from "@/app/utils/analytics";
import {
CommercialArt,
type CommercialArtRef,
@@ -254,7 +255,7 @@ export const ComparePlans = () => {
);
const planCheckout = async (planId?: string) => {
- const finalPlanId = planId || stripeCtx.plans.yearly;
+ const finalPlanId = planId || stripeCtx.plans.monthly;
setProLoading(true);
try {
@@ -367,6 +368,22 @@ export const ComparePlans = () => {
href={plan.name === "Free" ? plan.href : undefined}
className="w-fit"
onClick={() => {
+ trackEvent("pricing_cta_clicked", {
+ source_page: "pricing_compare",
+ plan_name: plan.name,
+ authenticated: Boolean(user?.email),
+ is_pro: Boolean(user?.isPro),
+ cta_action:
+ plan.name === "Free"
+ ? "download"
+ : plan.name === "Desktop License"
+ ? "commercial_checkout"
+ : user?.email
+ ? "checkout"
+ : "guest_checkout",
+ target_billing_period:
+ plan.name === "Cap Pro" ? "monthly" : null,
+ });
if (plan.name === "Free") {
window.location.href = "/download";
}
diff --git a/apps/web/components/tools/LoomDownloader.tsx b/apps/web/components/tools/LoomDownloader.tsx
index 763add2f9..3cde8f8ad 100644
--- a/apps/web/components/tools/LoomDownloader.tsx
+++ b/apps/web/components/tools/LoomDownloader.tsx
@@ -2,9 +2,19 @@
import { Button } from "@cap/ui";
import { useCallback, useId, useRef, useState } from "react";
+import { toast } from "sonner";
import { downloadLoomVideo } from "@/actions/loom";
-type Status = "idle" | "fetching" | "downloading" | "converting" | "error";
+type Status =
+ | "idle"
+ | "fetching"
+ | "downloading"
+ | "converting"
+ | "success"
+ | "error";
+
+const MIGRATE_PROMO_CODE = "MIGRATE20";
+const MIGRATE_CHECKOUT_HREF = `/pricing?promo=${MIGRATE_PROMO_CODE}&utm_source=loom-downloader&utm_campaign=migrate20`;
function triggerBlobDownload(blob: Blob, filename: string) {
const blobUrl = URL.createObjectURL(blob);
@@ -66,12 +76,203 @@ async function convertBlobToMp4(
return saved;
}
+function PromoCodeChip() {
+ const [copied, setCopied] = useState(false);
+
+ const handleCopy = async () => {
+ try {
+ await navigator.clipboard.writeText(MIGRATE_PROMO_CODE);
+ setCopied(true);
+ toast.success(`Code ${MIGRATE_PROMO_CODE} copied to clipboard`);
+ setTimeout(() => setCopied(false), 2000);
+ } catch {
+ toast.error("Failed to copy code");
+ }
+ };
+
+ return (
+ <button
+ type="button"
+ onClick={handleCopy}
+ aria-label={`Copy discount code ${MIGRATE_PROMO_CODE}`}
+ className="inline-flex items-center gap-2 px-3 py-1.5 font-mono text-sm font-semibold rounded-lg border border-dashed transition-colors border-blue-300 bg-white/60 text-blue-700 hover:bg-white hover:border-blue-400"
+ >
+ <span>{MIGRATE_PROMO_CODE}</span>
+ <span className="text-[11px] uppercase tracking-wide text-blue-500">
+ {copied ? "Copied" : "Tap to copy"}
+ </span>
+ </button>
+ );
+}
+
+function MigrationBanner() {
+ return (
+ <div className="flex flex-col gap-3 p-4 rounded-xl border border-blue-200 bg-gradient-to-r from-blue-50 via-white to-blue-50 sm:flex-row sm:items-center sm:justify-between sm:gap-4">
+ <div className="flex flex-col gap-1">
+ <div className="flex items-center gap-2">
+ <span className="inline-flex items-center px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase rounded-full bg-blue-600 text-white">
+ Switch
+ </span>
+ <p className="text-sm font-semibold text-gray-900 sm:text-base">
+ Switch from Loom to Cap — save 20%
+ </p>
+ </div>
+ <p className="text-xs leading-relaxed text-gray-600 sm:text-sm">
+ Migrating from Loom? Use{" "}
+ <span className="font-mono font-semibold text-blue-700">
+ {MIGRATE_PROMO_CODE}
+ </span>{" "}
+ at checkout for 20% off Cap Pro.
+ </p>
+ </div>
+ <div className="flex flex-col items-stretch gap-2 sm:flex-row sm:items-center sm:gap-3">
+ <PromoCodeChip />
+ <Button
+ variant="blue"
+ size="sm"
+ href={MIGRATE_CHECKOUT_HREF}
+ className="whitespace-nowrap"
+ >
+ Switch to Cap
+ </Button>
+ </div>
+ </div>
+ );
+}
+
+function MigrationSuccessState({
+ downloadedName,
+ onDownloadAnother,
+}: {
+ downloadedName: string;
+ onDownloadAnother: () => void;
+}) {
+ return (
+ <div className="flex flex-col gap-6">
+ <div className="flex items-start gap-3 p-4 rounded-xl border border-green-200 bg-green-50">
+ <svg
+ className="flex-shrink-0 w-5 h-5 mt-0.5 text-green-600"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ strokeWidth={1.75}
+ role="img"
+ >
+ <title>Download complete</title>
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M9 12.75L11.25 15 15 9.75m-3 11.25a9 9 0 110-18 9 9 0 010 18z"
+ />
+ </svg>
+ <div className="flex flex-col gap-1">
+ <p className="text-sm font-semibold text-green-900 sm:text-base">
+ Your Loom video is downloading
+ </p>
+ <p className="text-xs leading-relaxed text-green-800 sm:text-sm">
+ {downloadedName
+ ? `"${downloadedName}" is saving as an MP4.`
+ : "Your MP4 is saving now."}{" "}
+ Why stop at one?
+ </p>
+ </div>
+ </div>
+
+ <div className="flex flex-col gap-5 p-5 rounded-2xl border border-blue-200 bg-gradient-to-br from-blue-50 to-white sm:p-7">
+ <div className="flex flex-col gap-2">
+ <span className="inline-flex self-start items-center px-2 py-0.5 text-[10px] font-semibold tracking-wide uppercase rounded-full bg-blue-600 text-white">
+ Next step
+ </span>
+ <h3 className="text-lg font-semibold text-gray-900 sm:text-xl">
+ Bring your whole Loom library to Cap
+ </h3>
+ <p className="text-sm leading-relaxed text-gray-700 sm:text-base">
+ Skip the one-by-one downloads. Cap Pro's built-in Loom importer
+ transfers your entire Loom workspace to Cap in a single click —
+ titles, transcripts, and all. Use{" "}
+ <span className="font-mono font-semibold text-blue-700">
+ {MIGRATE_PROMO_CODE}
+ </span>{" "}
+ at checkout for 20% off your first year.
+ </p>
+ </div>
+
+ <div className="flex flex-col gap-3">
+ <div className="flex flex-col gap-3 sm:flex-row sm:flex-wrap">
+ <Button
+ variant="blue"
+ size="lg"
+ href={MIGRATE_CHECKOUT_HREF}
+ className="w-full sm:w-auto"
+ >
+ Migrate with Cap Pro — save 20%
+ </Button>
+ <Button
+ variant="white"
+ size="lg"
+ href="/download"
+ className="w-full sm:w-auto"
+ >
+ Download Cap free
+ </Button>
+ </div>
+ <div className="flex items-center gap-2">
+ <PromoCodeChip />
+ <span className="text-xs text-gray-500">
+ Applied automatically at checkout.
+ </span>
+ </div>
+ </div>
+
+ <ul className="grid grid-cols-1 gap-2 pt-2 border-t border-blue-100 sm:grid-cols-3 sm:gap-4 sm:pt-3">
+ {[
+ "Import your entire Loom library",
+ "Keep titles, chapters & transcripts",
+ "Cancel anytime — 20% off locked in",
+ ].map((line) => (
+ <li
+ key={line}
+ className="flex items-start gap-2 text-xs text-gray-700 sm:text-sm"
+ >
+ <svg
+ className="flex-shrink-0 w-4 h-4 mt-0.5 text-blue-600"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ strokeWidth={2}
+ role="img"
+ >
+ <title>Included</title>
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M4.5 12.75l6 6 9-13.5"
+ />
+ </svg>
+ <span>{line}</span>
+ </li>
+ ))}
+ </ul>
+ </div>
+
+ <button
+ type="button"
+ onClick={onDownloadAnother}
+ className="self-center text-sm font-medium transition-colors text-gray-500 hover:text-gray-800 hover:underline"
+ >
+ Download another Loom video
+ </button>
+ </div>
+ );
+}
+
export function LoomDownloader() {
const inputId = useId();
const [url, setUrl] = useState("");
const [status, setStatus] = useState<Status>("idle");
const [errorMessage, setErrorMessage] = useState("");
const [convertProgress, setConvertProgress] = useState(0);
+ const [lastDownloadedName, setLastDownloadedName] = useState("");
const abortRef = useRef<AbortController | null>(null);
const handleDownload = useCallback(async () => {
@@ -135,7 +336,8 @@ export function LoomDownloader() {
triggerBlobDownload(blob, `${sanitizedName}.mp4`);
}
- setStatus("idle");
+ setLastDownloadedName(result.videoName ?? "");
+ setStatus("success");
} catch (err) {
if (err instanceof DOMException && err.name === "AbortError") {
setStatus("idle");
@@ -148,6 +350,14 @@ export function LoomDownloader() {
}
}, [url]);
+ const handleDownloadAnother = useCallback(() => {
+ setUrl("");
+ setStatus("idle");
+ setErrorMessage("");
+ setConvertProgress(0);
+ setLastDownloadedName("");
+ }, []);
+
const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
if (e.key === "Enter") {
handleDownload();
@@ -169,8 +379,19 @@ export function LoomDownloader() {
? `Converting to MP4... ${convertProgress}%`
: "Download Video";
+ if (status === "success") {
+ return (
+ <MigrationSuccessState
+ downloadedName={lastDownloadedName}
+ onDownloadAnother={handleDownloadAnother}
+ />
+ );
+ }
+
return (
<div className="flex flex-col gap-5">
+ <MigrationBanner />
+
<div className="flex flex-col gap-2 sm:gap-3">
<label htmlFor={inputId} className="text-sm font-medium text-gray-700">
Loom Video URL
@@ -240,24 +461,46 @@ export function LoomDownloader() {
</div>
)}
- <div className="flex items-start gap-2 text-xs text-gray-500 sm:items-center">
- <svg
- className="w-4 h-4 flex-shrink-0 mt-0.5 sm:mt-0"
- fill="none"
- viewBox="0 0 24 24"
- stroke="currentColor"
- strokeWidth={1.5}
- role="img"
+ <div className="flex flex-col gap-3 pt-4 border-t border-gray-3 sm:flex-row sm:items-center sm:justify-between">
+ <div className="flex items-start gap-2 text-xs text-gray-500 sm:items-center">
+ <svg
+ className="w-4 h-4 flex-shrink-0 mt-0.5 sm:mt-0"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ strokeWidth={1.5}
+ role="img"
+ >
+ <title>Privacy</title>
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z"
+ />
+ </svg>
+ Paste any public Loom link. Your video is never stored on our servers.
+ </div>
+ <a
+ href={MIGRATE_CHECKOUT_HREF}
+ className="inline-flex items-center gap-1 text-xs font-semibold text-blue-600 hover:text-blue-700 hover:underline"
>
- <title>Privacy</title>
- <path
- strokeLinecap="round"
- strokeLinejoin="round"
- d="M9 12.75L11.25 15 15 9.75m-3-7.036A11.959 11.959 0 013.598 6 11.99 11.99 0 003 9.749c0 5.592 3.824 10.29 9 11.623 5.176-1.332 9-6.03 9-11.622 0-1.31-.21-2.571-.598-3.751h-.152c-3.196 0-6.1-1.248-8.25-3.285z"
- />
- </svg>
- Paste any public Loom video link. We fetch the download URL server-side
- — your video is never stored on our servers.
+ Import Loom videos with Cap Pro
+ <svg
+ className="w-3 h-3"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ strokeWidth={2}
+ role="img"
+ >
+ <title>Arrow</title>
+ <path
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ d="M17.25 8.25L21 12m0 0l-3.75 3.75M21 12H3"
+ />
+ </svg>
+ </a>
</div>
</div>
);
diff --git a/apps/web/components/tools/ToolsPageTemplate.tsx b/apps/web/components/tools/ToolsPageTemplate.tsx
index 72e96209a..f308b6b93 100644
--- a/apps/web/components/tools/ToolsPageTemplate.tsx
+++ b/apps/web/components/tools/ToolsPageTemplate.tsx
@@ -235,13 +235,24 @@ export const ToolsPageTemplate = ({
</div>
<div className="flex flex-col justify-center items-center space-y-3 sm:flex-row sm:space-y-0 sm:space-x-4">
<Button
- variant="gray"
- href="/download"
+ variant={content.cta.secondaryButtonText ? "blue" : "gray"}
+ href={content.cta.buttonHref ?? "/download"}
size="lg"
className="px-8 w-full font-medium transition-all duration-200 sm:w-auto"
>
{content.cta.buttonText}
</Button>
+ {content.cta.secondaryButtonText &&
+ content.cta.secondaryButtonHref && (
+ <Button
+ variant="gray"
+ href={content.cta.secondaryButtonHref}
+ size="lg"
+ className="px-8 w-full font-medium transition-all duration-200 sm:w-auto"
+ >
+ {content.cta.secondaryButtonText}
+ </Button>
+ )}
</div>
</div>
</div>
diff --git a/apps/web/components/tools/types.ts b/apps/web/components/tools/types.ts
index c8ca7dbbb..ab5ba0238 100644
--- a/apps/web/components/tools/types.ts
+++ b/apps/web/components/tools/types.ts
@@ -11,6 +11,9 @@ export interface ToolPageContent {
title: string;
description: string;
buttonText: string;
+ buttonHref?: string;
+ secondaryButtonText?: string;
+ secondaryButtonHref?: string;
};
featuresTitle: string;
diff --git a/apps/web/utils/platform.tsx b/apps/web/utils/platform.tsx
index df06df54f..f22c711c8 100644
--- a/apps/web/utils/platform.tsx
+++ b/apps/web/utils/platform.tsx
@@ -1,4 +1,5 @@
import type React from "react";
+import { trackEvent } from "@/app/utils/analytics";
export const getDownloadUrl = (
platform: string | null,
@@ -58,12 +59,24 @@ export const getVersionText = (platform: string | null): React.ReactNode => {
}
};
-export const PlatformIcons: React.FC = () => {
+type PlatformIconsProps = {
+ source?: string;
+};
+
+export const PlatformIcons: React.FC<PlatformIconsProps> = ({
+ source = "unknown",
+}) => {
return (
<div className="flex relative z-10 gap-3 mt-5">
<div>
<button
onClick={() => {
+ trackEvent("download_cta_clicked", {
+ source_page: source,
+ cta_location: "platform_icons",
+ target: "apple-silicon",
+ target_url: "/download/apple-silicon",
+ });
window.location.href = "/download/apple-silicon";
}}
className="focus:outline-none"
@@ -84,6 +97,14 @@ export const PlatformIcons: React.FC = () => {
<div>
<a
href="/download"
+ onClick={() =>
+ trackEvent("download_cta_clicked", {
+ source_page: source,
+ cta_location: "platform_icons",
+ target: "download-page",
+ target_url: "/download",
+ })
+ }
className="focus:outline-none"
aria-label="Download for Windows"
>