Create professional demos and 3D mockups in seconds, directly in your browser
feat: enhance layout and metadata handling with viewport support and improved descriptions
CristianOlivera1d2dcd0b60c08
diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsxindex 7d8145a..5971702 100644--- a/app/[locale]/layout.tsx+++ b/app/[locale]/layout.tsx@@ -4,7 +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 type { Metadata, Viewport } from 'next';import "../globals.css";const inter = Inter({ subsets: ["latin"], variable: "--font-inter", display: "swap" });@@ -13,6 +13,18 @@ const poppins = Poppins({ subsets: ["latin"], weight: ["400", "500", "700"], varconst 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" });+export const viewport: Viewport = {+ width: "device-width",+ initialScale: 1,+ maximumScale: 5,+ userScalable: true,+ colorScheme: "dark light",+ themeColor: [+ { media: "(prefers-color-scheme: light)", color: "#ffffff" },+ { media: "(prefers-color-scheme: dark)", color: "#000000" },+ ],+};+type Props = {params: Promise<{ locale: string }>;};@@ -20,24 +32,97 @@ type Props = {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}`;});+ const ogLocaleMap: Record<string, string> = {+ en: 'en_US',+ es: 'es_ES',+ ru: 'ru_RU'+ };++ const currentOgLocale = ogLocaleMap[locale] || 'en_US';+ const alternateLocales = locales.filter(l => l !== locale).map(l => ogLocaleMap[l]);+return {+ metadataBase: new URL(baseUrl),+ title: {+ default: "OpenVid | Create Cinematic Product Demos in Your Browser",+ template: "%s | OpenVid",+ },+ description: "Free, privacy-first, browser-based video editor. Turn standard screen recordings into professional product demos with 3D device mockups, cinematic zooms, and 4K export.",+ applicationName: "OpenVid",+ generator: "Next.js",+ category: "design tool",+ keywords: [+ "openvid", "product demo creator", "browser video editor", "screen recorder",+ "3D device mockups", "cinematic video zooms", "local video rendering",+ "privacy-first video tool", "ffmpeg.wasm editor", "SaaS marketing video", "Cristian Olivera"+ ],+ authors: [{ name: "Cristian Olivera", url: "https://github.com/CristianOlivera1" }],+ creator: "Cristian Olivera",+ publisher: "OpenVid",+ robots: {+ index: true,+ follow: true,+ nocache: false,+ googleBot: {+ index: true,+ follow: true,+ "max-video-preview": -1,+ "max-image-preview": "large",+ "max-snippet": -1,+ },+ },+ icons: {+ icon: "/images/metadata/favicon.svg",+ shortcut: "/images/metadata/shortcut.svg",+ apple: "/images/metadata/apple.svg",+ },+ appleWebApp: {+ title: "OpenVid",+ statusBarStyle: "black-translucent",+ capable: true,+ },+ twitter: {+ card: "summary_large_image",+ creator: "@cristianolivera",+ site: "@openviddev",+ },+ other: {+ "msapplication-TileColor": "#000000",+ "format-detection": "telephone=no",+ },alternates: {canonical: `${baseUrl}/${locale}`,languages,},openGraph: {- locale: locale === 'es' ? 'es_ES' : 'en_US',- alternateLocale: locale === 'es' ? ['en_US'] : ['es_ES'],+ type: "website",+ siteName: "OpenVid",+ images: [+ {+ url: "/images/metadata/preview-openvid.jpg",+ width: 1200,+ height: 630,+ alt: "OpenVid - 3D Mockups and Cinematic Demo Creator",+ type: "image/jpeg",+ },+ ],+ locale: currentOgLocale,+ alternateLocale: alternateLocales,},};}+export function generateStaticParams() {+ return locales.map((locale) => ({ locale }));+}++// 5. Layout Principalexport default async function LocaleLayout({children,params@@ -52,16 +137,17 @@ export default async function LocaleLayout({}setRequestLocale(locale);-const messages = await getMessages();return (<html lang={locale}>- <body className={`- ${inter.variable} ${roboto.variable} ${poppins.variable}- ${montserrat.variable} ${dmSans.variable} ${inter.className}- antialiased dark- `}>+ <body+ className={`+ ${inter.variable} ${roboto.variable} ${poppins.variable}+ ${montserrat.variable} ${dmSans.variable} ${inter.className}+ antialiased dark+ `}+ ><NextIntlClientProvider key={locale} messages={messages} locale={locale}><TooltipProvider delayDuration={200}>{children}diff --git a/app/layout.tsx b/app/layout.tsxdeleted file mode 100644index 7b38973..0000000--- a/app/layout.tsx+++ /dev/null@@ -1,83 +0,0 @@-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 = {- 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: [- "openvid",- "edición de video",- "zoom video",- "grabación de pantalla",- "creador de demos",- "tomas cinemáticas",- "mockups",- "Cristian Olivera",- ],- authors: [{ name: "Cristian Olivera" }],- robots: {- index: true,- follow: true,- googleBot: {- index: true,- follow: true,- },- },- alternates: {- canonical: "https://openvid.dev/",- },- icons: {- icon: "/images/metadata/favicon.svg",- shortcut: "/images/metadata/shortcut.svg",- apple: "/images/metadata/apple.svg",- },- openGraph: {- type: "website",- url: "https://openvid.dev/",- title: "openvid - Crea demos profesionales y edita en segundos",- description:- "Añade zooms suaves, mockups, personaliza fondos y exporta demos profesionales sin editores complejos.",- images: [- {- url: "https://openvid.dev/images/metadata/preview-openvid.jpg",- width: 1200,- height: 630,- alt: "openvid - Creador de demos, Graba Pantalla y Editor de Video",- },- ],- locale: "es_ES",- siteName: "openvid",- },- twitter: {- card: "summary_large_image",- title: "openvid - Crea demos profesionales y edita en segundos",- 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",- },-};--export default function RootLayout({ children }: { children: React.ReactNode }) {- return children;-}\ No newline at end of filediff --git a/public/llms.txt b/public/llms.txtindex ccc847e..f89002c 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -1,22 +1,28 @@# OpenVid-> Free AI-powered online video editor. Screen recorder, cinematic zooms, professional 3D device mockups, and HD export directly in your browser.+> Free, AI-powered online video editor for crafting cinematic product demos and 3D device mockups entirely in the browser.## Overview-Openvid allows you to record your screen or upload a video, add smooth zooms, interactive 3D device mockups (similar to Rotato), cinematic camera tilts, and custom backgrounds to export a high-fidelity demo ready to share. Everything runs entirely in the browser using FFmpeg.wasm, Three.js, and Canvas API.+OpenVid transforms standard screen recordings into highly polished, professional product demos without the need for complex software like After Effects. By leveraging WebAssembly and WebGL, it ensures 100% privacy and local processing—your videos never leave your device. Users can add smooth zooms, interactive 3D device mockups (Rotato-style), cinematic camera tilts, and custom backgrounds to export a high-fidelity demo ready for launch.-## Core Features-- Browser-based screen recording and drag-and-drop video upload (MP4, WebM).-- 3D Device Mockups: Wrap your videos in realistic 3D smartphones, laptops, and monitors with full rotational and perspective control (Rotato-like 3D effects).-- 2D Frames & Browsers: Add sleek context with Safari, Chrome, Arc, and Samsung frames.-- 3D Camera & Zoom: Dynamic focal zooms, tilt, pan, and advanced multi-axis rotation.-- Effects & Layers: Custom backgrounds, masking, shadows, text, and SVG overlays.-- High-Quality Export: Render up to 4K @ 30fps in MP4, WebM (with transparency), or GIF.+## Key Capabilities-## Tech Stack-- Next.js 16, TypeScript, Tailwind CSS 4, Radix UI.-- Video & 3D Processing: FFmpeg.wasm, MediaBunny, Three.js, WebGL.-- Auth: Supabase Auth (Google, GitHub, Twitch).+* **Local Video Processing:** Zero-cloud screen recording and drag-and-drop video upload (MP4, WebM, MKV). Everything runs locally in the browser.+* **Advanced 3D Device Mockups:** Wrap UI/UX workflows in realistic 3D smartphones, laptops, and monitors with full multi-axis rotational and perspective control.+* **2D Contextual Frames:** Add clean, customizable shells to your media, including Safari, Chrome, Arc, and Samsung frames.+* **Cinematic Camera Engine:** Dynamic focal zooms, smooth panning, tilt, and advanced 3D camera movements based on points of interest.+* **Rich Layering System:** Customize aesthetics with dynamic backgrounds, image masking (cutouts), drop shadows, typography, and SVG overlays.+* **High-Fidelity Export Engine:** Render locally at up to 4K resolution (3840×2160) @ 30fps. Supported export formats include MP4 (H.264), WebM (VP9 with alpha transparency support), and GIF.-## Useful Links-- Official Website: https://openvid.dev-- Discord Community: https://discord.gg/kM5FtydGQ\ No newline at end of file+## Technical Architecture++* **Core Framework & UI:** Next.js 16, TypeScript, Tailwind CSS 4, Radix UI.+* **Video & Render Pipeline:** FFmpeg.wasm (in-browser rendering), MediaBunny, Three.js (3D effects), WebGL, HTML5 Canvas API.+* **Authentication:** Supabase Auth (OAuth support for Google, GitHub, and Twitch).++## Target Audience & Use Cases+Designed for indie hackers, founders, developer relations (DevRel) teams, and content creators who need to turn static screenshots or raw recordings into professional, launch-ready motion videos instantly.++## Resources & Links+* **Official Website:** https://openvid.dev+* **Discord Community:** https://discord.gg/kM5FtydGQ+* **GitHub Repository:** https://github.com/CristianOlivera1/openvid\ No newline at end of file