Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Add title for video section

Richie McIlroyb8339a4e5d63
diff --git a/apps/web/app/(site)/features/instant-mode/InstantModePage.tsx b/apps/web/app/(site)/features/instant-mode/InstantModePage.tsx
index e6b68ae72..5a3ef671c 100644
--- a/apps/web/app/(site)/features/instant-mode/InstantModePage.tsx
+++ b/apps/web/app/(site)/features/instant-mode/InstantModePage.tsx
@@ -264,6 +264,7 @@ const instantModeConfig: FeaturePageConfig = {
],
},
video: {
+ title: "See Instant Mode in Action",
iframe: {
src: "https://cap.so/embed/8cq21vmz12tm1zf",
title: "See Instant Mode in Action - Cap Screen Recording",
diff --git a/apps/web/app/(site)/features/studio-mode/StudioModePage.tsx b/apps/web/app/(site)/features/studio-mode/StudioModePage.tsx
index 9670a7b3e..a1bfeaf48 100644
--- a/apps/web/app/(site)/features/studio-mode/StudioModePage.tsx
+++ b/apps/web/app/(site)/features/studio-mode/StudioModePage.tsx
@@ -264,6 +264,7 @@ const studioModeConfig: FeaturePageConfig = {
],
},
video: {
+ title: "See Studio Mode in Action",
iframe: {
src: "https://cap.so/embed/qk8gt56e1q1r735",
title: "Studio Mode Demo - Cap Screen Recording",
diff --git a/apps/web/components/seo/SeoPageTemplate.tsx b/apps/web/components/seo/SeoPageTemplate.tsx
index 49d1feed0..e9b968c6f 100644
--- a/apps/web/components/seo/SeoPageTemplate.tsx
+++ b/apps/web/components/seo/SeoPageTemplate.tsx
@@ -253,7 +253,7 @@ export const SeoPageTemplate = ({
<div>
<div className="text-center max-w-[800px] mx-auto mb-10">
<h2 className="inline-block relative mb-2 text-3xl font-medium text-gray-800 md:text-4xl">
- See Studio Mode in Action
+ {content.video.title ?? "See Cap in Action"}
</h2>
<p className="text-xl leading-relaxed text-gray-10">
Watch how Cap makes screen recording simple, powerful, and
diff --git a/apps/web/components/seo/types.ts b/apps/web/components/seo/types.ts
index 56b255ba3..abc0d9cb3 100644
--- a/apps/web/components/seo/types.ts
+++ b/apps/web/components/seo/types.ts
@@ -26,6 +26,7 @@ export interface SeoPageContent {
answer: string;
}[];
video: {
+ title?: string;
url?: string;
thumbnail?: string;
alt?: string;
diff --git a/apps/web/lib/features/types.ts b/apps/web/lib/features/types.ts
index 4ddc22047..5398d2a62 100644
--- a/apps/web/lib/features/types.ts
+++ b/apps/web/lib/features/types.ts
@@ -51,6 +51,7 @@ export interface FeaturePageFaq {
}
export interface FeaturePageVideo {
+ title?: string;
iframe?: {
src: string;
title?: string;