Create professional demos and 3D mockups in seconds, directly in your browser
feat: adjust opacity and gradient settings in ControlPanel and Hero components
CristianOlivera173f6d5e68318
diff --git a/app/components/ui/editor/ControlPanel.tsx b/app/components/ui/editor/ControlPanel.tsxindex df641fd..98b161d 100644--- a/app/components/ui/editor/ControlPanel.tsx+++ b/app/components/ui/editor/ControlPanel.tsx@@ -137,16 +137,16 @@ export function ControlPanel({<div className="relative w-full sm:w-[320px] h-screen bg-[#141417] flex flex-col shrink-0" role="complementary" aria-label="Control panel"><header className="relative flex items-center justify-between h-13 p-2 shrink-0 bg-transparent isolation-isolate" role="banner"><div- className="absolute inset-0 z-0 bg-[url('/images/pages/header-gradient2.avif')] bg-cover bg-center bg-no-repeat pointer-events-none opacity-95"+ className="absolute inset-0 z-0 bg-[url('/images/pages/header-gradient2.avif')] bg-cover bg-center bg-no-repeat pointer-events-none opacity-90"style={{maskImage: `linear-gradient(to bottom, black 55%, transparent 99%),- linear-gradient(to right, transparent 0%, black 20%),+ linear-gradient(to right, transparent 0%, black 15%),linear-gradient(to left, transparent 0%, black 10%)`,WebkitMaskImage: `linear-gradient(to bottom, black 55%, transparent 99%),- linear-gradient(to right, transparent 0%, black 20%),+ linear-gradient(to right, transparent 0%, black 15%),linear-gradient(to left, transparent 0%, black 10%)`,maskComposite: "intersect",diff --git a/app/components/ui/home/Hero.tsx b/app/components/ui/home/Hero.tsxindex be02bf2..e2c3b8b 100644--- a/app/components/ui/home/Hero.tsx+++ b/app/components/ui/home/Hero.tsx@@ -146,13 +146,12 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {onDragLeave={handleVideoDragLeave}onDrop={handleVideoDrop}onClick={() => !isUploadingVideo && videoInputRef.current?.click()}- className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${- isDraggingVideo+ className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${isDraggingVideo? "border-blue-400/70 bg-blue-500/10 text-blue-300 scale-[1.02]": isUploadingVideo- ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"- : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"- }`}+ ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"+ : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"+ }`}><div className="flex items-center justify-center gap-3 pointer-events-none w-full">{isUploadingVideo ? (@@ -199,13 +198,12 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {onDragLeave={handlePhotoDragLeave}onDrop={handlePhotoDrop}onClick={() => !isUploadingPhoto && photoInputRef.current?.click()}- className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${- isDraggingPhoto+ className={`relative flex items-center justify-center px-5 squircle-element border-2 border-dashed cursor-pointer transition-all duration-200 text-sm font-medium w-full h-13 ${isDraggingPhoto? "border-red-400/70 bg-red-500/10 text-red-300 scale-[1.02]": isUploadingPhoto- ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"- : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"- }`}+ ? "border-white/20 bg-white/5 text-white/40 cursor-not-allowed"+ : "border-white/20 bg-white/5 text-white/90 hover:border-white/40 hover:bg-white/10 hover:text-white/80"+ }`}><div className="flex items-center justify-center gap-3 pointer-events-none w-full">{isUploadingPhoto ? (@@ -245,6 +243,19 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {/></div></div>+ <script+ type="speculationrules"+ dangerouslySetInnerHTML={{+ __html: JSON.stringify({+ prerender: [+ {+ urls: ["/editor?mode=video", "/editor?mode=photo"],+ eagerness: "moderate",+ },+ ],+ }),+ }}+ /></>);}\ No newline at end of file