Create professional demos and 3D mockups in seconds, directly in your browser
refactor: apply squircle-element-camera class to various components for consistent styling
CristianOlivera1fda4b8dd35ba
diff --git a/app/[locale]/(editor)/editor/page.tsx b/app/[locale]/(editor)/editor/page.tsxindex cf9b97e..144b80e 100644--- a/app/[locale]/(editor)/editor/page.tsx+++ b/app/[locale]/(editor)/editor/page.tsx@@ -980,7 +980,6 @@ export default function Editor() {setMockupConfig(prev => ({ ...prev, cornerRadius: value }));}, []);- // Text tool (Figma-style T key) — activates crosshair + canvas click to place textconst [textToolActive, setTextToolActive] = useState(false);// Canvas elements handlersdiff --git a/app/[locale]/(home)/donate/DonateClient.tsx b/app/[locale]/(home)/donate/DonateClient.tsxindex df348a9..b20d5c3 100644--- a/app/[locale]/(home)/donate/DonateClient.tsx+++ b/app/[locale]/(home)/donate/DonateClient.tsx@@ -37,7 +37,7 @@ export default function DonateClient({ methods, defaultMethod }: DonateClientPro<p className="text-white/60 text-sm leading-relaxed max-w-lg">{t("description")}</p></div>- <div className="flex flex-col bg-[#0A0A0A] border border-white/10 rounded-xl overflow-hidden shadow-2xl" role="region" aria-label={t("methods")}>+ <div className="flex flex-col bg-[#0A0A0A] border border-white/10 squircle-element-camera overflow-hidden shadow-2xl" role="region" aria-label={t("methods")}><div className="px-5 py-3 border-b border-white/10 bg-white/5 flex items-center justify-between"><span className="text-[11px] font-semibold uppercase tracking-[0.15em] text-white/60">{t("methods")}@@ -133,7 +133,7 @@ export default function DonateClient({ methods, defaultMethod }: DonateClientPro<Icon icon="lucide:x" width="18" aria-hidden="true" /></button></div>- <div className="w-full aspect-square bg-white rounded-xl overflow-hidden flex items-center justify-center p-2">+ <div className="w-full aspect-square bg-white squircle-e overflow-hidden flex items-center justify-center p-2"><img src={qrModalSrc} alt="QR code enlarged for scanning" className="w-full h-full object-contain" /></div><button onClick={() => setQrModalSrc(null)} className="mt-6 w-full py-2.5 rounded-lg border border-white/10 bg-white/5 hover:bg-white/10 text-sm font-medium text-white transition-colors">diff --git a/app/[locale]/(legal)/privacy/page.tsx b/app/[locale]/(legal)/privacy/page.tsxindex 4bb660d..e317d65 100644--- a/app/[locale]/(legal)/privacy/page.tsx+++ b/app/[locale]/(legal)/privacy/page.tsx@@ -90,7 +90,7 @@ export default async function PrivacyPage({ params }: Props) {</section><section>- <div className="flex items-start gap-3 p-4 bg-cyan-500/5 border border-cyan-500/20 rounded-xl mt-4">+ <div className="flex items-start gap-3 p-4 bg-cyan-500/5 border border-cyan-500/20 squircle-element-camera mt-4"><Iconicon="lucide:cpu"className="text-cyan-400 shrink-0 mt-0.5"diff --git a/app/components/common/UserMenu.tsx b/app/components/common/UserMenu.tsxindex d638212..e337de4 100644--- a/app/components/common/UserMenu.tsx+++ b/app/components/common/UserMenu.tsx@@ -72,7 +72,7 @@ export function UserMenu() {<DropdownMenu.Portal><DropdownMenu.Content- className="min-w-50 bg-black border border-white/25 rounded-xl p-1 shadow-2xl z-50 animate-in fade-in slide-in-from-top-2 duration-200"+ className="min-w-50 bg-black border border-white/25 squircle-element-camera p-1 shadow-2xl z-50 animate-in fade-in slide-in-from-top-2 duration-200"sideOffset={8}align="end">diff --git a/app/components/ui/BackgroundColorEditor.tsx b/app/components/ui/BackgroundColorEditor.tsxindex 1aa8b0c..5a59c3e 100644--- a/app/components/ui/BackgroundColorEditor.tsx+++ b/app/components/ui/BackgroundColorEditor.tsx@@ -333,7 +333,7 @@ export function BackgroundColorEditor({ value, onChange }: BackgroundColorEditor</PopoverTrigger></TooltipAction><PopoverContent side="right" align="start" sideOffset={12} className="w-72 p-0 border-0 shadow-2xl">- <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl">+ <div className="flex flex-col bg-[#111113] border border-white/10 squircle-element-camera overflow-hidden shadow-2xl"><div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2"><Icon icon="mdi:palette" width="14" className="text-white/60" aria-hidden="true" /><span className="text-[11px] font-medium uppercase tracking-[0.15em] text-white/60">{t("sections.moreColors")}</span>@@ -357,7 +357,7 @@ export function BackgroundColorEditor({ value, onChange }: BackgroundColorEditor</div></div>- <div className="bg-[#09090B] rounded-xl border border-white/10 p-3 space-y-3">+ <div className="bg-[#09090B] squircle-element-camera border border-white/10 p-3 space-y-3"><div className="text-[11px] uppercase tracking-widest text-white/70 font-bold">{t("sections.customize")}</div><div className="flex items-center gap-3"><div className="w-12 h-12 squircle-element border border-white/20 shadow-lg shrink-0 relative overflow-hidden group">@@ -404,7 +404,7 @@ export function BackgroundColorEditor({ value, onChange }: BackgroundColorEditor</PopoverTrigger></TooltipAction><PopoverContent side="right" align="start" sideOffset={12} className="w-72 p-0 border-0 shadow-2xl">- <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl">+ <div className="flex flex-col bg-[#111113] border border-white/10 squircle-element-camera overflow-hidden shadow-2xl"><div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2"><Icon icon="mdi:gradient-horizontal" width="14" className="text-white/60" aria-hidden="true" /><span className="text-[11px] font-medium uppercase tracking-[0.15em] text-white/60">diff --git a/app/components/ui/ExportDropdown.tsx b/app/components/ui/ExportDropdown.tsxindex 28e61e1..2249e65 100644--- a/app/components/ui/ExportDropdown.tsx+++ b/app/components/ui/ExportDropdown.tsx@@ -94,7 +94,7 @@ export function ExportDropdown({ onExport, exportProgress, hasTransparentBackgro</Button></PopoverTrigger><PopoverContent align="end" className="w-72 bg-[#1C1C1F] border-white/10 text-white shadow-2xl p-0 overflow-hidden z-999999">- <div className="flex flex-col bg-black border border-white/10 rounded-xl overflow-hidden shadow-2xl">+ <div className="flex flex-col bg-black border border-white/10 overflow-hidden shadow-2xl"><div className="px-4 py-3 border-b border-white/10 bg-white/5"><span className="text-[11px] font-medium uppercase tracking-[0.15em] text-white/60">{t("title")}diff --git a/app/components/ui/ExportImageDropdown.tsx b/app/components/ui/ExportImageDropdown.tsxindex e5bebb5..9a93697 100644--- a/app/components/ui/ExportImageDropdown.tsx+++ b/app/components/ui/ExportImageDropdown.tsx@@ -189,7 +189,7 @@ export function ExportImageDropdown({<PopoverContentalign="end"- className="w-80 bg-black border-white/15 text-white shadow-2xl p-0 rounded-xl overflow-hidden z-999999"+ className="w-80 bg-black border-white/15 text-white shadow-2xl p-0 squircle-element-camera overflow-hidden z-999999"><div className="px-6 py-4 border-b border-white/10 flex justify-between items-center bg-white/3"><span className="text-[11px] font-medium uppercase tracking-[0.15em] text-white/60">diff --git a/app/components/ui/ExportOverlay.tsx b/app/components/ui/ExportOverlay.tsxindex 1bc48af..81a5e45 100644--- a/app/components/ui/ExportOverlay.tsx+++ b/app/components/ui/ExportOverlay.tsx@@ -44,7 +44,7 @@ export function ExportOverlay({ exportProgress, onCancel, isTransparentExport }:return (<div className="fixed inset-0 z-999999 flex items-center justify-center bg-black/20 backdrop-blur-md transition-all duration-500">- <div className="p-10 bg-black border border-white/10 rounded-2xl shadow-[0_0_80px_-15px_rgba(0,0,0,1)] w-full max-w-lg mx-4">+ <div className="p-10 bg-black border border-white/10 squircle-element-camera shadow-[0_0_80px_-15px_rgba(0,0,0,1)] w-full max-w-lg mx-4"><div className="flex justify-center mb-8"><div className="flex items-center gap-2.5 px-3 py-1 bg-white/3 border border-white/10 rounded-full">@@ -81,15 +81,25 @@ export function ExportOverlay({ exportProgress, onCancel, isTransparentExport }:</p></div>- <div className="flex items-start gap-3 p-4 bg-white/5 border border-white/10 rounded-xl">+ <div className="flex items-start gap-3 p-4 bg-white/5 border border-white/10 squircle-element-camera"><Icon icon="lucide:alert-circle" className="text-blue-500 shrink-0 mt-0.5" width="18" /><p className="text-md text-white/70 leading-relaxed">{t.rich("warnings.performance", {highlight: (chunks) => (- <span className="relative font-bold text-white px-1">+ <span className="relative inline-block whitespace-nowrap font-bold text-white px-1">{chunks}- <svg className="absolute -bottom-1 left-0 w-full h-2 text-blue-500/90" viewBox="0 0 100 10" preserveAspectRatio="none">- <path d="M0 5 Q 25 0, 50 5 T 100 5" stroke="currentColor" strokeWidth="2" fill="transparent" strokeLinecap="round" />+ <svg+ className="absolute -bottom-1 left-0 w-full h-2 text-blue-500/90"+ viewBox="0 0 100 10"+ preserveAspectRatio="none"+ >+ <path+ d="M0 5 Q 25 0, 50 5 T 100 5"+ stroke="currentColor"+ strokeWidth="2"+ fill="transparent"+ strokeLinecap="round"+ /></svg></span>)@@ -98,7 +108,7 @@ export function ExportOverlay({ exportProgress, onCancel, isTransparentExport }:</div>{isTransparentExport && (- <div className="flex items-start gap-3 p-4 bg-cyan-500/5 border border-cyan-500/20 rounded-xl">+ <div className="flex items-start gap-3 p-4 bg-cyan-500/5 border border-cyan-500/20 squircle-element-camera"><Icon icon="lucide:clock" className="text-cyan-400 shrink-0 mt-0.5" width="18" /><p className="text-md text-cyan-400/80 leading-relaxed">{t.rich("warnings.transparency", {@@ -112,7 +122,7 @@ export function ExportOverlay({ exportProgress, onCancel, isTransparentExport }:<Buttonvariant="outline"onClick={onCancel}- className="w-full h-12 bg-transparent hover:bg-red-500/5 border border-white/10 hover:border-red-500/20 text-white/70 hover:text-red-400 text-sm font-medium transition-all duration-300 rounded-xl"+ className="w-full h-12 bg-transparent hover:bg-red-500/5 border border-white/10 hover:border-red-500/20 text-white/70 hover:text-red-400 text-sm font-medium transition-all duration-300 squircle-element-camera"><Icon icon="iconoir:cancel" width="16" className="mr-2" />{t("actions.cancel")}diff --git a/app/components/ui/PhotoPickerPopover.tsx b/app/components/ui/PhotoPickerPopover.tsxindex 2e69b8b..74c9f2b 100644--- a/app/components/ui/PhotoPickerPopover.tsx+++ b/app/components/ui/PhotoPickerPopover.tsx@@ -229,11 +229,21 @@ export function PhotoPickerPopover({ onSelect }: PhotoPickerPopoverProps) {<Popover open={open} onOpenChange={setOpen}><TooltipAction label={t("tooltip")}><PopoverTrigger asChild>- <button className="aspect-square squircle-element bg-gray-100 border border-white/10 bg-[url('/svg/ppu.svg')] bg-cover bg-center flex items-center justify-center hover:opacity-80 transition group relative overflow-hidden" aria-label={t("tooltip")} />+ <button+ className="aspect-square bg-[#F3F4F6] border border-white/30 squircle-element flex items-center justify-center transition-all active:scale-90 group disabled:opacity-50 hover:opacity-80"+ aria-label={t("tooltip")}+ >+ <Icon+ icon="ri:unsplash-fill"+ width="24"+ className="text-black transition-colors"+ aria-hidden="true"+ />+ </button></PopoverTrigger></TooltipAction><PopoverContent side="right" align="start" sideOffset={12} className="w-115 p-0 border-0 shadow-2xl">- <div className="flex flex-col bg-black border border-white/10 rounded-xl overflow-hidden shadow-2xl max-h-150">+ <div className="flex flex-col bg-black border border-white/10 squircle-element-camera overflow-hidden shadow-2xl max-h-150"><div className="px-4 py-3 border-b border-white/10 bg-white/5 shrink-0"><div className="flex items-center gap-2"><Icon icon="ph:images-bold" width="13" className="text-white/60" aria-hidden="true" />@@ -271,8 +281,8 @@ export function PhotoPickerPopover({ onSelect }: PhotoPickerPopoverProps) {key={badge.id}onClick={() => handleBadgeClick(badge.id)}className={`px-2.5 py-0.5 rounded-full text-[11px] transition-all border ${activeQuery === badge.id- ? "bg-white/15 border-white/30 text-white/90"- : "bg-white/5 border-white/10 text-white/60 hover:text-white/70 hover:border-white/20"+ ? "bg-white/15 border-white/30 text-white/90"+ : "bg-white/5 border-white/10 text-white/60 hover:text-white/70 hover:border-white/20"}`}>{t(`badges.${badge.key}`)}diff --git a/app/components/ui/Skeleton.tsx b/app/components/ui/Skeleton.tsxindex 252eb25..96e237a 100644--- a/app/components/ui/Skeleton.tsx+++ b/app/components/ui/Skeleton.tsx@@ -284,7 +284,7 @@ export function BackgroundColorSkeleton() {<div className="space-y-3"><Skeleton height={10} width={90} />- <div className="space-y-2 p-3 rounded-xl border border-white/5 bg-white/3">+ <div className="space-y-2 p-3 squircle-element-camera border border-white/5 bg-white/3"><div className="flex gap-2"><Skeleton height={34} className="flex-1" variant="square" /><Skeleton height={34} className="flex-1" variant="square" />@@ -541,7 +541,7 @@ export function MotionMenuSkeleton() {{Array.from({ length: count }).map((_, i) => (<divkey={i}- className="rounded-xl border border-neutral-800 bg-black p-2 flex flex-col gap-2"+ className="squircle-element-camera border border-neutral-800 bg-black p-2 flex flex-col gap-2"><Skeletonvariant="square"diff --git a/app/components/ui/WalpaperSections.tsx b/app/components/ui/WalpaperSections.tsxindex 49f837e..3c4be43 100644--- a/app/components/ui/WalpaperSections.tsx+++ b/app/components/ui/WalpaperSections.tsx@@ -51,7 +51,7 @@ function CustomImagePickerButton({ onSelect }: { onSelect?: (url: string) => voiclassName="aspect-square bg-[#F3F4F6] border border-white/30 squircle-element flex items-center justify-center transition-all active:scale-90 group disabled:opacity-50 hover:opacity-80"aria-label={t("options.upload")}>- <Icon icon="hugeicons:image-upload" width="24" className="text-black transition-colors" aria-hidden="true" />+ <Icon icon="material-symbols:upload-rounded" width="24" className="text-black transition-colors" aria-hidden="true" /></button></TooltipAction></>@@ -100,7 +100,7 @@ function CategoryPopover({ category, selectedIndex, onSelect }: { category: Wall</PopoverTrigger></TooltipAction><PopoverContent side="right" align="start" sideOffset={12} className="w-126 p-0 border-0 shadow-2xl">- <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl">+ <div className="flex flex-col bg-[#111113] border border-white/10 squircle-element-camera overflow-hidden shadow-2xl"><div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2"><Icon icon={category.icon} width="14" className="text-white/60" aria-hidden="true" /><span className="text-[11px] font-medium uppercase tracking-[0.15em] text-white/60">diff --git a/app/components/ui/editor/AudioTrimModal.tsx b/app/components/ui/editor/AudioTrimModal.tsxindex b984433..424ed16 100644--- a/app/components/ui/editor/AudioTrimModal.tsx+++ b/app/components/ui/editor/AudioTrimModal.tsx@@ -277,7 +277,7 @@ export function AudioTrimModal({><div className="flex items-start justify-between mb-6"><div className="flex items-center gap-3">- <div className="p-2 bg-blue-500/10 border border-blue-500/20 rounded-xl">+ <div className="p-2 bg-blue-500/10 border border-blue-500/20 squircle-element-camera"><Icon icon="mdi:content-cut" className="text-blue-400" width="24" aria-hidden="true" /></div><div>@@ -297,7 +297,7 @@ export function AudioTrimModal({<Icon icon="lucide:x" width="20" aria-hidden="true" /></button></div>- <div className="mb-6 p-4 bg-white/5 border border-white/10 rounded-xl">+ <div className="mb-6 p-4 bg-white/5 border border-white/10 squircle-element-camera"><div className="flex items-center justify-between"><div className="flex items-center gap-2 text-sm text-white/70"><Icon icon="mdi:music-note" width="16" aria-hidden="true" />diff --git a/app/components/ui/editor/CameraMenu.tsx b/app/components/ui/editor/CameraMenu.tsxindex da6da23..0899618 100644--- a/app/components/ui/editor/CameraMenu.tsx+++ b/app/components/ui/editor/CameraMenu.tsx@@ -138,7 +138,7 @@ export function CameraMenu({ cameraUrl, cameraConfig, onCameraConfigChange }: Pr/></div>- <label className="flex items-center justify-between rounded-xl border border-white/10 bg-white/3 px-3 py-2.5 cursor-pointer">+ <label className="flex items-center justify-between squircle-element-camera border border-white/10 bg-white/3 px-3 py-2.5 cursor-pointer"><div className="flex items-center gap-2.5"><Icon icon="solar:reflection-horisontal-bold" className="size-4 text-neutral-400" /><span className="text-sm text-neutral-200">{t("mirror")}</span>diff --git a/app/components/ui/editor/ContextMenu.tsx b/app/components/ui/editor/ContextMenu.tsxindex a42803e..7c3116c 100644--- a/app/components/ui/editor/ContextMenu.tsx+++ b/app/components/ui/editor/ContextMenu.tsx@@ -34,7 +34,7 @@ export default function ContextMenu({<divref={menuRef}data-ctx-menu- className="fixed z-9999 bg-black border border-white/15 rounded-xl shadow-2xl py-1 min-w-43 overflow-hidden"+ className="fixed z-9999 bg-black border border-white/15 squircle-element-camera shadow-2xl py-1 min-w-43 overflow-hidden"style={{ left: pos.x, top: pos.y }}>{!isMulti && (diff --git a/app/components/ui/editor/ElementsMenu.tsx b/app/components/ui/editor/ElementsMenu.tsxindex c19c78f..29a2825 100644--- a/app/components/ui/editor/ElementsMenu.tsx+++ b/app/components/ui/editor/ElementsMenu.tsx@@ -266,7 +266,7 @@ export function ElementsMenu({</PopoverTrigger></TooltipAction><PopoverContent side="right" align="start" sideOffset={12} className="w-120 p-0 border-0 shadow-2xl">- <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl max-h-125">+ <div className="flex flex-col bg-[#111113] border border-white/10 squircle-element-camera overflow-hidden shadow-2xl max-h-125"><div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2 flex-wrap"><button onClick={() => setSelectedSvgCategory("all")} className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[11px] font-medium uppercase tracking-wider transition-all ${selectedSvgCategory === "all" ? "bg-blue-500/20 text-blue-400 border border-blue-500/40" : "bg-white/5 text-white/60 hover:text-white/70 border border-transparent hover:border-white/10"}`}><Icon icon="ph:grid-four-bold" width="12" />@@ -322,7 +322,7 @@ export function ElementsMenu({</PopoverTrigger></TooltipAction><PopoverContent side="right" align="start" sideOffset={12} className="w-130 p-0 border-0 shadow-2xl">- <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl max-h-125">+ <div className="flex flex-col bg-[#111113] border border-white/10 squircle-element-camera overflow-hidden shadow-2xl max-h-125"><div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2 flex-wrap"><button onClick={() => setSelectedImageCategory("all")} className={`flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[11px] font-medium uppercase tracking-wider transition-all ${selectedImageCategory === "all" ? "bg-blue-500/20 text-blue-400 border border-blue-500/40" : "bg-white/5 text-white/60 hover:text-white/70 border border-transparent hover:border-white/10"}`}><Icon icon="ph:grid-four-bold" width="12" />@@ -514,7 +514,7 @@ function UploadImageButton({ onUpload, isUploading }: { onUpload: (files: FileLi{isUploading ? (<Icon icon="svg-spinners:180-ring-with-bg" width="16" className="text-white/60" aria-hidden="true" />) : (- <Icon icon="hugeicons:image-upload" width="24" className="text-white-70 group-hover:text-white transition-colors" aria-hidden="true" />+ <Icon icon="material-symbols:upload-rounded" width="24" className="text-white-70 group-hover:text-white transition-colors" aria-hidden="true" />)}</button></TooltipAction>diff --git a/app/components/ui/editor/ImageMaskEditor.tsx b/app/components/ui/editor/ImageMaskEditor.tsxindex 053e6a2..d556e92 100644--- a/app/components/ui/editor/ImageMaskEditor.tsx+++ b/app/components/ui/editor/ImageMaskEditor.tsx@@ -97,7 +97,7 @@ export function ImageMaskEditor({</PopoverTrigger></TooltipAction>- <PopoverContent align="end" className="w-100 bg-[#0A0A0A] border-white/10 shadow-2xl p-0 rounded-xl overflow-hidden">+ <PopoverContent align="end" className="w-100 bg-[#0A0A0A] border-white/10 shadow-2xl p-0 squircle-element-camera overflow-hidden"><div className="flex flex-col"><PopoverHeader className="px-4 py-3 border-b border-white/10 bg-white/5"><div className="flex items-center justify-between">diff --git a/app/components/ui/editor/MobileControlPanel.tsx b/app/components/ui/editor/MobileControlPanel.tsxindex 04acce9..24deaa4 100644--- a/app/components/ui/editor/MobileControlPanel.tsx+++ b/app/components/ui/editor/MobileControlPanel.tsx@@ -35,31 +35,11 @@ export function MobileControlPanel({<Dialog.Portal><Dialog.Overlay className="fixed inset-0 bg-black/80 backdrop-blur-sm z-100 animate-in fade-in duration-200 lg:hidden" /><Dialog.Content className="fixed inset-x-0 bottom-0 top-16 bg-[#141417] z-101 animate-in slide-in-from-bottom duration-300 overflow-y-auto lg:hidden">- {/* Header */}- <div className="sticky top-0 z-10 bg-[#141417] border-b border-white/10 px-4 py-3 flex items-center justify-between">- <Dialog.Title className="text-lg font-semibold text-white flex items-center gap-2">- <Icon- icon={- controlPanelProps.activeTool === "screenshot" ? "solar:gallery-wide-linear" :- controlPanelProps.activeTool === "elements" ? "mdi:shape-outline" :- controlPanelProps.activeTool === "audio" ? "mdi:volume-high" :- controlPanelProps.activeTool === "zoom" ? "iconamoon:zoom-in-bold" :- controlPanelProps.activeTool === "cursor" ? "ph:cursor-fill" :- "hugeicons:ai-browser"- }- width="20"- aria-hidden="true"- />- {controlPanelProps.activeTool === "screenshot" && "Fondo"}- {controlPanelProps.activeTool === "elements" && "Elementos"}- {controlPanelProps.activeTool === "audio" && "Audio"}- {controlPanelProps.activeTool === "zoom" && "Zoom"}- {controlPanelProps.activeTool === "mockup" && "Mockup"}- {controlPanelProps.activeTool === "cursor" && "Cursor"}- </Dialog.Title>++ <div className="absolute top-4 right-4 z-10"><Dialog.Close asChild><button- className="h-8 w-8 rounded-full hover:bg-white/10 flex items-center justify-center transition-colors"+ className="h-8 w-8 rounded-full bg-white/5 hover:bg-white/10 flex items-center justify-center transition-colors backdrop-blur-sm"aria-label="Cerrar"><Icon icon="mdi:close" width="20" className="text-white/70" aria-hidden="true" />@@ -67,7 +47,6 @@ export function MobileControlPanel({</Dialog.Close></div>- {/* Content */}<div className="p-4"><Suspensefallback={diff --git a/app/components/ui/editor/MobileToolsMenu.tsx b/app/components/ui/editor/MobileToolsMenu.tsxindex b842dfe..5e09cc4 100644--- a/app/components/ui/editor/MobileToolsMenu.tsx+++ b/app/components/ui/editor/MobileToolsMenu.tsx@@ -3,234 +3,191 @@import { useState } from "react";import { Icon } from "@iconify/react";import * as Dialog from "@radix-ui/react-dialog";+import { useTranslations } from "next-intl";import type { Tool } from "@/types";+interface ToolButtonProps {+ label: string;+ icon: React.ReactNode;+ isActive: boolean;+ onClick: () => void;+ ariaLabel?: string;+}++const ToolButton = ({ label, icon, isActive, onClick, ariaLabel }: ToolButtonProps) => {+ return (+ <button+ onClick={onClick}+ className="flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1 active:scale-95"+ aria-label={ariaLabel || label}+ aria-pressed={isActive}+ style={+ isActive+ ? {+ background: "radial-gradient(circle at 50% 0%, #555555 0%, #454545 64%)",+ boxShadow: "inset 0 1.01rem 0.2rem -1rem #fff, 0 0 0 1px #fff4, 0 4px 4px 0 #0004, 0 0 0 1px #333",+ }+ : {+ background: "rgba(255, 255, 255, 0.05)",+ border: "1px solid rgba(255, 255, 255, 0.1)",+ }+ }+ >+ <div className={`transition-transform duration-300 ${isActive ? "scale-110" : "group-hover:scale-105"}`}>+ {icon}+ </div>+ <span className={`text-sm font-medium transition-colors ${isActive ? "text-white" : "text-white/40"}`}>+ {label}+ </span>+ {isActive && (+ <div className="absolute left-2 w-20 h-5 top-1/4 -translate-y-1/2 size-3 bg-white rounded-full blur-[14px] rotate-45 opacity-50 pointer-events-none" />+ )}+ </button>+ );+};+interface MobileToolsMenuProps {- activeTool: Tool;- onToolChange: (tool: Tool) => void;- onVideoUpload?: (file: File) => void;- isUploading?: boolean;- onOpenToolPanel?: () => void;+ activeTool: Tool;+ onToolChange: (tool: Tool) => void;+ onVideoUpload?: (file: File) => void;+ isUploading?: boolean;+ onOpenToolPanel?: () => void;}export function MobileToolsMenu({- activeTool,- onToolChange,- onVideoUpload,- isUploading = false,- onOpenToolPanel+ activeTool,+ onToolChange,+ onVideoUpload,+ isUploading = false,+ onOpenToolPanel,}: MobileToolsMenuProps) {- const [isOpen, setIsOpen] = useState(false);-- const handleToolChange = (tool: Tool) => {- onToolChange(tool);- setIsOpen(false);- // Open the control panel for this tool- if (onOpenToolPanel) {- setTimeout(() => onOpenToolPanel(), 100);- }- };-- const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {- const file = e.target.files?.[0];- if (file && onVideoUpload) {- onVideoUpload(file);- e.target.value = '';- }- };-- return (- <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>- <Dialog.Trigger asChild>- <button- className="fixed bottom-4 left-4 z-50 size-7 rounded-full shadow-lg shadow-blue-500/50 bg-gradient-primary flex items-center justify-center hover:scale-105 transition-transform active:scale-95 lg:hidden"- aria-label="Abrir menú de herramientas"- >- <Icon icon="solar:widget-2-bold-duotone" width="14" className="text-white" aria-hidden="true" />- </button>- </Dialog.Trigger>-- <Dialog.Portal>- <Dialog.Overlay className="fixed inset-0 bg-black/80 backdrop-blur-sm z-100 animate-in fade-in duration-200" />- <Dialog.Content className="fixed bottom-0 left-0 right-0 bg-[#1a1a1d] border-t border-white/10 rounded-t-2xl z-101 p-6 animate-in slide-in-from-bottom duration-300 max-h-[80vh] overflow-y-auto">- <div className="flex items-center justify-between mb-6">- <Dialog.Title className="text-lg font-semibold text-white" id="tools-dialog-title">- Herramientas- </Dialog.Title>- <Dialog.Close asChild>- <button- className="h-8 w-8 rounded-full hover:bg-white/10 flex items-center justify-center transition-colors"- aria-label="Cerrar"- >- <Icon icon="mdi:close" width="20" className="text-white/70" />- </button>- </Dialog.Close>- </div>-- <div className="grid grid-cols-2 gap-3">- <button- onClick={() => handleToolChange("screenshot")}- className="flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1"- aria-label="Fondo"- aria-pressed={activeTool === "screenshot"}- style={activeTool === "screenshot" ? {- background: 'radial-gradient(circle at 50% 0%, #555555 0%, #454545 64%)',- boxShadow: 'inset 0 1.01rem 0.2rem -1rem #fff, 0 0 0 1px #fff4, 0 4px 4px 0 #0004, 0 0 0 1px #333',- } : {- background: 'rgba(255, 255, 255, 0.05)',- border: '1px solid rgba(255, 255, 255, 0.1)'- }}- >- <div className={`transition-transform duration-300 ${activeTool === "screenshot" ? "scale-110" : "group-hover:scale-105"}`}>- <Icon- icon="solar:gallery-wide-linear"- width="24"- className={activeTool === "screenshot" ? "text-white" : "text-white/70"}- aria-hidden="true"- />- </div>-- <span className={`text-sm font-medium transition-colors ${activeTool === "screenshot" ? "text-white" : "text-white/40"}`}>- Fondo- </span>-- {activeTool === "screenshot" && (- <div className="absolute left-2 w-20 h-5 top-1/4 -translate-y-1/2 size-3 bg-white rounded-full blur-[14px] rotate-45 opacity-50 pointer-events-none" />- )}- </button>-- <button- onClick={() => handleToolChange("elements")}- className="flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1 active:scale-95"- aria-label="Elementos"- aria-pressed={activeTool === "elements"}- style={activeTool === "elements" ? {- background: 'radial-gradient(circle at 50% 0%, #555555 0%, #454545 64%)',- boxShadow: 'inset 0 1.01rem 0.2rem -1rem #fff, 0 0 0 1px #fff4, 0 4px 4px 0 #0004, 0 0 0 1px #333',- } : {- background: 'rgba(255, 255, 255, 0.05)',- border: '1px solid rgba(255, 255, 255, 0.1)'- }}- >- <div className={`transition-transform duration-300 ${activeTool === "elements" ? "scale-110" : "group-hover:scale-105"}`}>- <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" className={activeTool === "elements" ? "text-white" : "text-white/70"}>- <path d="M11 13.5V21.5H3V13.5H11ZM9 15.5H5V19.5H9V15.5ZM12 2L17.5 11H6.5L12 2ZM12 5.86L10.08 9H13.92L12 5.86Z" fill="currentColor" stroke="currentColor" strokeWidth="0.2" />- <path fillRule="evenodd" clipRule="evenodd" d="M13.7667 13.8246C13.7667 13.6323 13.8431 13.4479 13.9791 13.312C14.115 13.176 14.2994 13.0996 14.4917 13.0996H20.2917C20.484 13.0996 20.6684 13.176 20.8044 13.312C20.9403 13.4479 21.0167 13.6323 21.0167 13.8246V14.7913C21.0167 14.9836 20.9403 15.168 20.8044 15.3039C20.6684 15.4399 20.484 15.5163 20.2917 15.5163C20.0994 15.5163 19.915 15.4399 19.7791 15.3039C19.6431 15.168 19.5667 14.9836 19.5667 14.7913V14.5496H18.1167V20.3496H18.3584C18.5507 20.3496 18.7351 20.426 18.871 20.562C19.007 20.6979 19.0834 20.8823 19.0834 21.0746C19.0834 21.2669 19.007 21.4513 18.871 21.5873C18.7351 21.7232 18.5507 21.7996 18.3584 21.7996H16.4251C16.2328 21.7996 16.0484 21.7232 15.9124 21.5873C15.7764 21.4513 15.7001 21.2669 15.7001 21.0746C15.7001 20.8823 15.7764 20.6979 15.9124 20.562C16.0484 20.426 16.2328 20.3496 16.4251 20.3496H16.6667V14.5496H15.2167V14.7913C15.2167 14.9836 15.1403 15.168 15.0044 15.3039C14.8684 15.4399 14.684 15.5163 14.4917 15.5163C14.2994 15.5163 14.115 15.4399 13.9791 15.3039C13.8431 15.168 13.7667 14.9836 13.7667 14.7913V13.8246Z" fill="currentColor" stroke="currentColor" strokeWidth="0.5" />- </svg>- </div>- <span className={`text-sm font-medium transition-colors ${activeTool === "elements" ? "text-white" : "text-white/40"}`}>- Elementos- </span>- {activeTool === "elements" && (- <div className="absolute left-2 w-20 h-5 top-1/4 -translate-y-1/2 size-3 bg-white rounded-full blur-[14px] rotate-45 opacity-50 pointer-events-none" />- )}- </button>-- <button- onClick={() => handleToolChange("audio")}- className="flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1 active:scale-95"- aria-label="Audio"- aria-pressed={activeTool === "audio"}- style={activeTool === "audio" ? {- background: 'radial-gradient(circle at 50% 0%, #555555 0%, #454545 64%)',- boxShadow: 'inset 0 1.01rem 0.2rem -1rem #fff, 0 0 0 1px #fff4, 0 4px 4px 0 #0004, 0 0 0 1px #333',- } : {- background: 'rgba(255, 255, 255, 0.05)',- border: '1px solid rgba(255, 255, 255, 0.1)'- }}- >- <div className={`transition-transform duration-300 ${activeTool === "audio" ? "scale-110" : "group-hover:scale-105"}`}>- <Icon icon="mdi:volume-high" width="24" className={activeTool === "audio" ? "text-white" : "text-white/70"} aria-hidden="true" />- </div>- <span className={`text-sm font-medium transition-colors ${activeTool === "audio" ? "text-white" : "text-white/40"}`}>- Audio- </span>- {activeTool === "audio" && (- <div className="absolute left-2 w-20 h-5 top-1/4 -translate-y-1/2 size-3 bg-white rounded-full blur-[14px] rotate-45 opacity-50 pointer-events-none" />- )}- </button>-- <button- onClick={() => handleToolChange("zoom")}- className="flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1 active:scale-95"- style={activeTool === "zoom" ? {- background: 'radial-gradient(circle at 50% 0%, #555555 0%, #454545 64%)',- boxShadow: 'inset 0 1.01rem 0.2rem -1rem #fff, 0 0 0 1px #fff4, 0 4px 4px 0 #0004, 0 0 0 1px #333',- } : {- background: 'rgba(255, 255, 255, 0.05)',- border: '1px solid rgba(255, 255, 255, 0.1)'- }}- >- <div className={`transition-transform duration-300 ${activeTool === "zoom" ? "scale-110" : "group-hover:scale-105"}`}>- <Icon icon="iconamoon:zoom-in-bold" width="24" className={activeTool === "zoom" ? "text-white" : "text-white/70"} />- </div>- <span className={`text-sm font-medium transition-colors ${activeTool === "zoom" ? "text-white" : "text-white/40"}`}>- Zoom- </span>- {activeTool === "zoom" && (- <div className="absolute left-2 w-20 h-5 top-1/4 -translate-y-1/2 size-3 bg-white rounded-full blur-[14px] rotate-45 opacity-50 pointer-events-none" />- )}- </button>-- <button- onClick={() => handleToolChange("mockup")}- className="flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1 active:scale-95"- style={activeTool === "mockup" ? {- background: 'radial-gradient(circle at 50% 0%, #555555 0%, #454545 64%)',- boxShadow: 'inset 0 1.01rem 0.2rem -1rem #fff, 0 0 0 1px #fff4, 0 4px 4px 0 #0004, 0 0 0 1px #333',- } : {- background: 'rgba(255, 255, 255, 0.05)',- border: '1px solid rgba(255, 255, 255, 0.1)'- }}- >- <div className={`transition-transform duration-300 ${activeTool === "mockup" ? "scale-110" : "group-hover:scale-105"}`}>- <Icon icon="hugeicons:ai-browser" width="24" className={activeTool === "mockup" ? "text-white" : "text-white/70"} />- </div>- <span className={`text-sm font-medium transition-colors ${activeTool === "mockup" ? "text-white" : "text-white/40"}`}>- Mockup- </span>- {activeTool === "mockup" && (- <div className="absolute left-2 w-20 h-5 top-1/4 -translate-y-1/2 size-3 bg-white rounded-full blur-[14px] rotate-45 opacity-50 pointer-events-none" />- )}- </button>-- <label- className={`flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1 active:scale-95 cursor-pointer ${isUploading ? "opacity-50 cursor-not-allowed" : ""- }`}- style={{- background: 'rgba(255, 255, 255, 0.05)',- border: '1px solid rgba(255, 255, 255, 0.1)',- boxShadow: isUploading ? 'none' : '0 4px 4px 0 #0004',- }}- >- <div className={`transition-transform duration-300 ${isUploading ? "animate-pulse" : "group-hover:scale-105"}`}>- <Icon- icon={isUploading ? "svg-spinners:ring-resize" : "solar:cloud-upload-bold-duotone"}- width="24"- className="text-white"- />- </div>-- <span className="text-sm font-medium text-white/70 group-hover:text-white transition-colors">- {isUploading ? "Subiendo..." : "Subir video"}- </span>-- {!isUploading && (- <div className="absolute left-2 w-16 h-4 top-1/4 -translate-y-1/2 bg-white rounded-full blur-md rotate-45 opacity-20 pointer-events-none" />- )}-- <input- type="file"- accept="video/mp4,video/webm,video/quicktime,video/x-matroska"- className="hidden"- onChange={handleFileChange}- disabled={isUploading}- />- </label>-- </div>- </Dialog.Content>- </Dialog.Portal>- </Dialog.Root>- );-}+ const t = useTranslations("MobileTools");+ const [isOpen, setIsOpen] = useState(false);++ const handleToolChange = (tool: Tool) => {+ onToolChange(tool);+ setIsOpen(false);+ if (onOpenToolPanel) {+ setTimeout(() => onOpenToolPanel(), 100);+ }+ };++ const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {+ const file = e.target.files?.[0];+ if (file && onVideoUpload) {+ onVideoUpload(file);+ e.target.value = "";+ }+ };++ return (+ <Dialog.Root open={isOpen} onOpenChange={setIsOpen}>+ <Dialog.Trigger asChild>+ <button+ className="fixed bottom-4 left-4 z-50 size-10 rounded-full shadow-lg shadow-blue-500/50 bg-gradient-primary flex items-center justify-center hover:scale-105 transition-transform active:scale-95 lg:hidden"+ aria-label={t("openMenu")}+ >+ <Icon icon="solar:widget-2-bold-duotone" width="18" className="text-white" aria-hidden="true" />+ </button>+ </Dialog.Trigger>++ <Dialog.Portal>+ <Dialog.Overlay className="fixed inset-0 bg-black/80 backdrop-blur-sm z-100 animate-in fade-in duration-200" />+ <Dialog.Content className="fixed bottom-0 left-0 right-0 bg-[#1a1a1d] border-t border-white/10 rounded-t-2xl z-101 p-6 animate-in slide-in-from-bottom duration-300 max-h-[80vh] overflow-y-auto">+ <div className="flex items-center justify-between mb-6">+ <Dialog.Title className="text-lg font-semibold text-white" id="tools-dialog-title">+ {t("title")}+ </Dialog.Title>+ <Dialog.Close asChild>+ <button+ className="h-8 w-8 rounded-full hover:bg-white/10 flex items-center justify-center transition-colors"+ aria-label={t("close")}+ >+ <Icon icon="mdi:close" width="20" className="text-white/70" />+ </button>+ </Dialog.Close>+ </div>++ <div className="grid grid-cols-2 gap-3">+ <ToolButton+ label={t("background")}+ isActive={activeTool === "screenshot"}+ onClick={() => handleToolChange("screenshot")}+ icon={<Icon icon="solar:gallery-wide-linear" width="24" className={activeTool === "screenshot" ? "text-white" : "text-white/70"} />}+ />++ <ToolButton+ label={t("mockup")}+ isActive={activeTool === "mockup"}+ onClick={() => handleToolChange("mockup")}+ icon={<Icon icon="hugeicons:ai-browser" width="24" className={activeTool === "mockup" ? "text-white" : "text-white/70"} />}+ />++ <ToolButton+ label={t("motion")}+ isActive={activeTool === "motion"}+ onClick={() => handleToolChange("motion")}+ icon={<Icon icon="hugeicons:ai-browser" width="24" className={activeTool === "motion" ? "text-white" : "text-white/70"} />}+ />++ <ToolButton+ label={t("zoom")}+ isActive={activeTool === "zoom"}+ onClick={() => handleToolChange("zoom")}+ icon={<Icon icon="iconamoon:zoom-in-bold" width="24" className={activeTool === "zoom" ? "text-white" : "text-white/70"} />}+ />++ <ToolButton+ label={t("videos")}+ isActive={activeTool === "video"}+ onClick={() => handleToolChange("video")}+ icon={<Icon icon="iconamoon:zoom-in-bold" width="24" className={activeTool === "video" ? "text-white" : "text-white/70"} />}+ />++ <ToolButton+ label={t("elements")}+ isActive={activeTool === "elements"}+ onClick={() => handleToolChange("elements")}+ icon={+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" className={activeTool === "elements" ? "text-white" : "text-white/70"}>+ <path d="M11 13.5V21.5H3V13.5H11ZM9 15.5H5V19.5H9V15.5ZM12 2L17.5 11H6.5L12 2ZM12 5.86L10.08 9H13.92L12 5.86Z" fill="currentColor" stroke="currentColor" strokeWidth="0.2" />+ <path fillRule="evenodd" clipRule="evenodd" d="M13.7667 13.8246C13.7667 13.6323 13.8431 13.4479 13.9791 13.312C14.115 13.176 14.2994 13.0996 14.4917 13.0996H20.2917C20.484 13.0996 20.6684 13.176 20.8044 13.312C20.9403 13.4479 21.0167 13.6323 21.0167 13.8246V14.7913C21.0167 14.9836 20.9403 15.168 20.8044 15.3039C20.6684 15.4399 20.484 15.5163 20.2917 15.5163C20.0994 15.5163 19.915 15.4399 19.7791 15.3039C19.6431 15.168 19.5667 14.9836 19.5667 14.7913V14.5496H18.1167V20.3496H18.3584C18.5507 20.3496 18.7351 20.426 18.871 20.562C19.007 20.6979 19.0834 20.8823 19.0834 21.0746C19.0834 21.2669 19.007 21.4513 18.871 21.5873C18.7351 21.7232 18.5507 21.7996 18.3584 21.7996H16.4251C16.2328 21.7996 16.0484 21.7232 15.9124 21.5873C15.7764 21.4513 15.7001 21.2669 15.7001 21.0746C15.7001 20.8823 15.7764 20.6979 15.9124 20.562C16.0484 20.426 16.2328 20.3496 16.4251 20.3496H16.6667V14.5496H15.2167V14.7913C15.2167 14.9836 15.1403 15.168 15.0044 15.3039C14.8684 15.4399 14.684 15.5163 14.4917 15.5163C14.2994 15.5163 14.115 15.4399 13.9791 15.3039C13.8431 15.168 13.7667 14.9836 13.7667 14.7913V13.8246Z" fill="currentColor" stroke="currentColor" strokeWidth="0.5" />+ </svg>+ }+ />++ <ToolButton+ label={t("audio")}+ isActive={activeTool === "audio"}+ onClick={() => handleToolChange("audio")}+ icon={<Icon icon="mdi:volume-high" width="24" className={activeTool === "audio" ? "text-white" : "text-white/70"} />}+ />++ <label+ className={`flex items-center justify-center p-4 squircle-element transition-all duration-200 group relative flex-col gap-1 active:scale-95 cursor-pointer ${+ isUploading ? "opacity-50 cursor-not-allowed" : ""+ }`}+ style={{+ background: "rgba(255, 255, 255, 0.05)",+ border: "1px solid rgba(255, 255, 255, 0.1)",+ boxShadow: isUploading ? "none" : "0 4px 4px 0 #0004",+ }}+ >+ <div className={`transition-transform duration-300 ${isUploading ? "animate-pulse" : "group-hover:scale-105"}`}>+ <Icon icon={isUploading ? "svg-spinners:ring-resize" : "solar:cloud-upload-bold-duotone"} width="24" className="text-white" />+ </div>+ <span className="text-sm font-medium text-white/70 group-hover:text-white transition-colors">+ {isUploading ? t("uploading") : t("uploadVideo")}+ </span>+ {!isUploading && (+ <div className="absolute left-2 w-16 h-4 top-1/4 -translate-y-1/2 bg-white rounded-full blur-md rotate-45 opacity-20 pointer-events-none" />+ )}+ <input type="file" accept="video/mp4,video/webm,video/quicktime,video/x-matroska" className="hidden" onChange={handleFileChange} disabled={isUploading} />+ </label>++ </div>+ </Dialog.Content>+ </Dialog.Portal>+ </Dialog.Root>+ );+}\ No newline at end of filediff --git a/app/components/ui/editor/Mockup3dMenu.tsx b/app/components/ui/editor/Mockup3dMenu.tsxindex d2bb647..68e68bd 100644--- a/app/components/ui/editor/Mockup3dMenu.tsx+++ b/app/components/ui/editor/Mockup3dMenu.tsx@@ -3,14 +3,12 @@import { useRef, useState, useCallback } from "react";import { useTranslations } from "next-intl";import { Icon } from "@iconify/react";-import { SliderControl } from "../../../../components/ui/SliderControl";import { HANDLE_R, ImageDeviceId, PAD_H, X_HALF, Y_HALF } from "@/types/mockup.types";import { Button } from "@/components/ui/button";import { DetailPageHeader } from "@/components/ui/DetailHeaderMenu";import { Position3DPresetsEditor } from "@/components/ui/Position3DPresetsEditor";import { ENVIRONMENT_OPTIONS, type EnvironmentPreset } from "@/lib/viewer-controls3d";-import {Select,SelectContent,@@ -52,10 +50,8 @@ function PositionPad({if (!rectCache.current) return;const rect = rectCache.current;const currentWidth = rect.width;-const rx = Math.max(0, Math.min(currentWidth, e.clientX - rect.left));const ry = Math.max(0, Math.min(PAD_H, e.clientY - rect.top));-onChangeX(Math.round((rx / currentWidth) * X_HALF * 2 - X_HALF));onChangeY(Math.round((ry / PAD_H) * Y_HALF * 2 - Y_HALF));},@@ -83,7 +79,9 @@ function PositionPad({<div className="relative group w-full cursor-default"><divref={padRef}- className={`relative w-full rounded-[14px] overflow-hidden select-none border shadow-[inset_0_2px_8px_rgba(0,0,0,0.8)] transition-all duration-200 ${isDraggingState ? "border-cyan-500/40 ring-1 ring-cyan-500/20" : "border-zinc-800/50"+ className={`relative w-full rounded-[14px] overflow-hidden select-none border shadow-[inset_0_2px_8px_rgba(0,0,0,0.8)] transition-all duration-200 ${isDraggingState+ ? "border-cyan-500/40 ring-1 ring-cyan-500/20"+ : "border-zinc-800/50"}`}style={{ height: PAD_H }}onPointerDown={(e) => {@@ -113,13 +111,22 @@ function PositionPad({<div className="absolute inset-0 pointer-events-none rounded-[14px] ring-2 ring-cyan-400/30 animate-pulse" />)}<div className="absolute inset-0 pointer-events-none opacity-10 bg-[radial-gradient(#a1a1aa_1px,transparent_1px)] bg-size-[14px_14px]" />-- <div className="absolute top-0 bottom-0 w-px bg-linear-to-b from-transparent via-white/10 to-transparent -translate-x-1/2" style={{ left: "50%" }} />- <div className="absolute left-0 right-0 h-px bg-linear-to-r from-transparent via-white/10 to-transparent -translate-y-1/2" style={{ top: "50%" }} />-- <div className="absolute pointer-events-none bg-white/10 transition-opacity -translate-x-1/2" style={{ left: `${pctX * 100}%`, top: 0, bottom: 0, width: "1px" }} />- <div className="absolute pointer-events-none bg-white/10 transition-opacity -translate-y-1/2" style={{ top: hy, left: 0, right: 0, height: "1px" }} />-+ <div+ className="absolute top-0 bottom-0 w-px bg-linear-to-b from-transparent via-white/10 to-transparent -translate-x-1/2"+ style={{ left: "50%" }}+ />+ <div+ className="absolute left-0 right-0 h-px bg-linear-to-r from-transparent via-white/10 to-transparent -translate-y-1/2"+ style={{ top: "50%" }}+ />+ <div+ className="absolute pointer-events-none bg-white/10 transition-opacity -translate-x-1/2"+ style={{ left: `${pctX * 100}%`, top: 0, bottom: 0, width: "1px" }}+ />+ <div+ className="absolute pointer-events-none bg-white/10 transition-opacity -translate-y-1/2"+ style={{ top: hy, left: 0, right: 0, height: "1px" }}+ /><divclassName={`absolute bg-white border border-white/40 rounded-full shadow-[0_0_20px_4px_rgba(255,255,255,0.12),0_4px_12px_rgba(0,0,0,0.6)] mix-blend-screen flex items-center justify-center pointer-events-auto transition-transform duration-75`}style={{@@ -127,7 +134,8 @@ function PositionPad({height: HANDLE_R * 3,left: `${pctX * 100}%`,top: hy,- transform: `translate(-50%, -50%) ${isDraggingState ? "scale(1.25)" : "scale(1)"}`,+ transform: `translate(-50%, -50%) ${isDraggingState ? "scale(1.25)" : "scale(1)"+ }`,cursor: isDraggingState ? "grabbing" : "grab",}}/>@@ -226,7 +234,6 @@ export function Mockup3dMenu({setImagePhoneX(0);setImagePhoneY(0);setImagePhoneScale(0.9);-const defaultRotX = imagePhoneDevice === "laptop" ? 43.23 : -58.23;const defaultRotY = imagePhoneDevice === "laptop" ? -37.82 : -29.82;setImagePhoneRotX(defaultRotX);@@ -268,175 +275,183 @@ export function Mockup3dMenu({<div className="flex-1 overflow-y-auto custom-scrollbar px-4 py-4 space-y-6">- <div className="flex flex-col gap-6">-- <div className="flex items-center justify-between">- <span className="text-[11px] font-semibold text-white/60 uppercase tracking-wider">- {t("configuration")}- </span>- <button- type="button"- onClick={handleReset}- className="flex items-center gap-1 text-[11px] text-white/40 hover:text-white/80 transition-colors"- >- <Icon icon="lucide:rotate-ccw" width="11" />- {t("reset")}- </button>- </div>-- <div className="flex flex-col gap-4">- {mediaType === "video" && (- <Position3DPresetsEditor- device={imagePhoneDevice}- isLaptop={isLaptop}- selectedPresetId={imagePhonePresetId}- onSelectPreset={(preset) => {- setImagePhoneX(preset.x);- setImagePhoneY(preset.y);- setImagePhoneScale(preset.scale);- setImagePhoneRotX(preset.rotateX);- setImagePhoneRotY(preset.rotateY);- setImagePhoneRotZ(preset.rotateZ);- setImagePhonePresetId(preset.id);- if ("imagePhoneOpening" in preset) {- setImagePhoneOpening(preset.imagePhoneOpening);- }- }}- rotateX={imagePhoneRotX}- rotateY={imagePhoneRotY}- onRotationXYChange={(rX, rY) => {- setImagePhoneRotX(rX);- setImagePhoneRotY(rY);- }}- rotateZ={imagePhoneRotZ}- onRotateZChange={setImagePhoneRotZ}- onCustomReset={handleReset}- />- )}+ <div className="flex items-center justify-between pb-1">+ <span className="text-[10px] font-bold text-white/40 uppercase tracking-wider">+ {t("configuration")}+ </span>+ <button+ type="button"+ onClick={handleReset}+ className="flex items-center gap-1 text-[11px] text-white/50 hover:text-white transition-colors"+ >+ <Icon icon="lucide:rotate-ccw" width="11" />+ {t("reset")}+ </button>+ </div>- <SliderControl- icon="solar:scale-linear"- label={t("scale")}- value={Math.round(imagePhoneScale * 100)}- min={30}- max={300}- step={1}- onChange={(v) => setImagePhoneScale(v / 100)}- suffix="%"+ {mediaType === "video" && (+ <div className="flex flex-col gap-2">+ <Position3DPresetsEditor+ device={imagePhoneDevice}+ isLaptop={isLaptop}+ selectedPresetId={imagePhonePresetId}+ onSelectPreset={(preset) => {+ setImagePhoneX(preset.x);+ setImagePhoneY(preset.y);+ setImagePhoneScale(preset.scale);+ setImagePhoneRotX(preset.rotateX);+ setImagePhoneRotY(preset.rotateY);+ setImagePhoneRotZ(preset.rotateZ);+ setImagePhonePresetId(preset.id);+ if ("imagePhoneOpening" in preset) {+ setImagePhoneOpening(preset.imagePhoneOpening);+ }+ }}+ rotateX={imagePhoneRotX}+ rotateY={imagePhoneRotY}+ onRotationXYChange={(rX, rY) => {+ setImagePhoneRotX(rX);+ setImagePhoneRotY(rY);+ }}+ rotateZ={imagePhoneRotZ}+ onRotateZChange={setImagePhoneRotZ}+ onCustomReset={handleReset}/>-- <div className="flex flex-col gap-2">- <span className="text-[11px] font-semibold text-white/60 uppercase tracking-wider">- {t("position")}- </span>- <PositionPad- x={imagePhoneX}- y={imagePhoneY}- onChangeX={setImagePhoneX}- onChangeY={setImagePhoneY}- backgroundUrl={backgroundUrl}- backgroundColorCss={backgroundColorCss}- />- </div></div>+ )}- <div className="flex flex-col gap-4 pt-4 border-t border-white/6">- {isLaptop && (- <SliderControl- icon="material-symbols:laptop-chromebook-outline"- label={t("laptopOpening")}- value={Math.round(imagePhoneOpening * 100)}- min={0}- max={100}- step={1}- onChange={(v) => setImagePhoneOpening(v / 100)}- suffix="%"- />- )}+ <div className="flex flex-col gap-3 pt-2">+ <span className="text-[10px] font-bold text-white/40 uppercase tracking-wider">+ {t("position")}+ </span>++ <PositionPad+ x={imagePhoneX}+ y={imagePhoneY}+ onChangeX={setImagePhoneX}+ onChangeY={setImagePhoneY}+ backgroundUrl={backgroundUrl}+ backgroundColorCss={backgroundColorCss}+ />++ <SliderControl+ icon="solar:scale-linear"+ label={t("scale")}+ value={Math.round(imagePhoneScale * 100)}+ min={30}+ max={300}+ step={1}+ onChange={(v) => setImagePhoneScale(v / 100)}+ suffix="%"+ />+ </div>++ <div className="flex flex-col gap-3 pt-4 border-t border-white/6">+ <span className="text-[10px] font-bold text-white/40 uppercase tracking-wider">+ {t("modelProperties") || "Propiedades del Modelo"}+ </span>+ {isLaptop && (<SliderControl- icon="mdi:blur"- label={t("shadow")}- value={Math.round(imagePhoneShadow * 100)}+ icon="material-symbols:laptop-chromebook-outline"+ label={t("laptopOpening")}+ value={Math.round(imagePhoneOpening * 100)}min={0}max={100}step={1}- onChange={(v) => setImagePhoneShadow(v / 100)}+ onChange={(v) => setImagePhoneOpening(v / 100)}suffix="%"/>- </div>+ )}++ <SliderControl+ icon="mdi:blur"+ label={t("shadow")}+ value={Math.round(imagePhoneShadow * 100)}+ min={0}+ max={100}+ step={1}+ onChange={(v) => setImagePhoneShadow(v / 100)}+ suffix="%"+ />+ </div>++ <div className="flex flex-col gap-3 pt-4 border-t border-white/6">+ <span className="text-[10px] font-bold text-white/40 uppercase tracking-wider">+ {t("lightingAndEnvironment") || "Entorno e Iluminación"}+ </span>- <div className="flex flex-col gap-4 pt-4 border-t border-white/6">- <span className="text-[11px] font-semibold text-white/60 uppercase tracking-wider">- {t("viewer3d")}+ <div className="flex flex-col gap-1.5">+ <span className="text-[11px] font-medium text-white/60">+ {t("environment")}</span>+ <Select+ value={viewer3DEnvironment}+ onValueChange={(val) => setViewer3DEnvironment(val as EnvironmentPreset)}+ >+ <SelectTrigger className="w-full bg-white/3 border-white/[0.07] text-white/80 h-9" textSize="xs">+ <SelectValue placeholder={t("environment")} />+ </SelectTrigger>+ <SelectContent>+ {ENVIRONMENT_OPTIONS.map((opt) => (+ <SelectItem key={opt} value={opt} textSize="xs">+ {t(`environments.${opt}`)}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>- <div className="flex flex-col gap-2">- <span className="text-[11px] font-medium text-white/50 flex items-center gap-2">- {t("environment")}- </span>- <Select- value={viewer3DEnvironment}- onValueChange={(val) => setViewer3DEnvironment(val as EnvironmentPreset)}- >- <SelectTrigger className="w-full bg-white/3 border-white/[0.07] text-white/80 h-9" textSize="xs">- <SelectValue placeholder={t("environment")} />- </SelectTrigger>- <SelectContent>- {ENVIRONMENT_OPTIONS.map((opt) => (- <SelectItem key={opt} value={opt} textSize="xs">- {t(`environments.${opt}`)}- </SelectItem>- ))}- </SelectContent>- </Select>- </div>+ <SliderControl+ icon="mdi:white-balance-sunny"+ label={t("glow")}+ value={Math.round(viewer3DGlow * 100)}+ min={0}+ max={500}+ step={10}+ onChange={(v) => setViewer3DGlow(v / 100)}+ suffix="%"+ />+ </div>- <SliderControl- icon="mdi:white-balance-sunny"- label={t("glow")}- value={Math.round(viewer3DGlow * 100)}- min={0}- max={500}- step={10}- onChange={(v) => setViewer3DGlow(v / 100)}- suffix="%"- />+ <div className="flex flex-col gap-3 pt-4 border-t border-white/6">+ <span className="text-[10px] font-bold text-white/40 uppercase tracking-wider">+ {t("presentation") || "Animación y Exhibición"}+ </span>- <div- className={`flex items-center justify-between px-3 py-2 squircle-element border transition-all ${viewer3DAutoRotate+ <div+ className={`flex items-center justify-between px-3 py-2 squircle-element border transition-all ${viewer3DAutoRotate? "bg-blue-500/10 border-blue-500/40 text-blue-300": "bg-white/3 border-white/[0.07] text-white/60 hover:border-white/20"- }`}- >- <span className="flex items-center gap-2 text-[12px] font-medium">- <Icon icon="mdi:orbit-variant" width="14" />- {t("autoRotate")}- </span>- <Toggle- checked={viewer3DAutoRotate}- onChange={setViewer3DAutoRotate}- />- </div>-- {viewer3DAutoRotate && (- <SliderControl- icon="mdi:speedometer"- label={t("rotationSpeed")}- value={viewer3DRotationSpeed}- min={0.1}- max={10}- step={0.1}- onChange={setViewer3DRotationSpeed}- />- )}+ }`}+ >+ <span className="flex items-center gap-2 text-[12px] font-medium">+ <Icon icon="mdi:orbit-variant" width="14" />+ {t("autoRotate")}+ </span>+ <Toggle checked={viewer3DAutoRotate} onChange={setViewer3DAutoRotate} /></div>++ {viewer3DAutoRotate && (+ <SliderControl+ icon="mdi:speedometer"+ label={t("rotationSpeed")}+ value={viewer3DRotationSpeed}+ min={0.1}+ max={10}+ step={0.1}+ onChange={setViewer3DRotationSpeed}+ />+ )}+ </div>++ <div className="pt-2">+ <Button onClick={onRemove} variant="outline" className="w-full text-xs">+ <Icon icon="ph:trash-bold" width="13" aria-hidden="true" />+ {t("removeFrame")}+ </Button></div>- <Button onClick={onRemove} variant="outline" className="w-full text-xs mt-4">- <Icon icon="ph:trash-bold" width="13" aria-hidden="true" />- {t("removeFrame")}- </Button></div></>);diff --git a/app/components/ui/editor/MockupMenu.tsx b/app/components/ui/editor/MockupMenu.tsxindex f3ecd9b..07fa522 100644--- a/app/components/ui/editor/MockupMenu.tsx+++ b/app/components/ui/editor/MockupMenu.tsx@@ -364,7 +364,7 @@ export function MockupMenu({</PopoverTrigger><PopoverContent side="right" align="start" sideOffset={12} className="w-125 p-0 border-0 shadow-2xl">- <div className="flex flex-col bg-[#111113] border border-white/10 rounded-xl overflow-hidden shadow-2xl max-h-150">+ <div className="flex flex-col bg-[#111113] border border-white/10 squircle-element-camera overflow-hidden shadow-2xl max-h-150"><div className="flex items-center gap-2 px-4 py-3 border-b border-white/10 bg-white/2 flex-wrap">{MOCKUP_CATEGORIES.map((cat) => (<button@@ -437,7 +437,7 @@ export function MockupMenu({<div className="space-y-2"><div className="grid grid-cols-3 gap-2">- {["none", "outline", "macos", "macos-glass", "brave", "macos-dark-ide"].map((id) => {+ {["none", "outline", "macos", "macos-glass", "brave", "macbook-photo"].map((id) => {const mockup = MOCKUPS.find((m) => m.id === id);if (!mockup) return null;diff --git a/app/components/ui/editor/MotionMenu.tsx b/app/components/ui/editor/MotionMenu.tsxindex 350e974..a18fd27 100644--- a/app/components/ui/editor/MotionMenu.tsx+++ b/app/components/ui/editor/MotionMenu.tsx@@ -98,7 +98,7 @@ export function MotionMenu({<buttonkey={preset.id}onClick={() => onAddOrReplacePreset(preset.id)}- className={`group flex flex-col gap-2 rounded-xl border p-2 text-left transition-all duration-200 hover:scale-[1.015] active:scale-[0.98] ${isActive ? "border-orange-600/50 bg-orange-[0.05]" : "border-neutral-800 bg-black hover:border-neutral-700 hover:bg-neutral-900"}`}+ className={`group flex flex-col gap-2 squircle-element-camera border p-2 text-left transition-all duration-200 hover:scale-[1.015] active:scale-[0.98] ${isActive ? "border-orange-600/50 bg-orange-[0.05]" : "border-neutral-800 bg-black hover:border-neutral-700 hover:bg-neutral-900"}`}><div className="relative w-full aspect-[16/10] rounded-lg overflow-hidden"><MotionPresetIcondiff --git a/app/components/ui/editor/PhotoEditorPlaceholder.tsx b/app/components/ui/editor/PhotoEditorPlaceholder.tsxindex d2f5c22..0b02107 100644--- a/app/components/ui/editor/PhotoEditorPlaceholder.tsx+++ b/app/components/ui/editor/PhotoEditorPlaceholder.tsx@@ -131,7 +131,7 @@ export function PhotoEditorPlaceholder({style={{ height: "180px" }}><div className="flex flex-col items-center gap-3 text-white/40">- <div className="p-3 rounded-xl bg-white/5 border border-white/10">+ <div className="p-3 squircle-element-camera bg-white/5 border border-white/10"><Icon icon="lucide:image" width={28} height={28} aria-hidden="true" /></div><div className="text-center">@@ -295,7 +295,7 @@ export function PhotoEditorPlaceholder({<PopoverContentalign="start"sideOffset={12}- className="w-64 bg-[#0A0A0A] border-white/10 shadow-2xl p-4 space-y-4 rounded-xl z-50"+ className="w-64 bg-[#0A0A0A] border-white/10 shadow-2xl p-4 space-y-4 squircle-element-camera z-50"><PopoverHeader className="mb-2"><PopoverTitle className="text-xs font-semibold text-white/80 tracking-wide uppercase flex items-center gap-2">diff --git a/app/components/ui/editor/ToolsSidebar.tsx b/app/components/ui/editor/ToolsSidebar.tsxindex 02dbb90..c965e2b 100644--- a/app/components/ui/editor/ToolsSidebar.tsx+++ b/app/components/ui/editor/ToolsSidebar.tsx@@ -386,7 +386,7 @@ export function ToolsSidebar({<buttononClick={handleStartRecording}disabled={!isIdle}- className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 rounded-xl cursor-pointer transition-all group border-2 border-transparent disabled:cursor-not-allowed ${!isIdle ? "opacity-70" : "hover:bg-red-500/10"+ className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 squircle-element-camera cursor-pointer transition-all group border-2 border-transparent disabled:cursor-not-allowed ${!isIdle ? "opacity-70" : "hover:bg-red-500/10"}`}><Icon icon={recordButtonContent.icon} width="24" height="24" className={`transition-colors ${recordButtonContent.className}`} />@@ -401,7 +401,7 @@ export function ToolsSidebar({<buttononClick={handleUploadClick}disabled={isUploading}- className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 rounded-xl cursor-pointer transition-all group disabled:opacity-50 disabled:cursor-not-allowed border-2 ${isDragging+ className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 squircle-element-camera cursor-pointer transition-all group disabled:opacity-50 disabled:cursor-not-allowed border-2 ${isDragging? "bg-blue-500/20 text-blue-400 border-dashed border-blue-400/50 scale-105": "border-transparent text-white/70 hover:bg-blue-500/20 hover:text-blue-400"}`}@@ -446,7 +446,7 @@ export function ToolsSidebar({<buttononClick={onScreenCapture}disabled={isCapturing}- className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 rounded-xl cursor-pointer transition-all group border-2 border-transparent disabled:cursor-not-allowed ${isCapturing ? "opacity-70" : "hover:bg-cyan-500/10"+ className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 squircle-element-camera cursor-pointer transition-all group border-2 border-transparent disabled:cursor-not-allowed ${isCapturing ? "opacity-70" : "hover:bg-cyan-500/10"}`}aria-label={isCapturing ? t("photo.capturing") : t("photo.capture")}>@@ -468,7 +468,7 @@ export function ToolsSidebar({<buttononClick={handleImageUploadClick}disabled={isUploading}- className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 rounded-xl cursor-pointer transition-all group disabled:opacity-50 disabled:cursor-not-allowed border-2 ${isImageDragging+ className={`w-full flex flex-col items-center text-center justify-center gap-1.5 p-2 squircle-element-camera cursor-pointer transition-all group disabled:opacity-50 disabled:cursor-not-allowed border-2 ${isImageDragging? "bg-blue-500/20 text-blue-400 border-dashed border-blue-400/50 scale-105": "border-transparent text-white/70 hover:bg-blue-500/20 hover:text-blue-400"}`}diff --git a/app/components/ui/editor/VideosMenu.tsx b/app/components/ui/editor/VideosMenu.tsxindex 9fbe6c5..368c050 100644--- a/app/components/ui/editor/VideosMenu.tsx+++ b/app/components/ui/editor/VideosMenu.tsx@@ -166,7 +166,7 @@ export function VideosMenu({initial={{ opacity: 0 }}animate={{ opacity: 1 }}exit={{ opacity: 0 }}- className="absolute inset-0 z-50 flex flex-col items-center justify-center bg-[#09090B]/90 backdrop-blur-sm border-2 border-blue-500 border-dashed rounded-xl m-2"+ className="absolute inset-0 z-50 flex flex-col items-center justify-center bg-[#09090B]/90 backdrop-blur-sm border-2 border-blue-500 border-dashed squircle-element-camera m-2"onDragLeave={handleDragLeave}onDrop={handleDrop}>diff --git a/app/components/ui/editor/ZoomFragmentEditor.tsx b/app/components/ui/editor/ZoomFragmentEditor.tsxindex efbbb14..8103523 100644--- a/app/components/ui/editor/ZoomFragmentEditor.tsx+++ b/app/components/ui/editor/ZoomFragmentEditor.tsx@@ -248,7 +248,7 @@ export function ZoomFragmentEditor({};return holdDuration > 0.1 ? (- <div className="space-y-3 p-3 bg-[#0A0A0A] border border-[#262626] rounded-xl group transition-all">+ <div className="space-y-3 p-3 bg-[#0A0A0A] border border-[#262626] squircle-element-camera group transition-all"><div className="flex items-center justify-between"><div className="flex items-center gap-2 text-[11px] font-medium text-white/60"><span>{t("movement.timeline.title")}</span>diff --git a/app/components/ui/home/EditorPreview.tsx b/app/components/ui/home/EditorPreview.tsxindex ef1f34b..192257a 100644--- a/app/components/ui/home/EditorPreview.tsx+++ b/app/components/ui/home/EditorPreview.tsx@@ -60,13 +60,13 @@// <img// src="/images/pages/openvid2.webp"// alt="openvid Editor Preview"-// className="w-full h-auto object-cover rounded-xl"+// className="w-full h-auto object-cover squircle-element-camera"// loading="lazy"// data-atropos-offset="3"// />// <div-// className="absolute inset-0 pointer-events-none rounded-xl bg-[linear-gradient(to_bottom,#bf29f000_24%,#0095ED4D)]"+// className="absolute inset-0 pointer-events-none squircle-element-camera bg-[linear-gradient(to_bottom,#bf29f000_24%,#0095ED4D)]"// data-atropos-offset="4"// ></div>// </div>diff --git a/app/components/ui/home/HeroScrollMask.tsx b/app/components/ui/home/HeroScrollMask.tsxindex 6d4b57b..cd21534 100644--- a/app/components/ui/home/HeroScrollMask.tsx+++ b/app/components/ui/home/HeroScrollMask.tsx@@ -171,7 +171,7 @@ export function HeroScrollMask() {loopmutedplaysInline- className="w-[90vw] sm:w-full max-w-370 rounded-xl sm:rounded-none shadow-[0_0_40px_rgba(0,163,255,0.15)] sm:shadow-none border border-white/10 sm:border-none h-auto max-h-[80svh] sm:max-h-full object-contain"+ className="w-[90vw] sm:w-full max-w-370 squircle-element-camera sm:rounded-none shadow-[0_0_40px_rgba(0,163,255,0.15)] sm:shadow-none border border-white/10 sm:border-none h-auto max-h-[80svh] sm:max-h-full object-contain"aria-label={t("title")}><source src="/videos/hero/demo-scroll2.mp4" type="video/mp4" />diff --git a/app/components/ui/home/RecordingSteps.tsx b/app/components/ui/home/RecordingSteps.tsxindex 12b1057..1008fda 100644--- a/app/components/ui/home/RecordingSteps.tsx+++ b/app/components/ui/home/RecordingSteps.tsx@@ -270,7 +270,7 @@ export default function InteractiveRecordingSteps() {<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="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 rounded-2xl 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-2xl mx-auto max-w-[200px] sm:max-w-none"><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" /><span className="text-[11px] sm:text-[11px] text-white font-medium">{t('step4.visual.recording')}</span>@@ -278,7 +278,7 @@ export default function InteractiveRecordingSteps() {00:42</span></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 rounded-full transition-all w-full sm:w-auto cursor-default!">+ <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" />{t('step4.visual.stop')}diff --git a/app/components/ui/home/SocialReactions.tsx b/app/components/ui/home/SocialReactions.tsxindex a673cbe..19213c9 100644--- a/app/components/ui/home/SocialReactions.tsx+++ b/app/components/ui/home/SocialReactions.tsx@@ -298,7 +298,7 @@ const CustomSocialCard = memo(({ data }: { data: SocialPost }) => {{data.content.mediaUrl && (<divonClick={handleRedirect}- className="mt-3 overflow-hidden rounded-xl border border-neutral-800 shrink-0 cursor-pointer transition hover:opacity-95"+ className="mt-3 overflow-hidden squircle-element-camera border border-neutral-800 shrink-0 cursor-pointer transition hover:opacity-95"><imgsrc={data.content.mediaUrl}diff --git a/components/ui/BrowserPermissionUI.tsx b/components/ui/BrowserPermissionUI.tsxindex a93f409..e123647 100644--- a/components/ui/BrowserPermissionUI.tsx+++ b/components/ui/BrowserPermissionUI.tsx@@ -37,7 +37,7 @@ function PermissionRow({export function BrowserPermissionUI() {return (- <div className="w-85 flex flex-col border border-white/10 rounded-xl shadow-2xl overflow-hidden font-sans select-none">+ <div className="w-85 flex flex-col border border-white/10 squircle-element-camera shadow-2xl overflow-hidden font-sans select-none"><div className="bg-white px-3 py-2 flex items-center gap-2 border-b border-[#8AB4F8]/20"><Icon icon="solar:info-circle-bold" className="size-4 text-gray-600 shrink-0" />@@ -48,7 +48,7 @@ export function BrowserPermissionUI() {<div className="flex items-center gap-3 px-3 py-1.5 bg-[#252529] border-b border-white/5 text-[13px]"><div className="relative cursor-pointer group">- <div className="absolute inset-0 bg-[#8AB4F8] rounded-xl animate-ping opacity-20"></div>+ <div className="absolute inset-0 bg-[#8AB4F8] squircle-element-camera animate-ping opacity-20"></div><div className="relative flex items-center justify-center p-1.5 rounded-sm bg-[#8AB4F8]/20 border border-[#8AB4F8]/30"><Icon icon="mdi:tune-variant" className="size-3.75 text-[#8AB4F8]" /></div>diff --git a/components/ui/CanvasContextMenu.tsx b/components/ui/CanvasContextMenu.tsxindex 7a9b35d..fe776df 100644--- a/components/ui/CanvasContextMenu.tsx+++ b/components/ui/CanvasContextMenu.tsx@@ -45,7 +45,7 @@ export function CanvasContextMenu({return (<divdata-canvas-ctx-menu- className="fixed z-[9999] bg-black border border-white/15 rounded-xl shadow-2xl py-1 min-w-45 overflow-hidden"+ className="fixed z-[9999] bg-black border border-white/15 squircle-element-camera shadow-2xl py-1 min-w-45 overflow-hidden"style={{left: Math.min(canvasCtxMenu.x, window.innerWidth - 196),top: Math.min(canvasCtxMenu.y, window.innerHeight - 96),@@ -83,7 +83,7 @@ export function CanvasContextMenu({return (<divdata-canvas-ctx-menu- className="fixed z-[9999] bg-black border border-white/15 rounded-xl shadow-2xl py-1 min-w-45 overflow-hidden"+ className="fixed z-[9999] bg-black border border-white/15 squircle-element-camera shadow-2xl py-1 min-w-45 overflow-hidden"style={{left: Math.min(canvasCtxMenu.x, window.innerWidth - 196),top: Math.min(canvasCtxMenu.y, window.innerHeight - 160),diff --git a/components/ui/Position3DPresetsEditor.tsx b/components/ui/Position3DPresetsEditor.tsxindex 28863cd..546c7d0 100644--- a/components/ui/Position3DPresetsEditor.tsx+++ b/components/ui/Position3DPresetsEditor.tsx@@ -74,7 +74,7 @@ export function Position3DPresetsEditor({</TooltipAction><PopoverContentalign="start"- className="w-80 h-130 bg-[#0A0A0A] border-white/10 shadow-2xl p-0 rounded-xl overflow-hidden"+ className="w-80 h-130 bg-[#0A0A0A] border-white/10 shadow-2xl p-0 squircle-element-camera overflow-hidden"><div className="flex flex-col"><PopoverHeader className="px-4 py-3 border-b border-white/10 bg-white/5">diff --git a/components/ui/SidebarTool.tsx b/components/ui/SidebarTool.tsxindex 439088c..53634d7 100644--- a/components/ui/SidebarTool.tsx+++ b/components/ui/SidebarTool.tsx@@ -141,7 +141,7 @@ export const SidebarTool = forwardRef<HTMLButtonElement, SidebarToolProps>(<PopoverContentside="right"sideOffset={16}- className="w-85 p-0 bg-[#09090B] border border-white/20 rounded-xl shadow-2xl overflow-hidden group/popover"+ className="w-85 p-0 bg-[#09090B] border border-white/20 squircle-element-camera shadow-2xl overflow-hidden group/popover"><div className="relative w-full aspect-3/4 flex flex-col justify-end overflow-hidden bg-[#0c0c0e]"><div className="absolute inset-0 z-0">diff --git a/components/ui/popover.tsx b/components/ui/popover.tsxindex 7dd8ce0..500d40a 100644--- a/components/ui/popover.tsx+++ b/components/ui/popover.tsx@@ -30,7 +30,7 @@ function PopoverContent({align={align}sideOffset={sideOffset}className={cn(- "bg-black text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",+ "bg-black text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) squircle-element-camera border p-4 shadow-md outline-hidden",className)}{...props}diff --git a/lib/mockup-previews.tsx b/lib/mockup-previews.tsxindex 60ffe78..59bd2e6 100644--- a/lib/mockup-previews.tsx+++ b/lib/mockup-previews.tsx@@ -23,7 +23,7 @@ export function MacosPreview() {<div className="w-2 h-2 bg-gray-200 rounded-sm"></div></div></div>- <div className="flex-1 max-w-[50%] mx-2">+ <div className="flex-1 max-w-[50%] mx-2"><div className="bg-white rounded h-3 w-full flex items-center px-1.5 gap-1 border border-gray-300/50 shadow-sm"><div className="w-1.5 h-1.5 bg-gray-300 rounded-full flex-shrink-0"></div><div className="w-full h-1 bg-gray-200 rounded"></div>@@ -40,13 +40,13 @@ export function MacosPreview() {}export function OutlinePreview() {- return (- <div className="absolute top-6 left-5 w-[160%] h-[155%] bg-[#f9f9f9] rounded-tl-xl shadow-[0_10px_40px_rgba(0,0,0,0.12)] flex flex-col overflow-hidden outline-1 outline-gray-300 outline-offset-7">-- <div className="flex-1 bg-[#f9f9f9] relative"></div>-- </div>- );+ return (+ <div className="absolute top-6 left-5 w-[160%] h-[155%] bg-[#f9f9f9] rounded-tl-xl shadow-[0_10px_40px_rgba(0,0,0,0.12)] flex flex-col overflow-hidden outline-1 outline-gray-300 outline-offset-7">++ <div className="flex-1 bg-[#f9f9f9] relative"></div>++ </div>+ );}export function MacosGlassPreview() {@@ -86,7 +86,7 @@ export function MacosGlassPreview() {export function GlassUIContainerPreview() {return (<div className="absolute top-4 left-4 w-[160%] h-[160%] rounded-tl-2xl border-t border-l border-white/30 shadow-[0_0_30px_rgba(0,0,0,0.5)] flex flex-col p-1.5" style={{ background: "rgba(255,255,255,0.2)" }}>- <div className="flex-1 bg-[#f9f9f9] rounded-xl border border-white/10 shadow-inner"></div>+ <div className="flex-1 bg-[#f9f9f9] squircle-element-camera border border-white/10 shadow-inner"></div></div>);}@@ -347,7 +347,7 @@ export function ChromeGlassPreview() {export function IphoneSlimPreview() {return (- <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-800 rounded-xl p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20">+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-neutral-800 squircle-element-camera p-[2.5px] shadow-2xl border border-neutral-700 flex flex-col z-20"><div className="absolute -left-[1px] top-6 w-[1.5px] h-3 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm"></div><div className="absolute -left-[1px] top-10 w-[1.5px] h-6 bg-neutral-700 rounded-l-sm border-y border-l border-neutral-800 shadow-sm"></div><div className="absolute -right-[1px] top-12 w-[1.5px] h-8 bg-neutral-700 rounded-r-sm border-y border-r border-neutral-800 shadow-sm"></div>@@ -387,43 +387,43 @@ export function GlassCurvePreview() {);}export function GlassFullPreview() {- return (- <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl rounded-xl p-[2.5px] shadow-2xl border border-white/70 flex flex-col z-20">-- {/* Botones de Volumen (Izquierda) */}- <div className="absolute -left-[2px] top-7 w-[2px] h-3 bg-white/60 rounded-l-sm border-y border-l border-white/40 shadow-sm z-10"></div>- <div className="absolute -left-[2px] top-11 w-[2px] h-6 bg-white/60 rounded-l-sm border-y border-l border-white/40 shadow-sm z-10"></div>-- {/* Botón de Encendido (Derecha) */}- <div className="absolute -right-[2px] top-14 w-[2px] h-9 bg-white/60 rounded-r-sm border-y border-r border-white/40 shadow-sm z-10"></div>-- {/* Cuerpo Interno */}- <div className="relative w-full h-full bg-[#f9f9f9] rounded-[9px] overflow-hidden shadow-inner border border-black/5 flex flex-col">-- {/* Notch / Sensores */}- <div className="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1.5 bg-black/5 rounded-full z-20 flex items-center justify-between px-0.5">- <div className="w-0.5 h-0.5 bg-neutral-400 rounded-full"></div>- <div className="w-0.5 h-0.5 bg-indigo-400/50 rounded-full blur-[0.2px]"></div>- </div>+ return (+ <div className="absolute top-4 left-1/2 -translate-x-1/2 w-[75px] h-[150px] bg-white/40 backdrop-blur-xl squircle-element-camera p-[2.5px] shadow-2xl border border-white/70 flex flex-col z-20">- {/* Status Bar */}- <div className="absolute top-0 w-full h-3 flex items-center justify-between px-2 z-20">- <span className="text-[4px] font-bold text-black/40 scale-75 origin-left">9:41</span>- <div className="flex items-center gap-0.5 scale-[0.4] origin-right opacity-40">- <div className="w-4 h-2 border border-black rounded-[1px] relative">- <div className="h-full w-[80%] bg-black rounded-[0.5px]"></div>- </div>- </div>- </div>+ {/* Botones de Volumen (Izquierda) */}+ <div className="absolute -left-[2px] top-7 w-[2px] h-3 bg-white/60 rounded-l-sm border-y border-l border-white/40 shadow-sm z-10"></div>+ <div className="absolute -left-[2px] top-11 w-[2px] h-6 bg-white/60 rounded-l-sm border-y border-l border-white/40 shadow-sm z-10"></div>++ {/* Botón de Encendido (Derecha) */}+ <div className="absolute -right-[2px] top-14 w-[2px] h-9 bg-white/60 rounded-r-sm border-y border-r border-white/40 shadow-sm z-10"></div>- {/* Pantalla */}- <div className="w-full h-full bg-neutral-50"></div>+ {/* Cuerpo Interno */}+ <div className="relative w-full h-full bg-[#f9f9f9] rounded-[9px] overflow-hidden shadow-inner border border-black/5 flex flex-col">- {/* Home Indicator */}- <div className="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/5 rounded-full z-10"></div>- </div>- </div>- );+ {/* Notch / Sensores */}+ <div className="absolute top-1 left-1/2 -translate-x-1/2 w-6 h-1.5 bg-black/5 rounded-full z-20 flex items-center justify-between px-0.5">+ <div className="w-0.5 h-0.5 bg-neutral-400 rounded-full"></div>+ <div className="w-0.5 h-0.5 bg-indigo-400/50 rounded-full blur-[0.2px]"></div>+ </div>++ {/* Status Bar */}+ <div className="absolute top-0 w-full h-3 flex items-center justify-between px-2 z-20">+ <span className="text-[4px] font-bold text-black/40 scale-75 origin-left">9:41</span>+ <div className="flex items-center gap-0.5 scale-[0.4] origin-right opacity-40">+ <div className="w-4 h-2 border border-black rounded-[1px] relative">+ <div className="h-full w-[80%] bg-black rounded-[0.5px]"></div>+ </div>+ </div>+ </div>++ {/* Pantalla */}+ <div className="w-full h-full bg-neutral-50"></div>++ {/* Home Indicator */}+ <div className="absolute bottom-1 left-1/2 -translate-x-1/2 w-8 h-0.5 bg-black/5 rounded-full z-10"></div>+ </div>+ </div>+ );}export function HardShellPreview() {@@ -554,4 +554,15 @@ export function MacosGhostIdePreview() {<div className="flex-1 bg-[#1e1e1e]"></div></div>);+}++export function MacBookPreview() {+ return (+ <img+ src="/images/mockups/macbook-preview.webp"+ alt="MacBook"+ draggable={false}+ className="w-full h-full object-contain scale-90"+ />+ );}\ No newline at end of file