Skip to content

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

feat: integrate smooth scrolling with ReactLenis and add social reactions section

CristianOlivera1cebc8d937609
diff --git a/app/[locale]/(home)/layout.tsx b/app/[locale]/(home)/layout.tsx
index 1b12e3f..a56d2d6 100644
--- a/app/[locale]/(home)/layout.tsx
+++ b/app/[locale]/(home)/layout.tsx
@@ -5,20 +5,30 @@ import Header from "@/app/components/common/Header";
import RecordingOverlay from "@/app/components/ui/RecordingOverlay";
import { RecordingProvider } from "@/app/contexts/RecordingContext";
import { AuthProvider } from "@/app/contexts/useAuth";
+import { ReactLenis } from "lenis/react";
import "../../globals.css";
export default function HomeLayout({ children }: { children: React.ReactNode }) {
return (
<AuthProvider>
<RecordingProvider>
- <div className="flex min-h-screen flex-col text-neutral-300 bg-neutral-950">
- <Header />
- <main className="flex-1 w-full">
- {children}
- </main>
- <Footer />
- </div>
- <RecordingOverlay />
+ <ReactLenis
+ root
+ options={{
+ lerp: 0.08,
+ smoothWheel: true,
+ wheelMultiplier: 1,
+ }}
+ >
+ <div className="flex min-h-screen flex-col text-neutral-300 bg-neutral-950">
+ <Header />
+ <main className="flex-1 w-full">
+ {children}
+ </main>
+ <Footer />
+ </div>
+ <RecordingOverlay />
+ </ReactLenis>
</RecordingProvider>
</AuthProvider>
);
diff --git a/app/[locale]/(home)/page.tsx b/app/[locale]/(home)/page.tsx
index 8ef1a4c..f758728 100644
--- a/app/[locale]/(home)/page.tsx
+++ b/app/[locale]/(home)/page.tsx
@@ -7,6 +7,7 @@ import VideoHero from "@/app/components/ui/home/VideoHero";
import BannerCTA from "@/app/components/ui/home/BannerCTA";
import FeaturesGrid from "@/app/components/ui/home/Featuresgrid";
import FeaturesShowcase from "@/app/components/ui/home/FeaturesShowcase";
+import SocialReactions from "@/app/components/ui/home/SocialReactions";
type Props = {
params: Promise<{ locale: string }>;
@@ -103,6 +104,10 @@ export default async function Home({ params }: Props) {
<FeaturesGrid />
</div>
+ <div id="reactions" className="w-full">
+ <SocialReactions />
+ </div>
+
<div className="max-w-xl mx-auto px-6 pt-24 pb-50">
<DonationCard />
</div>
diff --git a/app/components/ui/home/FeaturesShowcase.tsx b/app/components/ui/home/FeaturesShowcase.tsx
index bdb08d9..fd4caad 100644
--- a/app/components/ui/home/FeaturesShowcase.tsx
+++ b/app/components/ui/home/FeaturesShowcase.tsx
@@ -109,7 +109,7 @@ const DraggableCarousel = ({ children }: { children: React.ReactNode }) => {
onMouseLeave={handleMouseUpOrLeave}
onMouseUp={handleMouseUpOrLeave}
onMouseMove={handleMouseMove}
- className="flex gap-6 overflow-x-auto hide-scroll w-full cursor-grab select-none -ml-6 sm:ml-0"
+ className="flex gap-4 sm:gap-5 overflow-x-auto hide-scroll cursor-grab select-none -ml-5 w-[calc(100%+1.25rem)] sm:ml-0"
>
<div
className="flex-shrink-0 pointer-events-none"
diff --git a/app/components/ui/home/Featuresgrid.tsx b/app/components/ui/home/Featuresgrid.tsx
index a43a1ba..3ae0498 100644
--- a/app/components/ui/home/Featuresgrid.tsx
+++ b/app/components/ui/home/Featuresgrid.tsx
@@ -6,7 +6,7 @@ export default function FeaturesGrid() {
const t = useTranslations("featuresGrid");
return (
- <section className="w-full py-24 bg-black" aria-label={t("ariaLabel")}>
+ <section className="w-full pt-24 pb-50 bg-black" aria-label={t("ariaLabel")}>
<div className="max-w-7xl mx-auto px-6 lg:px-8">
<div className="max-w-2xl mb-16">
<h2 className="text-4xl sm:text-5xl font-semibold tracking-tight text-white mb-6">
diff --git a/app/components/ui/home/SocialReactions.tsx b/app/components/ui/home/SocialReactions.tsx
new file mode 100644
index 0000000..a5c4bd6
--- /dev/null
+++ b/app/components/ui/home/SocialReactions.tsx
@@ -0,0 +1,583 @@
+"use client";
+import React, { useRef, MouseEvent, useState, useCallback, memo, useMemo } from "react";
+import { Icon } from "@iconify/react";
+import { useTranslations } from "next-intl";
+
+interface Author {
+ name: string;
+ handle: string;
+ avatarUrl: string;
+ isVerified?: boolean;
+ followers?: string;
+}
+
+interface PostContent {
+ text?: string;
+ link?: { display: string; url: string };
+ mediaUrl?: string;
+ videoUrl?: string;
+}
+
+interface PostMetadata {
+ timestamp: string;
+ views?: string;
+}
+
+interface PostStats {
+ replies: string;
+ reposts: string;
+ likes: string;
+ bookmarks: string;
+ isLiked?: boolean;
+}
+
+interface SocialPost {
+ id: string;
+ platform: "x" | "instagram" | "facebook";
+ postUrl: string;
+ author: Author;
+ content: PostContent;
+ metadata?: PostMetadata;
+ stats?: PostStats;
+}
+
+const getSocialData = (t: (key: string) => string): SocialPost[] => [
+ {
+ id: "post-1",
+ platform: "x",
+ postUrl: "https://x.com/GithubProjects/status/2059401736096477303",
+ author: {
+ name: "GitHub Projects Community",
+ handle: "GithubProjects",
+ avatarUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/github.avif",
+ isVerified: true,
+ },
+ content: {
+ text: t("posts.post1.text"),
+ link: {
+ display: "opensourceprojects.dev/post/7596eb42-...",
+ url: "https://opensourceprojects.dev/post/7596eb42-...",
+ },
+ mediaUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/github-post.avif",
+ },
+ metadata: {
+ timestamp: t("posts.post1.timestamp"),
+ views: "27.3K",
+ },
+ stats: {
+ replies: "8",
+ reposts: "70",
+ likes: "632",
+ bookmarks: "605",
+ isLiked: false,
+ },
+ },
+ {
+ id: "post-2",
+ platform: "instagram",
+ postUrl: "https://www.instagram.com/p/DX6d6qKjA7I/",
+ author: {
+ name: "niyi.tech",
+ handle: "niyi.tech",
+ avatarUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/niyi-tech.avif",
+ followers: t("originalAudio"),
+ isVerified: true,
+ },
+ content: {
+ videoUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/niyi-tech.mp4",
+ text: t("posts.post2.text"),
+ },
+ stats: {
+ likes: "6.921",
+ replies: "0",
+ reposts: "0",
+ bookmarks: "0",
+ },
+ },
+ {
+ id: "post-3",
+ platform: "x",
+ postUrl: "https://x.com/Sn0wbrave/status/2073695828858835418",
+ author: {
+ name: "App Hunter ",
+ handle: "Sn0wbrave",
+ avatarUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/hunter.avif",
+ isVerified: true,
+ },
+ content: {
+ text: t("posts.post3.text"),
+ mediaUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/hunter-post.avif",
+ },
+ metadata: {
+ timestamp: t("posts.post3.timestamp"),
+ views: "9,045",
+ },
+ stats: {
+ replies: "4",
+ reposts: "42",
+ likes: "213",
+ bookmarks: "217",
+ isLiked: true,
+ },
+ },
+ {
+ id: "post-4",
+ platform: "instagram",
+ postUrl: "https://www.instagram.com/marc.kaz/",
+ author: {
+ name: "marc.kaz",
+ handle: "marc.kaz",
+ avatarUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/marc-kaz.avif",
+ followers: t("originalAudio"),
+ isVerified: true,
+ },
+ content: {
+ videoUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/main/openvid/social-reactions/marc-kaz.mp4",
+ text: t("posts.post4.text"),
+ },
+ stats: {
+ likes: "6.921",
+ replies: "0",
+ reposts: "0",
+ bookmarks: "0",
+ },
+ },
+ {
+ id: "post-5",
+ platform: "facebook",
+ postUrl: "https://www.facebook.com/100054016280443/posts/1484927906651071",
+ author: {
+ name: "Elboussaidi abdelmonim",
+ handle: "Elboussaidi",
+ avatarUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/elboussaidi.avif",
+ isVerified: false,
+ },
+ content: {
+ text: t("posts.post5.text"),
+ mediaUrl:
+ "https://raw.githubusercontent.com/CristianOlivera1/Resources-dev/refs/heads/main/openvid/social-reactions/elboussaidi-post.avif",
+ },
+ stats: {
+ replies: "31",
+ reposts: "172",
+ likes: "120",
+ bookmarks: "0",
+ },
+ },
+];
+
+const CARD_HEIGHT = "h-[700px]";
+
+const DraggableCarousel = memo(({ children }: { children: React.ReactNode }) => {
+ const scrollRef = useRef<HTMLDivElement>(null);
+ const [isDragging, setIsDragging] = useState(false);
+ const startX = useRef(0);
+ const scrollLeft = useRef(0);
+
+ const handleMouseDown = useCallback((e: MouseEvent) => {
+ if (!scrollRef.current) return;
+ setIsDragging(true);
+ scrollRef.current.classList.add("cursor-grabbing");
+ scrollRef.current.classList.remove("cursor-grab");
+ startX.current = e.pageX - scrollRef.current.offsetLeft;
+ scrollLeft.current = scrollRef.current.scrollLeft;
+ }, []);
+
+ const handleMouseUpOrLeave = useCallback(() => {
+ setIsDragging(false);
+ if (scrollRef.current) {
+ scrollRef.current.classList.add("cursor-grab");
+ scrollRef.current.classList.remove("cursor-grabbing");
+ }
+ }, []);
+
+ const handleMouseMove = useCallback(
+ (e: MouseEvent) => {
+ if (!isDragging || !scrollRef.current) return;
+ e.preventDefault();
+ const x = e.pageX - scrollRef.current.offsetLeft;
+ const walk = (x - startX.current) * 1.5;
+ scrollRef.current.scrollLeft = scrollLeft.current - walk;
+ },
+ [isDragging]
+ );
+
+ return (
+ <div className="w-full">
+ <div
+ ref={scrollRef}
+ onMouseDown={handleMouseDown}
+ onMouseLeave={handleMouseUpOrLeave}
+ onMouseUp={handleMouseUpOrLeave}
+ onMouseMove={handleMouseMove}
+ className="flex gap-4 sm:gap-5 overflow-x-auto hide-scroll cursor-grab select-none -ml-5 w-[calc(100%+1.25rem)] pr-4 items-stretch sm:ml-0 sm:w-full sm:px-0"
+ >
+ <div
+ className="flex-shrink-0 pointer-events-none"
+ style={{ width: "max(1.5rem, calc((100vw - 1280px) / 2))" }}
+ />
+ {children}
+ <div
+ className="flex-shrink-0 pointer-events-none"
+ style={{ width: "max(1.5rem, calc((100vw - 1290px) / 2))" }}
+ />
+ </div>
+ </div>
+ );
+});
+
+DraggableCarousel.displayName = "DraggableCarousel";
+
+const CustomSocialCard = memo(({ data }: { data: SocialPost }) => {
+ const t = useTranslations("socialReactions");
+
+ const handleRedirect = useCallback(() => {
+ window.open(data.postUrl, "_blank", "noopener,noreferrer");
+ }, [data.postUrl]);
+
+ return (
+ <div
+ className={`w-[calc(100vw-5rem)] sm:w-[calc(100vw-4rem)] max-w-132 shrink-0 bg-black text-white p-4 font-sans border border-neutral-800 squircle-element-xl select-none transition duration-200 hover:border-neutral-700 flex flex-col shadow-xl ${CARD_HEIGHT} overflow-y-auto hide-scroll`}
+ >
+ <div className="flex items-center justify-between mb-3">
+ <div className="flex items-center gap-3">
+ <div className="h-10 w-10 shrink-0 overflow-hidden rounded-full bg-neutral-800">
+ <img
+ src={data.author.avatarUrl}
+ alt={data.author.name}
+ className="h-full w-full object-cover"
+ draggable={false}
+ loading="lazy"
+ decoding="async"
+ />
+ </div>
+ <div className="flex flex-col leading-tight">
+ <div className="flex items-center gap-1 font-bold text-[15px]">
+ {data.author.name}
+ {data.author.isVerified && (
+ <Icon icon="mdi:check-decagram" className="text-[#1d9bf0] h-[18px] w-[18px]" />
+ )}
+ </div>
+ <div className="text-neutral-500 text-[15px]">@{data.author.handle}</div>
+ </div>
+ </div>
+ <div
+ onClick={handleRedirect}
+ className="flex items-center justify-center p-2 rounded-full cursor-pointer text-white hover:bg-neutral-800 transition"
+ >
+ {data.platform === "x" && <Icon icon="mingcute:social-x-line" className="h-5 w-5" />}
+ {data.platform === "facebook" && <Icon icon="ic:baseline-facebook" className="h-6 w-6" />}
+ </div>
+ </div>
+ <div className="mb-3 text-[15px] leading-normal whitespace-pre-wrap">
+ {data.content.text}
+ {data.content.link && (
+ <>
+ <br />
+ <a
+ href={data.content.link.url}
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-[#1d9bf0] hover:underline break-all"
+ >
+ {data.content.link.display}
+ </a>
+ </>
+ )}
+ </div>
+ {data.content.mediaUrl && (
+ <div
+ onClick={handleRedirect}
+ className="mt-3 overflow-hidden rounded-xl border border-neutral-800 shrink-0 cursor-pointer transition hover:opacity-95"
+ >
+ <img
+ src={data.content.mediaUrl}
+ alt="Post media"
+ className="w-full object-cover max-h-[240px]"
+ draggable={false}
+ loading="lazy"
+ decoding="async"
+ />
+ </div>
+ )}
+ <div className="mt-auto">
+ {data.metadata && (
+ <div className="mt-4 flex items-center gap-1 text-neutral-500 text-[15px]">
+ <span>{data.metadata.timestamp}</span>
+ {data.metadata.views && (
+ <>
+ <span>·</span>
+ <span className="font-bold text-white">{data.metadata.views}</span>
+ <span>{t("views")}</span>
+ </>
+ )}
+ </div>
+ )}
+ <div className="h-[1px] w-full bg-neutral-800 my-3" />
+ {data.stats && (
+ <div className="flex justify-between text-neutral-500 px-1">
+ <button className="flex items-center gap-2 hover:text-[#1d9bf0] group transition">
+ <div className="p-2 rounded-full group-hover:bg-[#1d9bf0]/10 transition">
+ <Icon icon="mdi:message-outline" className="h-5 w-5" />
+ </div>
+ <span className="text-[13px]">{data.stats.replies}</span>
+ </button>
+ <button className="flex items-center gap-2 hover:text-[#00ba7c] group transition">
+ <div className="p-2 rounded-full group-hover:bg-[#00ba7c]/10 transition">
+ <Icon icon="mdi:repeat" className="h-5 w-5" />
+ </div>
+ <span className="text-[13px]">{data.stats.reposts}</span>
+ </button>
+ <button
+ className={`flex items-center gap-2 group transition ${data.stats.isLiked ? "text-[#f91880]" : "hover:text-[#f91880]"
+ }`}
+ >
+ <div className="p-2 rounded-full group-hover:bg-[#f91880]/10 transition">
+ <Icon icon={data.stats.isLiked ? "mdi:heart" : "mdi:heart-outline"} className="h-5 w-5" />
+ </div>
+ <span className="text-[13px]">{data.stats.likes}</span>
+ </button>
+ <button className="flex items-center gap-2 hover:text-[#1d9bf0] group transition">
+ <div className="p-2 rounded-full group-hover:bg-[#1d9bf0]/10 transition">
+ <Icon icon="mdi:bookmark-outline" className="h-5 w-5" />
+ </div>
+ <span className="text-[13px]">{data.stats.bookmarks}</span>
+ </button>
+ <button className="flex items-center group transition hover:text-[#1d9bf0]">
+ <div className="p-2 rounded-full group-hover:bg-[#1d9bf0]/10 transition">
+ <Icon icon="mdi:tray-arrow-up" className="h-5 w-5" />
+ </div>
+ </button>
+ </div>
+ )}
+ </div>
+ </div>
+ );
+});
+CustomSocialCard.displayName = "CustomSocialCard";
+
+const InstagramReelCard = memo(({ data }: { data: SocialPost }) => {
+ const t = useTranslations("socialReactions");
+
+ const handleRedirect = useCallback(() => {
+ window.open(data.postUrl, "_blank", "noopener,noreferrer");
+ }, [data.postUrl]);
+
+ return (
+ <article
+ className={`w-[calc(100vw-4rem)] sm:w-[calc(100vw-4rem)] max-w-132 shrink-0 relative overflow-hidden squircle-element-xl border border-white/15 bg-black text-white shadow-2xl transition duration-200 hover:border-white/30 flex flex-col justify-between select-none shadow-xl ${CARD_HEIGHT}`}
+ >
+ <div className="absolute inset-0 h-full w-full pointer-events-none z-0">
+ <video
+ className="h-full w-full object-cover"
+ src={data.content.videoUrl}
+ playsInline
+ preload="auto"
+ autoPlay
+ muted
+ loop
+ disableRemotePlayback
+ draggable={false}
+ />
+ <div className="absolute inset-0 bg-gradient-to-b from-black/50 via-transparent to-black/70" />
+ </div>
+
+ <div className="flex items-center justify-between gap-3 p-4 z-10 w-full">
+ <div className="flex items-center gap-3">
+ <div
+ onClick={handleRedirect}
+ className="flex h-11 w-11 shrink-0 items-center justify-center rounded-full bg-gradient-to-tr from-[#feda75] via-[#d62976] to-[#4f5bd5] p-[2px] cursor-pointer transition hover:opacity-90"
+ >
+ <img
+ alt={data.author.name}
+ className="h-full w-full rounded-full object-cover border-2 border-black"
+ src={data.author.avatarUrl}
+ draggable={false}
+ loading="lazy"
+ decoding="async"
+ />
+ </div>
+ <div className="flex flex-col leading-tight">
+ <div className="text-[15px] font-semibold flex items-center gap-1">
+ {data.author.name}
+ {data.author.isVerified && (
+ <Icon icon="mdi:check-decagram" className="text-[#0095f6] h-[14px] w-[14px]" />
+ )}
+ </div>
+ <div className="text-xs text-white/75">{data.author.followers}</div>
+ </div>
+ </div>
+ <div
+ onClick={handleRedirect}
+ className="flex items-center justify-center p-2 rounded-full cursor-pointer hover:bg-white/10 transition"
+ >
+ <Icon icon="mdi:instagram" className="h-6 w-6 text-white" />
+ </div>
+ </div>
+
+ {data.content.text && (
+ <div className="mt-auto px-4 text-[14px] text-white/95 leading-normal drop-shadow-md z-10 line-clamp-3 font-sans max-w-[90%]">
+ {data.content.text}
+ </div>
+ )}
+
+ <div className="p-4 z-10 mt-2">
+ <div
+ onClick={handleRedirect}
+ className="inline-flex items-center gap-1.5 cursor-pointer rounded-full bg-black/45 px-2.5 py-1 text-xs backdrop-blur border border-white/10"
+ >
+ <Icon icon="mdi:movie-play-outline" className="h-4 w-4" />
+ <span>{t("watchReel")}</span>
+ </div>
+ </div>
+ </article>
+ );
+});
+InstagramReelCard.displayName = "InstagramReelCard";
+
+export default function SocialReactions() {
+ const t = useTranslations("socialReactions");
+
+ const socialData = useMemo(() => getSocialData(t), [t]);
+
+ return (
+ <section
+ className="relative w-full overflow-hidden py-10 md:py-16 mask-b-from-70% mask-b-to-99%"
+ style={{
+ background:
+ "linear-gradient(180deg, #FF7A38 0%, #FF5A1F 20%, #F0481A 34%, #B83A14 48%, #5C2911 62%, #1C1208 78%)",
+ paddingBottom: "clamp(140px, 22vw, 320px)",
+ }}
+ >
+ <div aria-hidden="true" className="absolute inset-0 pointer-events-none overflow-hidden select-none">
+ <div
+ style={{
+ position: "absolute",
+ left: "-5%",
+ top: "-10%",
+ width: "40%",
+ height: "60%",
+ borderRadius: "50%",
+ background: "radial-gradient(circle, rgba(0, 138, 255, 0.22) 0%, transparent 75%)",
+ mixBlendMode: "hard-light",
+ filter: "blur(90px)",
+ }}
+ ></div>
+ <div
+ style={{
+ position: "absolute",
+ left: "20%",
+ top: "-22%",
+ width: "52%",
+ height: "66%",
+ borderRadius: "50%",
+ background: "radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 80%)",
+ mixBlendMode: "hard-light",
+ filter: "blur(100px)",
+ }}
+ ></div>
+ <div
+ style={{
+ position: "absolute",
+ left: "68%",
+ top: "12%",
+ width: "42%",
+ height: "65%",
+ borderRadius: "9999px",
+ background: "linear-gradient(135deg, rgba(247, 164, 66, 0.4) 0%, transparent 100%)",
+ mixBlendMode: "hard-light",
+ filter: "blur(95px)",
+ }}
+ ></div>
+ <div
+ style={{
+ position: "absolute",
+ left: "-12%",
+ top: "38%",
+ width: "55%",
+ height: "70%",
+ borderRadius: "50%",
+ background: "linear-gradient(to bottom, rgba(233, 66, 247, 0.35) 0%, transparent 100%)",
+ mixBlendMode: "soft-light",
+ filter: "blur(110px)",
+ }}
+ ></div>
+ <div
+ style={{
+ position: "absolute",
+ left: "35%",
+ top: "52%",
+ width: "25%",
+ height: "58%",
+ borderRadius: "9999px",
+ background:
+ "linear-gradient(135deg, rgba(247, 164, 66, 0.18) 0%, rgba(233, 66, 247, 0.22) 100%)",
+ mixBlendMode: "soft-light",
+ filter: "blur(100px)",
+ }}
+ ></div>
+ <div
+ style={{
+ position: "absolute",
+ top: 0,
+ left: 0,
+ right: 0,
+ height: "34%",
+ background:
+ "radial-gradient(82% 100% at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 62%)",
+ mixBlendMode: "overlay",
+ }}
+ ></div>
+ </div>
+ <div
+ aria-hidden="true"
+ className="absolute inset-0 pointer-events-none select-none"
+ style={{
+ backgroundImage: `url("data:image/svg+xml;utf8,<svg xmlns='http://w3.org' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")`,
+ backgroundSize: "200px 200px",
+ mixBlendMode: "overlay",
+ opacity: 0.04,
+ }}
+ ></div>
+
+ <div className="relative z-10">
+ <div className="max-w-7xl mb-16 px-6 lg:px-8 mx-auto">
+ <h2 className="text-4xl sm:text-5xl font-semibold tracking-tight text-white mb-6">
+ {t("titleLine1")} <br className="hidden sm:block" />
+ <span className="relative inline-block text-transparent bg-clip-text bg-gradient-to-r from-neutral-200 to-orange-300 drop-shadow-sm">
+ {t("titleLine2")}
+ <img
+ src="/images/carousel/decorators/sparkles.webp"
+ alt={t("sparklesAlt")}
+ className="absolute sm:-top-24 sm:-left-10 -top-18 -left-5 pointer-events-none select-none animate-pulse"
+ />
+ </span>
+ </h2>
+ <p className="text-xl text-orange-100/80 font-light leading-relaxed max-w-xl drop-shadow-sm">
+ {t("description")}
+ </p>
+ </div>
+ <DraggableCarousel>
+ {socialData.map((post) => {
+ if (post.platform === "x" || post.platform === "facebook") {
+ return <CustomSocialCard key={post.id} data={post} />;
+ }
+ if (post.platform === "instagram") {
+ return <InstagramReelCard key={post.id} data={post} />;
+ }
+ return null;
+ })}
+ </DraggableCarousel>
+ </div>
+ </section>
+ );
+}
\ No newline at end of file
diff --git a/app/globals.css b/app/globals.css
index 4108118..637e4c7 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -1,7 +1,6 @@
@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
-@import 'atropos/scss';
@custom-variant dark (&:is(.dark *));
@@ -121,9 +120,9 @@
@layer base {
- html {
- scroll-behavior: smooth;
- }
+ html.lenis, html.lenis body {
+ height: auto;
+}
* {
@apply border-border outline-ring/50;
@@ -194,6 +193,22 @@
}
}
+.lenis.lenis-smooth {
+ scroll-behavior: auto !important;
+}
+
+.lenis.lenis-smooth [data-lenis-prevent] {
+ overscroll-behavior: contain;
+}
+
+.lenis.lenis-stopped {
+ overflow: hidden;
+}
+
+.lenis.lenis-smooth iframe {
+ pointer-events: none;
+}
+
@utility animate-reveal {
animation: reveal 0.8s var(--ease-elegant) forwards;
}
@@ -296,10 +311,6 @@ button {
}
}
-.atropos-highlight {
- border-radius: 1rem;
-}
-
.text-mask {
font-size: 15vw;
font-weight: 900;
diff --git a/messages/en.json b/messages/en.json
index 54ca564..489a56e 100644
--- a/messages/en.json
+++ b/messages/en.json
@@ -1197,5 +1197,33 @@
"svgShapes": "SVG Shapes",
"blurEffects": "Blur Effects"
}
+ },
+ "socialReactions": {
+ "titleLine1": "Don't just take",
+ "titleLine2": "our word for it",
+ "description": "See how founders and creators are transforming their demos with Openvid.",
+ "views": "Views",
+ "watchReel": "Watch Reel",
+ "originalAudio": "Original audio",
+ "sparklesAlt": "Sparkles decorator",
+ "posts": {
+ "post1": {
+ "text": "openvid is an open-source browser-based video editor for recording and editing screen captures with cinematic effects, no uploads required.\n\n- 4K export with H.264, WebM, GIF, and image formats\n- 3D camera movement, zoom, and perspective adjustments\n- Device mockups for Safari, Chrome, Arc, and Samsung\n- Multi-track audio with per-track and master volume control\n\nExplore it here:",
+ "timestamp": "5:30 PM · May 26, 2026"
+ },
+ "post2": {
+ "text": "🚨 SCREENSHOT ➔ POLISHED PRODUCT WALKTHROUGH VIDEO INSTANTLY\n\nThis guy built a tool that turns any app..."
+ },
+ "post3": {
+ "text": "🎥 A free and open-source tool for creating professional product demos directly from the browser.\n\nRecord the screen, add zoom effects, device frames, and 3D effects, then export the video in high quality.\n\nIf you're making tutorials or showcasing apps, this is worth trying out.\n\n🐱 GitHub: CristianOlivera1/openvid",
+ "timestamp": "4:09 AM · Jul 5, 2026"
+ },
+ "post4": {
+ "text": "🚨 SCREENSHOT ➔ POLISHED PRODUCT WALKTHROUGH VIDEO INSTANTLY\n\nThis guy built a tool that turns any app screenshot into a clean, professional motion demo video.\n\nShips with:\n- One-click screenshot ➔ full animated walkthrough\n- Smooth UI animations & feature highlights\n- No After Effects, no Premiere, no designer needed\n- Perfect for landing pages & social media launches\n\n👉 https://github.com/CristianOlivera1/openvid\n\nWho's turning screenshots into pro videos today? Drop a 🔥"
+ },
+ "post5": {
+ "text": "OpenVid Hero is an open-source, in-browser tool that converts app screenshots into professional, 4K-enabled motion demo videos without requiring external editing software. The tool features local rendering, 3D camera motions, and device mockups, offering a fast, private alternative for creating high-end product demos. Explore the project on GitHub: https://github.com/CristianOlivera1/openvid."
+ }
+ }
}
}
\ No newline at end of file
diff --git a/messages/es.json b/messages/es.json
index ed8efd1..9f870e1 100644
--- a/messages/es.json
+++ b/messages/es.json
@@ -1175,5 +1175,33 @@
"svgShapes": "Formas SVG",
"blurEffects": "Efectos de desenfoque"
}
+ },
+ "socialReactions": {
+ "titleLine1": "No te quedes solo",
+ "titleLine2": "con nuestra palabra",
+ "description": "Descubre cómo fundadores y creadores están transformando sus demos con Openvid.",
+ "views": "Vistas",
+ "watchReel": "Ver Reel",
+ "originalAudio": "Audio original",
+ "sparklesAlt": "Decorador de destellos",
+ "posts": {
+ "post1": {
+ "text": "openvid es un editor de video de código abierto en el navegador para grabar y editar capturas de pantalla con efectos cinematográficos, sin subidas a la nube.\n\n- Exportación 4K con formatos H.264, WebM, GIF e imagen\n- Movimientos de cámara 3D, zoom y ajustes de perspectiva\n- Mockups de dispositivos para Safari, Chrome, Arc y Samsung\n- Audio multipista con control de volumen por pista y maestro\n\nExplóralo aquí:",
+ "timestamp": "17:30 · 26 may. 2026"
+ },
+ "post2": {
+ "text": "🚨 CAPTURA DE PANTALLA ➔ VIDEO TUTORIAL DE PRODUCTO AL INSTANTE\n\nEste chico construyó una herramienta que convierte cualquier app..."
+ },
+ "post3": {
+ "text": "🎥 Una herramienta gratuita y de código abierto para crear demos de productos profesionales directamente en el navegador.\n\nGraba la pantalla, añade zoom, marcos de dispositivos y efectos 3D, y exporta el video en alta calidad.\n\nSi haces tutoriales o muestras aplicaciones, vale la pena probarlo.\n\n🐱 GitHub: CristianOlivera1/openvid",
+ "timestamp": "04:09 · 5 jul. 2026"
+ },
+ "post4": {
+ "text": "🚨 CAPTURA DE PANTALLA ➔ VIDEO TUTORIAL DE PRODUCTO AL INSTANTE\n\nEste chico construyó una herramienta que convierte cualquier captura de pantalla en un video demo limpio y profesional.\n\nIncluye:\n- Captura con 1 clic ➔ recorrido animado completo\n- Animaciones de UI fluidas y funciones destacadas\n- Sin After Effects, sin Premiere, sin diseñador\n- Perfecto para landing pages y redes sociales\n\n👉 https://github.com/CristianOlivera1/openvid\n\n¿Quién está convirtiendo capturas en videos pro hoy? Deja un 🔥"
+ },
+ "post5": {
+ "text": "OpenVid Hero es una herramienta de código abierto en el navegador que convierte capturas de pantalla de aplicaciones en videos demo profesionales en 4K sin requerir software de edición externo. La herramienta cuenta con renderizado local, movimientos de cámara 3D y mockups de dispositivos, ofreciendo una alternativa rápida y privada para crear demos de alta gama. Explora el proyecto en GitHub: https://github.com/CristianOlivera1/openvid."
+ }
+ }
}
}
\ No newline at end of file
diff --git a/messages/ru.json b/messages/ru.json
index edb66b1..c4192da 100644
--- a/messages/ru.json
+++ b/messages/ru.json
@@ -1192,5 +1192,33 @@
"svgShapes": "SVG-фигуры",
"blurEffects": "Эффекты размытия"
}
+ },
+ "socialReactions": {
+ "titleLine1": "Не верьте нам",
+ "titleLine2": "на слово",
+ "description": "Посмотрите, как основатели и создатели преобразуют свои демо-ролики с помощью Openvid.",
+ "views": "Просмотры",
+ "watchReel": "Смотреть Reels",
+ "originalAudio": "Оригинальная аудиодорожка",
+ "sparklesAlt": "Декоратор искры",
+ "posts": {
+ "post1": {
+ "text": "openvid — это браузерный видеоредактор с открытым исходным кодом для записи и редактирования экрана с кинематографическими эффектами, без необходимости загрузки файлов.\n\n- Экспорт в 4K в форматах H.264, WebM, GIF и изображениях\n- 3D-движение камеры, масштабирование и настройка перспективы\n- Макеты устройств для Safari, Chrome, Arc и Samsung\n- Многодорожечное аудио с регулировкой громкости\n\nИзучите это здесь:",
+ "timestamp": "17:30 · 26 мая 2026 г."
+ },
+ "post2": {
+ "text": "🚨 СКРИНШОТ ➔ ИДЕАЛЬНОЕ ДЕМО ПРОДУКТА МГНОВЕННО\n\nЭтот парень создал инструмент, который превращает любое приложение..."
+ },
+ "post3": {
+ "text": "🎥 Бесплатный инструмент с открытым исходным кодом для создания профессиональных демо-роликов продукта прямо в браузере.\n\nЗаписывайте экран, добавляйте эффекты масштабирования, рамки устройств и 3D-эффекты, а затем экспортируйте видео в высоком качестве.\n\nЕсли вы делаете обучающие ролики или демонстрируете приложения, это стоит попробовать.\n\n🐱 GitHub: CristianOlivera1/openvid",
+ "timestamp": "04:09 · 5 июля 2026 г."
+ },
+ "post4": {
+ "text": "🚨 СКРИНШОТ ➔ ИДЕАЛЬНОЕ ДЕМО ПРОДУКТА МГНОВЕННО\n\nЭтот парень создал инструмент, который превращает любой скриншот приложения в чистый, профессиональный анимационный демо-ролик.\n\nВключает:\n- Один клик по скриншоту ➔ полная анимированная презентация\n- Плавная анимация интерфейса и выделение функций\n- Никаких After Effects, Premiere и дизайнеров\n- Идеально для целевых страниц и запусков в соцсетях\n\n👉 https://github.com/CristianOlivera1/openvid\n\nКто сегодня превращает скриншоты в профессиональные видео? Ставьте 🔥"
+ },
+ "post5": {
+ "text": "OpenVid Hero — это браузерный инструмент с открытым исходным кодом, который конвертирует скриншоты приложений в профессиональные 4K демо-ролики без необходимости использования внешних программ. Инструмент включает локальный рендеринг, 3D-движение камеры и макеты устройств, предлагая быструю и приватную альтернативу для создания высококлассных демо-версий продуктов. Изучите проект на GitHub: https://github.com/CristianOlivera1/openvid."
+ }
+ }
}
}
\ No newline at end of file
diff --git a/package.json b/package.json
index a30afe4..30eca87 100644
--- a/package.json
+++ b/package.json
@@ -19,12 +19,12 @@
"@supabase/ssr": "^0.9.0",
"@supabase/supabase-js": "^2.100.1",
"@types/three": "^0.184.0",
- "atropos": "^2.0.2",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"framer-motion": "^12.34.3",
"gsap": "^3.15.0",
"html-to-image": "^1.11.13",
+ "lenis": "^1.3.25",
"leva": "^0.10.1",
"lucide-react": "^0.563.0",
"mediabunny": "^1.34.4",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 221aec1..56db835 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -38,9 +38,6 @@ importers:
'@types/three':
specifier: ^0.184.0
version: 0.184.0
- atropos:
- specifier: ^2.0.2
- version: 2.0.2
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -56,6 +53,9 @@ importers:
html-to-image:
specifier: ^1.11.13
version: 1.11.13
+ lenis:
+ specifier: ^1.3.25
+ version: 1.3.25([email protected])
leva:
specifier: ^0.10.1
@@ -2127,10 +2127,6 @@ packages:
resolution: {integrity: sha512-hsU18Ae8CDTR6Kgu9DYf0EbCr/a5iGL0rytQDobUcdpYOKokk8LEjVphnXkDkgpi0wYVsqrXuP0bZxJaTqdgoA==}
engines: {node: '>= 0.4'}
- resolution: {integrity: sha512-8f0u0hEOlBTWTSvzY17TcHuQjxUIpkTBq70/I4+UF5B43ORtOoRjm8TPBYEgLM8Ba9AWf6PDtkagbYoybdjaKg==}
- engines: {node: '>= 12.0.0'}
-
resolution: {integrity: sha512-0bDNnY/u6pPwHDMoF0FieU354oBi0a8rD9FcsLwzcGWbc8KS8KPIi7y+s13OlVY+gMWc/9xEMUgNE6Qm8ZllYQ==}
engines: {node: '>=4'}
@@ -3273,6 +3269,20 @@ packages:
resolution: {integrity: sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==}
engines: {node: '>=0.10'}
+ resolution: {integrity: sha512-mOKxayErlaONK8fm4LN3XNd99Qu4plTpn9h9qf8wxzjGrJDzuD84FYzZ81HCd6ZsWp++VWVwOzL286Pf2s2u4A==}
+ peerDependencies:
+ '@nuxt/kit': '>=3.0.0'
+ react: '>=17.0.0'
+ vue: '>=3.0.0'
+ peerDependenciesMeta:
+ '@nuxt/kit':
+ optional: true
+ react:
+ optional: true
+ vue:
+ optional: true
+
resolution: {integrity: sha512-BcjnfUX8jpmwZUz2L7AfBtF9vn4ggTH33hmeufDULbP3YgNZ/C+ss/oO3stbrqRQyaOmRwy70y7BGTGO81S3rA==}
peerDependencies:
@@ -6489,8 +6499,6 @@ snapshots:
-
@@ -7716,6 +7724,10 @@ snapshots:
dependencies:
language-subtag-registry: 0.3.23
+ optionalDependencies:
+ react: 19.2.3
+
dependencies:
diff --git a/public/images/carousel/decorators/sparkles.webp b/public/images/carousel/decorators/sparkles.webp
new file mode 100644
index 0000000..1895baf
Binary files /dev/null and b/public/images/carousel/decorators/sparkles.webp differ