Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

feat: implement SEO enhancements with structured data, metadata generation, and sitemap/robots configuration

CristianOlivera1230ea2b6a66b
diff --git a/.gitignore b/.gitignore
index 236c3db..c737872 100644
--- a/.gitignore
+++ b/.gitignore
@@ -42,3 +42,5 @@ yarn-error.log*
next-env.d.ts
supabase-setup.sql
+
+SEO-GUIDE.md
diff --git a/app/[locale]/(home)/page.tsx b/app/[locale]/(home)/page.tsx
index 7f01f9e..d2ea846 100644
--- a/app/[locale]/(home)/page.tsx
+++ b/app/[locale]/(home)/page.tsx
@@ -4,10 +4,74 @@ import EditorPreview from "@/app/components/ui/EditorPreview";
import Hero from "@/app/components/ui/Hero";
import { HeroScrollMask } from "@/app/components/ui/HeroScrollMask";
import InteractiveRecordingSteps from "@/app/components/ui/RecordingSteps";
+import { StructuredData, generateWebAppSchema, generateOrganizationSchema } from "@/app/components/seo/StructuredData";
+import type { Metadata } from 'next';
+
+type Props = {
+ params: Promise<{ locale: string }>;
+};
+
+export async function generateMetadata({ params }: Props): Promise<Metadata> {
+ const { locale } = await params;
+ const baseUrl = 'https://openvid.dev';
+
+ const metadata = {
+ es: {
+ title: 'Crea demos profesionales y edita videos en segundos',
+ description: 'Editor de video online gratuito con IA. Graba pantalla, añade zooms cinemáticos, mockups profesionales y exporta en HD. Sin marca de agua.',
+ keywords: ['editor de video', 'grabar pantalla', 'demos profesionales', 'zoom video', 'mockups', 'screen recorder', 'video editor online'],
+ },
+ en: {
+ title: 'Create Professional Demos and Edit Videos in Seconds',
+ description: 'Free AI-powered online video editor. Screen recorder, cinematic zooms, professional mockups, and HD export. No watermark.',
+ keywords: ['video editor', 'screen recorder', 'professional demos', 'video zoom', 'mockups', 'online video editor', 'free video editor'],
+ },
+ };
+
+ const { title, description, keywords } = metadata[locale as 'es' | 'en'] || metadata.es;
+
+ return {
+ title,
+ description,
+ keywords,
+ alternates: {
+ canonical: `${baseUrl}/${locale}`,
+ languages: {
+ es: `${baseUrl}/es`,
+ en: `${baseUrl}/en`,
+ },
+ },
+ openGraph: {
+ title,
+ description,
+ url: `${baseUrl}/${locale}`,
+ images: [
+ {
+ url: `${baseUrl}/images/metadata/preview-openvid.jpg`,
+ width: 1200,
+ height: 630,
+ alt: 'openvid - Professional Video Editor',
+ },
+ ],
+ },
+ twitter: {
+ card: 'summary_large_image',
+ title,
+ description,
+ images: [`${baseUrl}/images/metadata/preview-openvid.jpg`],
+ },
+ };
+}
+
+export default async function Home({ params }: Props) {
+ const { locale } = await params;
-export default function Home() {
return (
- <div className="flex flex-col">
+ <>
+ <StructuredData data={generateWebAppSchema(locale as 'es' | 'en')} />
+ <StructuredData data={generateOrganizationSchema()} />
+
+ <div className="flex flex-col">
<div className="relative overflow-hidden bg-gradient-radial-primary w-full">
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-75 h-75 rounded-full bg-cyan-500/15 blur-[80px] pointer-events-none z-0" />
@@ -51,5 +115,6 @@ export default function Home() {
</section>
</div>
</div>
+ </>
);
}
\ No newline at end of file
diff --git a/app/[locale]/(legal)/layout.tsx b/app/[locale]/(legal)/layout.tsx
index e1070f9..f62ecb2 100644
--- a/app/[locale]/(legal)/layout.tsx
+++ b/app/[locale]/(legal)/layout.tsx
@@ -2,6 +2,14 @@ import Footer from "@/app/components/common/Footer";
import Header from "@/app/components/common/Header";
import { AuthProvider } from "@/hooks/useAuth";
import { RecordingProvider } from "@/hooks/RecordingContext";
+import type { Metadata } from 'next';
+
+export const metadata: Metadata = {
+ robots: {
+ index: true,
+ follow: true,
+ },
+};
export default function LegalLayout({ children }: { children: React.ReactNode }) {
return (
diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx
index 8b48ce2..7d8145a 100644
--- a/app/[locale]/layout.tsx
+++ b/app/[locale]/layout.tsx
@@ -4,6 +4,7 @@ import { notFound } from 'next/navigation';
import { locales, type Locale } from '@/i18n';
import { TooltipProvider } from "@/components/ui/tooltip";
import { Inter, Roboto, Poppins, Montserrat, DM_Sans } from "next/font/google";
+import type { Metadata } from 'next';
import "../globals.css";
const inter = Inter({ subsets: ["latin"], variable: "--font-inter", display: "swap" });
@@ -12,6 +13,31 @@ const poppins = Poppins({ subsets: ["latin"], weight: ["400", "500", "700"], var
const montserrat = Montserrat({ subsets: ["latin"], weight: ["400", "500", "700"], variable: "--font-montserrat", display: "swap" });
const dmSans = DM_Sans({ subsets: ["latin"], weight: ["400", "500", "700"], variable: "--font-dm-sans", display: "swap" });
+type Props = {
+ params: Promise<{ locale: string }>;
+};
+
+export async function generateMetadata({ params }: Props): Promise<Metadata> {
+ const { locale } = await params;
+ const baseUrl = 'https://openvid.dev';
+
+ const languages: Record<string, string> = {};
+ locales.forEach((loc) => {
+ languages[loc] = `${baseUrl}/${loc}`;
+ });
+
+ return {
+ alternates: {
+ canonical: `${baseUrl}/${locale}`,
+ languages,
+ },
+ openGraph: {
+ locale: locale === 'es' ? 'es_ES' : 'en_US',
+ alternateLocale: locale === 'es' ? ['en_US'] : ['es_ES'],
+ },
+ };
+}
+
export default async function LocaleLayout({
children,
params
diff --git a/app/components/seo/StructuredData.tsx b/app/components/seo/StructuredData.tsx
new file mode 100644
index 0000000..62f60d8
--- /dev/null
+++ b/app/components/seo/StructuredData.tsx
@@ -0,0 +1,137 @@
+import Script from 'next/script';
+
+type WebApplicationSchema = {
+ '@context': 'https://schema.org';
+ '@type': 'WebApplication';
+ name: string;
+ applicationCategory: 'MultimediaApplication';
+ operatingSystem: 'Any';
+ offers: {
+ '@type': 'Offer';
+ price: '0';
+ priceCurrency: 'USD';
+ };
+ description: string;
+ url: string;
+ image?: string;
+ author?: {
+ '@type': 'Organization' | 'Person';
+ name: string;
+ url?: string;
+ };
+ featureList?: string[];
+};
+
+type OrganizationSchema = {
+ '@context': 'https://schema.org';
+ '@type': 'Organization';
+ name: string;
+ url: string;
+ logo?: string;
+ sameAs?: string[];
+ contactPoint?: {
+ '@type': 'ContactPoint';
+ contactType: string;
+ email?: string;
+ };
+};
+
+type BreadcrumbSchema = {
+ '@context': 'https://schema.org';
+ '@type': 'BreadcrumbList';
+ itemListElement: Array<{
+ '@type': 'ListItem';
+ position: number;
+ name: string;
+ item?: string;
+ }>;
+};
+
+type StructuredDataProps = {
+ data: WebApplicationSchema | OrganizationSchema | BreadcrumbSchema | Record<string, unknown>;
+};
+
+export function StructuredData({ data }: StructuredDataProps) {
+ return (
+ <Script
+ id={`structured-data-${data['@type']}`}
+ type="application/ld+json"
+ dangerouslySetInnerHTML={{ __html: JSON.stringify(data) }}
+ strategy="beforeInteractive"
+ />
+ );
+}
+
+export function generateWebAppSchema(locale: 'es' | 'en'): WebApplicationSchema {
+ const baseUrl = 'https://openvid.dev';
+
+ const content = {
+ es: {
+ name: 'openvid - Editor de Video Online',
+ description: 'Editor de video online gratuito con IA. Graba pantalla, añade zooms cinemáticos, mockups profesionales y exporta en HD sin marca de agua.',
+ features: [
+ 'Grabación de pantalla HD',
+ 'Zooms cinemáticos con IA',
+ 'Mockups profesionales',
+ 'Sin marca de agua',
+ 'Exportación en alta calidad',
+ 'Editor online gratuito',
+ ],
+ },
+ en: {
+ name: 'openvid - Online Video Editor',
+ description: 'Free AI-powered online video editor. Screen recorder, cinematic zooms, professional mockups, and HD export without watermark.',
+ features: [
+ 'HD screen recording',
+ 'AI-powered cinematic zooms',
+ 'Professional mockups',
+ 'No watermark',
+ 'High quality export',
+ 'Free online editor',
+ ],
+ },
+ };
+
+ const { name, description, features } = content[locale];
+
+ return {
+ '@context': 'https://schema.org',
+ '@type': 'WebApplication',
+ name,
+ applicationCategory: 'MultimediaApplication',
+ operatingSystem: 'Any',
+ offers: {
+ '@type': 'Offer',
+ price: '0',
+ priceCurrency: 'USD',
+ },
+ description,
+ url: baseUrl,
+ image: `${baseUrl}/images/metadata/preview-openvid.jpg`,
+ author: {
+ '@type': 'Person',
+ name: 'Cristian Olivera',
+ url: baseUrl,
+ },
+ featureList: features,
+ };
+}
+
+export function generateOrganizationSchema(): OrganizationSchema {
+ return {
+ '@context': 'https://schema.org',
+ '@type': 'Organization',
+ name: 'openvid',
+ url: 'https://openvid.dev',
+ logo: 'https://openvid.dev/images/metadata/favicon.svg',
+ sameAs: [
+ 'https://twitter.com/openviddev',
+ 'https://github.com/openviddev',
+ ],
+ contactPoint: {
+ '@type': 'ContactPoint',
+ contactType: 'Customer Support',
+ email: '[email protected]',
+ },
+ };
+}
diff --git a/app/layout.tsx b/app/layout.tsx
index bfbb66e..7b38973 100644
--- a/app/layout.tsx
+++ b/app/layout.tsx
@@ -1,7 +1,22 @@
-import type { Metadata } from "next";
+import type { Metadata, Viewport } from "next";
+
+export const viewport: Viewport = {
+ width: 'device-width',
+ initialScale: 1,
+ maximumScale: 5,
+ userScalable: true,
+ themeColor: [
+ { media: '(prefers-color-scheme: light)', color: '#ffffff' },
+ { media: '(prefers-color-scheme: dark)', color: '#050505' },
+ ],
+};
export const metadata: Metadata = {
- title: "openvid - Crea demos profesionales",
+ metadataBase: new URL('https://openvid.dev'),
+ title: {
+ default: "openvid - Crea demos profesionales y edita en segundos",
+ template: "%s | openvid",
+ },
description: "Crea demos cinemáticas y edita videos en segundos. Añade zooms suaves, mockups, personaliza fondos y exporta demos profesionales.",
applicationName: "openvid",
keywords: [
@@ -54,22 +69,15 @@ export const metadata: Metadata = {
description:
"Añade zooms suaves, mockups, personaliza fondos y exporta demos profesionales sin editores complejos.",
images: ["https://openvid.dev/images/metadata/preview-openvid.jpg"],
+ creator: "@cristianolivera",
+ site: "@openviddev",
},
other: {
"msapplication-TileColor": "#1f2937",
"format-detection": "telephone=no",
- "mobile-web-app-capable": "yes",
- "apple-mobile-web-app-capable": "yes",
- "apple-mobile-web-app-status-bar-style": "black-translucent",
},
};
-export const viewport = {
- width: "device-width",
- initialScale: 1,
- themeColor: "#050505",
-};
-
export default function RootLayout({ children }: { children: React.ReactNode }) {
return children;
}
\ No newline at end of file
diff --git a/app/robots.ts b/app/robots.ts
new file mode 100644
index 0000000..a37db8f
--- /dev/null
+++ b/app/robots.ts
@@ -0,0 +1,20 @@
+import type { MetadataRoute } from 'next';
+
+export default function robots(): MetadataRoute.Robots {
+ const baseUrl = 'https://openvid.dev';
+
+ return {
+ rules: [
+ {
+ userAgent: '*',
+ allow: '/',
+ disallow: [
+ '/api/',
+ '/auth/callback',
+ ],
+ },
+ ],
+ sitemap: `${baseUrl}/sitemap.xml`,
+ host: baseUrl,
+ };
+}
diff --git a/app/sitemap.ts b/app/sitemap.ts
new file mode 100644
index 0000000..75e01e5
--- /dev/null
+++ b/app/sitemap.ts
@@ -0,0 +1,56 @@
+import type { MetadataRoute } from 'next';
+import { locales } from '@/i18n';
+
+export default function sitemap(): MetadataRoute.Sitemap {
+ const baseUrl = 'https://openvid.dev';
+
+ const routes = [
+ {
+ path: '',
+ priority: 1.0,
+ changeFrequency: 'weekly' as const,
+ },
+ {
+ path: '/donate',
+ priority: 0.7,
+ changeFrequency: 'monthly' as const,
+ },
+ {
+ path: '/privacy',
+ priority: 0.5,
+ changeFrequency: 'yearly' as const,
+ },
+ {
+ path: '/terms',
+ priority: 0.5,
+ changeFrequency: 'yearly' as const,
+ },
+ ];
+
+ const sitemap: MetadataRoute.Sitemap = [];
+
+ routes.forEach(({ path, priority, changeFrequency }) => {
+ locales.forEach((locale) => {
+ const url = path
+ ? `${baseUrl}/${locale}${path}`
+ : `${baseUrl}/${locale}`;
+
+ sitemap.push({
+ url,
+ lastModified: new Date(),
+ changeFrequency,
+ priority,
+ alternates: {
+ languages: Object.fromEntries(
+ locales.map((loc) => [
+ loc,
+ path ? `${baseUrl}/${loc}${path}` : `${baseUrl}/${loc}`,
+ ])
+ ),
+ },
+ });
+ });
+ });
+
+ return sitemap;
+}