UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: remove globe from landing page
Dillion Vermaa61ab0f48b4e
diff --git a/components/landing/hero-client.tsx b/components/landing/hero-client.tsxindex 8f278af7..08587f9a 100644--- a/components/landing/hero-client.tsx+++ b/components/landing/hero-client.tsx@@ -9,10 +9,12 @@ import AnimatedBeamMultipleInputDemo from "@/registry/components/example/animateimport AnimatedListDemo from "@/registry/components/example/animated-list-demo";import BentoDemo from "@/registry/components/example/bento-demo";import DockDemo from "@/registry/components/example/dock-demo";-import GlobeDemo from "@/registry/components/example/globe-demo";import OrbitingCirclesDemo from "@/registry/components/example/orbiting-circles-demo";import RetroGridDemo from "@/registry/components/example/retro-grid-demo";import AnimatedGradientText from "@/registry/components/magicui/animated-gradient-text";+import { VelocityScroll } from "@/registry/components/magicui/scroll-based-velocity";+import TypingAnimation from "@/registry/components/magicui/typing-animation";+import WordRotate from "@/registry/components/magicui/word-rotate";import { motion, useInView } from "framer-motion";import { ChevronRight } from "lucide-react";import Link from "next/link";@@ -137,7 +139,7 @@ export default function HeroClient({ post }: { post: Doc }) {)}>Browse Components- <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1 flex-shrink-0" />+ <ChevronRight className="ml-1 size-4 flex-shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" /></Link><Linkhref="/docs"@@ -151,7 +153,7 @@ export default function HeroClient({ post }: { post: Doc }) {)}>Get Started- <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1 flex-shrink-0" />+ <ChevronRight className="ml-1 size-4 flex-shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" /></Link></div></motion.div>@@ -290,7 +292,38 @@ export default function HeroClient({ post }: { post: Doc }) {<AnimatedBeamMultipleInputDemo /><AnimatedListDemo /><RetroGridDemo />- <GlobeDemo />+ <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background md:shadow-xl">+ <TypingAnimation+ className="text-4xl font-bold text-black dark:text-white"+ text="Typing Animation"+ />+ </div>+ <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background p-4 md:shadow-xl">+ <WordRotate+ className="text-4xl font-bold text-black dark:text-white"+ words={[+ "Web Development.",+ "UI/UX Design.",+ "Cloud Computing.",+ "Web Security.",+ "Frontend Frameworks.",+ "Backend Architectures.",+ "API Design.",+ "Content Management Systems.",+ "SEO Strategies.",+ "Web Performance Optimization.",+ "Responsive Design.",+ "JavaScript Libraries.",+ ]}+ />+ </div>+ <div className="relative flex h-full w-full max-w-[32rem] items-center justify-center overflow-hidden rounded-lg border bg-background py-4 md:shadow-xl">+ <VelocityScroll+ text="Velocity Scroll"+ default_velocity={5}+ className="font-display text-center text-4xl font-bold tracking-[-0.02em] text-black drop-shadow-sm dark:text-white md:text-7xl md:leading-[5rem]"+ />+ </div><OrbitingCirclesDemo /><DockDemo /></div>diff --git a/registry/components/example/animated-beam-multiple-outputs.tsx b/registry/components/example/animated-beam-multiple-outputs.tsxindex 16fff2fa..3d5bdf75 100644--- a/registry/components/example/animated-beam-multiple-outputs.tsx+++ b/registry/components/example/animated-beam-multiple-outputs.tsx@@ -22,7 +22,11 @@ const Circle = forwardRef<);});-export default function AnimatedBeamDemo() {+export default function AnimatedBeamMultipleOutputDemo({+ className,+}: {+ className?: string;+}) {const containerRef = useRef<HTMLDivElement>(null);const div1Ref = useRef<HTMLDivElement>(null);const div2Ref = useRef<HTMLDivElement>(null);@@ -34,7 +38,10 @@ export default function AnimatedBeamDemo() {return (<div- className="relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl"+ className={cn(+ "relative flex w-full max-w-[500px] items-center justify-center overflow-hidden rounded-lg border bg-background p-10 md:shadow-xl",+ className,+ )}ref={containerRef}><div className="flex h-full w-full flex-row items-stretch justify-between gap-10">diff --git a/registry/components/example/bento-demo.tsx b/registry/components/example/bento-demo.tsxindex d83375c6..fbdf5c9b 100644--- a/registry/components/example/bento-demo.tsx+++ b/registry/components/example/bento-demo.tsx@@ -8,15 +8,11 @@ import {CommandList,} from "@/components/ui/command";import { cn } from "@/lib/utils";+import AnimatedBeamMultipleOutputDemo from "@/registry/components/example/animated-beam-multiple-outputs";import { BentoCard, BentoGrid } from "@/registry/components/magicui/bento-grid";-import Globe from "@/registry/components/magicui/globe";import Marquee from "@/registry/components/magicui/marquee";-import {- CalendarIcon,- FileTextIcon,- GlobeIcon,- InputIcon,-} from "@radix-ui/react-icons";+import { CalendarIcon, FileTextIcon, InputIcon } from "@radix-ui/react-icons";+import { Share2Icon } from "lucide-react";const files = [{@@ -41,6 +37,85 @@ const files = [},];+interface Item {+ name: string;+ description: string;+ icon: string;+ color: string;+ time: string;+}++let notifications = [+ {+ name: "Payment received",+ description: "Magic UI",+ time: "15m ago",++ icon: "💸",+ color: "#00C9A7",+ },+ {+ name: "User signed up",+ description: "Magic UI",+ time: "10m ago",+ icon: "👤",+ color: "#FFB800",+ },+ {+ name: "New message",+ description: "Magic UI",+ time: "5m ago",+ icon: "💬",+ color: "#FF3D71",+ },+ {+ name: "New event",+ description: "Magic UI",+ time: "2m ago",+ icon: "🗞️",+ color: "#1E86FF",+ },+];++notifications = Array.from({ length: 10 }, () => notifications).flat();++const Notification = ({ name, description, icon, color, time }: Item) => {+ return (+ <figure+ className={cn(+ "relative mx-auto min-h-fit w-full max-w-[400px] transform cursor-pointer overflow-hidden rounded-2xl p-4",+ // animation styles+ "transition-all duration-200 ease-in-out hover:scale-[103%]",+ // light styles+ "bg-white [box-shadow:0_0_0_1px_rgba(0,0,0,.03),0_2px_4px_rgba(0,0,0,.05),0_12px_24px_rgba(0,0,0,.05)]",+ // dark styles+ "transform-gpu dark:bg-transparent dark:backdrop-blur-md dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",+ )}+ >+ <div className="flex flex-row items-center gap-3">+ <div+ className="flex h-10 w-10 items-center justify-center rounded-2xl"+ style={{+ backgroundColor: color,+ }}+ >+ <span className="text-lg">{icon}</span>+ </div>+ <div className="flex flex-col overflow-hidden">+ <figcaption className="flex flex-row items-center whitespace-pre text-lg font-medium dark:text-white ">+ <span className="text-sm sm:text-lg">{name}</span>+ <span className="mx-1">·</span>+ <span className="text-xs text-gray-500">{time}</span>+ </figcaption>+ <p className="text-sm font-normal dark:text-white/60">+ {description}+ </p>+ </div>+ </div>+ </figure>+ );+};+const features = [{Icon: FileTextIcon,@@ -102,14 +177,14 @@ const features = [),},{- Icon: GlobeIcon,- name: "Multilingual",- description: "Supports 100+ languages and counting.",+ Icon: Share2Icon,+ name: "Integrations",+ description: "Supports 100+ integrations and counting.",href: "/",cta: "Learn more",className: "col-span-3 lg:col-span-2",background: (- <Globe className="top-0 h-[600px] w-[600px] transition-all duration-300 ease-out [mask-image:linear-gradient(to_top,transparent_30%,#000_100%)] group-hover:scale-105 sm:left-40" />+ <AnimatedBeamMultipleOutputDemo className="absolute right-2 top-4 h-[300px] w-[600px] border-none transition-all duration-300 ease-out [mask-image:linear-gradient(to_top,transparent_10%,#000_100%)] group-hover:scale-105" />),},{diff --git a/registry/components/example/typing-animation-demo.tsx b/registry/components/example/typing-animation-demo.tsxindex 7a22669b..86b03ede 100644--- a/registry/components/example/typing-animation-demo.tsx+++ b/registry/components/example/typing-animation-demo.tsx@@ -4,7 +4,7 @@ export default async function TextRevealDemo() {return (<TypingAnimationclassName="text-4xl font-bold text-black dark:text-white"- text="Building Magic"+ text="Typing Animation"/>);}