Create professional demos and 3D mockups in seconds, directly in your browser
feat: enhance UI components with GPU optimizations and add user guide translations
CristianOlivera1d6ba0a61fae3
diff --git a/app/[locale]/(home)/guide/page.tsx b/app/[locale]/(home)/guide/page.tsxnew file mode 100644index 0000000..a63d563--- /dev/null+++ b/app/[locale]/(home)/guide/page.tsx@@ -0,0 +1,31 @@+import { getTranslations, setRequestLocale } from "next-intl/server";+import type { Metadata } from "next";+import InteractiveRecordingSteps from "@/app/components/ui/home/RecordingSteps";+import { buildPageMetadata } from "@/lib/seo";++type Props = {+ params: Promise<{ locale: string }>;+};++export async function generateMetadata({ params }: Props): Promise<Metadata> {+ const { locale } = await params;+ const t = await getTranslations("recording.steps");++ return buildPageMetadata({+ locale,+ path: "/guide",+ title: t("title"),+ description: t("subtitle"),+ });+}++export default async function GuidePage({ params }: Props) {+ const { locale } = await params;+ setRequestLocale(locale);++ return (+ <div className="min-h-screen bg-black pt-12 pb-24">+ <InteractiveRecordingSteps />+ </div>+ );+}\ No newline at end of filediff --git a/app/[locale]/(home)/layout.tsx b/app/[locale]/(home)/layout.tsxindex d7dfcf2..5f425f7 100644--- a/app/[locale]/(home)/layout.tsx+++ b/app/[locale]/(home)/layout.tsx@@ -16,7 +16,7 @@ export default function HomeLayout({ children }: { children: React.ReactNode })options={{lerp: 0.08,smoothWheel: true,- wheelMultiplier: 1,+ wheelMultiplier: 1.1,}}><div className="flex min-h-screen flex-col text-neutral-300 bg-neutral-950">diff --git a/app/[locale]/(home)/page.tsx b/app/[locale]/(home)/page.tsxindex 753de27..b4960be 100644--- a/app/[locale]/(home)/page.tsx+++ b/app/[locale]/(home)/page.tsx@@ -123,12 +123,6 @@ export default async function Home({ params }: Props) {<div className="absolute inset-x-0 bottom-0 h-40 bg-linear-to-t from-[#0a0a0a] to-transparent pointer-events-none z-20" /></div>- <section className="w-full py-10 sm:py-16" aria-label="How it works">- <div className="max-w-7xl mx-auto xl:px-0">- <InteractiveRecordingSteps />- </div>- </section>-<div className="relative overflow-hidden w-full bg-black"><section className="w-full" aria-label="Editor features and demos"><div className="w-full mx-auto">diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsxindex 79364a4..6e7548f 100644--- a/app/[locale]/layout.tsx+++ b/app/[locale]/layout.tsx@@ -154,6 +154,7 @@ export default async function LocaleLayout({socialReactions: messages.socialReactions,donation: messages.donation,notFound: messages.notFound,+ tour: messages.tour,};const isProduction = process.env.NODE_ENV === "production";diff --git a/app/components/common/Footer.tsx b/app/components/common/Footer.tsxindex 2c11384..792e71c 100644--- a/app/components/common/Footer.tsx+++ b/app/components/common/Footer.tsx@@ -8,7 +8,7 @@ import { useTranslations } from "next-intl";export default function Footer() {const t = useTranslations('footer');const currentYear = new Date().getFullYear();-+return (<footer className="border-t border-white/10 bg-[#050505] pt-16 pb-8" role="contentinfo"><div className="max-w-7xl mx-auto px-6 flex flex-col md:flex-row justify-between gap-12 mb-16">@@ -31,9 +31,9 @@ export default function Footer() {<nav aria-label={t('product')}><h4 className="text-white font-medium text-sm mb-4">{t('product')}</h4><ul className="space-y-3 text-sm text-neutral-500">- <li><a href="#docs" className="hover:text-white transition-colors">{t('docs')}</a></li>+ <li><Link href="/guide" target="_blank" className="hover:text-white transition-colors">{t('guide')}</Link></li><li><Link href="/editor" className="hover:text-white transition-colors">{t('editor')}</Link></li>- <li><a href="/donate" target="_blank" className="hover:text-white transition-colors">{t('donate')}</a></li>+ <li><Link href="/donate" target="_blank" className="hover:text-white transition-colors">{t('donate')}</Link></li></ul></nav><nav aria-label={t('contact')}>diff --git a/app/components/common/Header.tsx b/app/components/common/Header.tsxindex 05c2013..562f3a1 100644--- a/app/components/common/Header.tsx+++ b/app/components/common/Header.tsx@@ -12,14 +12,15 @@ import { Button } from "@/components/ui/button";import { useRecording } from "@/app/contexts/RecordingContext";import RecordingSetupDialog from "../ui/RecordingSetupDialog";import { Alert, AlertTitle, AlertDescription } from "@/components/ui/alert";+import { driver } from "driver.js";export default function Header() {- const t = useTranslations('header');- const tRecording = useTranslations('recording.steps');-+ const t = useTranslations("header");+ const tRecording = useTranslations("recording.steps");+ const tTour = useTranslations("tour");+const [isScrolled, setIsScrolled] = useState(false);const [isMounted, setIsMounted] = useState(false);-const { startCountdown, stopRecording, isRecording, isCountdown, isProcessing } = useRecording();const [setupDialogOpen, setSetupDialogOpen] = useState(false);const [showMobileAlert, setShowMobileAlert] = useState(false);@@ -39,15 +40,70 @@ export default function Header() {return () => window.removeEventListener("scroll", handleScroll);}, []);+ useEffect(() => {+ const tourCompleted = localStorage.getItem("openvid-tour-completed");++ if (!tourCompleted) {+ const driverTimer = setTimeout(() => {+ if (document.getElementById("tour-video-upload")) {+ const driverObj = driver({+ showProgress: true,+ animate: true,+ nextBtnText: tTour("nextBtn"),+ prevBtnText: tTour("prevBtn"),+ doneBtnText: tTour("doneBtn"),+ popoverClass: "minimal-dark-theme",+ onDestroyed: () => {+ localStorage.setItem("openvid-tour-completed", "true");+ },+ steps: [+ {+ element: "#tour-record-btn",+ popover: {+ title: tTour("step1.title"),+ description: `${tTour("step1.description")} <a href="/guide" target="_blank" style="color: #60a5fa; text-decoration: underline;">${tTour("step1.guideLinkText")}</a>`,+ side: "bottom",+ align: "center",+ },+ },+ {+ element: "#tour-video-upload",+ popover: {+ title: tTour("step2.title"),+ description: tTour("step2.description"),+ side: "bottom",+ align: "center",+ },+ },+ {+ element: "#tour-photo-upload",+ popover: {+ title: tTour("step3.title"),+ description: tTour("step3.description"),+ side: "bottom",+ align: "center",+ },+ },+ ],+ });++ driverObj.drive();+ }+ }, 800);++ return () => clearTimeout(driverTimer);+ }+ }, [tTour]);+const handleHeaderAction = () => {if (isRecording) {stopRecording();return;}-- const isMobile = typeof window !== "undefined" &&- (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) || window.innerWidth < 768);-+ const isMobile =+ typeof window !== "undefined" &&+ (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ||+ window.innerWidth < 768);if (isMobile) {setShowMobileAlert(true);setTimeout(() => setShowMobileAlert(false), 5000);@@ -68,10 +124,11 @@ export default function Header() {return (<>- <header className={cn(- "fixed top-0 w-full z-50 transition-all duration-300",- isScrolled ? "border-b border-white/10 bg-[#050505]/80 backdrop-blur-xl py-0" : "bg-transparent border-transparent py-2"- )}+ <header+ className={cn(+ "fixed top-0 w-full z-50 transition-all duration-300",+ isScrolled ? "border-b border-white/10 bg-[#050505]/80 backdrop-blur-xl py-0" : "bg-transparent border-transparent py-2"+ )}><div className="max-w-7xl px-6 xl:px-8 mx-auto h-16 flex items-center justify-between"><Link href="/" className="flex items-center gap-2 group" aria-label="Openvid - Go to home">@@ -80,25 +137,27 @@ export default function Header() {</Link><nav className="hidden md:flex items-center gap-8 text-md font-medium text-neutral-400" aria-label="Main navigation">- <a href="#docs" className="hover:text-white transition-colors">{t('docs')}</a>- <Link href="/donate" target="_blank" className="hover:text-white transition-colors">{t('donate')}</Link>+ <Link href="/guide" target="_blank" className="hover:text-white transition-colors">+ {t("guide")}+ </Link>+ <Link href="/donate" target="_blank" className="hover:text-white transition-colors">+ {t("donate")}+ </Link></nav><div className="flex items-center gap-3 sm:gap-6"><Button+ id="tour-record-btn"variant="outline"onClick={handleHeaderAction}disabled={isCountdown || isProcessing}- aria-label={isRecording ? tRecording('step4.visual.stop') : t('screen')}+ aria-label={isRecording ? tRecording("step4.visual.stop") : t("screen")}aria-pressed={isRecording}- className={cn(- "transition-all hidden sm:flex",- isRecording && "border-red-500/50 text-red-400 hover:bg-red-500/5"- )}+ className={cn("transition-all hidden sm:flex", isRecording && "border-red-500/50 text-red-400 hover:bg-red-500/5")}>{getButtonContent()}<span className="text-xs font-bold tracking-tight">- {isRecording ? tRecording('step4.visual.stop') : t('screen')}+ {isRecording ? tRecording("step4.visual.stop") : t("screen")}</span>{!isRecording && (<kbd className="hidden lg:flex items-center ml-1 px-1.5 py-0.5 rounded bg-black/20 border border-white/20 text-[9px] font-black text-white/80 uppercase" aria-label="Alt + S">@@ -106,14 +165,12 @@ export default function Header() {</kbd>)}</Button>-<div className="flex items-center gap-2">{!isMounted ? (<div className="w-25 h-9 rounded-md bg-white/10 animate-pulse border border-white/5"></div>) : (<LanguageSwitcher />)}-<div className="block">{!isMounted ? (<div className="flex items-center gap-2 px-2 py-1">@@ -124,14 +181,12 @@ export default function Header() {<UserMenu />)}</div>-{!isMounted ? (<div className="w-9 h-9 rounded-md bg-white/10 animate-pulse border border-white/5"></div>) : (<MobileMenu />)}</div>-</div></div>@@ -139,8 +194,8 @@ export default function Header() {<div className="absolute top-20 left-1/2 -translate-x-1/2 w-full max-w-xs px-4"><Alert variant="warning" className="bg-[#0A0A0A] border-yellow-500/50" role="alert"><Icon icon="solar:laptop-minimalistic-broken" className="text-xl" aria-hidden="true" />- <AlertTitle>{tRecording('step1.permissionRequired')}</AlertTitle>- <AlertDescription>{tRecording('step1.mobileAlert')}</AlertDescription>+ <AlertTitle>{tRecording("step1.permissionRequired")}</AlertTitle>+ <AlertDescription>{tRecording("step1.mobileAlert")}</AlertDescription></Alert></div>)}diff --git a/app/components/common/MobileMenu.tsx b/app/components/common/MobileMenu.tsxindex 66c73f6..399992e 100644--- a/app/components/common/MobileMenu.tsx+++ b/app/components/common/MobileMenu.tsx@@ -107,12 +107,13 @@ export function MobileMenu() {<nav className="flex-1 overflow-y-auto p-4"><div className="space-y-2"><Link- href="/#docs"+ href="/guide"+ target="_blank"onClick={closeMenu}className="flex items-center gap-3 px-4 py-3 text-neutral-300 hover:text-white hover:bg-white/5 rounded-lg transition-colors"><Icon icon="solar:document-text-linear" className="w-5 h-5" aria-hidden="true" />- <span>{t('docs')}</span>+ <span>{t('guide')}</span></Link><adiff --git a/app/components/ui/RecordingSetupDialog.tsx b/app/components/ui/RecordingSetupDialog.tsxindex 3e3ad0f..d88f0e3 100644--- a/app/components/ui/RecordingSetupDialog.tsx+++ b/app/components/ui/RecordingSetupDialog.tsx@@ -92,7 +92,6 @@ export default function RecordingSetupDialog({ open, onClose, onStart }: Props)const [devices, setDevices] = useState<AvailableDevices>({ cameras: [], microphones: [] });const [previewStream, setPreviewStream] = useState<MediaStream | null>(null);- // Store error codes instead of hardcoded stringsconst [cameraErrorCode, setCameraErrorCode] = useState<string | null>(null);const [micErrorCode, setMicErrorCode] = useState<string | null>(null);@@ -239,7 +238,6 @@ export default function RecordingSetupDialog({ open, onClose, onStart }: Props)transform: setup.camera.mirror ? "scaleX(-1)" : undefined,};- // Resolvemos los mensajes de error usando next-intlconst cameraErrorMessage = cameraErrorCode === "NotAllowedError"? t("camera.permissionDenied"): cameraErrorCode === "generic"diff --git a/app/components/ui/home/FeaturesShowcase.tsx b/app/components/ui/home/FeaturesShowcase.tsxindex fd4caad..98727d8 100644--- a/app/components/ui/home/FeaturesShowcase.tsx+++ b/app/components/ui/home/FeaturesShowcase.tsx@@ -154,7 +154,7 @@ export default function FeaturesShowcase() {</div><DraggableCarousel>{videosData.map((feature) => (- <article key={feature.id} className="flex-shrink-0 h-[200px] sm:h-[350px] md:h-[450px]">+ <article key={feature.id} className="flex-shrink-0 h-[200px] sm:h-[350px] md:h-[470px]"><divclassName="relative h-full squircle-element-xl overflow-hidden border border-white/10 group shadow-2xl"style={{ aspectRatio: feature.aspectRatio || "16/9" }}@@ -180,7 +180,7 @@ export default function FeaturesShowcase() {</div><DraggableCarousel>{imagesData.map((feature) => (- <article key={feature.id} className="flex-shrink-0 h-[200px] sm:h-[350px] md:h-[450px]">+ <article key={feature.id} className="flex-shrink-0 h-[200px] sm:h-[350px] md:h-[470px]"><divclassName="relative h-full squircle-element-xl overflow-hidden bg-neutral-900 border border-white/10 group shadow-2xl"style={{ aspectRatio: feature.aspectRatio || "16/9" }}diff --git a/app/components/ui/home/Hero.tsx b/app/components/ui/home/Hero.tsxindex e48dbdd..63e9e1e 100644--- a/app/components/ui/home/Hero.tsx+++ b/app/components/ui/home/Hero.tsx@@ -9,296 +9,244 @@ import Link from "next/link";import GitHubBadge from "@/components/ui/GitHubStars";interface HeroProps {- onVideoUpload?: (file: File) => void;- onPhotoUpload?: (file: File) => void;+ onVideoUpload?: (file: File) => void;+ onPhotoUpload?: (file: File) => void;}export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {- const t = useTranslations("hero");- const router = useRouter();-- const videoInputRef = useRef<HTMLInputElement>(null);- const [isDraggingVideo, setIsDraggingVideo] = useState(false);- const [isUploadingVideo, setIsUploadingVideo] = useState(false);-- const handleVideoFile = useCallback(- async (file: File) => {- if (!file.type.startsWith("video/")) return;- setIsUploadingVideo(true);- try {- await saveUploadedVideo(file);- await clearVideoTrack();- if (onVideoUpload) {- onVideoUpload(file);- }- router.push("/editor?mode=video");- } catch (error) {- console.error("Error uploading video:", error);- setIsUploadingVideo(false);- }- },- [onVideoUpload, router]- );-- const handleVideoFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {- const file = e.target.files?.[0];- if (file) handleVideoFile(file);- e.target.value = "";- };-- const handleVideoDragOver = (e: React.DragEvent) => {- e.preventDefault();- e.stopPropagation();- setIsDraggingVideo(true);- };-- const handleVideoDragLeave = (e: React.DragEvent) => {- e.preventDefault();- e.stopPropagation();- setIsDraggingVideo(false);- };-- const handleVideoDrop = (e: React.DragEvent) => {- e.preventDefault();- e.stopPropagation();- setIsDraggingVideo(false);- const file = e.dataTransfer.files?.[0];- if (file) handleVideoFile(file);- };-- const photoInputRef = useRef<HTMLInputElement>(null);- const [isDraggingPhoto, setIsDraggingPhoto] = useState(false);- const [isUploadingPhoto, setIsUploadingPhoto] = useState(false);-- const handlePhotoFile = useCallback(- async (file: File) => {- if (!file.type.startsWith("image/")) return;- setIsUploadingPhoto(true);- try {- await saveUploadedImage(file);- if (onPhotoUpload) {- onPhotoUpload(file);- }- router.push("/editor?mode=photo");- } catch (error) {- console.error("Error uploading photo:", error);- setIsUploadingPhoto(false);- }- },- [onPhotoUpload, router]- );-- const handlePhotoFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {- const file = e.target.files?.[0];- if (file) handlePhotoFile(file);- e.target.value = "";- };-- const handlePhotoDragOver = (e: React.DragEvent) => {- e.preventDefault();- e.stopPropagation();- setIsDraggingPhoto(true);- };-- const handlePhotoDragLeave = (e: React.DragEvent) => {- e.preventDefault();- e.stopPropagation();- setIsDraggingPhoto(false);- };-- const handlePhotoDrop = (e: React.DragEvent) => {- e.preventDefault();- e.stopPropagation();- setIsDraggingPhoto(false);- const file = e.dataTransfer.files?.[0];- if (file) handlePhotoFile(file);- };-- return (- <>- <h1 className="animate-reveal text-5xl md:text-7xl font-semibold text-white tracking-tight mb-6 leading-[1.1] drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">- <div className="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-10 sm:-translate-y-3 flex items-center justify-center gap-4 h-auto transition-all z-10 whitespace-nowrap">- <img- src="/svg/version.svg"- alt=""- aria-hidden="true"- className="h-auto w-16 sm:w-18 shadow-2xl select-none align-middle translate-y-[2px]"- />-- <div className="flex items-center shadow-2xl h-full mt-1">- <GitHubBadge />- </div>- </div>- {t.rich("title", {- screen: (chunks) => (- <span className="relative inline-flex items-center">- <span className="sr-only">{chunks}</span>- <img- src="/svg/mockups.svg"- alt=""- aria-hidden="true"- className="inline-block h-[1.6em] w-auto align-middle translate-y-[0.1em] sm:translate-y-[0.3em]"- />- <img- src="/svg/cursor-animate.svg"- className="hidden sm:flex absolute -top-18 sm:-top-25 -right-28 sm:-right-30 h-[4em] w-auto"- alt=""- aria-hidden="true"- />- </span>- ),- })}- <br />- <span className="text-transparent bg-clip-text bg-linear-to-r from-neutral-200 via-neutral-400 to-[#009CF2]">- {t("titleHighlight")}- </span>- </h1>- <p className="animate-reveal [animation-delay:150ms] text-lg md:text-xl text-neutral-400 max-w-2xl mx-auto mb-10 font-light leading-relaxed">- {t("description")}- </p>-- <div className="animate-reveal [animation-delay:300ms] flex flex-col sm:flex-row items-center justify-center gap-3 mb-2">- <div className="flex flex-col items-center gap-2 w-full sm:w-72">- <div- onDragOver={handleVideoDragOver}- onDragLeave={handleVideoDragLeave}- onDrop={handleVideoDrop}- onClick={() => !isUploadingVideo && videoInputRef.current?.click()}- className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${isDraggingVideo- ? "border-blue-400/70 bg-blue-500/10 text-blue-300 scale-[1.02]"- : isUploadingVideo- ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"- : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"- }`}- >- <div className="flex items-center justify-center gap-3 pointer-events-none w-full">- {isUploadingVideo ? (- <>- <Icon- icon="svg-spinners:ring-resize"- width="18"- className="text-blue-400 shrink-0"- aria-hidden="true"- />- <span>{t("uploadButtonUploading")}</span>- </>- ) : isDraggingVideo ? (- <>- <Icon- icon="ph:arrow-fat-down-bold"- width="18"- className="text-blue-400 shrink-0"- aria-hidden="true"- />- <span>{t("uploadButtonDragging")}</span>- </>- ) : (- <>- <Icon icon="mage:video-upload" width="22" className="shrink-0" aria-hidden="true" />-- <div className="flex items-center gap-2">- <span>{t("uploadButton")}</span>- <span className="text-white/40 text-xs font-mono select-none">- MP4, WebM, MOV- </span>- </div>- </>- )}- </div>-- {isDraggingVideo && (- <div className="absolute inset-0 rounded-2xl bg-blue-500/5 blur-sm pointer-events-none" />- )}- </div>- <Link- href="/editor?mode=video"- className="text-[15px] text-white/70 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4"- >- {t("goToVideoEditor")}- </Link>- <input- ref={videoInputRef}- type="file"- accept="video/mp4,video/webm,video/quicktime,video/x-matroska"- className="hidden"- onChange={handleVideoFileChange}- aria-label={t("uploadButton")}- />- </div>-- <div className="flex flex-col items-center gap-2 w-full sm:w-72">- <div- onDragOver={handlePhotoDragOver}- onDragLeave={handlePhotoDragLeave}- onDrop={handlePhotoDrop}- onClick={() => !isUploadingPhoto && photoInputRef.current?.click()}- className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${isDraggingPhoto- ? "border-red-400/70 bg-red-500/10 text-red-300 scale-[1.02]"- : isUploadingPhoto- ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"- : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"- }`}- >- <div className="flex items-center justify-center gap-3 pointer-events-none w-full">- {isUploadingPhoto ? (- <>- <Icon- icon="svg-spinners:ring-resize"- width="18"- className="text-red-400 shrink-0"- aria-hidden="true"- />- <span>{t("uploadPhotoUploading")}</span>- </>- ) : isDraggingPhoto ? (- <>- <Icon- icon="ph:arrow-fat-down-bold"- width="18"- className="text-red-400 shrink-0"- aria-hidden="true"- />- <span>{t("uploadPhotoDragging")}</span>- </>- ) : (- <>- <Icon- icon="solar:gallery-wide-linear"- width="20"- className="shrink-0"- aria-hidden="true"- />-- <div className="flex items-center gap-2">- <span>{t("uploadPhotoButton")}</span>- <span className="text-white/40 text-xs font-mono select-none">- JPG, PNG, WEBP- </span>- </div>- </>- )}- </div>-- {isDraggingPhoto && (- <div className="absolute inset-0 rounded-2xl bg-red-500/5 blur-sm pointer-events-none" />- )}- </div>- <Link- href="/editor?mode=photo"- className="text-[15px] text-white/70 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4"- >- {t("goToPhotoEditor")}- </Link>- <input- ref={photoInputRef}- type="file"- accept="image/jpeg,image/png,image/webp,image/gif"- className="hidden"- onChange={handlePhotoFileChange}- aria-label={t("uploadPhotoButton")}- />- </div>+ const t = useTranslations("hero");+ const router = useRouter();++ const videoInputRef = useRef<HTMLInputElement>(null);+ const [isDraggingVideo, setIsDraggingVideo] = useState(false);+ const [isUploadingVideo, setIsUploadingVideo] = useState(false);++ const handleVideoFile = useCallback(+ async (file: File) => {+ if (!file.type.startsWith("video/")) return;+ setIsUploadingVideo(true);+ try {+ await saveUploadedVideo(file);+ await clearVideoTrack();+ if (onVideoUpload) {+ onVideoUpload(file);+ }+ router.push("/editor?mode=video");+ } catch (error) {+ console.error("Error uploading video:", error);+ setIsUploadingVideo(false);+ }+ },+ [onVideoUpload, router]+ );++ const handleVideoFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const file = e.target.files?.[0];+ if (file) handleVideoFile(file);+ e.target.value = "";+ };++ const handleVideoDragOver = (e: React.DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ setIsDraggingVideo(true);+ };+ const handleVideoDragLeave = (e: React.DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ setIsDraggingVideo(false);+ };+ const handleVideoDrop = (e: React.DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ setIsDraggingVideo(false);+ const file = e.dataTransfer.files?.[0];+ if (file) handleVideoFile(file);+ };++ const photoInputRef = useRef<HTMLInputElement>(null);+ const [isDraggingPhoto, setIsDraggingPhoto] = useState(false);+ const [isUploadingPhoto, setIsUploadingPhoto] = useState(false);++ const handlePhotoFile = useCallback(+ async (file: File) => {+ if (!file.type.startsWith("image/")) return;+ setIsUploadingPhoto(true);+ try {+ await saveUploadedImage(file);+ if (onPhotoUpload) {+ onPhotoUpload(file);+ }+ router.push("/editor?mode=photo");+ } catch (error) {+ console.error("Error uploading photo:", error);+ setIsUploadingPhoto(false);+ }+ },+ [onPhotoUpload, router]+ );++ const handlePhotoFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const file = e.target.files?.[0];+ if (file) handlePhotoFile(file);+ e.target.value = "";+ };++ const handlePhotoDragOver = (e: React.DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ setIsDraggingPhoto(true);+ };+ const handlePhotoDragLeave = (e: React.DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ setIsDraggingPhoto(false);+ };+ const handlePhotoDrop = (e: React.DragEvent) => {+ e.preventDefault();+ e.stopPropagation();+ setIsDraggingPhoto(false);+ const file = e.dataTransfer.files?.[0];+ if (file) handlePhotoFile(file);+ };++ return (+ <>+ <h1 className="animate-reveal text-5xl md:text-7xl font-semibold text-white tracking-tight mb-6 leading-[1.1] drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">+ <div className="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-10 sm:-translate-y-3 flex items-center justify-center gap-4 h-auto transition-all z-10 whitespace-nowrap">+ <img src="/svg/version.svg" alt="" aria-hidden="true" className="h-auto w-16 sm:w-18 shadow-2xl select-none align-middle translate-y-[2px]" />+ <div className="flex items-center shadow-2xl h-full mt-1">+ <GitHubBadge />+ </div>+ </div>+ {t.rich("title", {+ screen: (chunks) => (+ <span className="relative inline-flex items-center">+ <span className="sr-only">{chunks}</span>+ <img src="/svg/mockups.svg" alt="" aria-hidden="true" className="inline-block h-[1.6em] w-auto align-middle translate-y-[0.1em] sm:translate-y-[0.3em]" />+ <img src="/svg/cursor-animate.svg" className="hidden sm:flex absolute -top-18 sm:-top-25 -right-28 sm:-right-30 h-[4em] w-auto" alt="" aria-hidden="true" />+ </span>+ ),+ })}+ <br />+ <span className="text-transparent bg-clip-text bg-linear-to-r from-neutral-200 via-neutral-400 to-[#009CF2]">+ {t("titleHighlight")}+ </span>+ </h1>++ <p className="animate-reveal [animation-delay:150ms] text-lg md:text-xl text-neutral-400 max-w-2xl mx-auto mb-10 font-light leading-relaxed">+ {t("description")}+ </p>++ <div className="animate-reveal [animation-delay:300ms] flex flex-col sm:flex-row items-center justify-center gap-3 mb-2">+ <div className="flex flex-col items-center gap-2 w-full sm:w-72">+ {/* AÑADIDO: id="tour-video-upload" */}+ <div+ id="tour-video-upload"+ onDragOver={handleVideoDragOver}+ onDragLeave={handleVideoDragLeave}+ onDrop={handleVideoDrop}+ onClick={() => !isUploadingVideo && videoInputRef.current?.click()}+ className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${+ isDraggingVideo+ ? "border-blue-400/70 bg-blue-500/10 text-blue-300 scale-[1.02]"+ : isUploadingVideo+ ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"+ : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"+ }`}+ >+ <div className="flex items-center justify-center gap-3 pointer-events-none w-full">+ {isUploadingVideo ? (+ <>+ <Icon icon="svg-spinners:ring-resize" width="18" className="text-blue-400 shrink-0" aria-hidden="true" />+ <span>{t("uploadButtonUploading")}</span>+ </>+ ) : isDraggingVideo ? (+ <>+ <Icon icon="ph:arrow-fat-down-bold" width="18" className="text-blue-400 shrink-0" aria-hidden="true" />+ <span>{t("uploadButtonDragging")}</span>+ </>+ ) : (+ <>+ <Icon icon="mage:video-upload" width="22" className="shrink-0" aria-hidden="true" />+ <div className="flex items-center gap-2">+ <span>{t("uploadButton")}</span>+ <span className="text-white/40 text-xs font-mono select-none">MP4, WebM, MOV</span>+ </div>+ </>+ )}+ </div>+ {isDraggingVideo && (+ <div className="absolute inset-0 rounded-2xl bg-blue-500/5 blur-sm pointer-events-none" />+ )}+ </div>+ <Link href="/editor?mode=video" className="text-[15px] text-white/70 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4">+ {t("goToVideoEditor")}+ </Link>+ <input+ ref={videoInputRef}+ type="file"+ accept="video/mp4,video/webm,video/quicktime,video/x-matroska"+ className="hidden"+ onChange={handleVideoFileChange}+ aria-label={t("uploadButton")}+ />+ </div>++ <div className="flex flex-col items-center gap-2 w-full sm:w-72">+ {/* AÑADIDO: id="tour-photo-upload" */}+ <div+ id="tour-photo-upload"+ onDragOver={handlePhotoDragOver}+ onDragLeave={handlePhotoDragLeave}+ onDrop={handlePhotoDrop}+ onClick={() => !isUploadingPhoto && photoInputRef.current?.click()}+ className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${+ isDraggingPhoto+ ? "border-red-400/70 bg-red-500/10 text-red-300 scale-[1.02]"+ : isUploadingPhoto+ ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"+ : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"+ }`}+ >+ <div className="flex items-center justify-center gap-3 pointer-events-none w-full">+ {isUploadingPhoto ? (+ <>+ <Icon icon="svg-spinners:ring-resize" width="18" className="text-red-400 shrink-0" aria-hidden="true" />+ <span>{t("uploadPhotoUploading")}</span>+ </>+ ) : isDraggingPhoto ? (+ <>+ <Icon icon="ph:arrow-fat-down-bold" width="18" className="text-red-400 shrink-0" aria-hidden="true" />+ <span>{t("uploadPhotoDragging")}</span>+ </>+ ) : (+ <>+ <Icon icon="solar:gallery-wide-linear" width="20" className="shrink-0" aria-hidden="true" />+ <div className="flex items-center gap-2">+ <span>{t("uploadPhotoButton")}</span>+ <span className="text-white/40 text-xs font-mono select-none">JPG, PNG, WEBP</span>+ </div>+ </>+ )}</div>- </>- );+ {isDraggingPhoto && (+ <div className="absolute inset-0 rounded-2xl bg-red-500/5 blur-sm pointer-events-none" />+ )}+ </div>+ <Link href="/editor?mode=photo" className="text-[15px] text-white/70 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4">+ {t("goToPhotoEditor")}+ </Link>+ <input+ ref={photoInputRef}+ type="file"+ accept="image/jpeg,image/png,image/webp,image/gif"+ className="hidden"+ onChange={handlePhotoFileChange}+ aria-label={t("uploadPhotoButton")}+ />+ </div>+ </div>+ </>+ );}\ No newline at end of filediff --git a/app/components/ui/home/RecordingSteps.tsx b/app/components/ui/home/RecordingSteps.tsxindex 1008fda..6fc9588 100644--- a/app/components/ui/home/RecordingSteps.tsx+++ b/app/components/ui/home/RecordingSteps.tsx@@ -28,7 +28,8 @@ export default function InteractiveRecordingSteps() {if (isCountdown) {return (<>- <div className="w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin mr-2" />+ {/* Optimización: transform-gpu añadido al spinner */}+ <div className="w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin transform-gpu mr-2" />{t('step1.countdownButton')}</>);@@ -36,7 +37,8 @@ export default function InteractiveRecordingSteps() {if (isRecording) {return (<>- <div className="w-3 h-3 rounded-full bg-red-500 animate-pulse mr-2" />+ {/* Optimización: transform-gpu añadido al pulse */}+ <div className="w-3 h-3 rounded-full bg-red-500 animate-pulse transform-gpu mr-2" />{t('step1.recordingButton')}</>);@@ -44,7 +46,7 @@ export default function InteractiveRecordingSteps() {if (isProcessing) {return (<>- <div className="w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin mr-2" />+ <div className="w-5 h-5 border-2 border-white/30 border-t-white rounded-full animate-spin transform-gpu mr-2" />{t('step1.processingButton')}</>);@@ -80,15 +82,16 @@ export default function InteractiveRecordingSteps() {<Buttonvariant="outline"size="xl"- className={`text-lg relative overflow-hidden ${isRecording ? 'border-red-500/50 text-red-400' : ''} ${!isIdle ? 'opacity-70 cursor-not-allowed' : ''}`}+ className={`text-lg relative overflow-hidden transform-gpu transition-colors ${isRecording ? 'border-red-500/50 text-red-400' : ''} ${!isIdle ? 'opacity-70 cursor-not-allowed' : ''}`}onClick={handleStartRecording}disabled={!isIdle}aria-label={t('step1.startButton')}>{getStartButtonContent()}</Button>+{showMobileAlert && (- <Alert variant="warning" className="animate-in fade-in slide-in-from-top-2 duration-300 w-full max-w-sm text-left">+ <Alert variant="warning" className="animate-in fade-in slide-in-from-top-2 duration-300 w-full max-w-sm text-left transform-gpu"><Icon icon="solar:laptop-minimalistic-broken" className="text-xl" /><AlertTitle>{t('step1.permissionRequired')}</AlertTitle><AlertDescription>@@ -99,9 +102,11 @@ export default function InteractiveRecordingSteps() {</div>),visual: (- <div className="aspect-video bg-[#0A0A0A]squircle-element-camera flex items-center justify-center relative group shadow-2xl p-1 sm:p-0">- <div className="absolute inset-0 bg-[radial-linear(#ffffff22_1px,transparent_1px)] [bg-size:16px_16px] opacity-10"></div>- <div className="bg-[#292A2D] squircle-element-camera w-full max-w-full shadow-2xl relative z-10 flex flex-col font-sans border border-white/5 origin-center">+ /* Optimización: transform-gpu al contenedor base de la visualización */+ <div className="aspect-video bg-[#0A0A0A] squircle-element-camera flex items-center justify-center relative group shadow-xl p-1 sm:p-0 transform-gpu isolate">+ <div className="absolute inset-0 bg-[radial-linear(#ffffff22_1px,transparent_1px)] [bg-size:16px_16px] opacity-10 pointer-events-none"></div>++ <div className="bg-[#292A2D] squircle-element-camera w-full max-w-full shadow-2xl relative z-10 flex flex-col font-sans border border-white/5 origin-center transform-gpu"><div className="flex justify-between px-2 sm:px-4 pt-2 sm:pt-3 border-b border-white/10 text-[9px] sm:text-[11px] font-medium"><div className="pb-2 text-neutral-400 hover:text-neutral-200 flex-1 text-center transition-colors truncate px-1">{t('step1.visual.browserTab')}@@ -113,6 +118,7 @@ export default function InteractiveRecordingSteps() {{t('step1.visual.fullscreen')}</div></div>+<div className="p-3 sm:p-5 flex justify-center gap-3 sm:gap-4 h-auto sm:h-37.5"><div className="w-24 sm:w-32.5 flex flex-col gap-2"><div className="w-full h-14 sm:h-18.75 bg-[#141414] rounded-md border-2 border-[#C0B4F0] overflow-hidden shadow-inner relative transition-colors">@@ -123,6 +129,7 @@ export default function InteractiveRecordingSteps() {<span className="truncate">{t('step1.visual.tabTitle')}</span></div></div>+<div className="w-24 sm:w-32.5 flex flex-col gap-2"><div className="w-full h-14 sm:h-18.75 bg-[#141414] rounded-md border border-gray-500 overflow-hidden shadow-inner relative"><div className="absolute top-1 left-1 w-[95%] h-[90%] bg-[#1E1E1E] rounded border border-white/5 flex flex-col">@@ -141,6 +148,7 @@ export default function InteractiveRecordingSteps() {</div></div></div>+<div className="px-3 sm:px-5 pb-3 sm:pb-5"><div className="border-t border-white/10 pt-3 sm:pt-4 flex flex-col sm:flex-row justify-between items-center mb-4 sm:mb-6 gap-3 sm:gap-0"><div className="flex items-center gap-2 text-[11px] sm:text-[11px] text-neutral-300">@@ -148,7 +156,7 @@ export default function InteractiveRecordingSteps() {{t('step1.visual.shareAudio')}</div><div className="w-7 h-4 bg-[#5F6368] rounded-full relative shadow-inner shrink-0">- <div className="absolute top-0.5 left-0.5 w-3 h-3 bg-neutral-300 rounded-full shadow"></div>+ <div className="absolute top-0.5 left-0.5 w-3 h-3 bg-neutral-300 rounded-full shadow-sm"></div></div></div><div className="flex w-full sm:w-auto justify-end gap-2 sm:gap-3">@@ -169,16 +177,21 @@ export default function InteractiveRecordingSteps() {title: t('step2.title'),description: (<p>- {t.rich('step2.description', { hide: (chunks) => <strong className="text-gray-200">{chunks}</strong> })}+ {t.rich('step2.description', {+ hide: (chunks) => <strong className="text-gray-200">{chunks}</strong>+ })}</p>),isReversed: false,actionButton: null,visual: (- <div className="aspect-video bg-[#0A0A0A] border border-white/10 squircle-element-camera overflow-hidden flex items-center justify-center relative group shadow-2xl p-4">- <div className="absolute inset-0 bg-[radial-linear(#ffffff22_1px,transparent_1px)] [bg-size:16px_16px] opacity-10"></div>- <div className="absolute top-0 left-1/2 -translate-x-1/2 w-75 h-37.5 bg-blue-500/5 rounded-[100%] blur-3xl"></div>- <div className="bg-[#1C1A20] border border-white/5 rounded-2xl sm:rounded-full px-4 sm:pl-4 sm:pr-6 py-3 sm:py-2 flex flex-col sm:flex-row items-center gap-3 sm:gap-4 shadow-2xl z-10 w-full sm:w-auto max-w-[90%] sm:max-w-none text-center sm:text-left">+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 squircle-element-camera overflow-hidden flex items-center justify-center relative group shadow-xl p-4 transform-gpu isolate">+ <div className="absolute inset-0 bg-[radial-linear(#ffffff22_1px,transparent_1px)] [bg-size:16px_16px] opacity-10 pointer-events-none"></div>++ {/* Optimización: Gradiente radial en lugar de blur-3xl */}+ <div className="absolute top-0 left-1/2 -translate-x-1/2 w-75 h-37.5 bg-[radial-gradient(ellipse_at_top,_var(--tw-gradient-stops))] from-blue-500/20 via-blue-500/0 to-transparent pointer-events-none"></div>++ <div className="bg-[#1C1A20] border border-white/5 rounded-2xl sm:rounded-full px-4 sm:pl-4 sm:pr-6 py-3 sm:py-2 flex flex-col sm:flex-row items-center gap-3 sm:gap-4 shadow-xl z-10 w-full sm:w-auto max-w-[90%] sm:max-w-none text-center sm:text-left transform-gpu"><div className="flex flex-col sm:flex-row items-center gap-2 sm:gap-3"><Icon icon="ic:baseline-pause" className="text-white text-lg hidden sm:block" /><span className="text-[11px] sm:text-[11px] text-[#E8EAED] leading-tight">@@ -193,7 +206,7 @@ export default function InteractiveRecordingSteps() {<span className="text-[#8AB4F8] text-[11px] sm:text-[11px] font-medium hover:text-white transition-colors">{t('step2.visual.hide')}</span>- <Icon icon="solar:cursor-default-bold" className="absolute -bottom-4 sm:-bottom-5 -right-2 sm:-right-3 text-white text-lg sm:text-xl drop-shadow-[0_2px_4px_rgba(0,0,0,0.5)] z-20" />+ <Icon icon="solar:cursor-default-bold" className="absolute -bottom-4 sm:-bottom-5 -right-2 sm:-right-3 text-white text-lg sm:text-xl drop-shadow-md z-20" /></div></div></div>@@ -205,19 +218,23 @@ export default function InteractiveRecordingSteps() {title: t('step3.title'),description: (<p>- {t.rich('step3.description', { countdown: (chunks) => <strong className="text-gray-200">{chunks}</strong> })}+ {t.rich('step3.description', {+ countdown: (chunks) => <strong className="text-gray-200">{chunks}</strong>+ })}</p>),isReversed: true,actionButton: null,visual: (- <div className="aspect-video bg-[#000B13] border border-white/10 squircle-element-camera overflow-hidden relative group shadow-2xl">- <div className="absolute inset-0 bg-[#000B13]/95 backdrop-blur-md flex items-center justify-center z-10 p-4 sm:p-6">+ <div className="aspect-video bg-[#000B13] border border-white/10 squircle-element-camera overflow-hidden relative group shadow-xl transform-gpu isolate">+ {/* Optimización: Opacidad 98% en lugar de backdrop-blur-md (Mismo efecto visual, cero pérdida de rendimiento) */}+ <div className="absolute inset-0 bg-[#000B13]/98 flex items-center justify-center z-10 p-4 sm:p-6"><div className="flex flex-col items-center justify-center h-full w-full max-h-full"><div className="relative w-20 h-20 sm:w-32 sm:h-32 flex items-center justify-center shrink-0">- <div className="absolute inset-0 rounded-full bg-[#00A3FF]/20 animate-pulse" />+ {/* Optimización: transform-gpu para la animación pulse */}+ <div className="absolute inset-0 rounded-full bg-[#00A3FF]/20 animate-pulse transform-gpu" /><div className="absolute inset-2 sm:inset-4 rounded-full bg-[#00A3FF]/10" />- <div className="relative w-16 h-16 sm:w-28 sm:h-28 rounded-full bg-linear-to-br from-[#00A3FF] to-blue-800 p-0.5 shadow-[0_0_30px_rgba(0,163,255,0.2)]">+ <div className="relative w-16 h-16 sm:w-28 sm:h-28 rounded-full bg-gradient-to-br from-[#00A3FF] to-blue-800 p-0.5 shadow-lg"><div className="w-full h-full rounded-full bg-[#0E0E12] flex items-center justify-center"><span className="text-3xl sm:text-6xl font-bold text-white tabular-nums tracking-tighter">5@@ -243,7 +260,9 @@ export default function InteractiveRecordingSteps() {title: t('step4.title'),description: (<p>- {t.rich('step4.description', { countdown: (chunks) => <span className="font-bold">{chunks}</span> })}+ {t.rich('step4.description', {+ countdown: (chunks) => <span className="font-bold">{chunks}</span>+ })}</p>),isReversed: false,@@ -251,14 +270,14 @@ export default function InteractiveRecordingSteps() {<Buttonvariant="outline"size="xl"- className={`text-lg flex items-center ${isRecording ? 'text-red-500 border-red-500/50 hover:bg-red-500/10' : 'text-neutral-500 border-neutral-500/50 cursor-not-allowed opacity-50'}`}+ className={`text-lg flex items-center transform-gpu transition-colors ${isRecording ? 'text-red-500 border-red-500/50 hover:bg-red-500/10' : 'text-neutral-500 border-neutral-500/50 cursor-not-allowed opacity-50'}`}onClick={stopRecording}disabled={!isRecording}aria-label={isRecording ? t('step1.stopButton') : t('step1.startButton')}>- <div className={`w-4 h-4 rounded-sm mr-2 ${isRecording ? 'bg-red-500' : 'bg-neutral-500'}`} aria-hidden="true"></div>+ <div className={`w-4 h-4 rounded-sm mr-2 transform-gpu ${isRecording ? 'bg-red-500' : 'bg-neutral-500'}`} aria-hidden="true"></div>{isRecording ? t('step1.stopButton') : t('step1.startButton')}- <div className={`hidden sm:flex items-center gap-1 text-[11px] px-1.5 py-0.5 rounded border ml-3 ${isRecording ? 'bg-red-500/10 text-red-300 border-red-500/20' : 'bg-neutral-500/10 text-neutral-400 border-neutral-500/20'}`}>+ <div className={`hidden sm:flex items-center gap-1 text-[11px] px-1.5 py-0.5 rounded border ml-3 transition-colors ${isRecording ? 'bg-red-500/10 text-red-300 border-red-500/20' : 'bg-neutral-500/10 text-neutral-400 border-neutral-500/20'}`}><kbd>Alt</kbd><span>+</span><kbd>D</kbd>@@ -266,13 +285,15 @@ export default function InteractiveRecordingSteps() {</Button>),visual: (- <div className="aspect-video bg-[#0A0A0A] border border-white/10 squircle-element-camera overflow-hidden relative group shadow-2xl flex items-center justify-center">- <div className="absolute top-1/2 left-0 w-full h-px bg-white/5"></div>- <div className="absolute top-0 left-1/2 w-px h-full bg-white/5"></div>+ <div className="aspect-video bg-[#0A0A0A] border border-white/10 squircle-element-camera overflow-hidden relative group shadow-xl flex items-center justify-center transform-gpu isolate">+ <div className="absolute top-1/2 left-0 w-full h-px bg-white/5 pointer-events-none"></div>+ <div className="absolute top-0 left-1/2 w-px h-full bg-white/5 pointer-events-none"></div>+<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 pointer-events-auto w-full px-4 sm:px-0 sm:w-auto">- <div className="flex flex-col sm:flex-row items-center gap-3 sm:gap-4 bg-[#1E1E20] border border-white/10 squircle-element-camera sm:rounded-full py-3 sm:pl-5 sm:pr-2 sm:py-2 shadow-2xl mx-auto max-w-[200px] sm:max-w-none">+ <div className="flex flex-col sm:flex-row items-center gap-3 sm:gap-4 bg-[#1E1E20] border border-white/10 squircle-element-camera sm:rounded-full py-3 sm:pl-5 sm:pr-2 sm:py-2 shadow-xl mx-auto max-w-[200px] sm:max-w-none transform-gpu"><div className="flex items-center justify-center gap-2 sm:gap-3 w-full sm:w-auto pb-2 sm:pb-0 border-b sm:border-b-0 sm:border-r border-white/10 sm:pr-2">- <div className="w-2.5 h-2.5 sm:w-3 sm:h-3 rounded-full bg-red-500 animate-pulse" />+ {/* Optimización: transform-gpu para el pulse de grabación */}+ <div className="w-2.5 h-2.5 sm:w-3 sm:h-3 rounded-full bg-red-500 animate-pulse transform-gpu" /><span className="text-[11px] sm:text-[11px] text-white font-medium">{t('step4.visual.recording')}</span><span className="text-[11px] sm:text-[11px] text-red-400 font-mono font-bold">00:42@@ -280,7 +301,7 @@ export default function InteractiveRecordingSteps() {</div><button className="group flex items-center justify-center gap-2 sm:gap-3 px-3 sm:px-4 py-1.5 sm:bg-red-500/10 sm:hover:bg-red-500/20 sm:border border-transparent sm:border-red-500/30 hover:border-red-500/50 squircle-element-camera transition-all w-full sm:w-auto cursor-default!"><div className="flex items-center gap-2 text-red-400 text-xs sm:text-sm font-medium">- <div className="w-2.5 h-2.5 sm:w-3 sm:h-3 bg-red-500 rounded-sm group-hover:scale-110 transition-transform" />+ <div className="w-2.5 h-2.5 sm:w-3 sm:h-3 bg-red-500 rounded-sm group-hover:scale-110 transition-transform transform-gpu" />{t('step4.visual.stop')}</div><div className="hidden sm:flex items-center gap-1 text-[11px] bg-red-500/10 text-red-300 px-1.5 py-0.5 rounded border border-red-500/20">@@ -297,10 +318,11 @@ export default function InteractiveRecordingSteps() {];return (- <div id="docs" className="w-full max-w-7xl mx-auto px-6 lg:px-8 py-24 text-left">+ <div className="w-full max-w-7xl mx-auto px-6 lg:px-8 py-24 text-left"><div className="max-w-2xl mb-16">- <h2 className="text-4xl sm:text-5xl font-semibold tracking-tight text-white mb-6">- {t('title')} <br />+ <h2 className="text-4xl sm:text-5xl font-semibold tracking-tight text-white mb-6 transform-gpu">+ {t('title')}+ <br /><span className="text-transparent bg-clip-text bg-gradient-to-r from-neutral-300 to-neutral-500">{t('title2')}</span>diff --git a/app/globals.css b/app/globals.cssindex 19d6244..4bc253f 100644--- a/app/globals.css+++ b/app/globals.css@@ -1,6 +1,7 @@@import "tailwindcss";@import "tw-animate-css";@import "shadcn/tailwind.css";+@import "driver.js/dist/driver.css";@custom-variant dark (&:is(.dark *));@@ -399,4 +400,104 @@ button {40% { transform: translateX(2px); }60% { transform: translateX(-1px); }80% { transform: translateX(1px); }+}++.driver-popover.minimal-dark-theme {+ background-color: oklch(0.145 0 0);+ color: oklch(0.985 0 0);+ border: 1px solid oklch(1 0 0 / 10%);+ border-radius: 16px;+ box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255,255,255,0.05) inset;+ padding: 20px;+ font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;+ max-width: 320px;+}++.driver-popover.minimal-dark-theme .driver-popover-title {+ font-size: 18px;+ font-weight: 600;+ letter-spacing: -0.02em;+ color: oklch(0.985 0 0);+ margin-bottom: 8px;+}++.driver-popover.minimal-dark-theme .driver-popover-description {+ font-size: 16px;+ color: oklch(0.708 0 0);+ line-height: 1.5;+ margin-bottom: 16px;+}++.driver-popover.minimal-dark-theme .driver-popover-progress-text {+ font-size: 14px;+ font-weight: 500;+ color: oklch(1 0 0 / 40%);+}++.driver-popover.minimal-dark-theme .driver-popover-footer {+ margin-top: 16px;+}++.driver-popover.minimal-dark-theme .driver-popover-navigation-btns {+ display: flex;+ gap: 8px;+ justify-content: flex-end;+}++.driver-popover.minimal-dark-theme button {+ border-radius: 10px;+ padding: 8px 16px;+ font-size: 14px;+ font-weight: 500;+ transition: all 0.2s ease;+ text-shadow: none;+ cursor: pointer;+ outline: none;+}++.driver-popover.minimal-dark-theme .driver-popover-next-btn {+ background-color: oklch(0.985 0 0);+ color: oklch(0.145 0 0);+ border: 1px solid transparent;+}+.driver-popover.minimal-dark-theme .driver-popover-next-btn:hover {+ background-color: oklch(0.85 0 0);+}++.driver-popover.minimal-dark-theme .driver-popover-prev-btn {+ background-color: transparent;+ color: oklch(0.985 0 0);+ border: 1px solid oklch(1 0 0 / 15%);+}++.driver-popover.minimal-dark-theme .driver-popover-prev-btn:hover {+ background-color: oklch(1 0 0 / 10%);+ border-color: oklch(1 0 0 / 20%);+}++.driver-popover.minimal-dark-theme .driver-popover-close-btn {+ color: oklch(1 0 0 / 40%);+ transition: color 0.2s;+ top: 16px;+ right: 16px;+}++.driver-popover.minimal-dark-theme .driver-popover-close-btn:hover {+ color: oklch(0.985 0 0);+}++.driver-popover.minimal-dark-theme .driver-popover-arrow-side-left.driver-popover-arrow {+ border-left-color: oklch(0.145 0 0);+}++.driver-popover.minimal-dark-theme .driver-popover-arrow-side-right.driver-popover-arrow {+ border-right-color: oklch(0.145 0 0);+}++.driver-popover.minimal-dark-theme .driver-popover-arrow-side-top.driver-popover-arrow {+ border-top-color: oklch(0.145 0 0);+}++.driver-popover.minimal-dark-theme .driver-popover-arrow-side-bottom.driver-popover-arrow {+ border-bottom-color: oklch(0.145 0 0);}\ No newline at end of filediff --git a/messages/en.json b/messages/en.jsonindex a10d6b5..68771eb 100644--- a/messages/en.json+++ b/messages/en.json@@ -1,6 +1,6 @@{"header": {- "docs": "Documentation",+ "guide": "Guide","github": "GitHub","editor": "Go to editor","donate": "Donate",@@ -21,7 +21,7 @@"privacy": "Privacy","terms": "Terms","rights": "All rights reserved.",- "docs": "Documentation",+ "guide": "Guide","editor": "Go to editor","donate": "Donate","github": "GitHub",@@ -1429,5 +1429,23 @@"submit": "Send","successMessage": "Thanks! We got your feedback.","errorMessage": "Couldn't send it. Please try again."+ },+ "tour": {+ "nextBtn": "Next",+ "prevBtn": "Previous",+ "doneBtn": "Got it!",+ "step1": {+ "title": "Record your screen!",+ "description": "Click here to start recording your screen. If you need more information or help, you can check our",+ "guideLinkText": "User Guide"+ },+ "step2": {+ "title": "Upload a custom video",+ "description": "Already have a video? You can also upload it directly from your device to edit it."+ },+ "step3": {+ "title": "Create mockups from photos",+ "description": "Not just for video! Upload an image and create amazing mockups from your photos."+ }}}\ No newline at end of filediff --git a/messages/es.json b/messages/es.jsonindex 32c447d..00748d5 100644--- a/messages/es.json+++ b/messages/es.json@@ -1,6 +1,6 @@{"header": {- "docs": "Documentación",+ "guide": "Guía","github": "GitHub","editor": "Ir al editor","donate": "Donar",@@ -19,7 +19,7 @@"privacy": "Privacidad","terms": "Términos","rights": "All rights reserved.",- "docs": "Documentación",+ "guide": "Guía","editor": "Ir al editor","donate": "Donar","github": "GitHub",@@ -1407,5 +1407,23 @@"submit": "Enviar","successMessage": "¡Gracias! Recibimos tu feedback.","errorMessage": "No se pudo enviar. Intenta de nuevo."+ },+ "tour": {+ "nextBtn": "Siguiente",+ "prevBtn": "Anterior",+ "doneBtn": "¡Entendido!",+ "step1": {+ "title": "¡Graba tu pantalla!",+ "description": "Haz clic aquí para empezar a grabar tu pantalla. Si necesitas más información o ayuda, puedes consultar nuestra",+ "guideLinkText": "Guía de uso"+ },+ "step2": {+ "title": "Sube un video personalizado",+ "description": "¿Ya tienes un video? También puedes subirlo directamente desde tu dispositivo para editarlo."+ },+ "step3": {+ "title": "Crea mockups desde fotos",+ "description": "¡No solo es para video! Sube una imagen y crea mockups increíbles a partir de tus fotografías."+ }}}\ No newline at end of filediff --git a/messages/ko.json b/messages/ko.jsonindex ab3416d..41b8591 100644--- a/messages/ko.json+++ b/messages/ko.json@@ -1,6 +1,6 @@{"header": {- "docs": "문서",+ "guide": "가이드","github": "GitHub","editor": "에디터로 이동","donate": "후원하기",@@ -21,7 +21,7 @@"privacy": "개인정보 처리방침","terms": "이용약관","rights": "모든 권리 보유.",- "docs": "문서",+ "guide": "가이드","editor": "에디터로 이동","donate": "후원하기","github": "GitHub",@@ -1429,5 +1429,23 @@"submit": "보내기","successMessage": "감사합니다! 피드백이 정상적으로 접수되었습니다.","errorMessage": "전송에 실패했습니다. 다시 시도해 주세요."+ },+ "tour": {+ "nextBtn": "다음",+ "prevBtn": "이전",+ "doneBtn": "확인!",+ "step1": {+ "title": "화면을 녹화하세요!",+ "description": "여기를 클릭하여 화면 녹화를 시작하세요. 더 많은 정보나 도움이 필요하면",+ "guideLinkText": "사용자 가이드"+ },+ "step2": {+ "title": "맞춤형 비디오 업로드",+ "description": "이미 비디오가 있나요? 기기에서 직접 업로드하여 편집할 수도 있습니다."+ },+ "step3": {+ "title": "사진으로 목업 만들기",+ "description": "비디오뿐만이 아닙니다! 이미지를 업로드하고 사진으로 멋진 목업을 만들어보세요."+ }}}\ No newline at end of filediff --git a/messages/ru.json b/messages/ru.jsonindex 6950bf9..aa09c49 100644--- a/messages/ru.json+++ b/messages/ru.json@@ -1,6 +1,6 @@{"header": {- "docs": "Документация",+ "guide": "Гид","github": "GitHub","editor": "Открыть редактор","donate": "Поддержать",@@ -21,7 +21,7 @@"privacy": "Конфиденциальность","terms": "Условия","rights": "Все права защищены.",- "docs": "Документация",+ "guide": "Гид","editor": "Открыть редактор","donate": "Поддержать","github": "GitHub",@@ -1425,5 +1425,23 @@"submit": "Отправить","successMessage": "Спасибо! Мы получили ваш отзыв.","errorMessage": "Не удалось отправить. Пожалуйста, попробуйте еще раз."+ },+ "tour": {+ "nextBtn": "Далее",+ "prevBtn": "Назад",+ "doneBtn": "Понятно!",+ "step1": {+ "title": "Запишите свой экран!",+ "description": "Нажмите здесь, чтобы начать запись экрана. Если вам нужна дополнительная информация или помощь, вы можете обратиться к нашему",+ "guideLinkText": "Руководству пользователя"+ },+ "step2": {+ "title": "Загрузите собственное видео",+ "description": "Уже есть видео? Вы также можете загрузить его прямо со своего устройства для редактирования."+ },+ "step3": {+ "title": "Создавайте мокапы из фотографий",+ "description": "Не только для видео! Загрузите изображение и создавайте потрясающие мокапы из ваших фотографий."+ }}}\ No newline at end of filediff --git a/package.json b/package.jsonindex 87491cf..819a130 100644--- a/package.json+++ b/package.json@@ -23,6 +23,7 @@"@types/three": "^0.184.0","class-variance-authority": "^0.7.1","clsx": "^2.1.1",+ "driver.js": "^1.8.0","framer-motion": "^12.34.3","gsap": "^3.15.0","html-to-image": "^1.11.13",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex a45d9f9..bbeee24 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -47,6 +47,9 @@ importers:clsx:specifier: ^2.1.1version: 2.1.1+ driver.js:+ specifier: ^1.8.0+ version: 1.8.0framer-motion:specifier: ^12.34.3@@ -2787,6 +2790,9 @@ packages:resolution: {integrity: sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==}+ resolution: {integrity: sha512-+8/IO7h1v14IzWh2GP60N7T3PFZweXwdn5e5POuxRSBoCYUojsBxzqawPeXh3YZIibRy7EehYNEyxe7slwwtdg==}+resolution: {integrity: sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==}engines: {node: '>= 0.4'}@@ -7653,6 +7659,8 @@ snapshots:+ [email protected]: {}+dependencies:call-bind-apply-helpers: 1.0.2