Skip to content

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

feat(editor): update video sources in ToolsSidebar and add new media assets

CristianOlivera1de639ec894c0
diff --git a/app/components/ui/editor/ToolsSidebar.tsx b/app/components/ui/editor/ToolsSidebar.tsx
index da57a64..02dbb90 100644
--- a/app/components/ui/editor/ToolsSidebar.tsx
+++ b/app/components/ui/editor/ToolsSidebar.tsx
@@ -242,7 +242,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.background.title"),
description: t("popovers.background.description"),
- videoSrc: "/videos/preview-background.mp4"
+ videoSrc: "/videos/preview-menu/background.mp4"
}}
/>
<SidebarTool
@@ -253,7 +253,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.mockup.title"),
description: t("popovers.mockup.description"),
- videoSrc: "/videos/preview-mockup.mp4"
+ videoSrc: "/videos/preview-menu/mockup.mp4"
}}
badge={t("tools.newTool")}
badgeStyle="premium"
@@ -269,7 +269,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.motion.title"),
description: t("popovers.motion.description"),
- videoSrc: "/videos/preview-motion.mp4"
+ videoSrc: "/videos/preview-menu/motion.mp4"
}}
badge={t("tools.newTool")}
badgeStyle="premium"
@@ -283,7 +283,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.zoom.title"),
description: t("popovers.zoom.description"),
- videoSrc: "/videos/preview-zoom.mp4"
+ videoSrc: "/videos/preview-menu/zoom.mp4"
}}
/>
<SidebarTool
@@ -296,7 +296,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.videos.title"),
description: t("popovers.videos.description"),
- videoSrc: "/videos/preview-videos.mp4"
+ videoSrc: "/videos/preview-menu/videos.mp4"
}}
/>
</>
@@ -310,7 +310,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.elements.title"),
description: t("popovers.elements.description"),
- videoSrc: "/videos/preview-elements.mp4"
+ videoSrc: "/videos/preview-menu/elements.mp4"
}}
icon={
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" className="transition-colors duration-200">
@@ -329,7 +329,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.history.title"),
description: t("popovers.history.description"),
- videoSrc: "/videos/preview-history.mp4"
+ videoSrc: "/videos/preview-menu/history.mp4"
}}
/>
)}
@@ -345,7 +345,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.audio.title"),
description: t("popovers.audio.description"),
- videoSrc: "/videos/preview-audio.mp4"
+ videoSrc: "/videos/preview-menu/audio.mp4"
}}
/>
{hasCamera && (
@@ -358,7 +358,7 @@ export function ToolsSidebar({
popover={{
title: t("popovers.camera.title"),
description: t("popovers.camera.description"),
- videoSrc: "/videos/preview-camera.mp4"
+ videoSrc: "/videos/preview-menu/camera.mp4"
}}
/>
)}
diff --git a/app/components/ui/home/VideoHero.tsx b/app/components/ui/home/VideoHero.tsx
index 4a57dbb..1e7c978 100644
--- a/app/components/ui/home/VideoHero.tsx
+++ b/app/components/ui/home/VideoHero.tsx
@@ -1,5 +1,3 @@
-"use client";
-
import { useTranslations } from "next-intl";
export default function VideoHero() {
@@ -7,41 +5,65 @@ export default function VideoHero() {
return (
<section className="relative w-full overflow-visible flex justify-center animate-fade-in-up">
-
<div className="pointer-events-none absolute top-0 left-1/2 -translate-x-1/2 w-screen min-w-[140vw] md:min-w-0 max-w-480 h-full -z-10 overflow-visible flex justify-center">
-
- <div
- className="absolute inset-0 -top-28 bottom-64 w-full h-full mix-blend-hard-light blur-[120px] md:blur-[80px] transform-gpu"
- style={{ background: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 138, 255, 0.1) 30%, rgb(255, 255, 255) 20%, rgb(247, 164, 66) 70%, rgb(233, 66, 247) 100%)' }}
+ <div
+ className="absolute inset-0 -top-28 bottom-64 w-full h-full mix-blend-hard-light blur-[80px] md:blur-[120px] transform-gpu will-change-transform"
+ style={{ background: 'linear-gradient(rgba(0,0,0,0) 0%, rgba(0,138,255,0.1) 30%, rgb(255,255,255) 20%, rgb(247,164,66) 70%, rgb(233,66,247) 100%)' }}
/>
-
- <div
- className="absolute inset-0 -top-28 bottom-64 w-full h-full mix-blend-soft-light blur-[120px] md:blur-[80px] transform-gpu"
- style={{ background: 'linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 138, 255, 0.2) 35%, rgb(255, 255, 255) 70%, rgb(247, 164, 66) 80%, rgb(233, 66, 247) 100%)' }}
+ <div
+ className="absolute inset-0 -top-28 bottom-64 w-full h-full mix-blend-soft-light blur-[80px] md:blur-[120px] transform-gpu will-change-transform"
+ style={{ background: 'linear-gradient(rgba(0,0,0,0) 0%, rgba(0,138,255,0.2) 35%, rgb(255,255,255) 70%, rgb(247,164,66) 80%, rgb(233,66,247) 100%)' }}
/>
</div>
<div className="relative px-4 w-full">
<div className="relative mx-auto max-w-7xl">
<div className="relative mt-4 h-fit w-full md:mt-12">
+
<div className="relative -mx-6 flex max-w-screen justify-center p-8 delay-[800ms] duration-1000 will-change-transform starting:translate-y-16 starting:opacity-0 starting:blur-xs">
<div className="relative w-full max-w-[calc(100vw-48px)] lg:w-7xl lg:min-w-200 lg:aspect-video">
+
<div aria-hidden="true" className="absolute -inset-6 squircle-element-xl blur-3xl -z-10 bg-linear-to-b from-cyan-500/15 via-fuchsia-500/10 to-transparent" />
+
<div className="relative w-full h-full p-0 sm:p-4 squircle-element-2xl sm:border sm:border-white/10 bg-white/2 sm:backdrop-blur-xs shadow-[0_0_0_1px_rgba(255,255,255,0.04),0_30px_120px_rgba(0,0,0,0.25)]">
<div className="relative w-full h-full overflow-hidden squircle-element-xl border border-white/10 bg-white/3">
<div className="absolute inset-x-0 top-0 h-px bg-linear-to-r from-transparent via-white/40 to-transparent z-20" />
<div className="absolute inset-x-0 top-0 h-40 bg-linear-to-b from-white/10 to-transparent z-10 pointer-events-none" />
- <video autoPlay loop muted playsInline preload="auto" poster="/images/pages/demo-hero-poster2.webp" aria-label={t("title")} className="block w-full h-full object-cover">
- <source src="/images/pages/demo-hero2.mp4" type="video/mp4" />
+
+ <video
+ autoPlay
+ loop
+ muted
+ playsInline
+ preload="metadata"
+ poster="/images/pages/demo-hero-poster.webp"
+ aria-label={t("title")}
+ className="block w-full h-full object-cover"
+ >
+ <source
+ src="/videos/hero/demo-hero-mobile.webm"
+ type='video/webm; codecs="vp9"'
+ media="(max-width: 767px)"
+ />
+ <source
+ src="/videos/hero/demo-hero-mobile.mp4"
+ type="video/mp4"
+ media="(max-width: 767px)"
+ />
+ <source
+ src="/videos/hero/demo-hero-desktop.mp4"
+ type="video/mp4"
+ />
</video>
</div>
</div>
+
</div>
</div>
+
</div>
</div>
</div>
-
</section>
);
-}
+}
\ No newline at end of file
diff --git a/public/images/pages/demo-hero-poster2.webp b/public/images/pages/demo-hero-poster.webp
similarity index 100%
rename from public/images/pages/demo-hero-poster2.webp
rename to public/images/pages/demo-hero-poster.webp
diff --git a/public/images/pages/demo-hero2.mp4 b/public/videos/hero/demo-hero-desktop.mp4
similarity index 100%
rename from public/images/pages/demo-hero2.mp4
rename to public/videos/hero/demo-hero-desktop.mp4
diff --git a/public/videos/hero/demo-hero-desktop.webm b/public/videos/hero/demo-hero-desktop.webm
new file mode 100644
index 0000000..3567e17
Binary files /dev/null and b/public/videos/hero/demo-hero-desktop.webm differ
diff --git a/public/videos/hero/demo-hero-mobile.mp4 b/public/videos/hero/demo-hero-mobile.mp4
new file mode 100644
index 0000000..cf7cb74
Binary files /dev/null and b/public/videos/hero/demo-hero-mobile.mp4 differ
diff --git a/public/videos/hero/demo-hero-mobile.webm b/public/videos/hero/demo-hero-mobile.webm
new file mode 100644
index 0000000..95fce06
Binary files /dev/null and b/public/videos/hero/demo-hero-mobile.webm differ
diff --git a/public/images/pages/demo-scroll2.mp4 b/public/videos/hero/demo-scroll2.mp4
similarity index 100%
rename from public/images/pages/demo-scroll2.mp4
rename to public/videos/hero/demo-scroll2.mp4
diff --git a/public/videos/preview-audio.mp4 b/public/videos/preview-menu/audio.mp4
similarity index 100%
rename from public/videos/preview-audio.mp4
rename to public/videos/preview-menu/audio.mp4
diff --git a/public/videos/preview-background.mp4 b/public/videos/preview-menu/background.mp4
similarity index 100%
rename from public/videos/preview-background.mp4
rename to public/videos/preview-menu/background.mp4
diff --git a/public/videos/preview-camera.mp4 b/public/videos/preview-menu/camera.mp4
similarity index 100%
rename from public/videos/preview-camera.mp4
rename to public/videos/preview-menu/camera.mp4
diff --git a/public/videos/preview-elements.mp4 b/public/videos/preview-menu/elements.mp4
similarity index 100%
rename from public/videos/preview-elements.mp4
rename to public/videos/preview-menu/elements.mp4
diff --git a/public/videos/preview-history.mp4 b/public/videos/preview-menu/history.mp4
similarity index 100%
rename from public/videos/preview-history.mp4
rename to public/videos/preview-menu/history.mp4
diff --git a/public/videos/preview-mockup.mp4 b/public/videos/preview-menu/mockup.mp4
similarity index 100%
rename from public/videos/preview-mockup.mp4
rename to public/videos/preview-menu/mockup.mp4
diff --git a/public/videos/preview-motion.mp4 b/public/videos/preview-menu/motion.mp4
similarity index 100%
rename from public/videos/preview-motion.mp4
rename to public/videos/preview-menu/motion.mp4
diff --git a/public/videos/preview-videos.mp4 b/public/videos/preview-menu/videos.mp4
similarity index 100%
rename from public/videos/preview-videos.mp4
rename to public/videos/preview-menu/videos.mp4
diff --git a/public/videos/preview-zoom.mp4 b/public/videos/preview-menu/zoom.mp4
similarity index 100%
rename from public/videos/preview-zoom.mp4
rename to public/videos/preview-menu/zoom.mp4