Skip to content

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

feat: update layout and carousel demos with new video and image assets; enhance editor top bar styling

CristianOlivera17c98f15e4be2
diff --git a/app/[locale]/layout.tsx b/app/[locale]/layout.tsx
index 261d20e..8b48ce2 100644
--- a/app/[locale]/layout.tsx
+++ b/app/[locale]/layout.tsx
@@ -12,12 +12,12 @@ const poppins = Poppins({ subsets: ["latin"], weight: ["400", "500", "700"], var
const montserrat = Montserrat({ subsets: ["latin"], weight: ["400", "500", "700"], variable: "--font-montserrat", display: "swap" });
const dmSans = DM_Sans({ subsets: ["latin"], weight: ["400", "500", "700"], variable: "--font-dm-sans", display: "swap" });
-export default async function LocaleLayout({
- children,
- params
-}: {
- children: React.ReactNode;
- params: Promise<{ locale: string }>;
+export default async function LocaleLayout({
+ children,
+ params
+}: {
+ children: React.ReactNode;
+ params: Promise<{ locale: string }>;
}) {
const { locale } = await params;
diff --git a/app/components/ui/CarouselDemos.tsx b/app/components/ui/CarouselDemos.tsx
index 510b5d1..bc56fb3 100644
--- a/app/components/ui/CarouselDemos.tsx
+++ b/app/components/ui/CarouselDemos.tsx
@@ -2,29 +2,29 @@
import React from "react";
const videos = [
- { src: "/images/pages/demo2.mp4", poster: "" },
- { src: "/images/pages/demo.mp4", poster: "" },
- { src: "https://media.w3.org/2010/05/sintel/trailer.mp4", poster: "https://images.unsplash.com/photo-1535016120720-40c7467d5283?w=800" },
- { src: "https://www.w3schools.com/html/mov_bbb.mp4", poster: "https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?w=800" },
- { src: "https://media.w3.org/2010/05/sintel/trailer.mp4", poster: "https://images.unsplash.com/photo-1542204165-65bf26472b9b?w=800" },
- { src: "https://www.w3schools.com/html/mov_bbb.mp4", poster: "https://images.unsplash.com/photo-1574717024653-61fd2cf4d44d?w=800" },
- { src: "https://media.w3.org/2010/05/sintel/trailer.mp4", poster: "https://images.unsplash.com/photo-1536440136628-849c177e76a1?w=800" },
- { src: "https://www.w3schools.com/html/mov_bbb.mp4", poster: "https://images.unsplash.com/photo-1478720568477-152d9b164e26?w=800" },
+ { src: "/images/carousel/videos/demo13s.mp4", poster: "/images/carousel/images/demo13s-poster.avif" },
+ { src: "/images/carousel/videos/demo2.mp4", poster: "/images/carousel/images/demo2-poster.avif" },
+ { src: "/images/carousel/videos/demo3.mp4", poster: "/images/carousel/images/demo3-poster.avif" },
+ { src: "/images/carousel/videos/demo4.mp4", poster: "/images/carousel/images/demo4-poster.avif" },
+ { src: "/images/carousel/videos/demo5.mp4", poster: "/images/carousel/images/demo5-poster.avif" },
+ { src: "/images/carousel/videos/demo6.mp4", poster: "/images/carousel/images/demo6-poster.avif" },
+ { src: "/images/carousel/videos/demo7.mp4", poster: "/images/carousel/images/demo7-poster.avif" },
+ { src: "/images/carousel/videos/demo8.mp4", poster: "/images/carousel/images/demo8-poster.avif" },
];
const images = [
- { src: "/images/pages/lovable.avif", alt: "Lovable" },
- { src: "/images/pages/vegetative.avif", alt: "Vegetative" },
- { src: "/images/pages/crafter.avif", alt: "Crafter" },
- { src: "https://images.unsplash.com/photo-1449824913935-59a10b8d2000?w=800", alt: "City" },
- { src: "https://images.unsplash.com/photo-1480796927426-f609979314bd?w=800", alt: "Architecture" },
- { src: "https://images.unsplash.com/photo-1514539079130-25950c84af65?w=800", alt: "Building" },
- { src: "https://images.unsplash.com/photo-1493246507139-91e8fad9978e?w=800", alt: "Mountain" },
- { src: "https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=800", alt: "Nature" },
- { src: "https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=800", alt: "Landscape" },
- { src: "https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=800", alt: "Forest" },
- { src: "https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=800", alt: "Trees" },
- { src: "https://images.unsplash.com/photo-1465146344425-f00d5f5c8f07?w=800", alt: "Woods" },
+ { src: "/images/carousel/images/build.avif", alt: "Architecture" },
+ { src: "/images/carousel/images/crafter.avif", alt: "Crafter" },
+ { src: "/images/carousel/images/daily.avif", alt: "Building" },
+ { src: "/images/carousel/images/dash-dark.avif", alt: "Mountain" },
+ { src: "/images/carousel/images/dash-light.avif", alt: "Nature" },
+ { src: "/images/carousel/images/grok.avif", alt: "Landscape" },
+ { src: "/images/carousel/images/lovable.avif", alt: "Lovable" },
+ { src: "/images/carousel/images/mountain.avif", alt: "Trees" },
+ { src: "/images/carousel/images/nature.avif", alt: "Woods" },
+ { src: "/images/carousel/images/readline.avif", alt: "Readline" },
+ { src: "/images/carousel/images/openvid.avif", alt: "Forest" },
+ { src: "/images/carousel/images/kebo.avif", alt: "Vegetative" },
];
export function CarouselDemos() {
@@ -33,7 +33,7 @@ export function CarouselDemos() {
<style>{`
.scene-3d {
width: 100%;
- height: 70vh;
+ height: 65vh;
min-height: 800px;
display: grid;
overflow: hidden;
@@ -83,6 +83,12 @@ export function CarouselDemos() {
@media (prefers-reduced-motion: reduce) {
.a3d-container { animation-duration: 120s; }
}
+ @media (width <= 640px) {
+ .scene-3d {
+ height: 65vh;
+ min-height: 500px;
+ }
+ }
`}</style>
<div className="scene-3d">
diff --git a/app/components/ui/EditorPreview.tsx b/app/components/ui/EditorPreview.tsx
index 7589bca..6cd42c8 100644
--- a/app/components/ui/EditorPreview.tsx
+++ b/app/components/ui/EditorPreview.tsx
@@ -22,41 +22,61 @@ export default function EditorPreview() {
myAtropos.destroy();
};
}, []);
-
return (
- <div className="relative max-w-6xl mx-auto mt-30 sm:mt-0 hero-perspective-container">
- <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)]">
+ <div className="relative max-w-6xl mx-auto mt-30 sm:mt-0 isolate">
+ <div className="absolute top-0 left-1/2 -translate-x-1/2 w-140 h-80 rounded-full bg-[#0095ED]/40 blur-[120px] pointer-events-none -z-10" />
+
+ <div className="absolute top-20 left-1/3 w-60 h-60 rounded-full bg-blue-600/20 blur-[80px] pointer-events-none -z-10" />
+
+ <h2 className="relative text-4xl md:text-6xl text-center font-bold tracking-tighter text-white mb-10 leading-tight drop-shadow-[0_0_30px_rgba(183,203,248,0.3)] z-20">
{t('title')} <br />
<span className="bg-linear-to-r from-[#003780] to-white bg-clip-text text-transparent">
{t('subtitle')}
</span>
</h2>
- <div className="hero-3d-wrapper relative w-full">
-
- <div ref={atroposRef} className="atropos w-full rounded-2xl">
- <div className="atropos-scale">
- <div className="atropos-rotate">
- <div className="atropos-inner rounded-2xl">
-
- <div
- className="absolute -inset-1 bg-linear-to-b from-neutral-700/10 to-transparent rounded-2xl blur-md -z-10"
- data-atropos-offset="-5"
- ></div>
-
- <img
- src="/images/pages/openvid2.webp"
- alt="openvid Editor Preview"
- className="w-full h-auto object-cover rounded-xl"
- loading="lazy"
- data-atropos-offset="3"
- />
+ <div className="relative w-full">
+ <div className="absolute bottom-0 left-1/2 -translate-x-1/2 w-140 h-80 rounded-full bg-[#0095ED80] blur-[120px] pointer-events-none -z-10" />
+
+ <div className="hero-3d-wrapper relative w-full">
+ <div className="absolute -left-20 top-1/2 -translate-y-1/2 w-96 h-96 rounded-full bg-[#06b6d433] blur-[110px] pointer-events-none -z-10" />
+
+ <div className="absolute -right-20 top-1/2 -translate-y-1/2 w-96 h-96 rounded-full bg-[#6366f126] blur-[110px] pointer-events-none -z-10" />
+
+ <div ref={atroposRef} className="atropos w-full rounded-2xl">
+ <div className="atropos-scale">
+ <div className="atropos-rotate">
+ <div className="atropos-inner rounded-2xl relative">
+ <div
+ className="absolute -inset-1 bg-linear-to-b from-neutral-700/10 to-transparent rounded-2xl blur-md -z-10"
+ data-atropos-offset="-5"
+ ></div>
+
+ <img
+ src="/images/pages/openvid2.webp"
+ alt="openvid Editor Preview"
+ className="w-full h-auto object-cover rounded-xl"
+ loading="lazy"
+ data-atropos-offset="3"
+ />
+
+ <div
+ className="absolute inset-0 pointer-events-none rounded-xl bg-[linear-gradient(to_bottom,#bf29f000_24%,#0095ED4D)]"
+ data-atropos-offset="4"
+ ></div>
+ </div>
</div>
</div>
</div>
</div>
-
+ <div className="absolute top-10 left-0 w-90 h-60 rounded-full bg-[#29b1ff33] blur-[100px] pointer-events-none -z-10" />
+ <div className="absolute bottom-10 left-0 w-90 h-60 rounded-full bg-[#0095ED33] blur-[100px] pointer-events-none -z-10" />
+ <div className="absolute bottom-10 right-0 w-100 h-60 rounded-full bg-[#ffffff33] blur-[100px] pointer-events-none -z-10" />
</div>
+
+ <div className="absolute -bottom-10 left-0 w-80 h-60 rounded-full bg-[#0095ED33] blur-[100px] pointer-events-none -z-10" />
+ <div className="absolute bottom-0 left-1/2 -translate-x-1/2 w-140 h-80 rounded-full bg-[#0095ED] blur-[120px] pointer-events-none -z-10" />
+ <div className="absolute -bottom-10 right-0 w-80 h-60 rounded-full bg-[#01a2ff33] blur-[100px] pointer-events-none -z-10" />
</div>
);
}
\ No newline at end of file
diff --git a/app/components/ui/editor/EditorTopBar.tsx b/app/components/ui/editor/EditorTopBar.tsx
index 89c5732..3de6913 100644
--- a/app/components/ui/editor/EditorTopBar.tsx
+++ b/app/components/ui/editor/EditorTopBar.tsx
@@ -105,7 +105,7 @@ export function EditorTopBar({
}, [showAlert]);
return (
- <div className="h-13 border-b border-white/10 flex items-center justify-between px-4 shrink-0 relative">
+ <div className="h-13 border-b border-white/10 flex items-center justify-between px-3 shrink-0 relative">
{showAlert && (
<div className="fixed top-6 left-1/2 -translate-x-1/2 w-full max-w-md z-200 px-4 animate-in fade-in zoom-in slide-in-from-top-4 duration-300">
<Alert variant="info" className="relative border-red-500/50 bg-red-950/95 backdrop-blur-lg shadow-2xl overflow-hidden">
@@ -132,7 +132,7 @@ export function EditorTopBar({
<div className="flex-1"></div>
- <div className="flex items-center gap-3 ml-auto">
+ <div className="flex items-center ml-auto">
<div className="flex items-center gap-2 border-r border-white/10 pr-3">
<TooltipAction label={canUndo ? t("history.undo") : t("history.noUndo")}>
<button