Create professional demos and 3D mockups in seconds, directly in your browser
feat: enhance recording overlay with new design and glass distortion effect
CristianOlivera103f079506592
diff --git a/app/components/ui/RecordingOverlay.tsx b/app/components/ui/RecordingOverlay.tsxindex 24962d9..9f45a9e 100644--- a/app/components/ui/RecordingOverlay.tsx+++ b/app/components/ui/RecordingOverlay.tsx@@ -67,30 +67,89 @@ export default function RecordingOverlay() {{isRecording && (<div className="absolute top-20 left-1/2 -translate-x-1/2 pointer-events-auto">- <div className="flex items-center gap-4 bg-[#1E1E20] border border-white/10 rounded-full pl-5 pr-2 py-2 shadow-2xl">- <div className="flex items-center gap-3 pr-2 border-r border-white/10">- <div className="w-3 h-3 rounded-full bg-red-500 animate-pulse" />- <span className="text-sm text-white font-medium">{t('recording.status')}</span>- <span className="text-sm text-red-400 font-mono font-bold">- {formatTime(recordingTime)}- </span>- </div>- <button- onClick={stopRecording}- className="group flex items-center gap-3 px-4 py-1.5 bg-red-500/10 hover:bg-red-500/20 border border-red-500/30 hover:border-red-500/50 rounded-full transition-all"- aria-label={t('recording.stop')}- >- <div className="flex items-center gap-2 text-red-400 text-sm font-medium">- <div className="w-3 h-3 bg-red-500 rounded-sm group-hover:scale-110 transition-transform" />- {t('recording.stop')}- </div>- <div className="flex items-center gap-1 text-[11px] bg-red-500/10 text-red-300 px-1.5 py-0.5 rounded border border-red-500/20">- <kbd>Alt</kbd>- <span>+</span>- <kbd>D</kbd>+ <div className="relative flex items-center gap-4 border border-white/10 squircle-element-camera pl-5 pr-2 py-2 shadow-[0_8px_32px_rgba(0,0,0,0.6)] overflow-hidden">++ <div className="absolute inset-0 z-0 backdrop-blur-[8px] isolate" style={{ filter: "url(#glass-distortion)" }} />+ <div className="absolute inset-0 z-[1] bg-[#1E1E20]/60 transition-colors duration-300" />+ <div className="absolute inset-0 z-[2] bg-[radial-gradient(circle_at_center,rgba(0,0,0,0.4)_0%,transparent_70%)] pointer-events-none" />+ <div className="absolute inset-0 z-[3] shadow-[inset_1px_1px_1px_0_rgba(255,255,255,0.15),_inset_-1px_-1px_1px_0_rgba(255,255,255,0.05)] pointer-events-none" />++ <div className="relative z-10 flex items-center gap-4">+ <div className="flex items-center gap-3 pr-2 border-r border-white/10">+ <div className="w-3 h-3 rounded-full bg-red-500 animate-pulse" />+ <span className="text-sm text-white font-medium">{t('recording.status')}</span>+ <span className="text-sm text-red-400 font-mono font-bold">+ {formatTime(recordingTime)}+ </span></div>- </button>+ <button+ onClick={stopRecording}+ className="group flex items-center gap-3 px-4 py-1.5 bg-red-500/10 hover:bg-red-500/20 border border-red-500/30 hover:border-red-500/50 squircle-element-camera transition-all"+ aria-label={t('recording.stop')}+ >+ <div className="flex items-center gap-2 text-red-400 text-sm font-medium">+ <div className="w-3 h-3 bg-red-500 rounded-sm group-hover:scale-110 transition-transform" />+ {t('recording.stop')}+ </div>+ <div className="flex items-center gap-1 text-[11px] bg-red-500/10 text-red-300 px-1.5 py-0.5 rounded border border-red-500/20">+ <kbd>Alt</kbd>+ <span>+</span>+ <kbd>D</kbd>+ </div>+ </button>+ </div></div>++ <svg style={{ display: "none" }}>+ <filter+ id="glass-distortion"+ x="0%"+ y="0%"+ width="100%"+ height="100%"+ filterUnits="objectBoundingBox"+ >+ <feTurbulence+ type="fractalNoise"+ baseFrequency="0.01 0.01"+ numOctaves="1"+ seed="5"+ result="turbulence"+ />+ <feComponentTransfer in="turbulence" result="mapped">+ <feFuncR type="gamma" amplitude="1" exponent="10" offset="0.5" />+ <feFuncG type="gamma" amplitude="0" exponent="1" offset="0" />+ <feFuncB type="gamma" amplitude="0" exponent="1" offset="0.5" />+ </feComponentTransfer>+ <feGaussianBlur in="turbulence" stdDeviation="3" result="softMap" />+ <feSpecularLighting+ in="softMap"+ surfaceScale="5"+ specularConstant="1"+ specularExponent="100"+ lightingColor="white"+ result="specLight"+ >+ <fePointLight x="-200" y="-200" z="300" />+ </feSpecularLighting>+ <feComposite+ in="specLight"+ operator="arithmetic"+ k1="0"+ k2="1"+ k3="1"+ k4="0"+ result="litImage"+ />+ <feDisplacementMap+ in="SourceGraphic"+ in2="softMap"+ scale="100"+ xChannelSelector="R"+ yChannelSelector="G"+ />+ </filter>+ </svg></div>)}