Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

feat(demo): update demo video display with improved text and animation effects

CristianOlivera137283f6e2343
diff --git a/app/components/ui/DemoVideo.tsx b/app/components/ui/DemoVideo.tsx
index 42b7ac7..c5a7f5f 100644
--- a/app/components/ui/DemoVideo.tsx
+++ b/app/components/ui/DemoVideo.tsx
@@ -87,9 +87,9 @@ export default function DemoVideo() {
return (
<div className="w-full flex flex-col items-center mb-30">
<h2 className="text-4xl md:text-6xl text-center font-bold tracking-tighter text-white mb-10 leading-tight drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">
- Mira lo que puedes <br />
+ Demos impecables <br />
<span className="bg-linear-to-r from-[#003780] to-white bg-clip-text text-transparent">
- crear con openvid
+ diseñadas en segundos
</span>
</h2>
@@ -99,23 +99,20 @@ export default function DemoVideo() {
hover:border-white/20">
<div className="absolute -inset-px bg-linear-to-r from-blue-500/20 via-purple-500/20 to-blue-500/20 rounded-3xl opacity-0 group-hover:opacity-100 transition-opacity duration-500 blur-xl pointer-events-none" />
- <div className="absolute inset-0 bg-linear-to-t from-[#0E0E12] via-transparent to-transparent z-10 pointer-events-none" />
-
- <div className="absolute top-6 right-6 md:top-8 md:right-8 z-20 pointer-events-none select-none">
-
- <div className="bg-black/30 backdrop-blur-xl border border-white/10 rounded-2xl px-6 py-4 shadow-[0_20px_50px_rgba(0,0,0,0.5)] flex flex-col items-end min-w-[260px] md:min-w-[320px]">
- <div className="h-6 w-full flex items-center justify-end overflow-hidden px-2 py-1">
+ <div className="absolute top-2 right-2 sm:top-6 sm:right-6 md:top-8 md:right-8 z-20 pointer-events-none select-none">
+ <div className="bg-black/40 backdrop-blur-xl border border-white/20 rounded-xl md:rounded-2xl px-1 py-1 md:px-6 md:py-4 shadow-[0_20px_50px_rgba(0,0,0,0.5)] flex flex-col items-end min-w-45 sm:min-w-65 md:min-w-[320px]">
+ <div className="h-2 md:h-6 w-full flex items-center justify-end overflow-hidden px-1">
<AnimatePresence mode="wait">
<motion.h2
key={featureIndex}
- initial={{ y: 50, opacity: 0, skewY: 10 }}
+ initial={{ y: 30, opacity: 0, skewY: 10 }}
animate={{ y: 0, opacity: 1, skewY: 0 }}
- exit={{ y: -50, opacity: 0, skewY: -10 }}
+ exit={{ y: -30, opacity: 0, skewY: -10 }}
transition={{
duration: 0.6,
ease: [0.16, 1, 0.3, 1]
}}
- className="text-xl md:text-2xl font-black text-white italic tracking-tighter drop-shadow-[0_10px_10px_rgba(0,0,0,0.5)] uppercase whitespace-nowrap"
+ className="text-[10px] sm:text-xl md:text-2xl font-black text-white italic tracking-tighter drop-shadow-[0_8px_8px_rgba(0,0,0,0.5)] uppercase whitespace-nowrap"
>
{features[featureIndex]}
</motion.h2>
@@ -123,24 +120,28 @@ export default function DemoVideo() {
</div>
<motion.div
+ key={`line-${featureIndex}`}
initial={{ width: 0 }}
animate={{ width: '100%' }}
- className="h-1 bg-linear-to-r from-transparent via-blue-500 to-blue-400 rounded-full shadow-[0_0_15px_rgba(59,130,246,0.5)]"
+ transition={{ duration: 0.8, ease: "easeOut" }}
+ className="h-px md:h-1 bg-linear-to-r from-transparent via-blue-500 to-blue-400 rounded-full shadow-[0_0_10px_rgba(59,130,246,0.5)]"
/>
</div>
+
+ </div>
+ <div className="relative z-0 w-full mask-b-from-70% mask-b-to-95%">
+ <video
+ ref={videoRef}
+ muted
+ loop
+ playsInline
+ preload="metadata"
+ poster="/images/pages/demo-poster.avif"
+ className="w-full h-auto object-cover transform-gpu transition-transform duration-1000 group-hover:scale-105"
+ >
+ <source src="images/pages/demo.mp4" type="video/mp4" />
+ </video>
</div>
- <video
- ref={videoRef}
- muted
- loop
- playsInline
- preload="metadata"
- poster="/images/pages/demo-poster.avif"
- className="relative z-0 w-full h-auto object-cover transform-gpu transition-transform duration-700 group-hover:scale-[1.02]"
- >
- <source src="images/pages/demo.mp4" type="video/mp4" />
- Tu navegador no soporta la reproducción de videos.
- </video>
</div>
</div>
);