Components
Embed highly realistic 3D astrophysics directly into your Next.js project. Zero configuration, interactive, and flawlessly smooth using React Three Fiber.
npx @21st-dev/cli@beta add alexperezcedeno/lunar-gravity-cardLoading preview...
"use client";
import { Component as LunarGravityCard } from "@/components/ui/lunar-gravity-card";
export default function Demo() {
return (
<div className="w-full min-h-screen bg-zinc-950 flex flex-col items-center justify-center p-4 sm:p-10 font-sans">
<div className="relative w-full max-w-[1000px]">
<LunarGravityCard />
<a
href="https://uithefactory.com/gallery"
target="_blank"
rel="noopener noreferrer"
className="absolute top-6 right-6 md:top-8 md:right-8 w-10 h-10 bg-white/5 hover:bg-white/10 border border-white/10 rounded-full flex items-center justify-center z-50 text-white/50 hover:text-white backdrop-blur-md transition-all hover:scale-110"
title="Discover more at The UI Factory"
>
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round">
<circle cx="12" cy="12" r="10"></circle>
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
<path d="M2 12h20"></path>
</svg>
</a>
</div>
</div>
);
}