Create professional demos and 3D mockups in seconds, directly in your browser
Refactor mockup components to support maskStyles prop
CristianOlivera14abe86746ece
diff --git a/app/components/ui/editor/mockups/BraveGlassMockup.tsx b/app/components/ui/editor/mockups/BraveGlassMockup.tsxindex 6e0e75d..8fe820c 100644--- a/app/components/ui/editor/mockups/BraveGlassMockup.tsx+++ b/app/components/ui/editor/mockups/BraveGlassMockup.tsx@@ -1,5 +1,4 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";import { deriveSearchBg } from "@/lib/color.utils";@@ -14,21 +13,21 @@ export function BraveGlassMockup({config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles,}: BraveGlassMockupProps) {const isDark = config.darkMode;const frameColor = config.frameColor;const url = config.url;const cornerRadius = roundedCorners ?? config.cornerRadius;- const headerOpacity = config.headerOpacity ?? 100;+ const headerOpacity = config.headerOpacity ?? 100;const headerScale = (config.headerScale || 100) / 100;const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";const textColor = isDark ? "#9ca3af" : "#6b7280";const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";-const urlBarBgBase = deriveSearchBg(frameColor);const baseHeight = 32;@@ -50,116 +49,166 @@ export function BraveGlassMockup({const winBtnPadding = 12 * headerScale;return (- <div- className={`glass-border relative w-full h-full flex flex-col overflow-hidden ${className}`}- style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : 'none',- borderTop: "1px solid rgba(255,255,255,0.6)",- borderLeft: "1px solid rgba(255,255,255,0.6)",- }}- >+ <div className={`relative w-full h-full ${className}`}>+<div- className="flex items-center justify-between select-none shrink-0"+ className="absolute inset-0 pointer-events-none"style={{- height: `${headerHeight}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",}}- >- <div- className="flex items-center"- style={{ gap: `${navGap}px`, paddingLeft: `${headerPadding}px`, color: textColor }}- >- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M15 19l-7-7 7-7" />- </svg>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, opacity: 0.35 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" />- </svg>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />- </svg>- </div>+ />+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,+ }}+ ><div- className="flex-1 max-w-xl"- style={{ margin: `0 ${urlBarMargin}px` }}+ className="glass-border w-full h-full flex flex-col overflow-hidden"+ style={{+ borderRadius: `${cornerRadius}px`,+ borderTop: "1px solid rgba(255,255,255,0.6)",+ borderLeft: "1px solid rgba(255,255,255,0.6)",+ }}><div- className="rounded w-full flex items-center justify-between"+ className="flex items-center justify-between select-none shrink-0"style={{- height: `${urlBarHeight}px`,- padding: `0 ${urlBarPadding}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- border: `1px solid ${urlBarBorder}`,- color: textColor,+ height: `${headerHeight}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,}}>- <svg style={{ width: `${iconSize * 0.65}px`, height: `${iconSize * 0.65}px`, opacity: 0.6, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />- </svg>- <span- className="flex-1 text-center font-medium truncate"- style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}- >- {url}- </span>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, flexShrink: 0, color: "rgba(234,179,8,0.8)" }} fill="currentColor" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />- </svg>- </div>- </div>-- <div className="flex items-center h-full" style={{ color: textColor }}>- <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, paddingRight: `${rightGroupGap}px` }}>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />- </svg>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" />- </svg>- </div>-- <div className="flex h-full">- <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>- <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor">- <rect width="10" height="1" />- </svg>- </div>- <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>- <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">- <rect x="0.5" y="0.5" width="9" height="9" strokeWidth="1" />- </svg>- </div><div- className="flex items-center justify-center"+ className="flex items-center"style={{- padding: `0 ${winBtnPadding}px`,- borderTopRightRadius: `${cornerRadius}px`,+ gap: `${navGap}px`,+ paddingLeft: `${headerPadding}px`,+ color: textColor,}}>- <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">- <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />+ <svg+ style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }}+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M15 19l-7-7 7-7" />+ </svg>+ <svg+ style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, opacity: 0.35 }}+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" /></svg>+ <svg+ style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }}+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"+ />+ </svg>+ </div>++ <div className="flex-1 max-w-xl" style={{ margin: `0 ${urlBarMargin}px` }}>+ <div+ className="rounded w-full flex items-center justify-between"+ style={{+ height: `${urlBarHeight}px`,+ padding: `0 ${urlBarPadding}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ border: `1px solid ${urlBarBorder}`,+ color: textColor,+ }}+ >+ <svg+ style={{ width: `${iconSize * 0.65}px`, height: `${iconSize * 0.65}px`, opacity: 0.6, flexShrink: 0 }}+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"+ />+ </svg>+ <span+ className="flex-1 text-center font-medium truncate"+ style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}+ >+ {url}+ </span>+ <svg+ style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, flexShrink: 0, color: "rgba(234,179,8,0.8)" }}+ fill="currentColor"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z"+ />+ </svg>+ </div>+ </div>++ <div className="flex items-center h-full" style={{ color: textColor }}>+ <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, paddingRight: `${rightGroupGap}px` }}>+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />+ </svg>+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" />+ </svg>+ </div>+ <div className="flex h-full">+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor">+ <rect width="10" height="1" />+ </svg>+ </div>+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">+ <rect x="0.5" y="0.5" width="9" height="9" strokeWidth="1" />+ </svg>+ </div>+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px`, borderTopRightRadius: `${cornerRadius}px` }}>+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />+ </svg>+ </div>+ </div></div></div>- </div>- </div>- <div- className="flex-1 relative overflow-hidden"- style={{- backgroundColor: bgColor,- borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,- borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,- }}- >- {children}+ <div+ className="flex-1 relative overflow-hidden"+ style={{+ backgroundColor: bgColor,+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,+ }}+ >+ {children}+ </div>+ </div></div></div>);diff --git a/app/components/ui/editor/mockups/BraveMockup.tsx b/app/components/ui/editor/mockups/BraveMockup.tsxindex 58daee6..03f8f99 100644--- a/app/components/ui/editor/mockups/BraveMockup.tsx+++ b/app/components/ui/editor/mockups/BraveMockup.tsx@@ -14,7 +14,8 @@ export function BraveMockup({config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles}: BraveMockupProps) {const isDark = config.darkMode;const frameColor = config.frameColor;@@ -58,101 +59,103 @@ export function BraveMockup({: 'none',}}>- <div- className="flex items-center justify-between select-none shrink-0"- style={{- height: `${headerHeight}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,- }}- >+ <div className="w-full h-full flex flex-col" style={maskStyles}><div- className="flex items-center"- style={{ gap: `${navGap}px`, paddingLeft: `${headerPadding}px`, color: textColor }}- >- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M15 19l-7-7 7-7" />- </svg>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, opacity: 0.35 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" />- </svg>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />- </svg>- </div>-- <div- className="flex-1 max-w-xl"- style={{ margin: `0 ${urlBarMargin}px` }}+ className="flex items-center justify-between select-none shrink-0"+ style={{+ height: `${headerHeight}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ }}><div- className="rounded w-full flex items-center justify-between"- style={{- height: `${urlBarHeight}px`,- padding: `0 ${urlBarPadding}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- border: `1px solid ${urlBarBorder}`,- color: textColor,- }}+ className="flex items-center"+ style={{ gap: `${navGap}px`, paddingLeft: `${headerPadding}px`, color: textColor }}>- <svg style={{ width: `${iconSize * 0.65}px`, height: `${iconSize * 0.65}px`, opacity: 0.6, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />- </svg>- <span- className="flex-1 text-center font-medium truncate"- style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}- >- {url}- </span>- <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, flexShrink: 0, color: "rgba(234,179,8,0.8)" }} fill="currentColor" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />- </svg>- </div>- </div>-- <div className="flex items-center h-full" style={{ color: textColor }}>- <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, paddingRight: `${rightGroupGap}px` }}><svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M15 19l-7-7 7-7" />+ </svg>+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, opacity: 0.35 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2.5} d="M9 5l7 7-7 7" /></svg><svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" />+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" /></svg></div>- <div className="flex h-full">- <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>- <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor">- <rect width="10" height="1" />- </svg>- </div>- <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>- <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">- <rect x="0.5" y="0.5" width="9" height="9" strokeWidth="1" />- </svg>- </div>+ <div+ className="flex-1 max-w-xl"+ style={{ margin: `0 ${urlBarMargin}px` }}+ ><div- className="flex items-center justify-center"+ className="rounded w-full flex items-center justify-between"style={{- padding: `0 ${winBtnPadding}px`,- borderTopRightRadius: `${cornerRadius}px`,+ height: `${urlBarHeight}px`,+ padding: `0 ${urlBarPadding}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ border: `1px solid ${urlBarBorder}`,+ color: textColor,}}>- <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">- <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />+ <svg style={{ width: `${iconSize * 0.65}px`, height: `${iconSize * 0.65}px`, opacity: 0.6, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />+ </svg>+ <span+ className="flex-1 text-center font-medium truncate"+ style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}+ >+ {url}+ </span>+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px`, flexShrink: 0, color: "rgba(234,179,8,0.8)" }} fill="currentColor" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" />+ </svg>+ </div>+ </div>++ <div className="flex items-center h-full" style={{ color: textColor }}>+ <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, paddingRight: `${rightGroupGap}px` }}>+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" /></svg>+ <svg style={{ width: `${iconSize * 0.75}px`, height: `${iconSize * 0.75}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" />+ </svg>+ </div>++ <div className="flex h-full">+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor">+ <rect width="10" height="1" />+ </svg>+ </div>+ <div className="flex items-center justify-center" style={{ padding: `0 ${winBtnPadding}px` }}>+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">+ <rect x="0.5" y="0.5" width="9" height="9" strokeWidth="1" />+ </svg>+ </div>+ <div+ className="flex items-center justify-center"+ style={{+ padding: `0 ${winBtnPadding}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ }}+ >+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />+ </svg>+ </div></div></div></div>- </div>- <div- className="flex-1 relative overflow-hidden"- style={{ backgroundColor: bgColor }}- >- {children}+ <div+ className="flex-1 relative overflow-hidden"+ style={{ backgroundColor: bgColor }}+ >+ {children}+ </div></div></div>);diff --git a/app/components/ui/editor/mockups/ChromeGlassMockup.tsx b/app/components/ui/editor/mockups/ChromeGlassMockup.tsxindex 267f790..12bcbac 100644--- a/app/components/ui/editor/mockups/ChromeGlassMockup.tsx+++ b/app/components/ui/editor/mockups/ChromeGlassMockup.tsx@@ -1,5 +1,4 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";import { deriveSearchBg } from "@/lib/color.utils";@@ -14,201 +13,211 @@ export function ChromeGlassMockup({config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles,}: ChromeGlassMockupProps) {- const isDark = config.darkMode;- const frameColor = config.frameColor;- const url = config.url;- const cornerRadius = roundedCorners ?? config.cornerRadius;+ const isDark = config.darkMode;+ const frameColor = config.frameColor;+ const url = config.url;+ const cornerRadius = roundedCorners ?? config.cornerRadius;+const headerOpacity = config.headerOpacity ?? 100;- const headerScale = (config.headerScale || 100) / 100;+ const headerScale = (config.headerScale || 100) / 100;- const bgColor = isDark ? "#1e1e1e" : "#ffffff";- const tabBarBg = frameColor;- const addressBg = frameColor;- const tabActiveBg = deriveSearchBg(frameColor);- const urlBarBgBase = deriveSearchBg(frameColor);+ const bgColor = isDark ? "#1e1e1e" : "#ffffff";+ const tabBarBg = frameColor;+ const addressBg = frameColor;+ const tabActiveBg = deriveSearchBg(frameColor);+ const urlBarBgBase = deriveSearchBg(frameColor);const addressBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.12)";- const textColor = isDark ? "#9ca3af" : "#374151";- const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";- const tabBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";-- const tabBarH = 32 * headerScale;- const tabH = 26 * headerScale;- const tabW = 180 * headerScale;- const tabPadX = 10 * headerScale;- const tabFontSz = 10.5 * headerScale;- const tabIconSz = 12 * headerScale;- const tabCloseS = 8 * headerScale;- const tabML = 8 * headerScale;- const tabMT = 3 * headerScale;- const tabRadius = 6 * headerScale;- const plusSize = 10 * headerScale;- const plusML = 6 * headerScale;- const winBtnW = 42 * headerScale;+ const textColor = isDark ? "#9ca3af" : "#374151";+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";+ const tabBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";- const addrH = 32 * headerScale;- const addrPadX = 8 * headerScale;+ const tabBarH = 32 * headerScale;+ const tabH = 26 * headerScale;+ const tabW = 180 * headerScale;+ const tabPadX = 10 * headerScale;+ const tabFontSz = 10.5 * headerScale;+ const tabIconSz = 12 * headerScale;+ const tabCloseS = 8 * headerScale;+ const tabML = 8 * headerScale;+ const tabMT = 3 * headerScale;+ const tabRadius = 6 * headerScale;+ const plusSize = 10 * headerScale;+ const plusML = 6 * headerScale;+ const winBtnW = 42 * headerScale;+ const addrH = 32 * headerScale;+ const addrPadX = 8 * headerScale;const navBtnSize = 14 * headerScale;- const navGap = 2 * headerScale;- const urlH = 26 * headerScale;- const urlFontSz = 11 * headerScale;- const urlPadX = 12 * headerScale;- const rightGap = 2 * headerScale;- const iconSz = 14 * headerScale;+ const navGap = 2 * headerScale;+ const urlH = 26 * headerScale;+ const urlFontSz = 11 * headerScale;+ const urlPadX = 12 * headerScale;+ const rightGap = 2 * headerScale;+ const iconSz = 14 * headerScale;return (- <div- className={`glass-border relative w-full h-full flex flex-col overflow-hidden ${className}`}- style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : "none",- borderTop: "1px solid rgba(255,255,255,0.6)",- borderLeft: "1px solid rgba(255,255,255,0.6)",- }}- >+ <div className={`relative w-full h-full ${className}`}><div- className="flex items-center select-none shrink-0"+ className="absolute inset-0 pointer-events-none"style={{- height: `${tabBarH}px`,- backgroundColor: hexToRgba(tabBarBg, headerOpacity),- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",}}- >- <div- className="flex items-center shrink-0"- style={{- height: `${tabH}px`,- width: `${tabW}px`,- padding: `0 ${tabPadX}px`,- marginLeft: `${tabML}px`,- marginTop: `${tabMT}px`,- backgroundColor: hexToRgba(tabActiveBg, headerOpacity),- borderRadius: `${tabRadius}px ${tabRadius}px 0 0`,- borderTop: `1px solid ${tabBorder}`,- borderLeft: `1px solid ${tabBorder}`,- borderRight: `1px solid ${tabBorder}`,- gap: `${6 * headerScale}px`,- }}- >- <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: "#2563eb" }} fill="currentColor" viewBox="0 0 24 24">- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />- </svg>- <span className="truncate flex-1" style={{ fontSize: `${tabFontSz}px`, color: textColor }}>- {url?.replace(/^https?:\/\//, "") ?? "New tab"}- </span>- <svg style={{ width: `${tabCloseS}px`, height: `${tabCloseS}px`, flexShrink: 0, color: iconColor, opacity: 0.7 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M6 18L18 6M6 6l12 12" strokeWidth="2.5" strokeLinecap="round" />- </svg>- </div>-- <div- className="flex items-center justify-center self-center"- style={{- marginLeft: `${plusML}px`,- width: `${plusSize * 2}px`,- height: `${plusSize * 2}px`,- color: iconColor,- opacity: 0.7,- }}- >- <svg style={{ width: `${plusSize}px`, height: `${plusSize}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M12 4v16m8-8H4" strokeWidth="2.5" strokeLinecap="round" />- </svg>- </div>-- <div className="ml-auto flex h-full" style={{ color: iconColor }}>- <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>- <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor"><rect width="10" height="1"/></svg>- </div>- <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>- <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 9 9" fill="none" stroke="currentColor">- <rect x="0.5" y="0.5" width="8" height="8" strokeWidth="1"/>- </svg>- </div>- <div className="flex items-center justify-center" style={{ width: `${winBtnW}px`, borderTopRightRadius: `${cornerRadius}px` }}>- <svg width={10 * headerScale} height={10 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">- <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2"/>- </svg>- </div>- </div>- </div>+ /><div- className="flex items-center justify-between select-none shrink-0"+ className="relative w-full h-full overflow-hidden"style={{- height: `${addrH}px`,- padding: `0 ${addrPadX}px`,- backgroundColor: hexToRgba(addressBg, headerOpacity),- borderBottom: `1px solid ${addressBorder}`,- gap: `${8 * headerScale}px`,+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,}}>- <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: iconColor }}>- <div className="p-1.5">- <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path d="M19 12H5M12 19l-7-7 7-7" strokeLinecap="round" strokeLinejoin="round"/>- </svg>- </div>- <div className="p-1.5" style={{ opacity: 0.35 }}>- <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path d="M5 12h14m-7 7l7-7-7-7" strokeLinecap="round" strokeLinejoin="round"/>- </svg>- </div>- <div className="p-1.5">- <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" strokeLinecap="round" strokeLinejoin="round"/>- </svg>- </div>- </div>-- <div className="flex-1">+ <div+ className="glass-border w-full h-full flex flex-col overflow-hidden"+ style={{+ borderRadius: `${cornerRadius}px`,+ borderTop: "1px solid rgba(255,255,255,0.6)",+ borderLeft: "1px solid rgba(255,255,255,0.6)",+ }}+ ><div- className="rounded-full w-full flex items-center"+ className="flex items-center select-none shrink-0"style={{- height: `${urlH}px`,- padding: `0 ${urlPadX}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- gap: `${8 * headerScale}px`,- color: textColor,+ height: `${tabBarH}px`,+ backgroundColor: hexToRgba(tabBarBg, headerOpacity),+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,}}>- <svg style={{ width: `${iconSz * 0.75}px`, height: `${iconSz * 0.75}px`, flexShrink: 0, opacity: 0.6 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" strokeWidth="2"/>- </svg>- <span className="truncate flex-1" style={{ fontSize: `${urlFontSz}px` }}>- {url?.replace(/^https?:\/\//, "")}- </span>+ <div+ className="flex items-center shrink-0"+ style={{+ height: `${tabH}px`,+ width: `${tabW}px`,+ padding: `0 ${tabPadX}px`,+ marginLeft: `${tabML}px`,+ marginTop: `${tabMT}px`,+ backgroundColor: hexToRgba(tabActiveBg, headerOpacity),+ borderRadius: `${tabRadius}px ${tabRadius}px 0 0`,+ borderTop: `1px solid ${tabBorder}`,+ borderLeft: `1px solid ${tabBorder}`,+ borderRight: `1px solid ${tabBorder}`,+ gap: `${6 * headerScale}px`,+ }}+ >+ <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: "#2563eb" }} fill="currentColor" viewBox="0 0 24 24">+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />+ </svg>+ <span className="truncate flex-1" style={{ fontSize: `${tabFontSz}px`, color: textColor }}>+ {url?.replace(/^https?:\/\//, "") ?? "New tab"}+ </span>+ <svg style={{ width: `${tabCloseS}px`, height: `${tabCloseS}px`, flexShrink: 0, color: iconColor, opacity: 0.7 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M6 18L18 6M6 6l12 12" strokeWidth="2.5" strokeLinecap="round" />+ </svg>+ </div>+ <div+ className="flex items-center justify-center self-center"+ style={{+ marginLeft: `${plusML}px`,+ width: `${plusSize * 2}px`,+ height: `${plusSize * 2}px`,+ color: iconColor,+ opacity: 0.7,+ }}+ >+ <svg style={{ width: `${plusSize}px`, height: `${plusSize}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M12 4v16m8-8H4" strokeWidth="2.5" strokeLinecap="round" />+ </svg>+ </div>+ <div className="ml-auto flex h-full" style={{ color: iconColor }}>+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor"><rect width="10" height="1" /></svg>+ </div>+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 9 9" fill="none" stroke="currentColor">+ <rect x="0.5" y="0.5" width="8" height="8" strokeWidth="1" />+ </svg>+ </div>+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px`, borderTopRightRadius: `${cornerRadius}px` }}>+ <svg width={10 * headerScale} height={10 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />+ </svg>+ </div>+ </div></div>- </div>-- <div className="flex items-center shrink-0" style={{ gap: `${rightGap}px`, color: iconColor }}>- <div className="p-1.5">- <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" strokeWidth="2"/>- </svg>+ <div+ className="flex items-center justify-between select-none shrink-0"+ style={{+ height: `${addrH}px`,+ padding: `0 ${addrPadX}px`,+ backgroundColor: hexToRgba(addressBg, headerOpacity),+ borderBottom: `1px solid ${addressBorder}`,+ gap: `${8 * headerScale}px`,+ }}+ >+ <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: iconColor }}>+ <div className="p-1.5">+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">+ <path d="M19 12H5M12 19l-7-7 7-7" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ </div>+ <div className="p-1.5" style={{ opacity: 0.35 }}>+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">+ <path d="M5 12h14m-7 7l7-7-7-7" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ </div>+ <div className="p-1.5">+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ </div>+ </div>+ <div className="flex-1">+ <div+ className="rounded-full w-full flex items-center"+ style={{+ height: `${urlH}px`,+ padding: `0 ${urlPadX}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ gap: `${8 * headerScale}px`,+ color: textColor,+ }}+ >+ <svg style={{ width: `${iconSz * 0.75}px`, height: `${iconSz * 0.75}px`, flexShrink: 0, opacity: 0.6 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" strokeWidth="2" />+ </svg>+ <span className="truncate flex-1" style={{ fontSize: `${urlFontSz}px` }}>+ {url?.replace(/^https?:\/\//, "")}+ </span>+ </div>+ </div>+ <div className="flex items-center shrink-0" style={{ gap: `${rightGap}px`, color: iconColor }}>+ <div className="p-1.5">+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" strokeWidth="2" />+ </svg>+ </div>+ <div className="p-1.5">+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" strokeWidth="2.5" />+ </svg>+ </div>+ </div></div>- <div className="p-1.5">- <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" strokeWidth="2.5"/>- </svg>+ <div+ className="flex-1 relative overflow-hidden"+ style={{+ backgroundColor: bgColor,+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,+ }}+ >+ {children}</div></div></div>-- <div- className="flex-1 relative overflow-hidden"- style={{- backgroundColor: bgColor,- borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,- borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,- }}- >- {children}- </div></div>);}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/ChromeMockup.tsx b/app/components/ui/editor/mockups/ChromeMockup.tsxindex 98b2785..87d3f21 100644--- a/app/components/ui/editor/mockups/ChromeMockup.tsx+++ b/app/components/ui/editor/mockups/ChromeMockup.tsx@@ -1,206 +1,210 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";import { deriveSearchBg } from "@/lib/color.utils";interface ChromeMockupProps extends MockupRenderProps {- shadows?: number;- roundedCorners?: number;+ shadows?: number;+ roundedCorners?: number;}export function ChromeMockup({- children,- config,- className = "",- shadows = 20,- roundedCorners+ children,+ config,+ className = "",+ shadows = 20,+ roundedCorners,+ maskStyles,}: ChromeMockupProps) {- const isDark = config.darkMode;- const frameColor = config.frameColor;- const url = config.url;- const cornerRadius = roundedCorners ?? config.cornerRadius;- const headerOpacity = config.headerOpacity ?? 100;-- const headerScale = (config.headerScale || 100) / 100;+ const isDark = config.darkMode;+ const frameColor = config.frameColor;+ const url = config.url;+ const cornerRadius = roundedCorners ?? config.cornerRadius;- const opacity = headerOpacity / 100;- const bgColor = isDark ? "#1e1e1e" : "#ffffff";- const tabBarBg = frameColor;- const addressBg = frameColor;- const tabActiveBg = deriveSearchBg(frameColor);- const urlBarBgBase = deriveSearchBg(frameColor);- const addressBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.12)";- const textColor = isDark ? "#9ca3af" : "#374151";- const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";+ const headerOpacity = config.headerOpacity ?? 100;+ const headerScale = (config.headerScale || 100) / 100;+ const bgColor = isDark ? "#1e1e1e" : "#ffffff";+ const tabBarBg = frameColor;+ const addressBg = frameColor;+ const tabActiveBg = deriveSearchBg(frameColor);+ const urlBarBgBase = deriveSearchBg(frameColor);+ const addressBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.12)";+ const textColor = isDark ? "#9ca3af" : "#374151";+ const iconColor = isDark ? "rgba(255,255,255,0.5)" : "rgba(55,65,81,0.7)";- const tabBarH = 32 * headerScale;- const tabH = 28 * headerScale;- const tabW = 180 * headerScale;- const tabPadX = 12 * headerScale;- const tabFontSz = 10.5 * headerScale;- const tabIconSz = 12 * headerScale;- const tabML = 8 * headerScale;- const tabRadius = 4 * headerScale;- const plusSize = 14 * headerScale;- const plusML = 4 * headerScale;- const winBtnW = 42 * headerScale;+ const tabBarH = 32 * headerScale;+ const tabH = 28 * headerScale;+ const tabW = 180 * headerScale;+ const tabPadX = 12 * headerScale;+ const tabFontSz = 10.5 * headerScale;+ const tabIconSz = 12 * headerScale;+ const tabML = 8 * headerScale;+ const tabRadius = 4 * headerScale;+ const plusSize = 14 * headerScale;+ const plusML = 4 * headerScale;+ const winBtnW = 42 * headerScale;+ const addrH = 32 * headerScale;+ const addrPadX = 8 * headerScale;+ const navBtnSize = 14 * headerScale;+ const navGap = 2 * headerScale;+ const urlH = 26 * headerScale;+ const urlFontSz = 11 * headerScale;+ const urlPadX = 12 * headerScale;+ const rightGap = 2 * headerScale;+ const iconSz = 14 * headerScale;- const addrH = 32 * headerScale;- const addrPadX = 8 * headerScale;- const navBtnSize = 14 * headerScale;- const navGap = 2 * headerScale;- const urlH = 26 * headerScale;- const urlFontSz = 11 * headerScale;- const urlPadX = 12 * headerScale;- const rightGap = 2 * headerScale;- const iconSz = 14 * headerScale;+ return (+ <div className={`relative w-full h-full ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"+ style={{+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",+ }}+ />- return (+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,+ }}+ ><div- className={`relative w-full h-full flex flex-col overflow-hidden ${className}`}+ className="w-full h-full flex flex-col overflow-hidden"+ style={{ borderRadius: `${cornerRadius}px` }}+ >+ <div+ className="flex items-end select-none shrink-0"style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : "none",+ height: `${tabBarH}px`,+ backgroundColor: hexToRgba(tabBarBg, headerOpacity),+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,}}- >+ ><div- className="flex items-end select-none shrink-0"- style={{- height: `${tabBarH}px`,- backgroundColor: hexToRgba(tabBarBg, headerOpacity),- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,- }}+ className="flex items-center shrink-0"+ style={{+ height: `${tabH}px`,+ width: `${tabW}px`,+ padding: `0 ${tabPadX}px`,+ marginLeft: `${tabML}px`,+ backgroundColor: hexToRgba(tabActiveBg, headerOpacity),+ borderRadius: `${tabRadius}px ${tabRadius}px 0 0`,+ borderTop: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,+ borderLeft: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,+ borderRight: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,+ gap: `${8 * headerScale}px`,+ }}>- <div- className="flex items-center shrink-0"- style={{- height: `${tabH}px`,- width: `${tabW}px`,- padding: `0 ${tabPadX}px`,- marginLeft: `${tabML}px`,- backgroundColor: hexToRgba(tabActiveBg, headerOpacity),- borderRadius: `${tabRadius}px ${tabRadius}px 0 0`,- borderTop: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,- borderLeft: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,- borderRight: `1px solid ${isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)"}`,- gap: `${8 * headerScale}px`,- }}- >- <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: "#2563eb" }} fill="currentColor" viewBox="0 0 24 24">- <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />- </svg>- <span className="truncate flex-1" style={{ fontSize: `${tabFontSz}px`, color: textColor }}>- {url?.replace(/^https?:\/\//, "") ?? "New tab"}- </span>- <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: iconColor }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M6 18L18 6M6 6l12 12" strokeWidth="2.5" strokeLinecap="round" />- </svg>- </div>-- <div- className="flex items-center justify-center"- style={{- marginLeft: `${plusML}px`,- marginBottom:`${6 * headerScale}px`,- width: `${plusSize * 1.8}px`,- height: `${plusSize * 1.8}px`,- color: iconColor,- }}- >- <svg style={{ width: `${plusSize}px`, height: `${plusSize}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M12 4v16m8-8H4" strokeWidth="3" strokeLinecap="round" />- </svg>- </div>-- <div className="ml-auto flex h-full" style={{ color: iconColor }}>- <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>- <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor"><rect width="10" height="1"/></svg>- </div>- <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>- <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 9 9" fill="none" stroke="currentColor">- <rect x="0.5" y="0.5" width="8" height="8" strokeWidth="1"/>- </svg>- </div>- <div className="flex items-center justify-center" style={{ width: `${winBtnW}px`, borderTopRightRadius: `${cornerRadius}px` }}>- <svg width={10 * headerScale} height={10 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">- <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2"/>- </svg>- </div>- </div>+ <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: "#2563eb" }} fill="currentColor" viewBox="0 0 24 24">+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" />+ </svg>+ <span className="truncate flex-1" style={{ fontSize: `${tabFontSz}px`, color: textColor }}>+ {url?.replace(/^https?:\/\//, "") ?? "New tab"}+ </span>+ <svg style={{ width: `${tabIconSz}px`, height: `${tabIconSz}px`, flexShrink: 0, color: iconColor }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M6 18L18 6M6 6l12 12" strokeWidth="2.5" strokeLinecap="round" />+ </svg></div>-<div- className="flex items-center justify-between select-none shrink-0"+ className="flex items-center justify-center"+ style={{+ marginLeft: `${plusML}px`,+ marginBottom: `${6 * headerScale}px`,+ width: `${plusSize * 1.8}px`,+ height: `${plusSize * 1.8}px`,+ color: iconColor,+ }}+ >+ <svg style={{ width: `${plusSize}px`, height: `${plusSize}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M12 4v16m8-8H4" strokeWidth="3" strokeLinecap="round" />+ </svg>+ </div>+ <div className="ml-auto flex h-full" style={{ color: iconColor }}>+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>+ <svg width={10 * headerScale} height={1 * headerScale} viewBox="0 0 10 1" fill="currentColor"><rect width="10" height="1" /></svg>+ </div>+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px` }}>+ <svg width={9 * headerScale} height={9 * headerScale} viewBox="0 0 9 9" fill="none" stroke="currentColor">+ <rect x="0.5" y="0.5" width="8" height="8" strokeWidth="1" />+ </svg>+ </div>+ <div className="flex items-center justify-center" style={{ width: `${winBtnW}px`, borderTopRightRadius: `${cornerRadius}px` }}>+ <svg width={10 * headerScale} height={10 * headerScale} viewBox="0 0 10 10" fill="none" stroke="currentColor">+ <path d="M1 1l8 8M9 1L1 9" strokeWidth="1.2" />+ </svg>+ </div>+ </div>+ </div>+ <div+ className="flex items-center justify-between select-none shrink-0"+ style={{+ height: `${addrH}px`,+ padding: `0 ${addrPadX}px`,+ backgroundColor: hexToRgba(addressBg, headerOpacity),+ borderBottom: `1px solid ${addressBorder}`,+ gap: `${8 * headerScale}px`,+ }}+ >+ <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: iconColor }}>+ <div className="p-1.5">+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">+ <path d="M19 12H5M12 19l-7-7 7-7" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ </div>+ <div className="p-1.5" style={{ opacity: 0.35 }}>+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">+ <path d="M5 12h14m-7 7l7-7-7-7" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ </div>+ <div className="p-1.5">+ <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">+ <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" strokeLinecap="round" strokeLinejoin="round" />+ </svg>+ </div>+ </div>+ <div className="flex-1">+ <div+ className="rounded-full w-full flex items-center"style={{- height: `${addrH}px`,- padding: `0 ${addrPadX}px`,- backgroundColor: hexToRgba(addressBg, headerOpacity),- borderBottom: `1px solid ${addressBorder}`,- gap: `${8 * headerScale}px`,+ height: `${urlH}px`,+ padding: `0 ${urlPadX}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ gap: `${8 * headerScale}px`,+ color: textColor,}}- >- <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: iconColor }}>- <div className="p-1.5">- <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path d="M19 12H5M12 19l-7-7 7-7" strokeLinecap="round" strokeLinejoin="round"/>- </svg>- </div>- <div className="p-1.5" style={{ opacity: 0.35 }}>- <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5">- <path d="M5 12h14m-7 7l7-7-7-7" strokeLinecap="round" strokeLinejoin="round"/>- </svg>- </div>- <div className="p-1.5">- <svg width={navBtnSize} height={navBtnSize} viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2">- <path d="M21 12a9 9 0 11-2.12-5.88L21 9m0 0V3m0 6h-6" strokeLinecap="round" strokeLinejoin="round"/>- </svg>- </div>- </div>-- <div className="flex-1">- <div- className="rounded-full w-full flex items-center"- style={{- height: `${urlH}px`,- padding: `0 ${urlPadX}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- gap: `${8 * headerScale}px`,- color: textColor,- }}- >- <svg style={{ width: `${iconSz * 0.75}px`, height: `${iconSz * 0.75}px`, flexShrink: 0, opacity: 0.6 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" strokeWidth="2"/>- </svg>- <span className="truncate flex-1" style={{ fontSize: `${urlFontSz}px` }}>- {url?.replace(/^https?:\/\//, "")}- </span>- </div>- </div>-- <div className="flex items-center shrink-0" style={{ gap: `${rightGap}px`, color: iconColor }}>- <div className="p-1.5">- <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" strokeWidth="2"/>- </svg>- </div>- <div className="p-1.5">- <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" strokeWidth="2.5"/>- </svg>- </div>- </div>+ >+ <svg style={{ width: `${iconSz * 0.75}px`, height: `${iconSz * 0.75}px`, flexShrink: 0, opacity: 0.6 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" strokeWidth="2" />+ </svg>+ <span className="truncate flex-1" style={{ fontSize: `${urlFontSz}px` }}>+ {url?.replace(/^https?:\/\//, "")}+ </span>+ </div></div>-- <div- className="flex-1 relative overflow-hidden"- style={{ backgroundColor: bgColor }}- >- {children}+ <div className="flex items-center shrink-0" style={{ gap: `${rightGap}px`, color: iconColor }}>+ <div className="p-1.5">+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M11.049 2.927c.3-.921 1.603-.921 1.902 0l1.519 4.674a1 1 0 00.95.69h4.915c.969 0 1.371 1.24.588 1.81l-3.976 2.888a1 1 0 00-.363 1.118l1.518 4.674c.3.922-.755 1.688-1.538 1.118l-3.976-2.888a1 1 0 00-1.176 0l-3.976 2.888c-.783.57-1.838-.197-1.538-1.118l1.518-4.674a1 1 0 00-.363-1.118l-3.976-2.888c-.784-.57-.38-1.81.588-1.81h4.914a1 1 0 00.951-.69l1.519-4.674z" strokeWidth="2" />+ </svg>+ </div>+ <div className="p-1.5">+ <svg style={{ width: `${iconSz * 0.85}px`, height: `${iconSz * 0.85}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" strokeWidth="2.5" />+ </svg>+ </div></div>+ </div>+ <div+ className="flex-1 relative overflow-hidden"+ style={{ backgroundColor: bgColor }}+ >+ {children}+ </div></div>- );+ </div>+ </div>+ );}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/GlassCurveMockup.tsx b/app/components/ui/editor/mockups/GlassCurveMockup.tsxindex 4757959..21686bb 100644--- a/app/components/ui/editor/mockups/GlassCurveMockup.tsx+++ b/app/components/ui/editor/mockups/GlassCurveMockup.tsx@@ -1,5 +1,4 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";@@ -14,84 +13,80 @@ export function GlassCurveMockup({className = "",shadows = 30,roundedCorners,+ maskStyles,}: GlassCurveMockupProps) {const isDark = config.darkMode;const frameColor = isDark ? config.frameColor : "#ffffff";const cornerRadius = roundedCorners ?? config.cornerRadius;-- const headerOpacity = config.headerOpacity ?? 10;++ const headerOpacity = config.headerOpacity ?? 10;const headerScale = (config.headerScale || 100) / 100;-+const framePadding = 4 * headerScale;const reflectionWidth = 16 * headerScale;-const notchTop = 16 * headerScale;const notchWidth = 40 * headerScale;const notchHeight = 4 * headerScale;-const contentPaddingTop = 32 * headerScale;-+const screenBg = isDark ? "#0a0a0a" : "#ffffff";const borderColor = isDark ? "rgba(255, 255, 255, 0.1)" : "rgba(255, 255, 255, 0.4)";const reflectionColor = isDark ? "rgba(255, 255, 255, 0.05)" : "rgba(255, 255, 255, 0.2)";const notchBg = isDark ? "rgba(255, 255, 255, 0.15)" : "rgba(0, 0, 0, 0.05)";return (- <div- className={`relative w-full h-full flex flex-col ${className}`}- >- <div- className="relative w-full h-full flex flex-col backdrop-blur-2xl overflow-hidden"+ <div className={`relative w-full h-full ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"style={{- padding: `${framePadding}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),borderRadius: `${cornerRadius * 2.5}px`,- boxShadow: shadows > 0- ? `0 ${shadows}px ${shadows * 2}px rgba(0,0,0,1)`- : 'none',- border: `3px solid ${borderColor}`,+ boxShadow: shadows > 0 ? `0 ${shadows}px ${shadows * 2}px rgba(0,0,0,1)` : 'none',}}- >- <div- className="absolute inset-y-0 left-0 z-10 pointer-events-none"- style={{- width: `${reflectionWidth}px`,- background: `linear-gradient(to right, ${reflectionColor}, transparent)`- }}- />-- <div- className="absolute inset-y-0 right-0 z-10 pointer-events-none"- style={{- width: `${reflectionWidth}px`,- background: `linear-gradient(to left, ${reflectionColor}, transparent)`- }}- />+ />- <div- className="relative w-full h-full overflow-hidden flex flex-col shadow-inner"+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius * 2.5}px`,+ }}+ >+ <div+ className="relative w-full h-full flex flex-col backdrop-blur-2xl overflow-hidden"style={{- backgroundColor: screenBg,- borderRadius: `${cornerRadius * 2.35}px`,+ padding: `${framePadding}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderRadius: `${cornerRadius * 2.5}px`,+ border: `3px solid ${borderColor}`,}}>- <div- className="absolute left-1/2 -translate-x-1/2 rounded-full z-20 pointer-events-none"- style={{- top: `${notchTop}px`,- width: `${notchWidth}px`,- height: `${notchHeight}px`,- backgroundColor: notchBg- }}+ <div+ className="absolute inset-y-0 left-0 z-10 pointer-events-none"+ style={{ width: `${reflectionWidth}px`, background: `linear-gradient(to right, ${reflectionColor}, transparent)` }}/>-- <div- className="relative z-10 w-full h-full"- style={{- paddingTop: `${contentPaddingTop}px`+ <div+ className="absolute inset-y-0 right-0 z-10 pointer-events-none"+ style={{ width: `${reflectionWidth}px`, background: `linear-gradient(to left, ${reflectionColor}, transparent)` }}+ />+ <div+ className="relative w-full h-full overflow-hidden flex flex-col shadow-inner"+ style={{+ backgroundColor: screenBg,+ borderRadius: `${cornerRadius * 2.35}px`,}}>- {children}+ <div+ className="absolute left-1/2 -translate-x-1/2 rounded-full z-20 pointer-events-none"+ style={{+ top: `${notchTop}px`,+ width: `${notchWidth}px`,+ height: `${notchHeight}px`,+ backgroundColor: notchBg+ }}+ />+ <div className="relative z-10 w-full h-full" style={{ paddingTop: `${contentPaddingTop}px` }}>+ {children}+ </div></div></div></div>diff --git a/app/components/ui/editor/mockups/GlassFullMockup.tsx b/app/components/ui/editor/mockups/GlassFullMockup.tsxindex 86be37d..eba6a90 100644--- a/app/components/ui/editor/mockups/GlassFullMockup.tsx+++ b/app/components/ui/editor/mockups/GlassFullMockup.tsx@@ -13,14 +13,16 @@ export function GlassFullMockup({config,className = "",shadows = 30,- roundedCorners+ roundedCorners,+ maskStyles,}: GlassFullMockupProps) {const isDark = config.darkMode;const frameColor = isDark ? config.frameColor : "#ffffff";const cornerRadius = roundedCorners ?? config.cornerRadius;+const headerOpacity = config.headerOpacity ?? 10;const headerScale = (config.headerScale || 100) / 100;-+const framePadding = 12 * headerScale;const buttonWidth = 7 * headerScale;const notchTop = 8 * headerScale;@@ -40,7 +42,7 @@ export function GlassFullMockup({const homeIndicatorWidth = 128 * headerScale;const homeIndicatorHeight = 4 * headerScale;const homeIndicatorBottom = 8 * headerScale;-+const screenBg = isDark ? "#0a0a0a" : "#f9f9f9";const frameBorderColor = isDark ? "rgba(255, 255, 255, 0.15)" : "rgba(255, 255, 255, 0.3)";const screenBorderColor = isDark ? "rgba(255, 255, 255, 0.05)" : "rgba(0, 0, 0, 0.05)";@@ -48,152 +50,142 @@ export function GlassFullMockup({const statusBarText = isDark ? "rgba(255, 255, 255, 0.8)" : "rgba(0, 0, 0, 0.6)";const statusBarTextDim = isDark ? "rgba(255, 255, 255, 0.4)" : "rgba(0, 0, 0, 0.2)";const homeIndicatorBg = isDark ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.1)";-- // Aquí está el cambio solicitado: botones blancos (#ffffff) en el modo claro+const buttonBg = isDark ? "rgba(255, 255, 255, 0.25)" : "#ffffff";const buttonBorderColor = isDark ? "rgba(255, 255, 255, 0.4)" : "#e5e5e5";-- const buttonShadow = isDark- ? "inset 0px 0px 4px rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.5)"- : "inset 0px 0px 4px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.2)";+ const buttonShadow = isDark ? "inset 0px 0px 4px rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.5)" : "inset 0px 0px 4px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.2)";return (- <div className={`relative flex flex-col w-full h-full ${className}`}>- <div- className="relative flex flex-col w-full h-full backdrop-blur-2xl"+ <div className={`relative w-full h-full ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"style={{- padding: `${framePadding}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),borderRadius: `${cornerRadius * 2.8}px`,boxShadow: shadows > 0 ? `0 ${shadows}px ${shadows * 2}px rgba(0,0,0,1)` : 'none',- border: `1px solid ${frameBorderColor}`,}}- >- <div- className="absolute backdrop-blur-md rounded-l-sm z-[-1]"- style={{- left: `-${buttonWidth}px`,- top: '15%',- width: `${buttonWidth}px`,- height: '5%',- backgroundColor: buttonBg,- borderLeft: `1px solid ${buttonBorderColor}`,- borderTop: `1px solid ${buttonBorderColor}`,- borderBottom: `1px solid ${buttonBorderColor}`,- boxShadow: buttonShadow- }}- />- <div- className="absolute backdrop-blur-md rounded-l-sm z-[-1]"- style={{- left: `-${buttonWidth}px`,- top: '25%',- width: `${buttonWidth}px`,- height: '12%',- backgroundColor: buttonBg,- borderLeft: `1px solid ${buttonBorderColor}`,- borderTop: `1px solid ${buttonBorderColor}`,- borderBottom: `1px solid ${buttonBorderColor}`,- boxShadow: buttonShadow- }}- />- <div- className="absolute backdrop-blur-md rounded-r-sm z-[-1]"- style={{- right: `-${buttonWidth}px`,- top: '28%',- width: `${buttonWidth}px`,- height: '14%',- backgroundColor: buttonBg,- borderRight: `1px solid ${buttonBorderColor}`,- borderTop: `1px solid ${buttonBorderColor}`,- borderBottom: `1px solid ${buttonBorderColor}`,- boxShadow: buttonShadow- }}- />+ />- <div- className="relative w-full h-full overflow-hidden flex flex-col shadow-inner"+ <div+ className="relative w-full h-full"+ style={{+ ...maskStyles,+ }}+ >+ <div+ className="relative flex flex-col w-full h-full backdrop-blur-2xl"style={{- backgroundColor: screenBg,- borderRadius: `${cornerRadius * 2.3}px`,- border: `1px solid ${screenBorderColor}`,+ padding: `${framePadding}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderRadius: `${cornerRadius * 2.8}px`,+ border: `1px solid ${frameBorderColor}`,}}>- <div- className="absolute left-1/2 -translate-x-1/2 rounded-full z-30 flex items-center justify-between shadow-sm"+ <div+ className="absolute backdrop-blur-md rounded-l-sm z-[-1]"style={{- top: `${notchTop}px`,- width: `${notchWidth}px`,- height: `${notchHeight}px`,- backgroundColor: notchBg,- padding: `0 ${notchPaddingX}px`+ left: `-${buttonWidth}px`,+ top: '15%',+ width: `${buttonWidth}px`,+ height: '5%',+ backgroundColor: buttonBg,+ borderLeft: `1px solid ${buttonBorderColor}`,+ borderTop: `1px solid ${buttonBorderColor}`,+ borderBottom: `1px solid ${buttonBorderColor}`,+ boxShadow: buttonShadow}}- >- <div- className="bg-neutral-500 rounded-full border border-neutral-700"- style={{ width: `${dotSize}px`, height: `${dotSize}px` }}- />- <div- className="bg-indigo-500 rounded-full opacity-80 blur-[1px]"- style={{ width: `${dotSize}px`, height: `${dotSize}px` }}- />- </div>+ />+ <div+ className="absolute backdrop-blur-md rounded-l-sm z-[-1]"+ style={{+ left: `-${buttonWidth}px`,+ top: '25%',+ width: `${buttonWidth}px`,+ height: '12%',+ backgroundColor: buttonBg,+ borderLeft: `1px solid ${buttonBorderColor}`,+ borderTop: `1px solid ${buttonBorderColor}`,+ borderBottom: `1px solid ${buttonBorderColor}`,+ boxShadow: buttonShadow+ }}+ />+ <div+ className="absolute backdrop-blur-md rounded-r-sm z-[-1]"+ style={{+ right: `-${buttonWidth}px`,+ top: '28%',+ width: `${buttonWidth}px`,+ height: '14%',+ backgroundColor: buttonBg,+ borderRight: `1px solid ${buttonBorderColor}`,+ borderTop: `1px solid ${buttonBorderColor}`,+ borderBottom: `1px solid ${buttonBorderColor}`,+ boxShadow: buttonShadow+ }}+ />- <div- className="absolute top-0 w-full flex items-center justify-between z-20"+ <div+ className="relative w-full h-full overflow-hidden flex flex-col shadow-inner"style={{- height: `${statusBarHeight}px`,- padding: `0 ${statusBarPaddingX}px`,+ backgroundColor: screenBg,+ borderRadius: `${cornerRadius * 2.3}px`,+ border: `1px solid ${screenBorderColor}`,}}>- <span- className="font-bold tracking-tight"- style={{ fontSize: `${timeFontSize}px`, color: statusBarText }}+ <div+ className="absolute left-1/2 -translate-x-1/2 rounded-full z-30 flex items-center justify-between shadow-sm"+ style={{+ top: `${notchTop}px`,+ width: `${notchWidth}px`,+ height: `${notchHeight}px`,+ backgroundColor: notchBg,+ padding: `0 ${notchPaddingX}px`+ }}>- 9:41- </span>- <div className="flex items-center" style={{ gap: `${iconsGap}px` }}>- <div className="flex items-end" style={{ gap: '1px', height: `${batteryHeight * 0.8}px` }}>- <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '40%', backgroundColor: statusBarText }} />- <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '60%', backgroundColor: statusBarText }} />- <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '80%', backgroundColor: statusBarText }} />- <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '100%', backgroundColor: statusBarTextDim }} />- </div>- <Icon icon="mdi:wifi" style={{ width: `${wifiSize}px`, height: `${wifiSize}px`, color: statusBarText }} />- <div- className="relative rounded-[2px] flex items-center"- style={{- width: `${batteryWidth}px`,- height: `${batteryHeight}px`,- padding: '1px',- border: `1px solid ${statusBarTextDim}`- }}- >- <div className="h-full rounded-[0.5px]" style={{ width: '70%', backgroundColor: statusBarText }} />- <div className="absolute rounded-r-full" style={{ right: '-2px', width: '1px', height: '40%', backgroundColor: statusBarTextDim }} />+ <div className="bg-neutral-500 rounded-full border border-neutral-700" style={{ width: `${dotSize}px`, height: `${dotSize}px` }} />+ <div className="bg-indigo-500 rounded-full opacity-80 blur-[1px]" style={{ width: `${dotSize}px`, height: `${dotSize}px` }} />+ </div>++ <div+ className="absolute top-0 w-full flex items-center justify-between z-20"+ style={{+ height: `${statusBarHeight}px`,+ padding: `0 ${statusBarPaddingX}px`,+ }}+ >+ <span className="font-bold tracking-tight" style={{ fontSize: `${timeFontSize}px`, color: statusBarText }}>+ 9:41+ </span>+ <div className="flex items-center" style={{ gap: `${iconsGap}px` }}>+ <div className="flex items-end" style={{ gap: '1px', height: `${batteryHeight * 0.8}px` }}>+ <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '40%', backgroundColor: statusBarText }} />+ <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '60%', backgroundColor: statusBarText }} />+ <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '80%', backgroundColor: statusBarText }} />+ <div className="rounded-[0.5px]" style={{ width: `${signalBarWidth}px`, height: '100%', backgroundColor: statusBarTextDim }} />+ </div>+ <Icon icon="mdi:wifi" style={{ width: `${wifiSize}px`, height: `${wifiSize}px`, color: statusBarText }} />+ <div className="relative rounded-[2px] flex items-center" style={{ width: `${batteryWidth}px`, height: `${batteryHeight}px`, padding: '1px', border: `1px solid ${statusBarTextDim}` }}>+ <div className="h-full rounded-[0.5px]" style={{ width: '70%', backgroundColor: statusBarText }} />+ <div className="absolute rounded-r-full" style={{ right: '-2px', width: '1px', height: '40%', backgroundColor: statusBarTextDim }} />+ </div></div></div>- </div>- <div- className="relative w-full h-full"- style={{ paddingTop: `${contentPaddingTop}px` }}- >- <div className="relative z-10 w-full h-full">- {children}+ <div className="relative w-full h-full" style={{ paddingTop: `${contentPaddingTop}px` }}>+ <div className="relative z-10 w-full h-full">+ {children}+ </div></div>- </div>- <div- className="absolute left-1/2 -translate-x-1/2 rounded-full z-20 pointer-events-none"- style={{- bottom: `${homeIndicatorBottom}px`,- width: `${homeIndicatorWidth}px`,- height: `${homeIndicatorHeight}px`,- backgroundColor: homeIndicatorBg- }}- />+ <div+ className="absolute left-1/2 -translate-x-1/2 rounded-full z-20 pointer-events-none"+ style={{+ bottom: `${homeIndicatorBottom}px`,+ width: `${homeIndicatorWidth}px`,+ height: `${homeIndicatorHeight}px`,+ backgroundColor: homeIndicatorBg+ }}+ />+ </div></div></div></div>diff --git a/app/components/ui/editor/mockups/GlassUIContainerMockup.tsx b/app/components/ui/editor/mockups/GlassUIContainerMockup.tsxindex 900ca11..7b4000f 100644--- a/app/components/ui/editor/mockups/GlassUIContainerMockup.tsx+++ b/app/components/ui/editor/mockups/GlassUIContainerMockup.tsx@@ -1,41 +1,56 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";interface GlassUIContainerProps extends MockupRenderProps {- shadows?: number;- roundedCorners?: number;+ shadows?: number;+ roundedCorners?: number;}export function GlassUIContainerMockup({- children,- config,- className = "",- shadows = 20,- roundedCorners+ children,+ config,+ className = "",+ shadows = 20,+ roundedCorners,+ maskStyles,}: GlassUIContainerProps) {- const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;+ const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;++ return (+ <div className={`relative w-full h-full ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"+ style={{+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",+ }}+ />- return (+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,+ }}+ ><div- className={`glass-border relative w-full h-full flex flex-col overflow-hidden ${className}`}+ className="glass-border w-full h-full flex flex-col overflow-hidden"+ style={{+ borderRadius: `${cornerRadius}px`,+ borderTop: "1px solid rgba(255,255,255,0.6)",+ borderLeft: "1px solid rgba(255,255,255,0.6)",+ }}+ >+ <div+ className="flex-1 relative overflow-hidden"style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : "none",- borderTop: "1px solid rgba(255,255,255,0.6)",- borderLeft: "1px solid rgba(255,255,255,0.6)",+ borderRadius: `${Math.max(0, cornerRadius - 3)}px`,}}- >- <div- className="flex-1 relative overflow-hidden"- style={{- borderRadius: `${Math.max(0, cornerRadius - 3)}px`,- }}- >- {children}- </div>+ >+ {children}+ </div></div>- );+ </div>+ </div>+ );}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/HardShellMockup.tsx b/app/components/ui/editor/mockups/HardShellMockup.tsxindex 96a7fb1..f010628 100644--- a/app/components/ui/editor/mockups/HardShellMockup.tsx+++ b/app/components/ui/editor/mockups/HardShellMockup.tsx@@ -1,201 +1,168 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";interface HardShellMockupProps extends MockupRenderProps {- shadows?: number;- roundedCorners?: number;+ shadows?: number;+ roundedCorners?: number;}export function HardShellMockup({- children,- config,- className = "",- shadows = 50,- roundedCorners+ children,+ config,+ className = "",+ shadows = 50,+ roundedCorners,+ maskStyles,}: HardShellMockupProps) {- const isDark = config.darkMode;- const frameColor = isDark ? config.frameColor : "#ffffff";- const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;-- const headerScale = (config.headerScale || 100) / 100;-- const buttonWidth = 7 * headerScale;-- const outerPadding = 6 * headerScale;- const bezelPadding = 4 * headerScale;-- const cameraTop = 10 * headerScale;- const cameraSize = 14 * headerScale;- const cameraLensSize = 5 * headerScale;-- const statusBarHeight = 32 * headerScale;- const statusBarPaddingX = 16 * headerScale;- const timeFontSize = 12 * headerScale;- const networkFontSize = 10 * headerScale;-- const signalBarWidth = 3 * headerScale;- const batteryWidth = 22 * headerScale;- const batteryHeight = 11 * headerScale;-- const contentPaddingTop = 44 * headerScale;-- const homeIndicatorWidth = 112 * headerScale;- const homeIndicatorHeight = 6 * headerScale;- const homeIndicatorBottom = 8 * headerScale;-- const screenBg = isDark ? "#000000" : "#f8fafc";- const textColor = isDark ? "#ffffff" : "#000000";-- const frameBorderColor = isDark ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.2)";- const homeIndicatorBg = isDark ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.2)";+ const isDark = config.darkMode;+ const frameColor = isDark ? config.frameColor : "#ffffff";+ const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;- const buttonBgColor = isDark ? "rgba(255, 255, 255, 0.15)" : "#ffffff";- const buttonBorderColor = isDark ? "rgba(255, 255, 255, 0.2)" : "#e5e5e5";+ const headerScale = (config.headerScale || 100) / 100;- return (- <div className={`relative w-full h-full flex flex-col items-center justify-center ${className}`}>-- <div- className="relative w-full h-full flex items-center justify-center shadow-2xl"- style={{- padding: `${outerPadding}px`,- backgroundColor: frameColor,- borderRadius: `${cornerRadius * 1.5}px`,- border: `1px solid ${frameBorderColor}`,- boxShadow: shadows > 0- ? `0 ${shadows / 2}px ${shadows}px -12px rgba(0,0,0,1)`- : 'none',- }}- >- <div- className="absolute shadow-inner rounded-r-md"- style={{- right: `-${buttonWidth}px`,- top: '18%',- width: `${buttonWidth}px`,- height: '9%',- backgroundColor: buttonBgColor,- borderTop: `1px solid ${buttonBorderColor}`,- borderRight: `1px solid ${buttonBorderColor}`,- borderBottom: `1px solid ${buttonBorderColor}`,- }}- />-- <div- className="absolute shadow-inner rounded-r-md"- style={{- right: `-${buttonWidth}px`,- top: '31%',- width: `${buttonWidth}px`,- height: '5%',- backgroundColor: buttonBgColor,- borderTop: `1px solid ${buttonBorderColor}`,- borderRight: `1px solid ${buttonBorderColor}`,- borderBottom: `1px solid ${buttonBorderColor}`,- }}- />+ const buttonWidth = 7 * headerScale;+ const outerPadding = 6 * headerScale;+ const bezelPadding = 4 * headerScale;- <div- className="relative w-full h-full overflow-hidden flex flex-col"- style={{- backgroundColor: "#000000",- padding: `${bezelPadding}px`,- borderRadius: `${cornerRadius * 1.2}px`,- boxShadow: 'inset 0 0 4px rgba(0,0,0,1)'- }}- >- <div- className="relative w-full h-full flex flex-col overflow-hidden"- style={{- backgroundColor: screenBg,- borderRadius: `${cornerRadius * 0.8}px`,- }}- >- <div- className="absolute left-1/2 -translate-x-1/2 bg-black rounded-full z-30 flex items-center justify-center"- style={{- top: `${cameraTop}px`,- width: `${cameraSize}px`,- height: `${cameraSize}px`,- boxShadow: 'inset 0 0 2px rgba(255,255,255,0.15)'- }}- >- <div- className="rounded-full blur-[0.5px]"- style={{- width: `${cameraLensSize}px`,- height: `${cameraLensSize}px`,- backgroundColor: 'rgba(30, 58, 138, 0.6)'- }}- />- </div>+ const cameraTop = 10 * headerScale;+ const cameraSize = 14 * headerScale;+ const cameraLensSize = 5 * headerScale;++ const statusBarHeight = 32 * headerScale;+ const statusBarPaddingX = 16 * headerScale;+ const timeFontSize = 12 * headerScale;+ const networkFontSize = 10 * headerScale;+ const signalBarWidth = 3 * headerScale;+ const batteryWidth = 22 * headerScale;+ const batteryHeight = 11 * headerScale;++ const contentPaddingTop = 44 * headerScale;+ const homeIndicatorWidth = 112 * headerScale;+ const homeIndicatorHeight = 6 * headerScale;+ const homeIndicatorBottom = 8 * headerScale;- <div- className="absolute top-0 w-full flex items-center justify-between z-20"- style={{- height: `${statusBarHeight}px`,- padding: `0 ${statusBarPaddingX}px`,- color: textColor- }}- >- <span- className="font-medium tracking-tight mt-1"- style={{ fontSize: `${timeFontSize}px` }}- >- 11:43- </span>+ const screenBg = isDark ? "#000000" : "#f8fafc";+ const textColor = isDark ? "#ffffff" : "#000000";+ const frameBorderColor = isDark ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.2)";+ const homeIndicatorBg = isDark ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.2)";- <div className="flex items-center mt-1" style={{ gap: `${6 * headerScale}px` }}>- <div className="font-bold" style={{ fontSize: `${networkFontSize}px` }}>5G</div>-- <div className="flex items-end" style={{ gap: '1px', height: `${12 * headerScale}px` }}>- <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '50%', backgroundColor: textColor }} />- <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '65%', backgroundColor: textColor }} />- <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '80%', backgroundColor: textColor }} />- <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '100%', backgroundColor: textColor }} />- </div>+ const buttonBgColor = isDark ? "rgba(255, 255, 255, 0.15)" : "#ffffff";+ const buttonBorderColor = isDark ? "rgba(255, 255, 255, 0.2)" : "#e5e5e5";- <div className="flex items-center" style={{ marginLeft: `${2 * headerScale}px` }}>- <div- className="flex items-center rounded-[3px]"- style={{- width: `${batteryWidth}px`,- height: `${batteryHeight}px`,- border: `1px solid ${textColor}`,- padding: `${1.5 * headerScale}px`,- }}- >- <div- className="h-full rounded-[1px]"- style={{ width: '80%', backgroundColor: textColor }}- />- </div>- </div>- </div>- </div>+ return (+ <div className={`relative w-full h-full flex flex-col items-center justify-center ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"+ style={{+ borderRadius: `${cornerRadius * 1.5}px`,+ boxShadow: shadows > 0 ? `0 ${shadows / 2}px ${shadows}px -12px rgba(0,0,0,1)` : 'none',+ }}+ />- <div- className="relative w-full h-full"- style={{ paddingTop: `${contentPaddingTop}px` }}- >- <div className="relative z-10 w-full h-full">- {children}- </div>- </div>+ <div+ className="relative w-full h-full flex items-center justify-center"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius * 1.5}px`,+ }}+ >+ <div+ className="relative w-full h-full flex items-center justify-center"+ style={{+ padding: `${outerPadding}px`,+ backgroundColor: frameColor,+ borderRadius: `${cornerRadius * 1.5}px`,+ border: `1px solid ${frameBorderColor}`,+ }}+ >+ <div+ className="absolute shadow-inner rounded-r-md"+ style={{+ right: `-${buttonWidth}px`,+ top: '18%',+ width: `${buttonWidth}px`,+ height: '9%',+ backgroundColor: buttonBgColor,+ borderTop: `1px solid ${buttonBorderColor}`,+ borderRight: `1px solid ${buttonBorderColor}`,+ borderBottom: `1px solid ${buttonBorderColor}`,+ }}+ />+ <div+ className="absolute shadow-inner rounded-r-md"+ style={{+ right: `-${buttonWidth}px`,+ top: '31%',+ width: `${buttonWidth}px`,+ height: '5%',+ backgroundColor: buttonBgColor,+ borderTop: `1px solid ${buttonBorderColor}`,+ borderRight: `1px solid ${buttonBorderColor}`,+ borderBottom: `1px solid ${buttonBorderColor}`,+ }}+ />- <div- className="absolute left-1/2 -translate-x-1/2 rounded-full z-20"- style={{- bottom: `${homeIndicatorBottom}px`,- width: `${homeIndicatorWidth}px`,- height: `${homeIndicatorHeight}px`,- backgroundColor: homeIndicatorBg- }}- />+ <div+ className="relative w-full h-full overflow-hidden flex flex-col"+ style={{+ backgroundColor: "#000000",+ padding: `${bezelPadding}px`,+ borderRadius: `${cornerRadius * 1.2}px`,+ boxShadow: 'inset 0 0 4px rgba(0,0,0,1)',+ }}+ >+ <div+ className="relative w-full h-full flex flex-col overflow-hidden"+ style={{ backgroundColor: screenBg, borderRadius: `${cornerRadius * 0.8}px` }}+ >+ <div+ className="absolute left-1/2 -translate-x-1/2 bg-black rounded-full z-30 flex items-center justify-center"+ style={{ top: `${cameraTop}px`, width: `${cameraSize}px`, height: `${cameraSize}px`, boxShadow: 'inset 0 0 2px rgba(255,255,255,0.15)' }}+ >+ <div+ className="rounded-full blur-[0.5px]"+ style={{ width: `${cameraLensSize}px`, height: `${cameraLensSize}px`, backgroundColor: 'rgba(30, 58, 138, 0.6)' }}+ />+ </div>++ <div+ className="absolute top-0 w-full flex items-center justify-between z-20"+ style={{ height: `${statusBarHeight}px`, padding: `0 ${statusBarPaddingX}px`, color: textColor }}+ >+ <span className="font-medium tracking-tight mt-1" style={{ fontSize: `${timeFontSize}px` }}>+ 11:43+ </span>+ <div className="flex items-center mt-1" style={{ gap: `${6 * headerScale}px` }}>+ <div className="font-bold" style={{ fontSize: `${networkFontSize}px` }}>5G</div>+ <div className="flex items-end" style={{ gap: '1px', height: `${12 * headerScale}px` }}>+ <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '50%', backgroundColor: textColor }} />+ <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '65%', backgroundColor: textColor }} />+ <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '80%', backgroundColor: textColor }} />+ <div className="rounded-sm" style={{ width: `${signalBarWidth}px`, height: '100%', backgroundColor: textColor }} />+ </div>+ <div className="flex items-center" style={{ marginLeft: `${2 * headerScale}px` }}>+ <div+ className="flex items-center rounded-[3px]"+ style={{ width: `${batteryWidth}px`, height: `${batteryHeight}px`, border: `1px solid ${textColor}`, padding: `${1.5 * headerScale}px` }}+ >+ <div className="h-full rounded-[1px]" style={{ width: '80%', backgroundColor: textColor }} /></div>+ </div></div>+ </div>++ <div className="relative w-full h-full" style={{ paddingTop: `${contentPaddingTop}px` }}>+ <div className="relative z-10 w-full h-full">{children}</div>+ </div>++ <div+ className="absolute left-1/2 -translate-x-1/2 rounded-full z-20"+ style={{ bottom: `${homeIndicatorBottom}px`, width: `${homeIndicatorWidth}px`, height: `${homeIndicatorHeight}px`, backgroundColor: homeIndicatorBg }}+ /></div>+ </div></div>- );+ </div>+ </div>+ );}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/IPhoneSlimMockup.tsx b/app/components/ui/editor/mockups/IPhoneSlimMockup.tsxindex 3baaf61..959fd9f 100644--- a/app/components/ui/editor/mockups/IPhoneSlimMockup.tsx+++ b/app/components/ui/editor/mockups/IPhoneSlimMockup.tsx@@ -1,5 +1,4 @@"use client";-import { Icon } from "@iconify/react";import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";@@ -15,10 +14,12 @@ export function IPhoneSlimMockup({className = "",shadows = 30,roundedCorners,+ maskStyles,}: IPhoneSlimMockupProps) {const isDark = config.darkMode;const frameColor = isDark ? config.frameColor : "#e5e5e5";const cornerRadius = roundedCorners ?? config.cornerRadius;+const headerOpacity = config.headerOpacity ?? 100;const headerScale = (config.headerScale || 100) / 100;@@ -48,160 +49,132 @@ export function IPhoneSlimMockup({return (<div className={`relative w-full h-full flex flex-col ${className}`}><div- className="relative w-full h-full flex flex-col"+ className="absolute inset-0 pointer-events-none"style={{- padding: `${framePadding}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),borderRadius: `${cornerRadius * 2.5}px`,boxShadow: shadows > 0 ? `0 ${shadows}px ${shadows * 2}px rgba(0,0,0,1)` : "none",- border: `1px solid ${borderColor}`,+ }}+ />++ <div+ className="relative w-full h-full flex flex-col"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius * 2.5}px`,}}><div- className="absolute -left-1.25 top-[15%] w-1 h-[6%] rounded-l-sm"+ className="relative w-full h-full flex flex-col"style={{+ padding: `${framePadding}px`,backgroundColor: hexToRgba(frameColor, headerOpacity),- borderLeft: `1px solid ${borderColor}`,- borderTop: `1px solid ${borderColor}`,- borderBottom: `1px solid ${borderColor}`,- }}- />- <div- className="absolute -left-1.25 top-[24%] w-1 h-[12%] rounded-l-sm"- style={{- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderLeft: `1px solid ${borderColor}`,- borderTop: `1px solid ${borderColor}`,- borderBottom: `1px solid ${borderColor}`,- }}- />- <div- className="absolute -right-1.25 top-[28%] w-1 h-[14%] rounded-r-sm"- style={{- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderRight: `1px solid ${borderColor}`,- borderTop: `1px solid ${borderColor}`,- borderBottom: `1px solid ${borderColor}`,- }}- />-- <div- className="relative w-full h-full overflow-hidden flex flex-col border border-black"- style={{- backgroundColor: "#000000",- borderRadius: `${cornerRadius * 2.2}px`,+ borderRadius: `${cornerRadius * 2.5}px`,+ border: `1px solid ${borderColor}`,}}><div- className="absolute left-1/2 -translate-x-1/2 w-[28%] bg-black rounded-full z-30 flex items-center justify-center"+ className="absolute -left-1.25 top-[15%] w-1 h-[6%] rounded-l-sm"style={{- top: `${dynamicIslandTop}px`,- minHeight: `${dynamicIslandMinHeight}px`,- height: "4%",- padding: `0 ${dynamicIslandPaddingX}px`,- gap: `${dynamicIslandGap}px`,- boxShadow: "0 2px 8px rgba(0,0,0,0.3)",+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderLeft: `1px solid ${borderColor}`,+ borderTop: `1px solid ${borderColor}`,+ borderBottom: `1px solid ${borderColor}`,}}- >- <div- className="bg-indigo-500/40 rounded-full blur-[1px]"- style={{ width: `${dotSize}px`, height: `${dotSize}px` }}- />- <div- className="bg-neutral-800 rounded-full border border-white/10"- style={{ width: `${dotSize}px`, height: `${dotSize}px` }}- />- </div>+ />+ <div+ className="absolute -left-1.25 top-[24%] w-1 h-[12%] rounded-l-sm"+ style={{+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderLeft: `1px solid ${borderColor}`,+ borderTop: `1px solid ${borderColor}`,+ borderBottom: `1px solid ${borderColor}`,+ }}+ />+ <div+ className="absolute -right-1.25 top-[28%] w-1 h-[14%] rounded-r-sm"+ style={{+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderRight: `1px solid ${borderColor}`,+ borderTop: `1px solid ${borderColor}`,+ borderBottom: `1px solid ${borderColor}`,+ }}+ /><div- className="absolute -top-2 w-full flex items-center justify-between z-20"+ className="relative w-full h-full overflow-hidden flex flex-col border border-black"style={{- height: `max(${statusBarHeight}px, 7%)`,- padding: `0 ${statusBarPaddingX}px`,+ backgroundColor: "#000000",+ borderRadius: `${cornerRadius * 2.2}px`,}}>- <span- className="font-bold tracking-tight leading-none flex items-center"- style={{ fontSize: `${timeFontSize}px`, color: statusBarText }}- >- 9:41- </span><div- className="flex items-center opacity-90"- style={{ gap: `${iconsGap}px` }}+ className="absolute left-1/2 -translate-x-1/2 w-[28%] bg-black rounded-full z-30 flex items-center justify-center"+ style={{+ top: `${dynamicIslandTop}px`,+ minHeight: `${dynamicIslandMinHeight}px`,+ height: "4%",+ padding: `0 ${dynamicIslandPaddingX}px`,+ gap: `${dynamicIslandGap}px`,+ boxShadow: "0 2px 8px rgba(0,0,0,0.3)",+ }}><div- className="flex items-end"- style={{ gap: "1.5px", height: `${batteryHeight}px` }}- >- <div- className="rounded-full"- style={{ width: `${signalBarWidth}px`, height: "30%", backgroundColor: statusBarText }}- />- <div- className="rounded-full"- style={{ width: `${signalBarWidth}px`, height: "55%", backgroundColor: statusBarText }}- />- <div- className="rounded-full"- style={{ width: `${signalBarWidth}px`, height: "80%", backgroundColor: statusBarText }}- />- <div- className="rounded-full"- style={{ width: `${signalBarWidth}px`, height: "100%", backgroundColor: statusBarText }}- />- </div>- <Icon- icon="mdi:wifi"- style={{- width: `${wifiSize}px`,- height: `${wifiSize}px`,- color: statusBarText,- display: "block",- }}+ className="bg-indigo-500/40 rounded-full blur-[1px]"+ style={{ width: `${dotSize}px`, height: `${dotSize}px` }}/><div- className="border rounded-[3px] p-px flex items-center relative"- style={{- width: `${batteryWidth}px`,- height: `${batteryHeight}px`,- borderColor: `${statusBarText}50`,- }}+ className="bg-neutral-800 rounded-full border border-white/10"+ style={{ width: `${dotSize}px`, height: `${dotSize}px` }}+ />+ </div>++ <div+ className="absolute -top-2 w-full flex items-center justify-between z-20"+ style={{+ height: `max(${statusBarHeight}px, 7%)`,+ padding: `0 ${statusBarPaddingX}px`,+ }}+ >+ <span+ className="font-bold tracking-tight leading-none flex items-center"+ style={{ fontSize: `${timeFontSize}px`, color: statusBarText }}>- <div- className="h-full w-[85%] rounded-[1px]"- style={{ backgroundColor: statusBarText }}+ 9:41+ </span>+ <div className="flex items-center opacity-90" style={{ gap: `${iconsGap}px` }}>+ <div className="flex items-end" style={{ gap: "1.5px", height: `${batteryHeight}px` }}>+ <div className="rounded-full" style={{ width: `${signalBarWidth}px`, height: "30%", backgroundColor: statusBarText }} />+ <div className="rounded-full" style={{ width: `${signalBarWidth}px`, height: "55%", backgroundColor: statusBarText }} />+ <div className="rounded-full" style={{ width: `${signalBarWidth}px`, height: "80%", backgroundColor: statusBarText }} />+ <div className="rounded-full" style={{ width: `${signalBarWidth}px`, height: "100%", backgroundColor: statusBarText }} />+ </div>+ <Icon+ icon="mdi:wifi"+ style={{ width: `${wifiSize}px`, height: `${wifiSize}px`, color: statusBarText, display: "block" }}/><div- className="absolute -right-[3px] w-[2px] h-[40%] rounded-r-[1px]"- style={{ backgroundColor: `${statusBarText}50` }}- />+ className="border rounded-[3px] p-px flex items-center relative"+ style={{ width: `${batteryWidth}px`, height: `${batteryHeight}px`, borderColor: `${statusBarText}50` }}+ >+ <div className="h-full w-[85%] rounded-[1px]" style={{ backgroundColor: statusBarText }} />+ <div className="absolute -right-[3px] w-[2px] h-[40%] rounded-r-[1px]" style={{ backgroundColor: `${statusBarText}50` }} />+ </div></div></div>- </div>- <div- className="w-full h-full relative overflow-hidden"- style={{ paddingTop: `max(${statusBarHeight}px, 8%)` }}- >+ <div className="w-full h-full relative overflow-hidden" style={{ paddingTop: `max(${statusBarHeight}px, 8%)` }}>+ <div+ className="absolute inset-0"+ style={{ backgroundColor: screenBg, top: `max(${statusBarHeight}px, 8%)` }}+ />+ <div className="relative z-10 w-full h-full">{children}</div>+ </div>+<div- className="absolute inset-0"- style={{- backgroundColor: screenBg,- top: `max(${statusBarHeight}px, 8%)`,- }}+ className="absolute left-1/2 -translate-x-1/2 w-[35%] rounded-full z-20"+ style={{ bottom: `${homeIndicatorBottom}px`, height: `${homeIndicatorHeight}px`, backgroundColor: `${statusBarText}15` }}/>- <div className="relative z-10 w-full h-full">{children}</div></div>-- <div- className="absolute left-1/2 -translate-x-1/2 w-[35%] rounded-full z-20"- style={{- bottom: `${homeIndicatorBottom}px`,- height: `${homeIndicatorHeight}px`,- backgroundColor: `${statusBarText}15`,- }}- /></div></div></div>diff --git a/app/components/ui/editor/mockups/MacosContainerGlassMockup.tsx b/app/components/ui/editor/mockups/MacosContainerGlassMockup.tsxindex 854b5eb..ae7a88d 100644--- a/app/components/ui/editor/mockups/MacosContainerGlassMockup.tsx+++ b/app/components/ui/editor/mockups/MacosContainerGlassMockup.tsx@@ -1,5 +1,4 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";interface MacosContainerGlassMockupProps extends MockupRenderProps {@@ -12,58 +11,67 @@ export function MacosContainerGlassMockup({config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles,}: MacosContainerGlassMockupProps) {const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;const headerScale = (config.headerScale || 100) / 100;- const dotSize = 8 * headerScale;++ const dotSize = 10 * headerScale;const dotGap = 8 * headerScale;const headerPaddingX = 4 * headerScale;const headerPaddingB = 8 * headerScale;+return (- <div- className={`glass-border relative w-full h-full flex flex-col overflow-hidden ${className}`}- style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : "none",- borderTop: "1px solid rgba(255,255,255,0.6)",- borderLeft: "1px solid rgba(255,255,255,0.6)",- }}- >+ <div className={`relative w-full h-full ${className}`}><div- className="flex items-center shrink-0"+ className="absolute inset-0 pointer-events-none"style={{- paddingLeft: `${headerPaddingX}px`,- paddingRight: `${headerPaddingX}px`,- paddingBottom: `${headerPaddingB}px`,- paddingTop: `${headerPaddingX}px`,+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",}}- >- <div className="flex" style={{ gap: `${dotGap}px` }}>- <div- className="rounded-full bg-white/80 shadow-sm"- style={{ width: `${dotSize}px`, height: `${dotSize}px` }}- />- <div- className="rounded-full bg-white/80 shadow-sm"- style={{ width: `${dotSize}px`, height: `${dotSize}px` }}- />- <div- className="rounded-full bg-white/80 shadow-sm"- style={{ width: `${dotSize}px`, height: `${dotSize}px` }}- />- </div>- </div>+ /><div- className="flex-1 relative overflow-hidden"+ className="relative w-full h-full overflow-hidden"style={{- borderRadius: `${Math.max(0, cornerRadius - 3)}px`,+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,}}>- {children}+ <div+ className="glass-border w-full h-full flex flex-col overflow-hidden"+ style={{+ borderRadius: `${cornerRadius}px`,+ borderTop: "1px solid rgba(255,255,255,0.6)",+ borderLeft: "1px solid rgba(255,255,255,0.6)",+ }}+ >+ <div+ className="flex items-center shrink-0 mb-0.5"+ style={{+ paddingLeft: `${headerPaddingX}px`,+ paddingRight: `${headerPaddingX}px`,+ paddingBottom: `${headerPaddingB}px`,+ paddingTop: `${headerPaddingX}px`,+ }}+ >+ <div className="flex" style={{ gap: `${dotGap}px` }}>+ <div className="rounded-full bg-white/80 shadow-sm" style={{ width: `${dotSize}px`, height: `${dotSize}px` }} />+ <div className="rounded-full bg-white/80 shadow-sm" style={{ width: `${dotSize}px`, height: `${dotSize}px` }} />+ <div className="rounded-full bg-white/80 shadow-sm" style={{ width: `${dotSize}px`, height: `${dotSize}px` }} />+ </div>+ </div>++ <div+ className="flex-1 relative overflow-hidden"+ style={{+ borderRadius: `${Math.max(0, cornerRadius - 3)}px`,+ }}+ >+ {children}+ </div>+ </div></div></div>);diff --git a/app/components/ui/editor/mockups/MacosDarkIdeMockup.tsx b/app/components/ui/editor/mockups/MacosDarkIdeMockup.tsxindex 29bd94a..ff6fd4f 100644--- a/app/components/ui/editor/mockups/MacosDarkIdeMockup.tsx+++ b/app/components/ui/editor/mockups/MacosDarkIdeMockup.tsx@@ -1,125 +1,139 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";import { deriveSearchBg } from "@/lib/color.utils";interface MacosDarkIdeMockupProps extends MockupRenderProps {- shadows?: number;- roundedCorners?: number;+ shadows?: number;+ roundedCorners?: number;}export function MacosDarkIdeMockup({- children,- config,- className = "",- shadows = 20,- roundedCorners+ children,+ config,+ className = "",+ shadows = 20,+ roundedCorners,+ maskStyles,}: MacosDarkIdeMockupProps) {- const isDark = config.darkMode;- const frameColor = config.frameColor;- const url = config.url;- const cornerRadius = roundedCorners ?? config.cornerRadius;- const headerOpacity = config.headerOpacity ?? 100;- const headerScale = (config.headerScale || 100) / 100;+ const isDark = config.darkMode;+ const frameColor = config.frameColor;+ const url = config.url;+ const cornerRadius = roundedCorners ?? config.cornerRadius;++ const headerOpacity = config.headerOpacity ?? 100;+ const headerScale = (config.headerScale || 100) / 100;++ const headerHeight = 35 * headerScale;+ const menuFontSize = 12 * headerScale;+ const menuPaddingX = 8 * headerScale;+ const menuPaddingY = 4 * headerScale;+ const menuGap = 4 * headerScale;+ const headerPaddingX = 12 * headerScale;++ const searchHeight = 22 * headerScale;+ const searchIconSize = 10 * headerScale;+ const searchFontSize = 11 * headerScale;+ const searchPaddingX = 8 * headerScale;+ const searchGap = 6 * headerScale;- const headerHeight = 35 * headerScale;- const menuFontSize = 12 * headerScale;- const menuPaddingX = 8 * headerScale;- const menuPaddingY = 4 * headerScale;- const menuGap = 4 * headerScale;- const headerPaddingX = 12 * headerScale;- const searchHeight = 22 * headerScale;- const searchIconSize = 10 * headerScale;- const searchFontSize = 11 * headerScale;- const searchPaddingX = 8 * headerScale;- const searchGap = 6 * headerScale;+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";+ const textColor = isDark ? "#cccccc" : "#333333";+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";+ const searchBgBase = deriveSearchBg(frameColor);- const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";- const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";- const textColor = isDark ? "#cccccc" : "#333333";- const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";- const searchBgBase = deriveSearchBg(frameColor);+ return (+ <div className={`relative w-full h-full ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"+ style={{+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",+ }}+ />- return (+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,+ }}+ ><div- className={`relative w-full h-full flex flex-col overflow-hidden ${className}`}+ className="w-full h-full flex flex-col overflow-hidden"+ style={{ borderRadius: `${cornerRadius}px` }}+ >+ <div+ className="flex items-center justify-between select-none shrink-0"style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : "none",+ height: `${headerHeight}px`,+ paddingLeft: `${headerPaddingX}px`,+ paddingRight: `${headerPaddingX}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ color: textColor,}}- >+ >+ <div className="flex items-center" style={{ gap: `${menuGap * 2}px` }}>+ <div className="flex items-center" style={{ gap: `${6 * headerScale}px` }}>+ <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#ff5f57", border: "1px solid #e0443e" }} />+ <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#febc2e", border: "1px solid #d89f24" }} />+ <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#28c840", border: "1px solid #1aab29" }} />+ </div>+ <div className="flex items-center" style={{ fontSize: `${menuFontSize}px`, color: isDark ? "#999999" : "#555555" }}>+ {["File", "Edit", "Selection", "View", "Go"].map((item, i) => (+ <span+ key={item}+ className={`cursor-default ${i >= 3 ? "hidden md:block" : ""}`}+ style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}+ >+ {item}+ </span>+ ))}+ </div>+ </div>+<div- className="flex items-center justify-between select-none shrink-0"+ className="flex-1 flex justify-center"+ style={{ padding: `0 ${headerPaddingX}px`, maxWidth: `${400 * headerScale}px` }}+ >+ <div+ className="flex items-center justify-center w-full rounded-md cursor-text"style={{- height: `${headerHeight}px`,- paddingLeft: `${headerPaddingX}px`,- paddingRight: `${headerPaddingX}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,- color: textColor,+ height: `${searchHeight}px`,+ gap: `${searchGap}px`,+ padding: `0 ${searchPaddingX}px`,+ backgroundColor: hexToRgba(searchBgBase, headerOpacity),+ border: `1px solid ${searchBorder}`,}}- >- <div className="flex items-center" style={{ gap: `${menuGap * 2}px` }}>- <div className="flex items-center" style={{ gap: `${6 * headerScale}px` }}>- <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#ff5f57", border: "1px solid #e0443e" }} />- <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#febc2e", border: "1px solid #d89f24" }} />- <div style={{ width: `${10 * headerScale}px`, height: `${10 * headerScale}px`, borderRadius: "50%", backgroundColor: "#28c840", border: "1px solid #1aab29" }} />- </div>-- <div className="flex items-center" style={{ fontSize: `${menuFontSize}px`, color: isDark ? "#999999" : "#555555" }}>- {["File", "Edit", "Selection", "View", "Go"].map((item, i) => (- <span- key={item}- className={`cursor-default ${i >= 3 ? "hidden md:block" : ""}`}- style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}- >- {item}- </span>- ))}- </div>- </div>-- <div- className="flex-1 flex justify-center"- style={{ padding: `0 ${headerPaddingX}px`, maxWidth: `${400 * headerScale}px` }}- >- <div- className="flex items-center justify-center w-full rounded-md cursor-text"- style={{- height: `${searchHeight}px`,- gap: `${searchGap}px`,- padding: `0 ${searchPaddingX}px`,- backgroundColor: hexToRgba(searchBgBase, headerOpacity),- border: `1px solid ${searchBorder}`,- }}- >- <svg style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px`, opacity: 0.5, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>- </svg>- <span className="truncate" style={{ fontSize: `${searchFontSize}px`, color: textColor }}>- {url || "openvid"}- </span>- </div>- </div>-- <div className="flex items-center justify-end" style={{ width: `${80 * headerScale}px`, color: isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)" }}>- <svg style={{ width: `${14 * headerScale}px`, height: `${14 * headerScale}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M4 6h16M4 12h16M4 18h16" strokeWidth="1.5" strokeLinecap="round"/>- </svg>- </div>+ >+ <svg style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px`, opacity: 0.5, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"/>+ </svg>+ <span className="truncate" style={{ fontSize: `${searchFontSize}px`, color: textColor }}>+ {url || "openvid"}+ </span>+ </div></div>- <div- className="flex-1 relative overflow-hidden"- style={{ backgroundColor: bgColor }}- >- {children}+ <div className="flex items-center justify-end" style={{ width: `${80 * headerScale}px`, color: isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)" }}>+ <svg style={{ width: `${14 * headerScale}px`, height: `${14 * headerScale}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M4 6h16M4 12h16M4 18h16" strokeWidth="1.5" strokeLinecap="round"/>+ </svg></div>+ </div>++ <div+ className="flex-1 relative overflow-hidden"+ style={{ backgroundColor: bgColor }}+ >+ {children}+ </div></div>- );+ </div>+ </div>+ );}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx b/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsxindex 925f93b..312a359 100644--- a/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx+++ b/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx@@ -1,5 +1,4 @@"use client";-import { Icon } from "@iconify/react";import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";@@ -15,22 +14,23 @@ export function MacosGhostGlassMockup({config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles,}: MacosGhostGlassMockupProps) {const isDark = config.darkMode;const frameColor = config.frameColor;const url = config.url;const cornerRadius = roundedCorners ?? config.cornerRadius;- const headerOpacity = config.headerOpacity ?? 100;+ const headerOpacity = config.headerOpacity ?? 100;const headerScale = (config.headerScale || 100) / 100;const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";const textColor = isDark ? "#9ca3af" : "#6b7280";const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";-const urlBarBgBase = deriveSearchBg(frameColor);+const baseHeight = 36;const basePadding = 12;const baseGap = 12;@@ -52,132 +52,94 @@ export function MacosGhostGlassMockup({const rightGroupGap = 10 * headerScale;return (- <div- className={`glass-border relative w-full h-full flex flex-col overflow-hidden ${className}`}- style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : 'none',- borderTop: "1px solid rgba(255,255,255,0.6)",- borderLeft: "1px solid rgba(255,255,255,0.6)",- }}- >+ <div className={`relative w-full h-full ${className}`}><div- className="flex items-center justify-between select-none shrink-0"+ className="absolute inset-0 pointer-events-none"style={{- height: `${headerHeight}px`,- padding: `0 ${headerPadding}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",+ }}+ />++ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,}}><div- className="flex items-center"- style={{ gap: `${baseGap * headerScale}px` }}+ className="glass-border w-full h-full flex flex-col overflow-hidden"+ style={{+ borderRadius: `${cornerRadius}px`,+ borderTop: "1px solid rgba(255,255,255,0.6)",+ borderLeft: "1px solid rgba(255,255,255,0.6)",+ }}>- <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>- <div- className="rounded-full border border-gray-400"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- <div- className="rounded-full border border-gray-400"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- <div- className="rounded-full border border-gray-400"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- </div>-<div- className="flex items-center"- style={{ gap: `${navGap}px`, color: textColor }}+ className="flex items-center justify-between select-none shrink-0"+ style={{+ height: `${headerHeight}px`,+ padding: `0 ${headerPadding}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ }}>- <Icon- icon="mdi:menu"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />- <Icon- icon="mdi:chevron-left"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />- <Icon- icon="mdi:chevron-right"- className="opacity-40"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />+ <div className="flex items-center" style={{ gap: `${baseGap * headerScale}px` }}>+ <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>+ <div className="rounded-full border border-gray-400" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full border border-gray-400" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full border border-gray-400" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ </div>++ <div className="flex items-center" style={{ gap: `${navGap}px`, color: textColor }}>+ <Icon icon="mdi:menu" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-left" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-right" className="opacity-40" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div>+ </div>++ <div className="flex-1 max-w-xl" style={{ margin: `0 ${urlBarMargin}px` }}>+ <div+ className="rounded w-full flex items-center justify-between"+ style={{+ height: `${urlBarHeight}px`,+ padding: `0 ${urlBarPadding}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ border: `1px solid ${urlBarBorder}`,+ color: textColor,+ }}+ >+ <Icon icon="mdi:lock" className="opacity-60" style={{ width: `${buttonSize}px`, height: `${buttonSize}px`, flexShrink: 0 }} />+ <span className="flex-1 text-center font-medium truncate" style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}>+ {url}+ </span>+ <Icon icon="mdi:refresh" className="opacity-60" style={{ width: `${buttonSize}px`, height: `${buttonSize}px`, flexShrink: 0 }} />+ </div>+ </div>++ <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, color: textColor }}>+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div></div>- </div>- <div- className="flex-1 max-w-xl"- style={{ margin: `0 ${urlBarMargin}px` }}- ><div- className="rounded w-full flex items-center justify-between"+ className="flex-1 relative overflow-hidden"style={{- height: `${urlBarHeight}px`,- padding: `0 ${urlBarPadding}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- border: `1px solid ${urlBarBorder}`,- color: textColor,+ backgroundColor: bgColor,+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,}}>- <Icon- icon="mdi:lock"- className="opacity-60"- style={{- width: `${buttonSize}px`,- height: `${buttonSize}px`,- flexShrink: 0,- }}- />- <span- className="flex-1 text-center font-medium truncate"- style={{- fontSize: `${fontSize}px`,- padding: `0 ${urlBarPadding}px`,- }}- >- {url}- </span>- <Icon- icon="mdi:refresh"- className="opacity-60"- style={{- width: `${buttonSize}px`,- height: `${buttonSize}px`,- flexShrink: 0,- }}- />+ {children}</div></div>-- <div- className="flex items-center"- style={{ gap: `${rightGroupGap}px`, color: textColor }}- >- <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- </div>- </div>-- <div- className="flex-1 relative overflow-hidden"- style={{- backgroundColor: bgColor,- borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,- borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,- }}- >- {children}</div></div>);-}+}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/MacosGhostIdeMockup.tsx b/app/components/ui/editor/mockups/MacosGhostIdeMockup.tsxindex 7faea0f..5ce1f77 100644--- a/app/components/ui/editor/mockups/MacosGhostIdeMockup.tsx+++ b/app/components/ui/editor/mockups/MacosGhostIdeMockup.tsx@@ -1,126 +1,140 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";import { deriveSearchBg } from "@/lib/color.utils";interface MacosGhostIdeMockupProps extends MockupRenderProps {- shadows?: number;- roundedCorners?: number;+ shadows?: number;+ roundedCorners?: number;}export function MacosGhostIdeMockup({- children,- config,- className = "",- shadows = 20,- roundedCorners+ children,+ config,+ className = "",+ shadows = 20,+ roundedCorners,+ maskStyles,}: MacosGhostIdeMockupProps) {- const isDark = config.darkMode;- const frameColor = config.frameColor;- const url = config.url;- const cornerRadius = roundedCorners ?? config.cornerRadius;- const headerOpacity = config.headerOpacity ?? 100;- const headerScale = (config.headerScale || 100) / 100;+ const isDark = config.darkMode;+ const frameColor = config.frameColor;+ const url = config.url;+ const cornerRadius = roundedCorners ?? config.cornerRadius;++ const headerOpacity = config.headerOpacity ?? 100;+ const headerScale = (config.headerScale || 100) / 100;++ const headerHeight = 35 * headerScale;+ const menuFontSize = 12 * headerScale;+ const menuPaddingX = 8 * headerScale;+ const menuPaddingY = 4 * headerScale;+ const menuGap = 4 * headerScale;+ const headerPaddingX = 12 * headerScale;++ const searchHeight = 22 * headerScale;+ const searchIconSize = 10 * headerScale;+ const searchFontSize = 11 * headerScale;+ const searchPaddingX = 8 * headerScale;+ const searchGap = 6 * headerScale;- const headerHeight = 35 * headerScale;- const menuFontSize = 12 * headerScale;- const menuPaddingX = 8 * headerScale;- const menuPaddingY = 4 * headerScale;- const menuGap = 4 * headerScale;- const headerPaddingX = 12 * headerScale;- const searchHeight = 22 * headerScale;- const searchIconSize = 10 * headerScale;- const searchFontSize = 11 * headerScale;- const searchPaddingX = 8 * headerScale;- const searchGap = 6 * headerScale;+ const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";+ const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";+ const textColor = isDark ? "#cccccc" : "#333333";+ const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";+ const searchBgBase = deriveSearchBg(frameColor);+ const dotBorderColor = isDark ? "rgba(255,255,255,0.2)" : "rgba(0,0,0,0.2)";- const bgColor = isDark ? "#1e1e1e" : "#f3f3f3";- const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";- const textColor = isDark ? "#cccccc" : "#333333";- const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";- const searchBgBase = deriveSearchBg(frameColor);- const dotBorderColor = isDark ? "rgba(255,255,255,0.2)" : "rgba(0,0,0,0.2)";+ return (+ <div className={`relative w-full h-full ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"+ style={{+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",+ }}+ />- return (+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,+ }}+ ><div- className={`relative w-full h-full flex flex-col overflow-hidden ${className}`}+ className="w-full h-full flex flex-col overflow-hidden"+ style={{ borderRadius: `${cornerRadius}px` }}+ >+ <div+ className="flex items-center justify-between select-none shrink-0"style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : "none",+ height: `${headerHeight}px`,+ paddingLeft: `${headerPaddingX}px`,+ paddingRight: `${headerPaddingX}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ color: textColor,}}- >+ >+ <div className="flex items-center" style={{ gap: `${menuGap * 2}px` }}>+ <div className="flex items-center" style={{ gap: `${6 * headerScale}px` }}>+ <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: `1px solid ${dotBorderColor}` }} />+ <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: `1px solid ${dotBorderColor}` }} />+ <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: `1px solid ${dotBorderColor}` }} />+ </div>+ <div className="flex items-center" style={{ fontSize: `${menuFontSize}px`, color: isDark ? "#999999" : "#555555" }}>+ {["File", "Edit", "Selection", "View", "Go"].map((item, i) => (+ <span+ key={item}+ className={`cursor-default ${i >= 3 ? "hidden md:block" : ""}`}+ style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}+ >+ {item}+ </span>+ ))}+ </div>+ </div>+<div- className="flex items-center justify-between select-none shrink-0"+ className="flex-1 flex justify-center"+ style={{ padding: `0 ${headerPaddingX}px`, maxWidth: `${400 * headerScale}px` }}+ >+ <div+ className="flex items-center justify-center w-full rounded-md cursor-text"style={{- height: `${headerHeight}px`,- paddingLeft: `${headerPaddingX}px`,- paddingRight: `${headerPaddingX}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,- color: textColor,+ height: `${searchHeight}px`,+ gap: `${searchGap}px`,+ padding: `0 ${searchPaddingX}px`,+ backgroundColor: hexToRgba(searchBgBase, headerOpacity),+ border: `1px solid ${searchBorder}`,}}- >- <div className="flex items-center" style={{ gap: `${menuGap * 2}px` }}>- <div className="flex items-center" style={{ gap: `${6 * headerScale}px` }}>- <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: `1px solid ${dotBorderColor}` }} />- <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: `1px solid ${dotBorderColor}` }} />- <div style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, borderRadius: "50%", backgroundColor: "transparent", border: `1px solid ${dotBorderColor}` }} />- </div>-- <div className="flex items-center" style={{ fontSize: `${menuFontSize}px`, color: isDark ? "#999999" : "#555555" }}>- {["File", "Edit", "Selection", "View", "Go"].map((item, i) => (- <span- key={item}- className={`cursor-default ${i >= 3 ? "hidden md:block" : ""}`}- style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}- >- {item}- </span>- ))}- </div>- </div>-- <div- className="flex-1 flex justify-center"- style={{ padding: `0 ${headerPaddingX}px`, maxWidth: `${400 * headerScale}px` }}- >- <div- className="flex items-center justify-center w-full rounded-md cursor-text"- style={{- height: `${searchHeight}px`,- gap: `${searchGap}px`,- padding: `0 ${searchPaddingX}px`,- backgroundColor: hexToRgba(searchBgBase, headerOpacity),- border: `1px solid ${searchBorder}`,- }}- >- <svg style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px`, opacity: 0.5, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />- </svg>- <span className="truncate" style={{ fontSize: `${searchFontSize}px`, color: textColor }}>- {url || "openvid"}- </span>- </div>- </div>-- <div className="flex items-center justify-end" style={{ width: `${80 * headerScale}px`, color: isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)" }}>- <svg style={{ width: `${14 * headerScale}px`, height: `${14 * headerScale}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path d="M4 6h16M4 12h16M4 18h16" strokeWidth="1.5" strokeLinecap="round" />- </svg>- </div>+ >+ <svg style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px`, opacity: 0.5, flexShrink: 0 }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth="2.5" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" />+ </svg>+ <span className="truncate" style={{ fontSize: `${searchFontSize}px`, color: textColor }}>+ {url || "openvid"}+ </span>+ </div></div>- <div- className="flex-1 relative overflow-hidden"- style={{ backgroundColor: bgColor }}- >- {children}+ <div className="flex items-center justify-end" style={{ width: `${80 * headerScale}px`, color: isDark ? "rgba(163,163,163,0.8)" : "rgba(100,100,100,0.8)" }}>+ <svg style={{ width: `${14 * headerScale}px`, height: `${14 * headerScale}px` }} fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path d="M4 6h16M4 12h16M4 18h16" strokeWidth="1.5" strokeLinecap="round" />+ </svg></div>+ </div>++ <div+ className="flex-1 relative overflow-hidden"+ style={{ backgroundColor: bgColor }}+ >+ {children}+ </div></div>- );+ </div>+ </div>+ );}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/MacosGhostMockup.tsx b/app/components/ui/editor/mockups/MacosGhostMockup.tsxindex 470e746..18b1ac4 100644--- a/app/components/ui/editor/mockups/MacosGhostMockup.tsx+++ b/app/components/ui/editor/mockups/MacosGhostMockup.tsx@@ -1,5 +1,4 @@"use client";-import { Icon } from "@iconify/react";import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";@@ -10,27 +9,28 @@ interface MacosGhostMockupProps extends MockupRenderProps {roundedCorners?: number;}-export function MacosGhostMockup({- children,+export function MacosGhostMockup({+ children,config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles,}: MacosGhostMockupProps) {const isDark = config.darkMode;const frameColor = config.frameColor;const url = config.url;const cornerRadius = roundedCorners ?? config.cornerRadius;+const headerOpacity = config.headerOpacity ?? 100;-const headerScale = (config.headerScale || 100) / 100;-+const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";const textColor = isDark ? "#9ca3af" : "#6b7280";const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";-const urlBarBgBase = deriveSearchBg(frameColor);+const baseHeight = 36;const basePadding = 12;const baseGap = 12;@@ -38,7 +38,7 @@ export function MacosGhostMockup({const baseIconSize = 14;const baseUrlBarHeight = 24;const baseFontSize = 12;-+const headerHeight = baseHeight * headerScale;const headerPadding = basePadding * headerScale;const buttonGroupGap = 6 * headerScale;@@ -52,126 +52,96 @@ export function MacosGhostMockup({const rightGroupGap = 10 * headerScale;return (- <div- className={`relative w-full h-full flex flex-col overflow-hidden ${className}`}- style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : 'none',- }}- >- <div- className="flex items-center justify-between select-none shrink-0"+ <div className={`relative w-full h-full ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"style={{- height: `${headerHeight}px`,- padding: `0 ${headerPadding}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : 'none',}}- >- <div- className="flex items-center"- style={{ gap: `${baseGap * headerScale}px` }}- >- <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>- <div- className="rounded-full border border-gray-400"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- <div- className="rounded-full border border-gray-400"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- <div- className="rounded-full border border-gray-400"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- </div>-- <div- className="flex items-center"- style={{ gap: `${navGap}px`, color: textColor }}- >- <Icon- icon="mdi:menu"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />- <Icon- icon="mdi:chevron-left"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />- <Icon- icon="mdi:chevron-right"- className="opacity-40"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />- </div>- </div>+ />- <div- className="flex-1 max-w-xl"- style={{ margin: `0 ${urlBarMargin}px` }}+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,+ }}+ >+ <div+ className="w-full h-full flex flex-col overflow-hidden"+ style={{ borderRadius: `${cornerRadius}px` }}>- <div- className="rounded w-full flex items-center justify-between"+ <div+ className="flex items-center justify-between select-none shrink-0"style={{- height: `${urlBarHeight}px`,- padding: `0 ${urlBarPadding}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- border: `1px solid ${urlBarBorder}`,- color: textColor,+ height: `${headerHeight}px`,+ padding: `0 ${headerPadding}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,}}>- <Icon- icon="mdi:lock"- className="opacity-60"- style={{- width: `${buttonSize}px`,- height: `${buttonSize}px`,- flexShrink: 0,- }}- />- <span- className="flex-1 text-center font-medium truncate"- style={{- fontSize: `${fontSize}px`,- padding: `0 ${urlBarPadding}px`,- }}- >- {url}- </span>- <Icon- icon="mdi:refresh"- className="opacity-60"- style={{- width: `${buttonSize}px`,- height: `${buttonSize}px`,- flexShrink: 0,- }}- />+ <div className="flex items-center" style={{ gap: `${baseGap * headerScale}px` }}>+ <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>+ <div className="rounded-full border border-gray-400" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full border border-gray-400" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full border border-gray-400" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ </div>+ <div className="flex items-center" style={{ gap: `${navGap}px`, color: textColor }}>+ <Icon icon="mdi:menu" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-left" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-right" className="opacity-40" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div>+ </div>++ <div className="flex-1 max-w-xl" style={{ margin: `0 ${urlBarMargin}px` }}>+ <div+ className="rounded w-full flex items-center justify-between"+ style={{+ height: `${urlBarHeight}px`,+ padding: `0 ${urlBarPadding}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ border: `1px solid ${urlBarBorder}`,+ color: textColor,+ }}+ >+ <Icon+ icon="mdi:lock"+ className="opacity-60"+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px`, flexShrink: 0 }}+ />+ <span+ className="flex-1 text-center font-medium truncate"+ style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}+ >+ {url}+ </span>+ <Icon+ icon="mdi:refresh"+ className="opacity-60"+ style={{ width: `${buttonSize}px`, height: `${buttonSize}px`, flexShrink: 0 }}+ />+ </div>+ </div>++ <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, color: textColor }}>+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div></div>- </div>- <div- className="flex items-center"- style={{ gap: `${rightGroupGap}px`, color: textColor }}- >- <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <div+ className="flex-1 relative overflow-hidden"+ style={{ backgroundColor: bgColor }}+ >+ {children}+ </div></div></div>-- <div- className="flex-1 relative overflow-hidden"- style={{ backgroundColor: bgColor }}- >- {children}- </div></div>);-}+}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/MacosGlassMockup.tsx b/app/components/ui/editor/mockups/MacosGlassMockup.tsxindex 37eb183..bd7b969 100644--- a/app/components/ui/editor/mockups/MacosGlassMockup.tsx+++ b/app/components/ui/editor/mockups/MacosGlassMockup.tsx@@ -1,5 +1,4 @@"use client";-import { Icon } from "@iconify/react";import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";@@ -15,22 +14,23 @@ export function MacosGlassMockup({config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles,}: MacosMockupProps) {const isDark = config.darkMode;const frameColor = config.frameColor;const url = config.url;const cornerRadius = roundedCorners ?? config.cornerRadius;- const headerOpacity = config.headerOpacity ?? 100;+ const headerOpacity = config.headerOpacity ?? 100;const headerScale = (config.headerScale || 100) / 100;const bgColor = isDark ? "#1e1e1e" : "#f9f9f9";const borderColor = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.1)";const textColor = isDark ? "#9ca3af" : "#6b7280";const urlBarBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";-const urlBarBgBase = deriveSearchBg(frameColor);+const baseHeight = 36;const basePadding = 12;const baseGap = 12;@@ -52,132 +52,93 @@ export function MacosGlassMockup({const rightGroupGap = 10 * headerScale;return (- <div- className={`glass-border relative w-full h-full flex flex-col overflow-hidden ${className}`}- style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : 'none',- borderTop: "1px solid rgba(255,255,255,0.6)",- borderLeft: "1px solid rgba(255,255,255,0.6)",- }}- >+ <div className={`relative w-full h-full ${className}`}><div- className="flex items-center justify-between select-none shrink-0"+ className="absolute inset-0 pointer-events-none"style={{- height: `${headerHeight}px`,- padding: `0 ${headerPadding}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : 'none',+ }}+ />++ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,}}><div- className="flex items-center"- style={{ gap: `${baseGap * headerScale}px` }}+ className="glass-border w-full h-full flex flex-col overflow-hidden"+ style={{+ borderRadius: `${cornerRadius}px`,+ borderTop: "1px solid rgba(255,255,255,0.6)",+ borderLeft: "1px solid rgba(255,255,255,0.6)",+ }}>- <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>- <div- className="rounded-full bg-[#FF5F56] border border-[#E0443E]"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- <div- className="rounded-full bg-[#FFBD2E] border border-[#DEA123]"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- <div- className="rounded-full bg-[#27C93F] border border-[#1AAB29]"- style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }}- />- </div>-<div- className="flex items-center"- style={{ gap: `${navGap}px`, color: textColor }}+ className="flex items-center justify-between select-none shrink-0"+ style={{+ height: `${headerHeight}px`,+ padding: `0 ${headerPadding}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ }}>- <Icon- icon="mdi:menu"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />- <Icon- icon="mdi:chevron-left"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />- <Icon- icon="mdi:chevron-right"- className="opacity-40"- style={{ width: `${iconSize}px`, height: `${iconSize}px` }}- />+ <div className="flex items-center" style={{ gap: `${baseGap * headerScale}px` }}>+ <div className="flex" style={{ gap: `${buttonGroupGap}px` }}>+ <div className="rounded-full bg-[#FF5F56] border border-[#E0443E]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full bg-[#FFBD2E] border border-[#DEA123]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full bg-[#27C93F] border border-[#1AAB29]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ </div>+ <div className="flex items-center" style={{ gap: `${navGap}px`, color: textColor }}>+ <Icon icon="mdi:menu" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-left" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-right" className="opacity-40" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div>+ </div>++ <div className="flex-1 max-w-xl" style={{ margin: `0 ${urlBarMargin}px` }}>+ <div+ className="rounded w-full flex items-center justify-between"+ style={{+ height: `${urlBarHeight}px`,+ padding: `0 ${urlBarPadding}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ border: `1px solid ${urlBarBorder}`,+ color: textColor,+ }}+ >+ <Icon icon="mdi:lock" className="opacity-60" style={{ width: `${buttonSize}px`, height: `${buttonSize}px`, flexShrink: 0 }} />+ <span className="flex-1 text-center font-medium truncate" style={{ fontSize: `${fontSize}px`, padding: `0 ${urlBarPadding}px` }}>+ {url}+ </span>+ <Icon icon="mdi:refresh" className="opacity-60" style={{ width: `${buttonSize}px`, height: `${buttonSize}px`, flexShrink: 0 }} />+ </div>+ </div>++ <div className="flex items-center" style={{ gap: `${rightGroupGap}px`, color: textColor }}>+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div></div>- </div>- <div- className="flex-1 max-w-xl"- style={{ margin: `0 ${urlBarMargin}px` }}- ><div- className="rounded w-full flex items-center justify-between"+ className="flex-1 relative overflow-hidden"style={{- height: `${urlBarHeight}px`,- padding: `0 ${urlBarPadding}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- border: `1px solid ${urlBarBorder}`,- color: textColor,+ backgroundColor: bgColor,+ borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,+ borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,}}>- <Icon- icon="mdi:lock"- className="opacity-60"- style={{- width: `${buttonSize}px`,- height: `${buttonSize}px`,- flexShrink: 0,- }}- />- <span- className="flex-1 text-center font-medium truncate"- style={{- fontSize: `${fontSize}px`,- padding: `0 ${urlBarPadding}px`,- }}- >- {url}- </span>- <Icon- icon="mdi:refresh"- className="opacity-60"- style={{- width: `${buttonSize}px`,- height: `${buttonSize}px`,- flexShrink: 0,- }}- />+ {children}</div></div>-- <div- className="flex items-center"- style={{ gap: `${rightGroupGap}px`, color: textColor }}- >- <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- </div>- </div>-- <div- className="flex-1 relative overflow-hidden"- style={{- backgroundColor: bgColor,- borderBottomLeftRadius: `${Math.max(0, cornerRadius - 3)}px`,- borderBottomRightRadius: `${Math.max(0, cornerRadius - 3)}px`,- }}- >- {children}</div></div>);-}+}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/MacosMockup.tsx b/app/components/ui/editor/mockups/MacosMockup.tsxindex 4bb44ed..a6a38cd 100644--- a/app/components/ui/editor/mockups/MacosMockup.tsx+++ b/app/components/ui/editor/mockups/MacosMockup.tsx@@ -10,13 +10,7 @@ interface MacosMockupProps extends MockupRenderProps {roundedCorners?: number;}-export function MacosMockup({- children,- config,- className = "",- shadows = 20,- roundedCorners-}: MacosMockupProps) {+export function MacosMockup({ children, config, className = "", shadows = 20, roundedCorners, maskStyles }: MacosMockupProps) {const isDark = config.darkMode;const frameColor = config.frameColor;const url = config.url;@@ -52,72 +46,74 @@ export function MacosMockup({return (<div- className={`relative w-full h-full flex flex-col overflow-hidden ${className}`}+ className={`relative w-full h-full overflow-hidden ${className}`}style={{borderRadius: `${cornerRadius}px`,boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : 'none',}}>- <div- className="flex items-center justify-between select-none shrink-0 overflow-hidden"- style={{- height: `${headerHeight}px`,- padding: `0 ${headerPadding}px`,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,- }}- >- <div className="flex items-center shrink-0" style={{ gap: `${baseGap * headerScale}px` }}>- <div className="flex shrink-0" style={{ gap: `${buttonGroupGap}px` }}>- <div className="rounded-full bg-[#FF5F56] border border-[#E0443E]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />- <div className="rounded-full bg-[#FFBD2E] border border-[#DEA123]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />- <div className="rounded-full bg-[#27C93F] border border-[#1AAB29]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="w-full h-full flex flex-col" style={maskStyles}>+ <div className="flex items-center justify-between select-none shrink-0 overflow-hidden"+ style={{+ height: `${headerHeight}px`,+ padding: `0 ${headerPadding}px`,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ }}+ >+ <div className="flex items-center shrink-0" style={{ gap: `${baseGap * headerScale}px` }}>+ <div className="flex shrink-0" style={{ gap: `${buttonGroupGap}px` }}>+ <div className="rounded-full bg-[#FF5F56] border border-[#E0443E]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full bg-[#FFBD2E] border border-[#DEA123]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <div className="rounded-full bg-[#27C93F] border border-[#1AAB29]" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ </div>+ <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: textColor }}>+ <Icon icon="mdi:menu" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-left" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:chevron-right" className="opacity-40" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div></div>- <div className="flex items-center shrink-0" style={{ gap: `${navGap}px`, color: textColor }}>- <Icon icon="mdi:menu" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:chevron-left" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:chevron-right" className="opacity-40" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- </div>- </div>- <div className="flex-1 max-w-xl min-w-[60px] shrink" style={{ margin: `0 ${urlBarMargin}px` }}>- <div- className="rounded w-full flex items-center justify-between min-w-0"- style={{- height: `${urlBarHeight}px`,- padding: `0 ${urlBarPadding}px`,- backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),- border: `1px solid ${urlBarBorder}`,- color: textColor,- }}- >- <Icon icon="mdi:lock" className="opacity-60 shrink-0" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />- <span- className="flex-1 text-center font-medium truncate min-w-0 mt-0.5"+ <div className="flex-1 max-w-xl min-w-[60px] shrink" style={{ margin: `0 ${urlBarMargin}px` }}>+ <div+ className="rounded w-full flex items-center justify-between min-w-0"style={{- fontSize: `${fontSize}px`,+ height: `${urlBarHeight}px`,padding: `0 ${urlBarPadding}px`,+ backgroundColor: hexToRgba(urlBarBgBase, headerOpacity),+ border: `1px solid ${urlBarBorder}`,+ color: textColor,}}>- {url}- </span>- <Icon icon="mdi:refresh" className="opacity-60 shrink-0" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <Icon icon="mdi:lock" className="opacity-60 shrink-0" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ <span+ className="flex-1 text-center font-medium truncate min-w-0 mt-0.5"+ style={{+ fontSize: `${fontSize}px`,+ padding: `0 ${urlBarPadding}px`,+ }}+ >+ {url}+ </span>+ <Icon icon="mdi:refresh" className="opacity-60 shrink-0" style={{ width: `${buttonSize}px`, height: `${buttonSize}px` }} />+ </div></div>- </div>- <div className="flex items-center shrink-0" style={{ gap: `${rightGroupGap}px`, color: textColor }}>- <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />- <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <div className="flex items-center shrink-0" style={{ gap: `${rightGroupGap}px`, color: textColor }}>+ <Icon icon="mdi:download" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:upload" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:plus" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ <Icon icon="mdi:content-copy" style={{ width: `${iconSize}px`, height: `${iconSize}px` }} />+ </div></div>- </div>- <div className="flex-1 relative overflow-hidden" style={{ backgroundColor: bgColor }}>- {children}+ <div className="flex-1 relative overflow-hidden" style={{ backgroundColor: bgColor }}>+ {children}+ </div></div></div>+);}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/MockupWrapper.tsx b/app/components/ui/editor/mockups/MockupWrapper.tsxindex e6b0cd4..884e334 100644--- a/app/components/ui/editor/mockups/MockupWrapper.tsx+++ b/app/components/ui/editor/mockups/MockupWrapper.tsx@@ -31,6 +31,7 @@ interface MockupWrapperProps {roundedCorners?: number;shadows?: number;className?: string;+ maskStyles?: React.CSSProperties;}function MockupWrapperInner({@@ -40,6 +41,7 @@ function MockupWrapperInner({roundedCorners = 12,shadows = 20,className = "",+ maskStyles}: MockupWrapperProps) {switch (mockupId) {case "none":@@ -61,6 +63,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</MacosMockup>@@ -73,6 +76,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</MacosGlassMockup>@@ -85,6 +89,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</OutlineMockup>@@ -97,6 +102,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</GlassUIContainerMockup>@@ -109,6 +115,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</MacosGhostMockup>@@ -120,6 +127,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</MacosGhostGlassMockup>@@ -132,6 +140,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</MacosContainerGlassMockup>@@ -143,6 +152,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</BraveMockup>@@ -154,6 +164,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</BraveGlassMockup>@@ -165,6 +176,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</BrowserTabGlassMockup>@@ -176,6 +188,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</ChromeMockup>@@ -188,6 +201,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</ChromeGlassMockup>@@ -200,6 +214,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</IPhoneSlimMockup>@@ -212,6 +227,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</GlassCurveMockup>@@ -224,6 +240,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</GlassFullMockup>@@ -236,6 +253,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</HardShellMockup>@@ -248,6 +266,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</S24UltraMockup>@@ -260,6 +279,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</VSCodeMockup>@@ -271,6 +291,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</MacosDarkIdeMockup>@@ -282,6 +303,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</MacosGhostIdeMockup>@@ -294,6 +316,7 @@ function MockupWrapperInner({roundedCorners={roundedCorners}shadows={shadows}className={className}+ maskStyles={maskStyles}>{children}</NoneMockup>diff --git a/app/components/ui/editor/mockups/OutlineMockup.tsx b/app/components/ui/editor/mockups/OutlineMockup.tsxindex e5c59c3..fb9e248 100644--- a/app/components/ui/editor/mockups/OutlineMockup.tsx+++ b/app/components/ui/editor/mockups/OutlineMockup.tsx@@ -1,5 +1,4 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";interface OutlineMockupProps extends MockupRenderProps {@@ -13,12 +12,15 @@ export function OutlineMockup({className = "",shadows = 30,roundedCorners,+ maskStyles,}: OutlineMockupProps) {const isDark = config.darkMode;const cornerRadius = roundedCorners ?? config.cornerRadius;const screenBg = isDark ? "#0a0a0a" : "#ffffff";- const frameColor = config.frameColor || (isDark ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.15)");-+ const frameColor =+ config.frameColor ||+ (isDark ? "rgba(255, 255, 255, 0.2)" : "rgba(0, 0, 0, 0.15)");+const offset = 8;const innerRadius = cornerRadius * 2.5;const outerRadius = innerRadius + offset;@@ -33,17 +35,30 @@ export function OutlineMockup({border: `1px solid ${frameColor}`,}}>- <div- className="relative w-full h-full overflow-hidden shadow-inner"- style={{- backgroundColor: screenBg,- borderRadius: `${innerRadius}px`,- boxShadow: shadows > 0 ? `0 ${shadows}px ${shadows * 2}px rgba(0,0,0,0.12)` : 'none',- }}- >- <div className="relative z-10 w-full h-full">+ <div className="relative w-full h-full" style={{ borderRadius: `${innerRadius}px` }}>++ <div+ className="absolute inset-0 pointer-events-none shadow-inner"+ style={{+ borderRadius: `${innerRadius}px`,+ boxShadow:+ shadows > 0+ ? `0 ${shadows}px ${shadows * 2}px rgba(0,0,0,0.12)`+ : "none",+ }}+ />++ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ backgroundColor: screenBg,+ borderRadius: `${innerRadius}px`,+ }}+ >{children}</div>+</div></div></div>diff --git a/app/components/ui/editor/mockups/S24UltraMockup.tsx b/app/components/ui/editor/mockups/S24UltraMockup.tsxindex c81a438..bbf8a59 100644--- a/app/components/ui/editor/mockups/S24UltraMockup.tsx+++ b/app/components/ui/editor/mockups/S24UltraMockup.tsx@@ -1,233 +1,191 @@"use client";-import type { MockupRenderProps } from "@/types/mockup.types";interface S24UltraMockupProps extends MockupRenderProps {- shadows?: number;- roundedCorners?: number;+ shadows?: number;+ roundedCorners?: number;}export function S24UltraMockup({- children,- config,- className = "",- shadows = 50,- roundedCorners+ children,+ config,+ className = "",+ shadows = 50,+ roundedCorners,+ maskStyles,}: S24UltraMockupProps) {- const isDark = config.darkMode;-- const frameColor = isDark ? (config.frameColor || "#171717") : "#e5e5e5";- const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;- const headerScale = (config.headerScale || 100) / 100;-- const framePadding = 10 * headerScale;- const buttonWidth = 8 * headerScale;- const buttonRadius = 2 * headerScale;-- const cameraTop = 12 * headerScale;- const cameraSize = 14 * headerScale;- const cameraLensSize = 4 * headerScale;-- const statusBarHeight = 40 * headerScale;- const statusBarPaddingX = 20 * headerScale;- const timeFontSize = 10 * headerScale;-- const navBarHeight = 40 * headerScale;- const navIconSize = 12 * headerScale;- const navGap = 48 * headerScale;-- const screenBg = isDark ? "#000000" : "#ffffff";- const frameBorderColor = isDark ? "#404040" : "#d4d4d4";- const screenBorderColor = isDark ? "rgba(255,255,255,0.1)" : "#000000";-- const buttonBgColor = isDark ? "#737373" : "#a3a3a3";- const buttonBorderColor = isDark ? "#262626" : "#737373";-- const textAndIconColor = isDark ? "rgba(255,255,255,0.9)" : "rgba(0,0,0,0.9)";- const navIconColor = isDark ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.2)";- const iconBoxBg = isDark ? "#ffffff" : "#000000";- const iconBoxText = isDark ? "#000000" : "#ffffff";-- return (- <div className={`relative w-full h-full flex flex-col items-center justify-center ${className}`}>-+ const isDark = config.darkMode;+ const frameColor = isDark ? (config.frameColor || "#171717") : "#e5e5e5";+ const cornerRadius = roundedCorners ?? config.cornerRadius ?? 12;++ const headerScale = (config.headerScale || 100) / 100;++ const framePadding = 10 * headerScale;+ const buttonWidth = 8 * headerScale;+ const buttonRadius = 2 * headerScale;++ const cameraTop = 12 * headerScale;+ const cameraSize = 14 * headerScale;+ const cameraLensSize = 4 * headerScale;++ const statusBarHeight = 40 * headerScale;+ const statusBarPaddingX = 20 * headerScale;+ const timeFontSize = 10 * headerScale;++ const navBarHeight = 40 * headerScale;+ const navIconSize = 12 * headerScale;+ const navGap = 48 * headerScale;++ const screenBg = isDark ? "#000000" : "#ffffff";+ const frameBorderColor = isDark ? "#404040" : "#d4d4d4";+ const screenBorderColor = isDark ? "rgba(255,255,255,0.1)" : "#000000";+ const buttonBgColor = isDark ? "#737373" : "#a3a3a3";+ const buttonBorderColor = isDark ? "#262626" : "#737373";++ const textAndIconColor = isDark ? "rgba(255,255,255,0.9)" : "rgba(0,0,0,0.9)";+ const navIconColor = isDark ? "rgba(255, 255, 255, 0.3)" : "rgba(0, 0, 0, 0.2)";+ const iconBoxBg = isDark ? "#ffffff" : "#000000";+ const iconBoxText = isDark ? "#000000" : "#ffffff";++ return (+ <div className={`relative w-full h-full flex flex-col items-center justify-center ${className}`}>+ <div+ className="absolute inset-0 pointer-events-none"+ style={{+ borderRadius: `${cornerRadius * 1.2}px`,+ boxShadow: shadows > 0 ? `0 ${shadows / 2}px ${shadows}px -12px rgba(0,0,0,1)` : 'none',+ }}+ />++ <div+ className="relative w-full h-full flex items-center justify-center"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius * 1.2}px`,+ }}+ >+ <div+ className="relative w-full h-full flex items-center justify-center shadow-2xl"+ style={{+ padding: `${framePadding}px`,+ backgroundColor: frameColor,+ borderRadius: `${cornerRadius * 1.2}px`,+ border: `1px solid ${frameBorderColor}`,+ }}+ >+ <div+ className="absolute shadow-sm"+ style={{+ right: `-${buttonWidth}px`,+ top: '20%',+ width: `${buttonWidth}px`,+ height: '10%',+ backgroundColor: buttonBgColor,+ borderTopRightRadius: `${buttonRadius}px`,+ borderBottomRightRadius: `${buttonRadius}px`,+ borderTop: `1px solid ${buttonBorderColor}`,+ borderRight: `1px solid ${buttonBorderColor}`,+ borderBottom: `1px solid ${buttonBorderColor}`,+ zIndex: 0+ }}+ />+ <div+ className="absolute shadow-sm"+ style={{+ right: `-${buttonWidth}px`,+ top: '32%',+ width: `${buttonWidth}px`,+ height: '12%',+ backgroundColor: buttonBgColor,+ borderTopRightRadius: `${buttonRadius}px`,+ borderBottomRightRadius: `${buttonRadius}px`,+ borderTop: `1px solid ${buttonBorderColor}`,+ borderRight: `1px solid ${buttonBorderColor}`,+ borderBottom: `1px solid ${buttonBorderColor}`,+ zIndex: 0+ }}+ />++ <div+ className="relative w-full h-full overflow-hidden flex flex-col"+ style={{+ backgroundColor: screenBg,+ borderRadius: `${Math.max(0, (cornerRadius * 1.2) - framePadding)}px`,+ border: `1px solid ${screenBorderColor}`+ }}+ ><div- className="relative w-full h-full flex items-center justify-center shadow-2xl"- style={{- padding: `${framePadding}px`,- backgroundColor: frameColor,- borderRadius: `${cornerRadius * 1.2}px`,- border: `1px solid ${frameBorderColor}`,- boxShadow: shadows > 0- ? `0 ${shadows / 2}px ${shadows}px -12px rgba(0,0,0,1)`- : 'none',- }}+ className="absolute bg-black rounded-full z-20 flex items-center justify-center"+ style={{+ top: `${cameraTop}px`,+ left: '50%',+ transform: 'translateX(-50%)',+ width: `${cameraSize}px`,+ height: `${cameraSize}px`,+ }}>- <div- className="absolute shadow-sm"- style={{- right: `-${buttonWidth}px`,- top: '20%',- width: `${buttonWidth}px`,- height: '10%',- backgroundColor: buttonBgColor,- borderTopRightRadius: `${buttonRadius}px`,- borderBottomRightRadius: `${buttonRadius}px`,- borderTop: `1px solid ${buttonBorderColor}`,- borderRight: `1px solid ${buttonBorderColor}`,- borderBottom: `1px solid ${buttonBorderColor}`,- zIndex: 0- }}- />+ <div+ className="rounded-full blur-[0.5px]"+ style={{ width: `${cameraLensSize}px`, height: `${cameraLensSize}px`, backgroundColor: 'rgba(99, 102, 241, 0.3)' }}+ />+ </div>+ <div+ className="absolute top-0 w-full flex items-center justify-between z-10"+ style={{+ height: `${statusBarHeight}px`,+ padding: `0 ${statusBarPaddingX}px`,+ }}+ >+ <span+ className="font-medium tracking-tight"+ style={{ fontSize: `${timeFontSize}px`, color: textAndIconColor }}+ >+ 12:30+ </span>+ <div className="flex items-center" style={{ gap: `${6 * headerScale}px`, opacity: 0.8 }}>+ <svg+ style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, color: textAndIconColor }}+ fill="currentColor"+ viewBox="0 0 24 24"+ >+ <path d="M12 21l-12-12c5.5-5.5 14.5-5.5 20 0l-8 12z" />+ </svg><div- className="absolute shadow-sm"- style={{- right: `-${buttonWidth}px`,- top: '32%',- width: `${buttonWidth}px`,- height: '12%',- backgroundColor: buttonBgColor,- borderTopRightRadius: `${buttonRadius}px`,- borderBottomRightRadius: `${buttonRadius}px`,- borderTop: `1px solid ${buttonBorderColor}`,- borderRight: `1px solid ${buttonBorderColor}`,- borderBottom: `1px solid ${buttonBorderColor}`,- zIndex: 0- }}- />-+ className="flex items-center justify-center font-bold"+ style={{ width: `${14 * headerScale}px`, height: `${14 * headerScale}px`, backgroundColor: iconBoxBg, color: iconBoxText, borderRadius: `${2 * headerScale}px`, fontSize: `${7 * headerScale}px` }}+ >+ 5G+ </div><div- className="relative w-full h-full overflow-hidden flex flex-col"- style={{- backgroundColor: screenBg,- borderRadius: `${Math.max(0, (cornerRadius * 1.2) - framePadding)}px`,- border: `1px solid ${screenBorderColor}`- }}+ className="relative flex items-center"+ style={{ width: `${20 * headerScale}px`, height: `${10 * headerScale}px`, border: `1px solid ${isDark ? "rgba(255,255,255,0.4)" : "rgba(0,0,0,0.4)"}`, borderRadius: `${2 * headerScale}px`, padding: `${1 * headerScale}px` }}>- <div- className="absolute bg-black rounded-full z-20 flex items-center justify-center"- style={{- top: `${cameraTop}px`,- left: '50%',- transform: 'translateX(-50%)',- width: `${cameraSize}px`,- height: `${cameraSize}px`,- }}- >- <div- className="rounded-full blur-[0.5px]"- style={{- width: `${cameraLensSize}px`,- height: `${cameraLensSize}px`,- backgroundColor: 'rgba(99, 102, 241, 0.3)'- }}- />- </div>-- <div- className="absolute top-0 w-full flex items-center justify-between z-10"- style={{- height: `${statusBarHeight}px`,- padding: `0 ${statusBarPaddingX}px`,- }}- >- <span- className="font-medium tracking-tight"- style={{ fontSize: `${timeFontSize}px`, color: textAndIconColor }}- >- 12:30- </span>-- <div className="flex items-center" style={{ gap: `${6 * headerScale}px`, opacity: 0.8 }}>- <svg- style={{ width: `${12 * headerScale}px`, height: `${12 * headerScale}px`, color: textAndIconColor }}- fill="currentColor"- viewBox="0 0 24 24"- >- <path d="M12 21l-12-12c5.5-5.5 14.5-5.5 20 0l-8 12z" />- </svg>-- <div- className="flex items-center justify-center font-bold"- style={{- width: `${14 * headerScale}px`,- height: `${14 * headerScale}px`,- backgroundColor: iconBoxBg,- color: iconBoxText,- borderRadius: `${2 * headerScale}px`,- fontSize: `${7 * headerScale}px`- }}- >- 5G- </div>-- <div- className="relative flex items-center"- style={{- width: `${20 * headerScale}px`,- height: `${10 * headerScale}px`,- border: `1px solid ${isDark ? "rgba(255,255,255,0.4)" : "rgba(0,0,0,0.4)"}`,- borderRadius: `${2 * headerScale}px`,- padding: `${1 * headerScale}px`- }}- >- <div- className="h-full w-full"- style={{ backgroundColor: iconBoxBg, borderRadius: `${1 * headerScale}px` }}- />- </div>- </div>- </div>+ <div className="h-full w-full" style={{ backgroundColor: iconBoxBg, borderRadius: `${1 * headerScale}px` }} />+ </div>+ </div>+ </div>- <div- className="relative w-full h-full flex flex-col"- style={{- paddingTop: `${statusBarHeight}px`,- paddingBottom: `${navBarHeight}px`- }}- >- <div className="relative z-10 w-full h-full">- {children}- </div>- </div>+ <div+ className="relative w-full h-full flex flex-col"+ style={{ paddingTop: `${statusBarHeight}px`, paddingBottom: `${navBarHeight}px` }}+ >+ <div className="relative z-10 w-full h-full">+ {children}+ </div>+ </div>- <div- className="absolute bottom-0 w-full flex items-center justify-center z-10"- style={{- height: `${navBarHeight}px`,- gap: `${navGap}px`- }}- >- <div- style={{- width: `${navIconSize}px`,- height: `${navIconSize}px`,- border: `${2 * headerScale}px solid ${navIconColor}`,- borderRadius: `${2 * headerScale}px`- }}- />- <div- style={{- width: `${navIconSize}px`,- height: `${navIconSize}px`,- border: `${2 * headerScale}px solid ${navIconColor}`,- borderRadius: '50%'- }}- />- <div- style={{- width: `${navIconSize}px`,- height: `${navIconSize}px`,- borderLeft: `${2 * headerScale}px solid ${navIconColor}`,- borderBottom: `${2 * headerScale}px solid ${navIconColor}`,- transform: 'rotate(45deg)',- marginLeft: `${4 * headerScale}px`- }}- />- </div>- </div>+ <div+ className="absolute bottom-0 w-full flex items-center justify-center z-10"+ style={{ height: `${navBarHeight}px`, gap: `${navGap}px` }}+ >+ <div style={{ width: `${navIconSize}px`, height: `${navIconSize}px`, border: `${2 * headerScale}px solid ${navIconColor}`, borderRadius: `${2 * headerScale}px` }} />+ <div style={{ width: `${navIconSize}px`, height: `${navIconSize}px`, border: `${2 * headerScale}px solid ${navIconColor}`, borderRadius: '50%' }} />+ <div style={{ width: `${navIconSize}px`, height: `${navIconSize}px`, borderLeft: `${2 * headerScale}px solid ${navIconColor}`, borderBottom: `${2 * headerScale}px solid ${navIconColor}`, transform: 'rotate(45deg)', marginLeft: `${4 * headerScale}px` }} /></div>+ </div></div>- );+ </div>+ </div>+ );}\ No newline at end of filediff --git a/app/components/ui/editor/mockups/VSCodeMockup.tsx b/app/components/ui/editor/mockups/VSCodeMockup.tsxindex fd17a21..da6f211 100644--- a/app/components/ui/editor/mockups/VSCodeMockup.tsx+++ b/app/components/ui/editor/mockups/VSCodeMockup.tsx@@ -1,5 +1,4 @@"use client";-import { Icon } from "@iconify/react";import type { MockupRenderProps } from "@/types/mockup.types";import { hexToRgba } from "@/lib/utils";@@ -15,14 +14,15 @@ export function VSCodeMockup({config,className = "",shadows = 20,- roundedCorners+ roundedCorners,+ maskStyles,}: VSCodeMockupProps) {const isDark = config.darkMode;const frameColor = config.frameColor;const url = config.url;const cornerRadius = roundedCorners ?? config.cornerRadius;- const headerOpacity = config.headerOpacity ?? 100;+ const headerOpacity = config.headerOpacity ?? 100;const headerScale = (config.headerScale || 100) / 100;const headerHeight = 35 * headerScale;@@ -32,11 +32,13 @@ export function VSCodeMockup({const menuPaddingY = 4 * headerScale;const menuGap = 4 * headerScale;const headerPaddingX = 12 * headerScale;+const searchHeight = 22 * headerScale;const searchIconSize = 12 * headerScale;const searchFontSize = 11 * headerScale;const searchPaddingX = 8 * headerScale;const searchGap = 8 * headerScale;+const controlIconSize = 12 * headerScale;const controlPaddingX = 12 * headerScale;@@ -44,104 +46,101 @@ export function VSCodeMockup({const borderColor = isDark ? "rgba(255,255,255,0.05)" : "rgba(0,0,0,0.1)";const textColor = isDark ? "#cccccc" : "#333333";const searchBorder = isDark ? "rgba(255,255,255,0.1)" : "rgba(0,0,0,0.15)";-const searchBgBase = deriveSearchBg(frameColor);return (- <div- className={`relative w-full h-full flex flex-col overflow-hidden ${className}`}- style={{- borderRadius: `${cornerRadius}px`,- boxShadow: shadows > 0- ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)`- : "none",- }}- >+ <div className={`relative w-full h-full ${className}`}><div- className="flex items-center justify-between select-none shrink-0"+ className="absolute inset-0 pointer-events-none"style={{- height: `${headerHeight}px`,- paddingLeft: `${headerPaddingX}px`,- paddingRight: 0,- backgroundColor: hexToRgba(frameColor, headerOpacity),- borderBottom: `1px solid ${borderColor}`,- borderTopLeftRadius: `${cornerRadius}px`,- borderTopRightRadius: `${cornerRadius}px`,- color: textColor,+ borderRadius: `${cornerRadius}px`,+ boxShadow: shadows > 0 ? `0 ${shadows * 0.3}px ${shadows}px rgba(0,0,0,1)` : "none",}}- >- <div className="flex items-center" style={{ gap: `${menuGap}px` }}>- <Icon- icon="vscode-icons:file-type-vscode"- style={{ width: `${logoSize}px`, height: `${logoSize}px`, marginRight: `${menuGap}px` }}- />- <div className="flex items-center" style={{ fontSize: `${menuFontSize}px` }}>- {["File", "Edit", "Selection", "View", "Go", "Terminal", "Help"].map((item, i) => (- <span- key={item}- className={`rounded hover:bg-white/5 cursor-default ${i === 2 ? "hidden sm:block" :- i === 4 ? "hidden md:block" :- i === 5 ? "hidden lg:block" : ""- }`}- style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}- >- {item}- </span>- ))}- </div>- </div>+ />+ <div+ className="relative w-full h-full overflow-hidden"+ style={{+ ...maskStyles,+ borderRadius: `${cornerRadius}px`,+ }}+ ><div- className="flex-1 flex justify-center max-w-100"- style={{ padding: `0 ${headerPaddingX}px` }}+ className="w-full h-full flex flex-col overflow-hidden"+ style={{ borderRadius: `${cornerRadius}px` }}><div- className="flex items-center justify-center w-full rounded-md transition-colors cursor-text"+ className="flex items-center justify-between select-none shrink-0"style={{- height: `${searchHeight}px`,- gap: `${searchGap}px`,- padding: `0 ${searchPaddingX}px`,- backgroundColor: hexToRgba(searchBgBase, headerOpacity),- border: `1px solid ${searchBorder}`,+ height: `${headerHeight}px`,+ paddingLeft: `${headerPaddingX}px`,+ paddingRight: 0,+ backgroundColor: hexToRgba(frameColor, headerOpacity),+ borderBottom: `1px solid ${borderColor}`,+ borderTopLeftRadius: `${cornerRadius}px`,+ borderTopRightRadius: `${cornerRadius}px`,+ color: textColor,}}>- <Icon- icon="mdi:magnify"- className="opacity-50"- style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px` }}- />- <span- className="truncate"- style={{ fontSize: `${searchFontSize}px`, color: textColor }}- >- {url || "openvid"}- </span>+ <div className="flex items-center" style={{ gap: `${menuGap}px` }}>+ <Icon+ icon="vscode-icons:file-type-vscode"+ style={{ width: `${logoSize}px`, height: `${logoSize}px`, marginRight: `${menuGap}px` }}+ />+ <div className="flex items-center" style={{ fontSize: `${menuFontSize}px` }}>+ {["File", "Edit", "Selection", "View", "Go", "Terminal", "Help"].map((item, i) => (+ <span+ key={item}+ className={`rounded hover:bg-white/5 cursor-default ${i === 2 ? "hidden sm:block" : i === 4 ? "hidden md:block" : i === 5 ? "hidden lg:block" : ""+ }`}+ style={{ padding: `${menuPaddingY}px ${menuPaddingX}px` }}+ >+ {item}+ </span>+ ))}+ </div>+ </div>++ <div className="flex-1 flex justify-center max-w-100" style={{ padding: `0 ${headerPaddingX}px` }}>+ <div+ className="flex items-center justify-center w-full rounded-md transition-colors cursor-text"+ style={{+ height: `${searchHeight}px`,+ gap: `${searchGap}px`,+ padding: `0 ${searchPaddingX}px`,+ backgroundColor: hexToRgba(searchBgBase, headerOpacity),+ border: `1px solid ${searchBorder}`,+ }}+ >+ <Icon icon="mdi:magnify" className="opacity-50" style={{ width: `${searchIconSize}px`, height: `${searchIconSize}px` }} />+ <span className="truncate" style={{ fontSize: `${searchFontSize}px`, color: textColor }}>+ {url || "openvid"}+ </span>+ </div>+ </div>++ <div className="flex items-center h-full">+ {[+ { icon: "mdi:minus", extra: "" },+ { icon: "mdi:checkbox-blank-outline", extra: "" },+ { icon: "mdi:close", extra: "hover:bg-red-500/80 rounded-tr-lg" },+ ].map(({ icon, extra }) => (+ <button+ key={icon}+ className={`h-full hover:bg-white/5 transition-colors flex items-center justify-center ${extra}`}+ style={{ padding: `0 ${controlPaddingX}px` }}+ >+ <Icon icon={icon} style={{ width: `${controlIconSize}px`, height: `${controlIconSize}px` }} />+ </button>+ ))}+ </div></div>- </div>- <div className="flex items-center h-full">- {[- { icon: "mdi:minus", extra: "" },- { icon: "mdi:checkbox-blank-outline", extra: "" },- { icon: "mdi:close", extra: "hover:bg-red-500/80 rounded-tr-lg" },- ].map(({ icon, extra }) => (- <button- key={icon}- className={`h-full hover:bg-white/5 transition-colors flex items-center justify-center ${extra}`}- style={{ padding: `0 ${controlPaddingX}px` }}- >- <Icon icon={icon} style={{ width: `${controlIconSize}px`, height: `${controlIconSize}px` }} />- </button>- ))}+ <div className="flex-1 relative overflow-hidden" style={{ backgroundColor: bgColor }}>+ {children}+ </div></div></div>-- <div- className="flex-1 relative overflow-hidden"- style={{ backgroundColor: bgColor }}- >- {children}- </div></div>);}\ No newline at end of file