Skip to content

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

feat: update video assets and enhance UI components with new BannerCTA

CristianOlivera125be482cb98f
diff --git a/README.md b/README.md
index 7265a9e..6ef89c2 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
<div align="center">
- <img width="70%" alt="openvid Hero" src="https://openvid.dev/images/pages/openvid-animation.svg" />
+ <img width="60%" alt="openvid Hero" src="https://openvid.dev/images/pages/openvid-animation.svg" />
### Create professional demos and mockups in seconds, directly in your browser
**Record your screen or upload a video, add smooth zooms, device mockups, 3D effects, and custom backgrounds - export a cinematic demo.**
diff --git a/app/[locale]/(home)/page.tsx b/app/[locale]/(home)/page.tsx
index af2552b..d0ba3d0 100644
--- a/app/[locale]/(home)/page.tsx
+++ b/app/[locale]/(home)/page.tsx
@@ -6,6 +6,7 @@ import type { Metadata } from 'next';
import DonationCard from "@/app/components/ui/home/DonationCard";
import EditorPreview from "@/app/components/ui/home/EditorPreview";
import VideoHero from "@/app/components/ui/home/VideoHero";
+import BannerCTA from "@/app/components/ui/home/BannerCTA";
type Props = {
params: Promise<{ locale: string }>;
@@ -89,7 +90,7 @@ export default async function Home({ params }: Props) {
</div>
</section>
- <div className="relative overflow-hidden bg-gradient-radial-primary w-full pt-0 pb-30 sm:py-20">
+ <div className="relative overflow-hidden bg-gradient-radial-primary w-full sm:pt-24">
<div className="absolute top-0 left-1/2 -translate-x-1/2 w-250 h-[150%] rounded-[100%] blur-xl pointer-events-none" aria-hidden="true"></div>
<section className="w-full" aria-label="Editor features and demos">
<div className="w-full mx-auto bg-[url('/images/pages/dots.svg')] bg-no-repeat bg-[size:68%] bg-center">
@@ -109,7 +110,9 @@ export default async function Home({ params }: Props) {
<div className="max-w-xl mx-auto px-6">
<DonationCard />
</div>
+ <div className="absolute inset-x-0 bottom-0 h-32 bg-linear-to-t from-[#0a0a0a] to-transparent pointer-events-none z-20" />
</section>
+ <BannerCTA />
</section>
</div>
</div>
diff --git a/app/components/ui/home/BannerCTA.tsx b/app/components/ui/home/BannerCTA.tsx
new file mode 100644
index 0000000..703482d
--- /dev/null
+++ b/app/components/ui/home/BannerCTA.tsx
@@ -0,0 +1,121 @@
+"use client";
+
+import { useMemo, useState } from "react";
+
+export default function BannerCTA() {
+ const [spotlight, setSpotlight] = useState({ x: 50, y: 50 });
+ const [isHovered, setIsHovered] = useState(false);
+
+ // Patrón binario en SVG data URI
+ const binaryPattern = useMemo(
+ () =>
+ `data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='rgba(255,255,255,0.14)' font-family='monospace' font-size='10' font-weight='700' letter-spacing='1'%3E%3Ctext x='0' y='10'%3E011010%3C/text%3E%3Ctext x='0' y='20'%3E100101%3C/text%3E%3Ctext x='0' y='30'%3E111000%3C/text%3E%3Ctext x='0' y='40'%3E000111%3C/text%3E%3C/g%3E%3C/svg%3E`,
+ []
+ );
+
+ const handleMove = (e: React.MouseEvent<HTMLElement>) => {
+ const rect = e.currentTarget.getBoundingClientRect();
+ const x = ((e.clientX - rect.left) / rect.width) * 100;
+ const y = ((e.clientY - rect.top) / rect.height) * 100;
+ setSpotlight({ x, y });
+ };
+
+ return (
+ <section
+ onMouseEnter={() => setIsHovered(true)}
+ onMouseLeave={() => setIsHovered(false)}
+ onMouseMove={handleMove}
+ className="relative w-full overflow-hidden border-t border-white/5 bg-[#050505] py-24 sm:py-32 min-h-[20vh] sm:min-h-[60vh]"
+ >
+ <div
+ aria-hidden="true"
+ className="pointer-events-none absolute inset-0 bg-[radial-gradient(ellipse_at_top,rgba(0,163,255,0.09)_0%,transparent_70%)]"
+ />
+
+ <div
+ aria-hidden="true"
+ className="
+ hidden sm:absolute
+ sm:inset-0
+ sm:pointer-events-none
+ sm:bg-[radial-gradient(circle_at_center,transparent_35%,rgba(0,0,0,0.35)_100%)]
+ "
+ />
+
+ <div aria-hidden="true" className="pointer-events-none absolute inset-0 opacity-35">
+ <div
+ className="absolute inset-0"
+ style={{
+ backgroundImage: `
+ linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px)
+ `,
+ backgroundSize: "72px 72px",
+ maskImage: "radial-gradient(circle at center, black 0%, black 55%, transparent 100%)",
+ WebkitMaskImage: "radial-gradient(circle at center, black 0%, black 55%, transparent 100%)",
+ }}
+ />
+ <div
+ className="absolute inset-0 blur-2xl opacity-50"
+ style={{
+ backgroundImage: `
+ linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px)
+ `,
+ backgroundSize: "72px 72px",
+ }}
+ />
+ </div>
+
+ <div
+ aria-hidden="true"
+ className="pointer-events-none absolute inset-0 transition-opacity duration-300"
+ style={{
+ opacity: isHovered ? 1 : 0,
+ background: `radial-gradient(circle at ${spotlight.x}% ${spotlight.y}%, rgba(255,255,255,0.13) 0%, rgba(0,163,255,0.07) 18%, rgba(255,255,255,0.03) 32%, transparent 58%)`,
+ mixBlendMode: "screen",
+ }}
+ />
+
+ <div className="absolute inset-0 flex items-center justify-center pointer-events-none select-none px-6">
+ <div
+ className="relative w-full max-w-[1500px] h-[240px] sm:h-[360px] md:h-[460px] opacity-70"
+ style={{
+ backgroundImage: `url("${binaryPattern}")`,
+ backgroundSize: "40px 40px",
+ WebkitMaskImage: `url("/svg/openvid.svg")`,
+ WebkitMaskSize: "contain",
+ WebkitMaskPosition: "center",
+ WebkitMaskRepeat: "no-repeat",
+ maskImage: `url("/svg/openvid.svg")`,
+ maskSize: "contain",
+ maskPosition: "center",
+ maskRepeat: "no-repeat",
+ filter: isHovered ? "brightness(1.2) contrast(1.05)" : "brightness(0.95) contrast(1)",
+ }}
+ />
+
+ <div
+ className="absolute inset-0 mx-auto max-w-[1500px] blur-3xl transition-opacity duration-300"
+ style={{
+ opacity: isHovered ? 0.8 : 0.25,
+ background: `radial-gradient(circle at ${spotlight.x}% ${spotlight.y}%, rgba(255,255,255,0.18) 0%, rgba(0,163,255,0.08) 24%, transparent 60%)`,
+ WebkitMaskImage: `url("/svg/openvid.svg")`,
+ WebkitMaskSize: "contain",
+ WebkitMaskPosition: "center",
+ WebkitMaskRepeat: "no-repeat",
+ maskImage: `url("/svg/openvid.svg")`,
+ maskSize: "contain",
+ maskPosition: "center",
+ maskRepeat: "no-repeat",
+ }}
+ />
+ </div>
+
+ <div
+ aria-hidden="true"
+ className="hidden sm:block pointer-events-none absolute inset-x-0 bottom-0 h-[180px] bg-[linear-gradient(to_bottom,transparent,rgba(5,5,5,0.55),#050505)]"
+ />
+ </section>
+ );
+}
\ No newline at end of file
diff --git a/app/components/ui/home/Hero.tsx b/app/components/ui/home/Hero.tsx
index d7a548c..7e78a46 100644
--- a/app/components/ui/home/Hero.tsx
+++ b/app/components/ui/home/Hero.tsx
@@ -117,21 +117,18 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {
return (
<>
<h1 className="animate-reveal text-5xl md:text-7xl font-semibold text-white tracking-tight mb-6 leading-[1.1] drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">
- <div
- className={`absolute h-auto shadow-2xl transition-all ${locale === "es"
- ? "-top-16 sm:-top-4 lg:top-0 xl:top-3 left-14 -rotate-14"
- : "left-16 -top-16 sm:top-0 xl:top-3 sm:-left-6 -rotate-14"
- }`}
- >
- <GitHubBadge />
- </div>
+ <div className="absolute top-0 left-1/2 -translate-x-1/2 -translate-y-10 sm:-translate-y-3 flex items-center justify-center gap-4 h-auto transition-all z-10 whitespace-nowrap">
+ <img
+ src="/svg/version.svg"
+ alt=""
+ aria-hidden="true"
+ className="h-auto w-16 sm:w-18 shadow-2xl select-none align-middle translate-y-[2px]"
+ />
- <img
- src="/svg/version.svg"
- alt=""
- aria-hidden="true"
- className={`absolute h-auto shadow-2xl transition-all ${locale === 'es' ? "-top-8 sm:-top-4 lg:top-0 xl:top-2 left-0 -rotate-10 sm:left-30" : "-top-8 sm:top-0 xl:top-2 sm:left-10 -rotate-10"} w-16 sm:w-18`}
- />
+ <div className="flex items-center shadow-2xl h-full mt-1">
+ <GitHubBadge />
+ </div>
+ </div>
{t.rich("title", {
screen: (chunks) => (
<span className="relative inline-flex items-center">
@@ -144,7 +141,7 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {
/>
<img
src="/svg/cursor-animate.svg"
- className="absolute -top-18 sm:-top-25 -right-28 sm:-right-30 h-[4em] w-auto"
+ className="hidden sm:flex absolute -top-18 sm:-top-25 -right-28 sm:-right-30 h-[4em] w-auto"
alt=""
aria-hidden="true"
/>
@@ -174,7 +171,7 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {
: "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-su justify-center gap-3 pointer-events-none w-full">
+ <div className="flex items-center justify-center gap-3 pointer-events-none w-full">
{isUploadingVideo ? (
<>
<Icon
@@ -198,18 +195,24 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {
) : (
<>
<Icon icon="mage:video-upload" width="22" className="shrink-0" aria-hidden="true" />
- <span>{t("uploadButton")}</span>
- <span className="text-white/40 text-xs">MP4, WebM, MOV</span>
+
+ <div className="flex items-center gap-2">
+ <span>{t("uploadButton")}</span>
+ <span className="text-white/40 text-xs font-mono select-none">
+ MP4, WebM, MOV
+ </span>
+ </div>
</>
)}
</div>
+
{isDraggingVideo && (
<div className="absolute inset-0 rounded-2xl bg-blue-500/5 blur-sm pointer-events-none" />
)}
</div>
<Link
href="/editor?mode=video"
- className="text-sm text-white/60 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4"
+ className="text-sm text-white/70 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4"
>
{t("goToVideoEditor")}
</Link>
@@ -265,18 +268,24 @@ export default function Hero({ onVideoUpload, onPhotoUpload }: HeroProps) {
className="shrink-0"
aria-hidden="true"
/>
- <span>{t("uploadPhotoButton")}</span>
- <span className="text-white/40 text-xs">JPG, PNG, WEBP</span>
+
+ <div className="flex items-center gap-2">
+ <span>{t("uploadPhotoButton")}</span>
+ <span className="text-white/40 text-xs font-mono select-none">
+ JPG, PNG, WEBP
+ </span>
+ </div>
</>
)}
</div>
+
{isDraggingPhoto && (
<div className="absolute inset-0 rounded-2xl bg-red-500/5 blur-sm pointer-events-none" />
)}
</div>
<Link
href="/editor?mode=photo"
- className="text-sm text-white/60 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4"
+ className="text-sm text-white/70 hover:text-white/80 transition-colors underline decoration-white/30 underline-offset-4"
>
{t("goToPhotoEditor")}
</Link>
diff --git a/app/components/ui/home/VideoHero.tsx b/app/components/ui/home/VideoHero.tsx
index 2d5e028..c686854 100644
--- a/app/components/ui/home/VideoHero.tsx
+++ b/app/components/ui/home/VideoHero.tsx
@@ -23,7 +23,7 @@ export default function VideoHero() {
<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-poster.webp" aria-label={t("title")} className="block w-full h-full object-cover">
- <source src="/images/pages/demo-hero.mp4" type="video/mp4" />
+ <source src="/images/pages/demo-hero2.mp4" type="video/mp4" />
</video>
</div>
</div>
diff --git a/components/ui/GitHubStars.tsx b/components/ui/GitHubStars.tsx
index 7203140..f2d16b1 100644
--- a/components/ui/GitHubStars.tsx
+++ b/components/ui/GitHubStars.tsx
@@ -1,5 +1,3 @@
-"use client";
-
import { useEffect, useState } from "react";
import { Icon } from "@iconify/react";
@@ -13,20 +11,36 @@ export default function GitHubBadge() {
.catch(() => setStars(null));
}, []);
+ const formatStars = (count: number | null): string => {
+ if (count === null) return "—";
+ if (count >= 1000) {
+ return `${(count / 1000).toFixed(1)}K`;
+ }
+ return count.toString();
+ };
+
return (
<a
href="https://github.com/CristianOlivera1/openvid"
target="_blank"
rel="noopener noreferrer"
- className="flex flex-col items-center gap-1 p-2 text-white/70 hover:text-white transition-colors"
- aria-label="GitHub Repository"
+ className="relative inline-flex items-center gap-2 px-3 py-1.5 rounded-full bg-linear-to-r from-yellow-400 via-amber-500 to-yellow-600 text-black font-semibold text-sm shadow-xl hover:scale-105 active:scale-95 transition-all duration-200 border border-white/20 select-none whitespace-nowrap"
+ aria-label={`Repositorio de GitHub, ${stars ?? ""} estrellas`}
>
- <Icon icon="mdi:github" width="28" height="28" />
+ <div
+ className="absolute -top-px left-4 right-4 h-px bg-linear-to-r from-transparent via-white/90 to-transparent z-10"
+ aria-hidden="true"
+ />
+
+ <div
+ className="absolute -right-px top-2 bottom-2 w-px bg-linear-to-b from-transparent via-white/60 to-transparent z-10"
+ aria-hidden="true"
+ />
- <div className="flex items-center gap-1 px-2 py-1 mt-1 text-xs rounded-md bg-linear-to-r from-yellow-400 to-yellow-600 text-black font-semibold shadow-md tracking-tight">
- <Icon icon="mdi:star" width="12" height="12" />
- <span>{stars ?? "—"}</span>
+ <Icon icon="mdi:github" width="20" height="20" className="text-black" />
+ <div className="flex items-center gap-1 tracking-tight">
+ <span>{formatStars(stars)}</span>
</div>
</a>
);
-}
+}
\ No newline at end of file
diff --git a/public/images/pages/demo-hero.mp4 b/public/images/pages/demo-hero.mp4
deleted file mode 100644
index 907f098..0000000
Binary files a/public/images/pages/demo-hero.mp4 and /dev/null differ
diff --git a/public/images/pages/demo-hero2.mp4 b/public/images/pages/demo-hero2.mp4
new file mode 100644
index 0000000..92a0a4a
Binary files /dev/null and b/public/images/pages/demo-hero2.mp4 differ