Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(web): add Loom import paths to the homepage hero, band and nav
Richie McIlroy7f5a5642a311
diff --git a/apps/web/app/(site)/DesktopNavLinks.tsx b/apps/web/app/(site)/DesktopNavLinks.tsxindex 8179d5e53..72d2b6e7b 100644--- a/apps/web/app/(site)/DesktopNavLinks.tsx+++ b/apps/web/app/(site)/DesktopNavLinks.tsx@@ -13,6 +13,7 @@ import {useRef,useState,} from "react";+import { LoomMark } from "@/components/icons/LoomMark";interface NavDropdownItem {label: string;@@ -56,6 +57,12 @@ const Links: NavItem[] = [sub: "Downloads for macOS, Windows & Linux",href: "/download",},+ {+ label: "Migrate from Loom",+ sub: "Bring your Loom library into Cap",+ href: "/migrate-from-loom",+ icon: <LoomMark size={16} />,+ },{label: "Open Source",sub: "Cap is open source and available on GitHub",@@ -71,6 +78,11 @@ const Links: NavItem[] = [sub: "Join the Cap community on Discord",href: "https://cap.link/discord",},+ {+ label: "Free tools",+ sub: "Loom downloader, converters and more",+ href: "/tools",+ },],},{diff --git a/apps/web/components/pages/HomeTwo/Hero.tsx b/apps/web/components/pages/HomeTwo/Hero.tsxindex ca4928592..77e8e8192 100644--- a/apps/web/components/pages/HomeTwo/Hero.tsx+++ b/apps/web/components/pages/HomeTwo/Hero.tsx@@ -1,11 +1,12 @@"use client";import { useDetectPlatform } from "hooks/useDetectPlatform";-import { ArrowDown } from "lucide-react";+import { ArrowDown, ArrowRight } from "lucide-react";import Image from "next/image";import Link from "next/link";import { useRef } from "react";import { trackEvent } from "@/app/utils/analytics";+import { LoomMark } from "@/components/icons/LoomMark";import { getDownloadUrl } from "@/utils/platform";import { CapRecorderWindow } from "./demo/CapRecorderWindow";import { LinkNotification } from "./demo/CapSurfaces";@@ -174,7 +175,30 @@ export const Hero = () => {</button></div>- <div className="mt-5 flex items-center gap-2 text-[14px] text-[rgba(17,17,17,0.5)]">+ <Link+ href="/migrate-from-loom"+ onClick={() =>+ trackEvent("loom_import_cta_clicked", {+ source_page: "home_hero",+ cta_location: "under_primary",+ })+ }+ className="group mt-5 inline-flex items-center gap-2 rounded-[6px] text-[14px] text-[rgba(17,17,17,0.55)] transition-colors duration-200 hover:text-[#111111] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#111111] focus-visible:ring-offset-4 focus-visible:ring-offset-[#F8FAFC]"+ >+ <LoomMark+ size={13}+ className="opacity-70 transition-opacity duration-200 group-hover:opacity-100"+ />+ <span>+ Switching from Loom?{" "}+ <span className="text-[#111111] underline decoration-[rgba(17,17,17,0.25)] underline-offset-[4px] transition-colors duration-200 group-hover:decoration-[#111111]">+ Import your library+ </span>+ </span>+ <ArrowRight className="size-3.5 transition-transform duration-200 group-hover:translate-x-0.5" />+ </Link>++ <div className="mt-3 flex items-center gap-2 text-[14px] text-[rgba(17,17,17,0.5)]"><span>Also available on</span><span className="flex items-center gap-1">{isWindows || isLinux ? (diff --git a/apps/web/components/pages/HomeTwo/LoomBridge.tsx b/apps/web/components/pages/HomeTwo/LoomBridge.tsxindex 2d36f4cb0..f07877b1f 100644--- a/apps/web/components/pages/HomeTwo/LoomBridge.tsx+++ b/apps/web/components/pages/HomeTwo/LoomBridge.tsx@@ -1,15 +1,13 @@+"use client";+import { classNames } from "@cap/utils/helpers";import { ArrowRight } from "lucide-react";import Link from "next/link";+import { trackEvent } from "@/app/utils/analytics";+import { LoomMark } from "@/components/icons/LoomMark";+import { MigratePromoBadge } from "@/components/MigratePromoBadge";import { Eyebrow } from "./Eyebrow";-import {- BAND,- BODY_TEXT,- BTN_PRIMARY,- EYEBROW,- grainBg,- MODE_THEME,-} from "./theme";+import { BAND, BODY_TEXT, BTN_PRIMARY, grainBg, MODE_THEME } from "./theme";export const LoomBridge = () => (<section className="px-5 pb-4 pt-2">@@ -27,24 +25,28 @@ export const LoomBridge = () => (<pclassName={`${BODY_TEXT} mt-4 max-w-[500px] text-[16px] leading-[1.5] text-[rgba(17,17,17,0.78)]`}>- Import every video in one click and pick up where you left off. Your- recordings land in storage you own, on a plan that stays free.+ Paste a Loom link or upload a CSV of your library and Cap re-hosts+ every video with its title, a transcript and chapters. Your recordings+ land in storage you own, on a plan that stays free.</p></div><div className="flex flex-col items-start gap-3 lg:items-end">- <Link href="/tools/loom-downloader" className={BTN_PRIMARY}>+ <Link+ href="/migrate-from-loom"+ onClick={() =>+ trackEvent("loom_import_cta_clicked", {+ source_page: "home_loom_bridge",+ cta_location: "primary",+ })+ }+ className={classNames(BTN_PRIMARY, "gap-2.5")}+ >+ <LoomMark size={16} />Import from Loom- <ArrowRight className="ml-2 size-4" />+ <ArrowRight className="size-4" /></Link>- <p- className={classNames(- EYEBROW,- "text-[11px] text-[rgba(17,17,17,0.5)]",- )}- >- MIGRATE20 · 20% off Pro, forever- </p>+ <MigratePromoBadge sourcePage="home_loom_bridge" /></div></div></section>diff --git a/apps/web/components/pages/HomeTwo/seo.ts b/apps/web/components/pages/HomeTwo/seo.tsindex 9c5399114..955042454 100644--- a/apps/web/components/pages/HomeTwo/seo.ts+++ b/apps/web/components/pages/HomeTwo/seo.ts@@ -66,6 +66,7 @@ export const homepageSchema = {"Instant video sharing","Local recording with a built-in video editor","Screenshot capture and annotation",+ "Loom video importer for single videos and CSV libraries","Custom backgrounds and automatic zoom","Google Drive and S3 storage integrations","Open source and self-hostable",diff --git a/apps/web/components/ui/MobileMenu.tsx b/apps/web/components/ui/MobileMenu.tsxindex 2fb195ecf..a5381d075 100644--- a/apps/web/components/ui/MobileMenu.tsx+++ b/apps/web/components/ui/MobileMenu.tsx@@ -23,6 +23,7 @@ interface NavLink {const primaryLinks: NavLink[] = [{ href: "/pricing", text: "Pricing" },{ href: "/download", text: "Download" },+ { href: "/migrate-from-loom", text: "Migrate from Loom" },{ href: "/blog", text: "Blog" },{ href: "/changelog", text: "Changelog" },{ href: "/about", text: "About" },