UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
wip: magic ui blocks wip (#7)
Dillion Vermaef4fbc478051
diff --git a/components/block-preview.tsx b/components/block-preview.tsxnew file mode 100644index 00000000..6da6b4f9--- /dev/null+++ b/components/block-preview.tsx@@ -0,0 +1,181 @@+"use client";++import BlockWrapper from "@/components/block-wrapper";+import { Icons } from "@/components/icons";+import PreOrder from "@/components/preorder";+import { Badge } from "@/components/ui/badge";+import { Separator } from "@/components/ui/separator";+import { Skeleton } from "@/components/ui/skeleton";+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";+import { cn, fetcher } from "@/lib/utils";+import { registry } from "@/registry";+import { LockClosedIcon } from "@radix-ui/react-icons";+import { useSession } from "next-auth/react";+import Link from "next/link";+import * as React from "react";+import useSWR from "swr";++interface BlockPreviewProps extends React.HTMLAttributes<HTMLDivElement> {+ name: string;+ align?: "center" | "start" | "end";+ free?: boolean;+ scroller?: boolean;+}++const PayWall = ({ className }: { className?: string }) => {+ return (+ <>+ <PreOrder />+ </>+ );+};++export function BlockPreview({+ name,+ children,+ className,+ align = "center",+ free = false,+ scroller = false,+ ...props+}: BlockPreviewProps) {+ const { data: session, status } = useSession();+ const [paywall, setPaywall] = React.useState(false);+ const { data, isLoading } = useSWR(+ status === "authenticated" && "/api/me",+ fetcher,+ );++ const Codes = React.Children.toArray(children) as React.ReactElement[];+ const Code = Codes[0]; // first child++ const Preview = React.useMemo(() => {+ const Component = registry[name]?.component;++ if (!Component) {+ return (+ <p className="text-sm text-muted-foreground">+ Component{" "}+ <code className="relative rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono text-sm">+ {name}+ </code>{" "}+ not found in registry.+ </p>+ );+ }++ return <Component />;+ }, [name]);++ React.useEffect(() => {+ const shouldShowPaywall =+ (!free && status === "unauthenticated") ||+ (data?.user?.customer?.payments?.length === 0 &&+ data?.user?.role !== "ADMIN");+ setPaywall(shouldShowPaywall);+ }, [free, status, data]);++ if (status === "loading") return null;+ if (isLoading) return null;++ function humanize(name: string): string {+ return name+ .replace(/-/g, " ")+ .replace(/([A-Z])/g, " $1")+ .trim()+ .split(/\s+/)+ .map((word) => word[0].toUpperCase() + word.substring(1).toLowerCase())+ .join(" ");+ }++ return (+ <div+ className={cn(+ "not-prose relative my-4 flex flex-col space-y-2 lg:max-w-[100ch]",+ className,+ )}+ {...props}+ >+ <Tabs defaultValue="preview" className="relative mr-auto w-full">+ <div className="flex items-center justify-between">+ {paywall && (+ <>+ <div className="flex flex-row gap-2">+ <h2 className="text-xl font-semibold text-primary">+ {humanize(name)}+ </h2>+ <Badge+ variant="secondary"+ className="hidden tracking-normal text-foreground md:inline-flex"+ >+ Preview+ </Badge>+ </div>+ <Link+ href={"/pricing"}+ className={cn(+ "group relative flex flex-row items-center justify-center gap-2 text-sm font-medium",+ "rounded-2xl px-4 py-1.5 text-sm font-medium shadow-[inset_0_-8px_10px_#8fdfff1f]",+ "transition-shadow duration-500 ease-out hover:shadow-[inset_0_-5px_10px_#8fdfff3f]",+ )}+ >+ <div+ className={cn(+ `absolute inset-0 block h-full w-full animate-gradient bg-gradient-to-r from-[#ffaa40]/50 via-[#9c40ff]/50 to-[#ffaa40]/50 bg-[length:var(--bg-size)_100%] [border-radius:inherit] [mask:linear-gradient(#fff_0_0)_content-box,linear-gradient(#fff_0_0)]`,+ `p-[1px] ![mask-composite:subtract]`,+ )}+ />+ <LockClosedIcon className="size-4 text-[#ffaa40]" />+ <Separator className="h-4" orientation="vertical" />{" "}+ <span+ className={cn(+ `inline animate-gradient whitespace-pre bg-gradient-to-r from-[#ffaa40] via-[#9c40ff] to-[#ffaa40] bg-[length:var(--bg-size)_100%] bg-clip-text text-transparent [--bg-size:300%]`,+ )}+ >+ Get the code+ </span>+ <Icons.chevronRight className="text-[#9c40ff]" />+ </Link>+ </>+ )}+ {!paywall && (+ <>+ <h2 className="text-xl font-semibold text-primary">+ {humanize(name)}+ </h2>+ <TabsList>+ <TabsTrigger value="preview">Preview</TabsTrigger>+ <TabsTrigger value="code">Code</TabsTrigger>+ </TabsList>+ </>+ )}+ </div>+ <TabsContent value="preview" className="relative rounded-md">+ <BlockWrapper>+ <React.Suspense+ fallback={+ <div className="space-y-4">+ <Skeleton className="h-[150px] w-full" />+ </div>+ }+ >+ {scroller && (+ <div className="max-h-[450px] overflow-y-scroll">+ <div className="h-screen">{Preview}</div>+ </div>+ )}+ {!scroller && Preview}+ </React.Suspense>+ </BlockWrapper>+ </TabsContent>+ <TabsContent value="code">+ <div className="flex flex-col space-y-4">+ <div className="w-full rounded-md [&_pre]:my-0 [&_pre]:overflow-auto">+ {Code}+ </div>+ </div>+ </TabsContent>+ </Tabs>+ </div>+ );+}diff --git a/components/block-wrapper.tsx b/components/block-wrapper.tsxnew file mode 100644index 00000000..db502449--- /dev/null+++ b/components/block-wrapper.tsx@@ -0,0 +1,20 @@+import { cn } from "@/lib/utils";++interface ComponentWrapperProps {+ className?: string;+ children: any;+}+const BlockWrapper = ({ className, children }: ComponentWrapperProps) => {+ return (+ <div+ className={cn(+ "not-prose relative overflow-hidden rounded-xl border bg-background p-0",+ className,+ )}+ >+ {children}+ </div>+ );+};++export default BlockWrapper;diff --git a/components/code-block-wrapper.tsx b/components/code-block-wrapper.tsxindex 762a5855..bc3145b9 100644--- a/components/code-block-wrapper.tsx+++ b/components/code-block-wrapper.tsx@@ -39,12 +39,12 @@ export function CodeBlockWrapper({</CollapsibleContent><divclassName={cn(- "absolute flex items-center justify-center bg-gradient-to-b from-background/10 to-background/90 p-2",+ "absolute flex items-center justify-center bg-gradient-to-b from-background/10 to-background to-90% p-2",isOpened ? "inset-x-0 bottom-0 h-12 from-gray-900/30" : "inset-0 ",)}><CollapsibleTrigger asChild>- <Button variant="secondary" className="h-8 text-xs">+ <Button variant="secondary" className="mb-8 h-8 text-xs">{isOpened ? "Collapse" : expandButtonTitle}</Button></CollapsibleTrigger>diff --git a/components/copy-button.tsx b/components/copy-button.tsxindex 4f55db46..e6a4c506 100644--- a/components/copy-button.tsx+++ b/components/copy-button.tsx@@ -48,7 +48,7 @@ export function CopyButton({size="icon"variant="ghost"className={cn(- "relative z-10 h-6 w-6 text-zinc-50 hover:bg-background hover:text-zinc-50",+ "relative z-10 h-6 w-6 text-zinc-50 hover:bg-background/70 hover:text-zinc-50",className,)}onClick={() => {diff --git a/components/icons.tsx b/components/icons.tsxindex 88aad91e..add1e260 100644--- a/components/icons.tsx+++ b/components/icons.tsx@@ -3,7 +3,6 @@ import {ArrowRight,Check,ChevronLeft,- ChevronRight,ClipboardCheck,Copy,CreditCard,@@ -33,7 +32,31 @@ export const Icons = {close: X,spinner: Loader2,chevronLeft: ChevronLeft,- chevronRight: ChevronRight,+ chevronRight: (props: IconProps) => (+ <svg+ fill="none"+ stroke="currentColor"+ width="11"+ height="11"+ viewBox="0 0 10 10"+ aria-hidden="true"+ strokeWidth="1.5"+ className="-mr-0.5"+ strokeLinecap="round"+ {...props}+ >+ <path+ className="opacity-0 transition group-hover:opacity-100"+ d="M0 5h7"+ strokeLinecap="round"+ ></path>+ <path+ className="transition group-hover:translate-x-[3px]"+ d="M1 1l4 4-4 4"+ strokeLinecap="round"+ ></path>+ </svg>+ ),trash: Trash,post: FileText,page: File,diff --git a/components/main-nav.tsx b/components/main-nav.tsxindex f64d29e0..932b8649 100644--- a/components/main-nav.tsx+++ b/components/main-nav.tsx@@ -4,6 +4,7 @@ import { Icons } from "@/components/icons";import { docsConfig } from "@/config/docs";import { siteConfig } from "@/config/site";import { cn } from "@/lib/utils";+import { ExternalLinkIcon } from "@radix-ui/react-icons";import Link from "next/link";import { usePathname } from "next/navigation";import { Badge } from "./ui/badge";@@ -27,13 +28,14 @@ export function MainNav() {href={item.href!}target={item.external ? "_blank" : undefined}className={cn(- "transition-colors hover:text-foreground/80",+ "flex items-center justify-center transition-colors hover:text-foreground/80",pathname?.startsWith(item.href!)? "text-foreground": "text-foreground/60",)}>{item.title}+ {item.external && <ExternalLinkIcon className="ml-2 size-4" />}</Link>))}</nav>diff --git a/components/mdx-components.tsx b/components/mdx-components.tsxindex b13954f8..519f45fc 100644--- a/components/mdx-components.tsx+++ b/components/mdx-components.tsx@@ -1,3 +1,4 @@+import { BlockPreview } from "@/components/block-preview";import {Accordion,AccordionContent,@@ -37,6 +38,60 @@ const components = {AccordionContent,AccordionItem,AccordionTrigger,+ h1: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (+ <h1+ className={cn(+ "font-heading mt-2 scroll-m-20 text-4xl font-bold",+ className,+ )}+ {...props}+ />+ ),+ h2: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (+ <h2+ className={cn(+ "font-heading mt-12 scroll-m-20 border-b pb-2 text-2xl font-semibold tracking-tight first:mt-0",+ className,+ )}+ {...props}+ />+ ),+ h3: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (+ <h3+ className={cn(+ "font-heading mt-8 scroll-m-20 text-xl font-semibold tracking-tight",+ className,+ )}+ {...props}+ />+ ),+ h4: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (+ <h4+ className={cn(+ "font-heading mt-8 scroll-m-20 text-lg font-semibold tracking-tight",+ className,+ )}+ {...props}+ />+ ),+ h5: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (+ <h5+ className={cn(+ "mt-8 scroll-m-20 text-lg font-semibold tracking-tight",+ className,+ )}+ {...props}+ />+ ),+ h6: ({ className, ...props }: React.HTMLAttributes<HTMLHeadingElement>) => (+ <h6+ className={cn(+ "mt-8 scroll-m-20 text-base font-semibold tracking-tight",+ className,+ )}+ {...props}+ />+ ),a: (props: any) => (<CustomLink{...props}@@ -48,6 +103,7 @@ const components = {<TweetCard id={id} className="not-prose mx-auto" />),ComponentPreview,+ BlockPreview,ComponentSource: (props: any) => <ComponentSource {...props} />,p: ({ className, ...props }: React.HTMLAttributes<HTMLParagraphElement>) => (<p@@ -107,10 +163,11 @@ const components = {),Steps: ({ ...props }) => (<div- className="[&>div]:step mb-12 ml-4 border-l pl-8 [counter-reset:step]"+ className="[&>h3]:step steps mb-12 ml-4 border-l pl-8 [counter-reset:step]"{...props}/>),+pre: ({className,__rawString__,diff --git a/components/pricing/testimonials.tsx b/components/pricing/testimonials.tsxindex 731c72ce..8659ea77 100644--- a/components/pricing/testimonials.tsx+++ b/components/pricing/testimonials.tsx@@ -65,8 +65,8 @@ export default async function Testimonials() {</FadeIn>))}</Marquee>- {/* <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-white dark:from-background"></div>- <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-white dark:from-background"></div> */}+ <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/5 bg-gradient-to-r from-white dark:from-background"></div>+ <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/5 bg-gradient-to-l from-white dark:from-background"></div></div></section>);diff --git a/components/sidebar-nav.tsx b/components/sidebar-nav.tsxindex 77b68db4..ee057c2f 100644--- a/components/sidebar-nav.tsx+++ b/components/sidebar-nav.tsx@@ -55,9 +55,9 @@ export function DocsSidebarNavItems({target={item.external ? "_blank" : ""}rel={item.external ? "noreferrer" : ""}>- {item.title}+ <span className="shrink-0">{item.title}</span>{item.label && (- <span className="ml-2 rounded-md bg-[#adfa1d] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">+ <span className="ml-2 rounded-md bg-[#FFBD7A] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">{item.label}</span>)}diff --git a/config/docs.ts b/config/docs.tsindex b1ccb2e9..4724f42e 100644--- a/config/docs.ts+++ b/config/docs.ts@@ -1,6 +1,4 @@-import { allDocs } from "@/.contentlayer/generated";import { MainNavItem, SidebarNavItem } from "@/types";-import { compareDesc } from "date-fns";interface DocsConfig {mainNav: MainNavItem[];@@ -13,18 +11,27 @@ export const docsConfig: DocsConfig = {title: "Components",href: "/components",},+ // {+ // title: "Blocks",+ // href: "/blocks",+ // },+ // {+ // title: "Pricing",+ // href: "/pricing",+ // },+ // {+ // title: "Submit Feedback",+ // href: "https://magicui.featurebase.app/",+ // external: true,+ // },{- title: "Pricing",- href: "/pricing",- },- {- title: "Submit Feedback",- href: "https://magicui.featurebase.app/",+ title: "Roadmap",+ href: "https://magicui.featurebase.app/roadmap",external: true,},{- title: "Roadmap",- href: "https://magicui.featurebase.app/roadmap",+ title: "Discord",+ href: "/discord",external: true,},],@@ -37,11 +44,11 @@ export const docsConfig: DocsConfig = {href: "/docs",items: [],},- // {- // title: "Installation",- // href: "/docs/installation",- // items: [],- // },+ {+ title: "Installation",+ href: "/docs/installation",+ items: [],+ },// {// title: "Changelog",// href: "/docs/changelog",@@ -54,26 +61,231 @@ export const docsConfig: DocsConfig = {// },],},+ {+ title: "Page Sections",+ items: [+ // {+ // title: "Header",+ // href: `/docs/sections/header`,+ // items: [],+ // },+ // {+ // title: "Hero",+ // href: `/docs/sections/hero`,+ // items: [],+ // },+ {+ title: "Social Proof Press",+ href: `/docs/sections/social-proof-press`,+ items: [],+ label: "New",+ },+ {+ title: "Social Proof Companies",+ href: `/docs/sections/social-proof-companies`,+ items: [],+ label: "New",+ },+ // {+ // title: "Social Proof Testimonials",+ // href: `/docs/sections/social-proof-testimonials`,+ // items: [],+ // },+ // {+ // title: "Features",+ // href: `/docs/sections/features`,+ // items: [],+ // },+ {+ title: "Call To Action",+ href: `/docs/sections/call-to-action`,+ items: [],+ label: "New",+ },++ // {+ // title: "Pricing",+ // href: `/docs/sections/pricing`,+ // items: [],+ // },+ // {+ // title: "FAQ",+ // href: `/docs/sections/faq`,+ // items: [],+ // },+ {+ title: "Footer",+ href: `/docs/sections/footer`,+ items: [],+ label: "New",+ },++ // {+ // title: "Pricing",+ // href: `/docs/sections/pricing`,+ // items: [],+ // },+ // {+ // title: "FAQ",+ // href: `/docs/sections/faq`,+ // items: [],+ // },+ // {+ // title: "Footer",+ // href: `/docs/sections/footer`,+ // items: [],+ // },+ ],+ },{title: "Components",- items: allDocs- .filter(- (post) =>- post.date &&- post.date <= new Date().toISOString() &&- post.published,- )- .sort((a, b) => {- if (!a.date && !b.date) return 0; // Both dates are undefined, keep original order- if (!a.date) return 1; // Move a to the end if date is undefined- if (!b.date) return -1; // Move b to the end if date is undefined- return compareDesc(new Date(a.date), new Date(b.date)); // Both dates are defined, proceed with comparison- })- .map((component) => ({- title: component.title,- href: `/docs/${component.slugAsParams}`,- items: [],- })),+ items: [+ {+ title: "Bento Grid",+ href: `/docs/components/bento-grid`,+ items: [],+ },+ {+ title: "Animated List",+ href: `/docs/components/animated-list`,+ items: [],+ },+ {+ title: "Tweet Card",+ href: `/docs/components/tweet-card`,+ items: [],+ },+ {+ title: "Marquee",+ href: `/docs/components/marquee`,+ items: [],+ },+ {+ title: "Globe",+ href: `/docs/components/globe`,+ items: [],+ },+ ],},++ {+ title: "Special Effects",+ items: [+ {+ title: "Animated Beam",+ href: `/docs/components/animated-beam`,+ items: [],+ },+ // {+ // title: "Animated Grid Pattern",+ // href: `/docs/components/animated-grid-pattern`,+ // items: [],+ // },+ // {+ // title: "Animated Lines",+ // href: `/docs/components/animated-lines`,+ // items: [],+ // },+ {+ title: "Border Beam",+ href: `/docs/components/border-beam`,+ items: [],+ },+ {+ title: "Magic Card",+ href: `/docs/components/magic-card`,+ items: [],+ },+ {+ title: "Meteors",+ href: `/docs/components/meteors`,+ items: [],+ },+ ],+ },+ {+ title: "Text Animations",+ items: [+ {+ title: "Number Ticker",+ href: `/docs/components/number-ticker`,+ items: [],+ },+ {+ title: "Text Shimmer",+ href: `/docs/components/text-shimmer`,+ items: [],+ },+ ],+ },+ {+ title: "Buttons",+ items: [+ {+ title: "Shimmer Button",+ href: `/docs/components/shimmer-button`,+ items: [],+ },+ ],+ },++ {+ title: "Backgrounds",+ items: [+ {+ title: "Retro Grid",+ href: `/docs/components/retro-grid`,+ items: [],+ },+ {+ title: "Ripple",+ href: `/docs/components/ripple`,+ items: [],+ },+ {+ title: "Dot Pattern",+ href: `/docs/components/dot-pattern`,+ items: [],+ },+ {+ title: "Grid Pattern",+ href: `/docs/components/grid-pattern`,+ items: [],+ },+ {+ title: "Linear Gradient",+ href: `/docs/components/linear-gradient`,+ items: [],+ },+ {+ title: "Radial Gradient",+ href: `/docs/components/radial-gradient`,+ items: [],+ },+ ],+ },++ // {+ // title: "Components",+ // items: allDocs+ // .filter(+ // (post) =>+ // post.date &&+ // post.date <= new Date().toISOString() &&+ // post.published &&+ // post.slug.includes("components"),+ // )+ // .sort((a, b) => {+ // if (!a.date && !b.date) return 0; // Both dates are undefined, keep original order+ // if (!a.date) return 1; // Move a to the end if date is undefined+ // if (!b.date) return -1; // Move b to the end if date is undefined+ // return compareDesc(new Date(a.date), new Date(b.date)); // Both dates are defined, proceed with comparison+ // })+ // .map((component) => ({+ // title: component.title,+ // href: `/docs/${component.slugAsParams}`,+ // items: [],+ // })),+ // },],};diff --git a/content/docs/components/animated-beam.mdx b/content/docs/components/animated-beam.mdxindex c4684cca..7e6e53fb 100644--- a/content/docs/components/animated-beam.mdx+++ b/content/docs/components/animated-beam.mdx@@ -11,29 +11,7 @@ video: https://cdn.magicui.design/animated-beam.mp4<Steps>-<Step>-## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge framer-motion-```--Copy and paste the following code into your project.--```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-</Step>--<Step>--## Installation+### InstallationCopy and paste the following code into your project.@@ -43,9 +21,6 @@ components/magicui/animated-beam.tsx<ComponentSource name="animated-beam" />-</Step>--</Steps>## Usagediff --git a/content/docs/components/animated-list.mdx b/content/docs/components/animated-list.mdxindex 93624fa8..c0b8fa56 100644--- a/content/docs/components/animated-list.mdx+++ b/content/docs/components/animated-list.mdx@@ -11,10 +11,7 @@ video: https://cdn.magicui.design/animated-list.mp4<Steps>-<Step>--## Prerequisites-+### Prerequisites```bashnpm install -D tailwindcss clsx tailwind-merge framer-motion```@@ -31,10 +28,6 @@ export function cn(...inputs: ClassValue[]) {}```-</Step>--<Step>-## InstallationCopy and paste the following code into your project.@@ -45,8 +38,6 @@ components/magicui/animated-list.tsx<ComponentSource name="animated-list" />-</Step>-</Steps>## Propsdiff --git a/content/docs/components/bento-grid.mdx b/content/docs/components/bento-grid.mdxindex 1c4f8818..7aaed325 100644--- a/content/docs/components/bento-grid.mdx+++ b/content/docs/components/bento-grid.mdx@@ -12,12 +12,9 @@ video: https://cdn.magicui.design/bento-grid.mp4<Steps>-<Step>--## Prerequisites+### Prerequisites```bash-npm install -D tailwindcss clsx tailwind-mergenpm install @radix-ui/react-iconsnpx shadcn-ui@latest add button calendar command```@@ -36,11 +33,8 @@ export function cn(...inputs: ClassValue[]) {}```-</Step>--<Step>-## Installation+### InstallationCopy and paste the following code into your project.@@ -50,8 +44,6 @@ components/magicui/bento-grid.tsx<ComponentSource name="bento-grid" />-</Step>-</Steps>## Examplesdiff --git a/content/docs/components/border-beam.mdx b/content/docs/components/border-beam.mdxindex 40dece33..3e85a232 100644--- a/content/docs/components/border-beam.mdx+++ b/content/docs/components/border-beam.mdx@@ -11,22 +11,10 @@ video: https://cdn.magicui.design/border-beam.mp4<Steps>-<Step>--## Installation+### InstallationCopy and paste the following code into your project.-```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-```js// tailwind.config.jsmodule.exports = {@@ -53,8 +41,6 @@ components/magicui/border-beam.tsx<ComponentSource name="border-beam" />-</Step>-</Steps>## Usagediff --git a/content/docs/components/dot-pattern.mdx b/content/docs/components/dot-pattern.mdxindex e10c615b..3a062b2f 100644--- a/content/docs/components/dot-pattern.mdx+++ b/content/docs/components/dot-pattern.mdx@@ -11,30 +11,7 @@ video: https://cdn.magicui.design/dot-pattern.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge-```--Copy and paste the following code into your project.--```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-</Step>--<Step>--## Installation+### InstallationCopy and paste the following code into your project.@@ -44,8 +21,6 @@ components/magicui/dot-pattern.tsx<ComponentSource name="dot-pattern" />-</Step>-</Steps>## Examplesdiff --git a/content/docs/components/globe.mdx b/content/docs/components/globe.mdxindex 459e9570..b3b19884 100644--- a/content/docs/components/globe.mdx+++ b/content/docs/components/globe.mdx@@ -11,42 +11,20 @@ video: https://cdn.magicui.design/globe.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge cobe react-spring-```+### InstallationCopy and paste the following code into your project.-```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}+```bash+npm install -D cobe react-spring```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.-```textcomponents/magicui/globe.tsx```<ComponentSource name="globe" />-</Step>-</Steps>## Propsdiff --git a/content/docs/components/grid-pattern.mdx b/content/docs/components/grid-pattern.mdxindex 1ecc008c..089b9cbc 100644--- a/content/docs/components/grid-pattern.mdx+++ b/content/docs/components/grid-pattern.mdx@@ -11,41 +11,16 @@ video: https://cdn.magicui.design/grid-pattern.mp4<Steps>-<Step>-## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge-```+### InstallationCopy and paste the following code into your project.-```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.--```textcomponents/magicui/grid-pattern.tsx```<ComponentSource name="grid-pattern" />-</Step>-</Steps>## Examplesdiff --git a/content/docs/components/linear-gradient.mdx b/content/docs/components/linear-gradient.mdxindex 107e3d3f..8c487454 100644--- a/content/docs/components/linear-gradient.mdx+++ b/content/docs/components/linear-gradient.mdx@@ -11,9 +11,7 @@ video: https://cdn.magicui.design/linear-gradient.mp4<Steps>-<Step>--## Installation+### InstallationCopy and paste the following code into your project.@@ -21,11 +19,7 @@ Copy and paste the following code into your project.components/magicui/linear-gradient.tsx```-<ComponentSource name="linear-gradient" >--</ComponentSource>--</Step>+<ComponentSource name="linear-gradient" /></Steps>diff --git a/content/docs/components/magic-card.mdx b/content/docs/components/magic-card.mdxindex ffeb7cc2..7e4a18ec 100644--- a/content/docs/components/magic-card.mdx+++ b/content/docs/components/magic-card.mdx@@ -11,19 +11,7 @@ video: https://cdn.magicui.design/magic-card.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install -D tailwindcss tailwind-merge clsx-```--</Step>--<Step>--## Installation+### InstallationCopy and paste the following code into your project.@@ -33,8 +21,6 @@ components/magicui/magic-card.tsx<ComponentSource name="magic-card" />-</Step>-</Steps>## Examplesdiff --git a/content/docs/components/marquee.mdx b/content/docs/components/marquee.mdxindex 4336716c..3f3832d1 100644--- a/content/docs/components/marquee.mdx+++ b/content/docs/components/marquee.mdx@@ -11,26 +11,10 @@ video: https://cdn.magicui.design/marquee.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge-```+### InstallationCopy and paste the following code into your project.-```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-```js// tailwind.config.jsmodule.exports = {@@ -55,22 +39,12 @@ module.exports = {};```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.-```textcomponents/magicui/marquee.tsx```<ComponentSource name="marquee" />-</Step>-</Steps>## Examples@@ -83,10 +57,6 @@ components/magicui/marquee.tsx<ComponentPreview name="marquee-3d" />-### Logos--<ComponentPreview name="marquee-logos" />-## Props| Prop | Type | Default | Description |diff --git a/content/docs/components/meteors.mdx b/content/docs/components/meteors.mdxindex b361d7f2..f0c34450 100644--- a/content/docs/components/meteors.mdx+++ b/content/docs/components/meteors.mdx@@ -11,13 +11,9 @@ video: https://cdn.magicui.design/meteors.mp4<Steps>-<Step>+### Installation-## Prerequisites--```bash-npm install -D tailwindcss clsx-```+Copy and paste the following code into your project.```js// tailwind.config.js@@ -42,23 +38,11 @@ module.exports = {};```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.-```textcomponents/magicui/meteors.tsx```-<ComponentSource name="meteors" >--</ComponentSource>--</Step>+<ComponentSource name="meteors" /></Steps>diff --git a/content/docs/components/number-ticker.mdx b/content/docs/components/number-ticker.mdxindex eb0ef566..f179c6aa 100644--- a/content/docs/components/number-ticker.mdx+++ b/content/docs/components/number-ticker.mdx@@ -11,19 +11,7 @@ video: https://cdn.magicui.design/number-ticker.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install framer-motion-```--</Step>--<Step>--## Installation+### InstallationCopy and paste the following code into your project.@@ -33,8 +21,6 @@ components/magicui/number-ticker.tsx<ComponentSource name="number-ticker" />-</Step>-</Steps>## Propsdiff --git a/content/docs/components/radial-gradient.mdx b/content/docs/components/radial-gradient.mdxindex b61964ff..9afa0755 100644--- a/content/docs/components/radial-gradient.mdx+++ b/content/docs/components/radial-gradient.mdx@@ -11,9 +11,7 @@ video: https://cdn.magicui.design/radial-gradient.mp4<Steps>-<Step>--## Installation+### InstallationCopy and paste the following code into your project.@@ -23,8 +21,6 @@ components/magicui/radial-gradient.tsx<ComponentSource name="radial-gradient" />-</Step>-</Steps>## Propsdiff --git a/content/docs/components/retro-grid.mdx b/content/docs/components/retro-grid.mdxindex 32ae2175..da6e39c0 100644--- a/content/docs/components/retro-grid.mdx+++ b/content/docs/components/retro-grid.mdx@@ -11,26 +11,10 @@ video: https://cdn.magicui.design/retro-grid.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge-```+### InstallationCopy and paste the following code into your project.-```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-```js// tailwind.config.jsmodule.exports = {@@ -50,22 +34,12 @@ module.exports = {};```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.-```textcomponents/magicui/retro-grid.tsx```<ComponentSource name="retro-grid" />-</Step>-</Steps>## Propsdiff --git a/content/docs/components/ripple.mdx b/content/docs/components/ripple.mdxindex 56a734d7..d9f7b97b 100644--- a/content/docs/components/ripple.mdx+++ b/content/docs/components/ripple.mdx@@ -11,13 +11,7 @@ video: https://cdn.magicui.design/ripple.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install -D tailwindcss-```+### InstallationCopy and paste the following code into your project.@@ -44,20 +38,10 @@ module.exports = {};```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.-```textcomponents/magicui/ripple.tsx```<ComponentSource name="ripple" />-</Step>-</Steps>diff --git a/content/docs/components/shimmer-button.mdx b/content/docs/components/shimmer-button.mdxindex 2ea8a7a5..a9c02fcf 100644--- a/content/docs/components/shimmer-button.mdx+++ b/content/docs/components/shimmer-button.mdx@@ -11,26 +11,10 @@ video: https://cdn.magicui.design/shimmer-button.mp4<Steps>-<Step>--## Prerequisites--```bash-npm install -D tailwindcss clsx tailwind-merge-```+### InstallationCopy and paste the following code into your project.-```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}-```-```js// tailwind.config.jsmodule.exports = {@@ -66,22 +50,12 @@ module.exports = {};```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.-```textcomponents/magicui/shimmer-button.tsx```<ComponentSource name="shimmer-button" />-</Step>-</Steps>## Propsdiff --git a/content/docs/components/text-shimmer.mdx b/content/docs/components/text-shimmer.mdxindex 52dee8ea..096c4c25 100644--- a/content/docs/components/text-shimmer.mdx+++ b/content/docs/components/text-shimmer.mdx@@ -11,13 +11,9 @@ video: https://cdn.magicui.design/text-shimmer.mp4<Steps>-<Step>+### Installation-## Prerequisites--```bash-npm install -D tailwindcss clsx-```+Copy and paste the following code into your project.```js// tailwind.config.js@@ -42,22 +38,12 @@ module.exports = {};```-</Step>--<Step>--## Installation--Copy and paste the following code into your project.-```textcomponents/magicui/text-shimmer.tsx```<ComponentSource name="text-shimmer" />-</Step>-</Steps>## Propsdiff --git a/content/docs/components/tweet-card.mdx b/content/docs/components/tweet-card.mdxindex 3d2f6e08..89117312 100644--- a/content/docs/components/tweet-card.mdx+++ b/content/docs/components/tweet-card.mdx@@ -11,52 +11,24 @@ video: https://cdn.magicui.design/tweet-card.mp4<Steps>-<Step>--## Prerequisites+### Installation```bash-npm install tailwindcss clsx tailwind-merge react-tweet-```--Copy and paste the following code into your project.--```typescript-// lib/utils.ts-import clsx, { ClassValue } from "clsx";-import { twMerge } from "tailwind-merge";--export function cn(...inputs: ClassValue[]) {- return twMerge(clsx(inputs));-}+npm install react-tweet```-</Step>--<Step>--## Installation--Server Side (Next.js 13):+### Installation React Server Component (Next.js 13+):Copy and paste the following code into your project.<ComponentSource name="tweet-card" />-</Step>--<Step>--Client Side+### Installation Client SideCopy and paste the following code into your project.<ComponentSource name="client-tweet-card" />-</Step>--<Step> Update the import paths to match your project setup. </Step>-</Steps>## Usagediff --git a/content/docs/installation.mdx b/content/docs/installation.mdxindex 0a7d2c92..09507852 100644--- a/content/docs/installation.mdx+++ b/content/docs/installation.mdx@@ -1,153 +1,32 @@---title: Installation-description: Install and configure Next.js.-published: false+description: Install and configure Magic UI+published: true---<Steps>-### Create project+### Information-Start by creating a new Next.js project using `create-next-app`:+Magic UI currently only support **React**. This project and all components are written in **TypeScript**. We recommend using TypeScript for your project as well.-```bash-npx create-next-app@latest my-app --typescript --tailwind --eslint-```--### Run the CLI+### Prerequisites-Run the `shadcn-ui` init command to setup your project:+These are the main dependencies you will need to get started.```bash-npx shadcn-ui@latest init-```--### Configure components.json--You will be asked a few questions to configure `components.json`:--```txt showLineNumbers-Would you like to use TypeScript (recommended)? no / yes-Which style would you like to use? › Default-Which color would you like to use as base color? › Slate-Where is your global CSS file? › › app/globals.css-Do you want to use CSS variables for colors? › no / yes-Are you using a custom tailwind prefix eg. tw-? (Leave blank if not) ...-Where is your tailwind.config.js located? › tailwind.config.js-Configure the import alias for components: › @/components-Configure the import alias for utils: › @/lib/utils-Are you using React Server Components? › no / yes-```--### Fonts--I use [Inter](https://rsms.me/inter/) as the default font. Inter is not required. You can replace it with any other font.--Here's how I configure Inter for Next.js:--**1. Import the font in the root layout:**--```js showLineNumbers title=app/layout.tsx {2,5-8,16-17}-import "@/styles/globals.css"-import { Inter as FontSans } from "next/font/google"--import { cn } from "../@/lib/utils"--const fontSans = FontSans({- subsets: ["latin"],- variable: "--font-sans",-})--export default function RootLayout({ children }: RootLayoutProps) {- return (- <html lang="en" suppressHydrationWarning>- <head />- <body- className={cn(- "min-h-screen bg-background font-sans antialiased",- fontSans.variable- )}- >- ...- </body>- </html>- )-}+npm install -D tailwindcss@latest clsx tailwind-merge framer-motion```-**2. Configure `theme.extend.fontFamily` in `tailwind.config.js`**+Copy and paste the following code into your project.-```js showLineNumbers title=tailwind.config.js {9-11}-const { fontFamily } = require("tailwindcss/defaultTheme")+```typescript+// lib/utils.ts+import clsx, { ClassValue } from "clsx";+import { twMerge } from "tailwind-merge";-/** @type {import('tailwindcss').Config} */-module.exports = {- darkMode: ["class"],- content: ["app/**/*.{ts,tsx}", "components/**/*.{ts,tsx}"],- theme: {- extend: {- fontFamily: {- sans: ["var(--font-sans)", ...fontFamily.sans],- },- },- },+export function cn(...inputs: ClassValue[]) {+ return twMerge(clsx(inputs));}```--### App structure--Here's how I structure my Next.js apps. You can use this as a reference:--```txt {6-10,14-15}-.-├── app-│ ├── layout.tsx-│ └── page.tsx-├── components-│ ├── ui-│ │ ├── alert-dialog.tsx-│ │ ├── button.tsx-│ │ ├── dropdown-menu.tsx-│ │ └── ...-│ ├── main-nav.tsx-│ ├── page-header.tsx-│ └── ...-├── lib-│ └── utils.ts-├── styles-│ └── globals.css-├── next.config.js-├── package.json-├── postcss.config.js-├── tailwind.config.js-└── tsconfig.json-```--- I place the UI components in the `components/ui` folder.-- The rest of the components such as `<PageHeader />` and `<MainNav />` are placed in the `components` folder.-- The `lib` folder contains all the utility functions. I have a `utils.ts` where I define the `cn` helper.-- The `styles` folder contains the global CSS.--### That's it--You can now start adding components to your project.--```bash-npx shadcn-ui@latest add button-```--The command above will add the `Button` component to your project. You can then import it like this:--```tsx {1,6} showLineNumbers-import { Button } from "@/components/ui/button"--export default function Home() {- return (- <div>- <Button>Click me</Button>- </div>- )-}-```--</Steps>\ No newline at end of file+</Steps>diff --git a/content/docs/sections/call-to-action.mdx b/content/docs/sections/call-to-action.mdxnew file mode 100644index 00000000..fcda6626--- /dev/null+++ b/content/docs/sections/call-to-action.mdx@@ -0,0 +1,10 @@+---+title: Call to Action (CTA)+date: 2024-02-27+description: These components are used to build the call to action of the website.+author: dillionverma+published: true+---++<BlockPreview name="call-to-action-1" />+<BlockPreview name="call-to-action-2" />diff --git a/content/docs/sections/faq.mdx b/content/docs/sections/faq.mdxnew file mode 100644index 00000000..9bbae973--- /dev/null+++ b/content/docs/sections/faq.mdx@@ -0,0 +1,7 @@+---+title: FAQ+date: 2024-02-27+description: These components are used to build the faq section of the website.+author: dillionverma+published: false+---diff --git a/content/docs/sections/features.mdx b/content/docs/sections/features.mdxnew file mode 100644index 00000000..99aa6ef4--- /dev/null+++ b/content/docs/sections/features.mdx@@ -0,0 +1,11 @@+---+title: Features+date: 2024-02-27+description: These components are used to build the features section of the website.+author: dillionverma+published: true+# video: https://cdn.magicui.design/animated-beam.mp4+---+++<BlockPreview name="features-1"/>\ No newline at end of filediff --git a/content/docs/sections/footer.mdx b/content/docs/sections/footer.mdxnew file mode 100644index 00000000..2369e88a--- /dev/null+++ b/content/docs/sections/footer.mdx@@ -0,0 +1,10 @@+---+title: Footer+date: 2024-02-27+description: These components are used to build the footer of the website.+author: dillionverma+published: true+---++<BlockPreview name="footer-1" />+{/* <BlockPreview name="footer-2" /> */}diff --git a/content/docs/sections/header.mdx b/content/docs/sections/header.mdxnew file mode 100644index 00000000..089c98c6--- /dev/null+++ b/content/docs/sections/header.mdx@@ -0,0 +1,10 @@+---+title: Header+date: 2024-02-27+description: These components are used to build the header of the website.+author: dillionverma+published: false+# video: https://cdn.magicui.design/animated-beam.mp4+---+<BlockPreview name="header-1" scroller />+{/* <BlockPreview name="header-2" scroller /> */}diff --git a/content/docs/sections/hero.mdx b/content/docs/sections/hero.mdxnew file mode 100644index 00000000..f54d4a5c--- /dev/null+++ b/content/docs/sections/hero.mdx@@ -0,0 +1,10 @@+---+title: Hero+date: 2024-02-27+description: These components are the first thing a user sees when they land on a page. They are used to grab the user's attention and provide a brief overview of the page's content.+author: dillionverma+published: false+# video: https://cdn.magicui.design/animated-beam.mp4+---++<BlockPreview name="hero-1" />diff --git a/content/docs/sections/pricing.mdx b/content/docs/sections/pricing.mdxnew file mode 100644index 00000000..e59d2d3d--- /dev/null+++ b/content/docs/sections/pricing.mdx@@ -0,0 +1,13 @@+---+title: Pricing+date: 2024-02-27+description: These components are used to build the pricing of the website.+author: dillionverma+published: false+# video: https://cdn.magicui.design/animated-beam.mp4+---+++{/* <BlockPreview name="pricing-1" />++<BlockPreview name="pricing-2" /> */}\ No newline at end of filediff --git a/content/docs/sections/social-proof-companies.mdx b/content/docs/sections/social-proof-companies.mdxnew file mode 100644index 00000000..b206aef4--- /dev/null+++ b/content/docs/sections/social-proof-companies.mdx@@ -0,0 +1,20 @@+---+title: Social Proof Companies+date: 2024-03-11+description: These components are used to build the social proof section of the website.+author: dillionverma+published: true+---++<BlockPreview name="social-proof-companies-1" free />+<BlockPreview name="social-proof-companies-2" free />+<BlockPreview name="social-proof-companies-3" />+<BlockPreview name="social-proof-companies-4" />++---++## Disclaimer++The company logos and trademarks shown on this website are the intellectual property of their respective owners. They are presented here solely for illustrative and educational purposes and do not signify any endorsement, sponsorship, or association with our product or services.++We have taken care to ensure that the use of these logos and trademarks adheres to fair use standards and reflects the high regard we hold for these companies. However, if any company wishes to have their logo removed or has specific usage guidelines we have inadvertently not followed, please contact us at [[email protected]](mailto:[email protected]) directly for immediate action.diff --git a/content/docs/sections/social-proof-press.mdx b/content/docs/sections/social-proof-press.mdxnew file mode 100644index 00000000..c5090732--- /dev/null+++ b/content/docs/sections/social-proof-press.mdx@@ -0,0 +1,18 @@+---+title: Social Proof Press+date: 2024-03-11+description: These components are used to showcase social proof of a website.+author: dillionverma+published: true+---++<BlockPreview name="social-proof-press-1" free />+<BlockPreview name="social-proof-press-2" free />+<BlockPreview name="social-proof-press-3" />+++## Disclaimer++The company logos and trademarks shown on this website are the intellectual property of their respective owners. They are presented here solely for illustrative and educational purposes and do not signify any endorsement, sponsorship, or association with our product or services.++We have taken care to ensure that the use of these logos and trademarks adheres to fair use standards and reflects the high regard we hold for these companies. However, if any company wishes to have their logo removed or has specific usage guidelines we have inadvertently not followed, please contact us at [[email protected]](mailto:[email protected]) directly for immediate action.diff --git a/content/docs/sections/social-proof-testimonials.mdx b/content/docs/sections/social-proof-testimonials.mdxnew file mode 100644index 00000000..6f7cd02e--- /dev/null+++ b/content/docs/sections/social-proof-testimonials.mdx@@ -0,0 +1,13 @@+---+title: Social Proof Testimonials+date: 2024-03-11+description: These components are used to build the social proof section of the website.+author: dillionverma+published: true+---++<BlockPreview name="social-proof-testimonials-1" free />++{/* <BlockPreview name="social-proof-testimonials-2" free />+<BlockPreview name="social-proof-testimonials-3" />+<BlockPreview name="social-proof-testimonials-4" /> */}diff --git a/contentlayer.config.ts b/contentlayer.config.tsindex d938e63e..b808f4bd 100644--- a/contentlayer.config.ts+++ b/contentlayer.config.ts@@ -109,11 +109,6 @@ export const Doc = defineDocumentType(() => ({default: false,required: false,},- component: {- type: "boolean",- default: false,- required: false,- },toc: { type: "boolean", default: false, required: false },author: { type: "string", required: false },video: { type: "string", required: false },diff --git a/lib/rehype-component.ts b/lib/rehype-component.tsindex bf3a9227..d1c0bb5a 100644--- a/lib/rehype-component.ts+++ b/lib/rehype-component.ts@@ -72,7 +72,7 @@ export function rehypeComponent() {}}- if (node.name === "ComponentPreview") {+ if (node.name === "ComponentPreview" || node.name === "BlockPreview") {const name = getNodeAttributeByName(node, "name")?.value as string;if (!name) {diff --git a/next.config.js b/next.config.jsindex 91761a99..0eb730a8 100644--- a/next.config.js+++ b/next.config.js@@ -38,6 +38,16 @@ const nextConfig = {destination: "/docs/components/animated-beam",permanent: true,},+ {+ source: "/sections",+ destination: "/docs/sections/call-to-action",+ permanent: true,+ },+ {+ source: "/docs/sections",+ destination: "/docs/sections/call-to-action",+ permanent: true,+ },];},};diff --git a/registry/blocks/example/call-to-action-1.tsx b/registry/blocks/example/call-to-action-1.tsxnew file mode 100644index 00000000..e6d99dbb--- /dev/null+++ b/registry/blocks/example/call-to-action-1.tsx@@ -0,0 +1,166 @@+import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import Marquee from "@/registry/components/magicui/marquee";+import { ChevronRight, HeartHandshake } from "lucide-react";++const reviews = [+ {+ name: "Jack",+ username: "@jack",+ body: "I've never seen anything like this before. It's amazing. I love it.",+ img: "https://avatar.vercel.sh/jack",+ },+ {+ name: "Jill",+ username: "@jill",+ body: "I don't know what to say. I'm speechless. This is amazing.",+ img: "https://avatar.vercel.sh/jill",+ },+ {+ name: "John",+ username: "@john",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/john",+ },+ {+ name: "Jane",+ username: "@jane",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/jane",+ },+ {+ name: "Jenny",+ username: "@jenny",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/jenny",+ },+ {+ name: "James",+ username: "@james",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/james",+ },+];++const firstRow = reviews.slice(0, reviews.length / 2);+const secondRow = reviews.slice(reviews.length / 2);++const ReviewCard = ({+ img,+ name,+ username,+ body,+}: {+ img: string;+ name: string;+ username: string;+ body: string;+}) => {+ return (+ <figure+ className={cn(+ "relative w-64 cursor-pointer overflow-hidden rounded-[2rem] border p-4",+ // light styles+ "border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]",+ // dark styles+ "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",+ )}+ >+ <div className="flex flex-row items-center gap-2">+ <img className="rounded-full" width="32" height="32" alt="" src={img} />+ <div className="flex flex-col">+ <figcaption className="text-sm font-medium dark:text-white">+ {name}+ </figcaption>+ <p className="text-xs font-medium dark:text-white/40">{username}</p>+ </div>+ </div>+ <blockquote className="mt-2 text-sm">{body}</blockquote>+ </figure>+ );+};++export default function CallToAction() {+ return (+ <section id="cta">+ <div className="py-14">+ <div className="container flex w-full flex-col items-center justify-center p-4">+ <div className="relative flex w-full max-w-[1000px] flex-col items-center justify-center overflow-hidden rounded-[2rem] border p-10 py-14">+ <div className="absolute rotate-[35deg]">+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ </div>+ <div className="z-10 mx-auto size-24 rounded-[2rem] border bg-white/10 p-3 shadow-2xl backdrop-blur-md dark:bg-black/10 lg:size-32">+ <HeartHandshake className="mx-auto size-16 text-black dark:text-white lg:size-24" />+ </div>+ <div className="z-10 mt-4 flex flex-col items-center text-center text-black dark:text-white">+ <h1 className="text-3xl font-bold lg:text-4xl">+ Stop wasting time on design.+ </h1>+ <p className="mt-2">+ Start your 7-day free trial. No credit card required.+ </p>+ <a+ href="/"+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "outline",+ }),+ "group mt-4 rounded-[2rem] px-6",+ )}+ >+ Get Started+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </a>+ </div>+ <div className="absolute inset-x-0 bottom-0 h-full bg-gradient-to-b from-transparent to-white to-70% dark:to-black" />+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/call-to-action-2.tsx b/registry/blocks/example/call-to-action-2.tsxnew file mode 100644index 00000000..fad461b7--- /dev/null+++ b/registry/blocks/example/call-to-action-2.tsx@@ -0,0 +1,181 @@+"use client";++import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import Marquee from "@/registry/components/magicui/marquee";+import { motion, useAnimation, useInView } from "framer-motion";+import {+ BarChart,+ ChevronRight,+ File,+ Globe,+ HeartHandshake,+ Rss,+ Shield,+} from "lucide-react";+import { useEffect, useId, useRef } from "react";++const reviews = [+ {+ icon: <HeartHandshake className="size-full" />,+ bg: (+ <div className="pointer-events-none absolute left-1/2 top-1/2 h-1/2 w-1/2 -translate-x-1/2 -translate-y-1/2 overflow-visible rounded-full bg-gradient-to-r from-orange-600 via-rose-600 to-violet-600 opacity-70 blur-[20px] filter"></div>+ ),+ },+ {+ icon: <Globe className="size-full" />,+ bg: (+ <div className="pointer-events-none absolute left-1/2 top-1/2 h-1/2 w-1/2 -translate-x-1/2 -translate-y-1/2 overflow-visible rounded-full bg-gradient-to-r from-cyan-500 via-blue-500 to-indigo-500 opacity-70 blur-[20px] filter"></div>+ ),+ },+ {+ icon: <File className="size-full" />,+ bg: (+ <div className="pointer-events-none absolute left-1/2 top-1/2 h-1/2 w-1/2 -translate-x-1/2 -translate-y-1/2 overflow-visible rounded-full bg-gradient-to-r from-green-500 via-teal-500 to-emerald-600 opacity-70 blur-[20px] filter"></div>+ ),+ },+ {+ icon: <Shield className="size-full" />,+ bg: (+ <div className="pointer-events-none absolute left-1/2 top-1/2 h-1/2 w-1/2 -translate-x-1/2 -translate-y-1/2 overflow-visible rounded-full bg-gradient-to-r from-yellow-400 via-orange-500 to-yellow-600 opacity-70 blur-[20px] filter"></div>+ ),+ },+ {+ icon: <Rss className="size-full" />,+ bg: (+ <div className="pointer-events-none absolute left-1/2 top-1/2 h-1/2 w-1/2 -translate-x-1/2 -translate-y-1/2 overflow-visible rounded-full bg-gradient-to-r from-orange-600 via-rose-600 to-violet-600 opacity-70 blur-[20px] filter"></div>+ ),+ },+ {+ icon: <BarChart className="size-full" />,+ bg: (+ <div className="pointer-events-none absolute left-1/2 top-1/2 h-1/2 w-1/2 -translate-x-1/2 -translate-y-1/2 overflow-visible rounded-full bg-gradient-to-r from-gray-600 via-gray-500 to-gray-400 opacity-70 blur-[20px] filter"></div>+ ),+ },+];++const shuffleArray = (array: any[]) => {+ let currentIndex = array.length,+ randomIndex;+ // While there remain elements to shuffle.+ while (currentIndex !== 0) {+ // Pick a remaining element.+ randomIndex = Math.floor(Math.random() * currentIndex);+ currentIndex--;+ // And swap it with the current element.+ [array[currentIndex], array[randomIndex]] = [+ array[randomIndex],+ array[currentIndex],+ ];+ }+ return array;+};++const randomReviews1 = shuffleArray([...reviews]);+const randomReviews2 = shuffleArray([...reviews]);+const randomReviews3 = shuffleArray([...reviews]);+const randomReviews4 = shuffleArray([...reviews]);++const Card = (card: { icon: JSX.Element; bg: JSX.Element }) => {+ const id = useId();+ const controls = useAnimation();+ const ref = useRef(null);+ const inView = useInView(ref, { once: true });++ useEffect(() => {+ if (inView) {+ controls.start({+ opacity: 1,+ transition: { delay: Math.random() * 2, ease: "easeOut", duration: 1 },+ });+ }+ }, [controls, inView]);++ return (+ <motion.div+ key={id}+ ref={ref}+ initial={{ opacity: 0 }}+ animate={controls}+ className={cn(+ "relative size-20 cursor-pointer overflow-hidden rounded-2xl border p-4",+ // 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:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",+ )}+ >+ {card.icon}+ {card.bg}+ </motion.div>+ );+};++export default function CallToAction() {+ return (+ <section id="cta">+ <div className="py-14">+ <div className="container flex w-full flex-col items-center justify-center p-4">+ <div className="relative flex w-full max-w-[1000px] flex-col items-center justify-center overflow-hidden rounded-[2rem] border">+ <Marquee+ reverse+ className="delay-[-200ms] [--duration:20s]"+ repeat={4}+ >+ {randomReviews1.map((review, idx) => (+ <Card key={idx} {...review} />+ ))}+ </Marquee>+ <Marquee reverse className="[--duration:30s]" repeat={4}>+ {randomReviews2.map((review, idx) => (+ <Card key={idx} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ className="delay-[-200ms] [--duration:20s]"+ repeat={4}+ >+ {randomReviews3.map((review, idx) => (+ <Card key={idx} {...review} />+ ))}+ </Marquee>+ <Marquee reverse className="[--duration:30s]" repeat={4}>+ {randomReviews4.map((review, idx) => (+ <Card key={idx} {...review} />+ ))}+ </Marquee>+ <div className="absolute z-10">+ <div className="mx-auto size-24 rounded-[2rem] border bg-white/10 p-3 shadow-2xl backdrop-blur-md dark:bg-black/10 lg:size-32">+ <HeartHandshake className="mx-auto size-16 text-black dark:text-white lg:size-24" />+ </div>+ <div className="z-10 mt-4 flex flex-col items-center text-center text-primary">+ <h1 className="text-3xl font-bold lg:text-4xl">+ Stop wasting time on design.+ </h1>+ <p className="mt-2">+ Start your 7-day free trial. No credit card required.+ </p>+ <a+ href="/"+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "outline",+ }),+ "group mt-4 rounded-[2rem] px-6",+ )}+ >+ Get Started+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </a>+ </div>+ <div className="absolute inset-0 -z-10 rounded-full bg-white opacity-40 blur-xl dark:bg-black" />+ </div>+ <div className="absolute inset-x-0 bottom-0 h-full bg-gradient-to-b from-transparent to-white to-70% dark:to-black" />+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/call-to-action-3.tsx b/registry/blocks/example/call-to-action-3.tsxnew file mode 100644index 00000000..ef215b92--- /dev/null+++ b/registry/blocks/example/call-to-action-3.tsx@@ -0,0 +1,167 @@+import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import Marquee from "@/registry/components/magicui/marquee";+import { ChevronRight, HeartHandshake } from "lucide-react";+import Link from "next/link";++const reviews = [+ {+ name: "Jack",+ username: "@jack",+ body: "I've never seen anything like this before. It's amazing. I love it.",+ img: "https://avatar.vercel.sh/jack",+ },+ {+ name: "Jill",+ username: "@jill",+ body: "I don't know what to say. I'm speechless. This is amazing.",+ img: "https://avatar.vercel.sh/jill",+ },+ {+ name: "John",+ username: "@john",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/john",+ },+ {+ name: "Jane",+ username: "@jane",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/jane",+ },+ {+ name: "Jenny",+ username: "@jenny",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/jenny",+ },+ {+ name: "James",+ username: "@james",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/james",+ },+];++const firstRow = reviews.slice(0, reviews.length / 2);+const secondRow = reviews.slice(reviews.length / 2);++const ReviewCard = ({+ img,+ name,+ username,+ body,+}: {+ img: string;+ name: string;+ username: string;+ body: string;+}) => {+ return (+ <figure+ className={cn(+ "relative w-64 cursor-pointer overflow-hidden rounded-[2rem] border p-4",+ // light styles+ "border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]",+ // dark styles+ "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",+ )}+ >+ <div className="flex flex-row items-center gap-2">+ <img className="rounded-full" width="32" height="32" alt="" src={img} />+ <div className="flex flex-col">+ <figcaption className="text-sm font-medium dark:text-white">+ {name}+ </figcaption>+ <p className="text-xs font-medium dark:text-white/40">{username}</p>+ </div>+ </div>+ <blockquote className="mt-2 text-sm">{body}</blockquote>+ </figure>+ );+};++export default function CallToAction() {+ return (+ <section id="cta">+ <div className="py-14">+ <div className="container flex w-full flex-col items-center justify-center p-4">+ <div className="relative flex w-full max-w-[1000px] flex-col items-center justify-center overflow-hidden rounded-[2rem] border p-10 py-14">+ <div className="absolute rotate-[-35deg]">+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ </div>+ <div className="z-10 rounded-[2rem] border bg-background/10 p-3 shadow-2xl backdrop-blur-md">+ <HeartHandshake className="size-16 text-black dark:text-white lg:size-24" />+ </div>+ <div className="z-10 mt-4 flex flex-col items-center text-center text-primary">+ <h1 className="text-3xl font-bold lg:text-4xl">+ Stop wasting time on design.+ </h1>+ <p className="mt-2">+ Start your 7-day free trial. No credit card required.+ </p>+ <Link+ href={{ pathname: "/" }}+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "secondary",+ }),+ "group mt-4 rounded-[2rem] px-6",+ )}+ >+ Get Started+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </Link>+ </div>+ <div className="absolute inset-x-0 bottom-0 h-full bg-gradient-to-b from-transparent to-white to-70% dark:to-black" />+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/call-to-action-4.tsx b/registry/blocks/example/call-to-action-4.tsxnew file mode 100644index 00000000..ef215b92--- /dev/null+++ b/registry/blocks/example/call-to-action-4.tsx@@ -0,0 +1,167 @@+import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import Marquee from "@/registry/components/magicui/marquee";+import { ChevronRight, HeartHandshake } from "lucide-react";+import Link from "next/link";++const reviews = [+ {+ name: "Jack",+ username: "@jack",+ body: "I've never seen anything like this before. It's amazing. I love it.",+ img: "https://avatar.vercel.sh/jack",+ },+ {+ name: "Jill",+ username: "@jill",+ body: "I don't know what to say. I'm speechless. This is amazing.",+ img: "https://avatar.vercel.sh/jill",+ },+ {+ name: "John",+ username: "@john",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/john",+ },+ {+ name: "Jane",+ username: "@jane",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/jane",+ },+ {+ name: "Jenny",+ username: "@jenny",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/jenny",+ },+ {+ name: "James",+ username: "@james",+ body: "I'm at a loss for words. This is amazing. I love it.",+ img: "https://avatar.vercel.sh/james",+ },+];++const firstRow = reviews.slice(0, reviews.length / 2);+const secondRow = reviews.slice(reviews.length / 2);++const ReviewCard = ({+ img,+ name,+ username,+ body,+}: {+ img: string;+ name: string;+ username: string;+ body: string;+}) => {+ return (+ <figure+ className={cn(+ "relative w-64 cursor-pointer overflow-hidden rounded-[2rem] border p-4",+ // light styles+ "border-gray-950/[.1] bg-gray-950/[.01] hover:bg-gray-950/[.05]",+ // dark styles+ "dark:border-gray-50/[.1] dark:bg-gray-50/[.10] dark:hover:bg-gray-50/[.15]",+ )}+ >+ <div className="flex flex-row items-center gap-2">+ <img className="rounded-full" width="32" height="32" alt="" src={img} />+ <div className="flex flex-col">+ <figcaption className="text-sm font-medium dark:text-white">+ {name}+ </figcaption>+ <p className="text-xs font-medium dark:text-white/40">{username}</p>+ </div>+ </div>+ <blockquote className="mt-2 text-sm">{body}</blockquote>+ </figure>+ );+};++export default function CallToAction() {+ return (+ <section id="cta">+ <div className="py-14">+ <div className="container flex w-full flex-col items-center justify-center p-4">+ <div className="relative flex w-full max-w-[1000px] flex-col items-center justify-center overflow-hidden rounded-[2rem] border p-10 py-14">+ <div className="absolute rotate-[-35deg]">+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee pauseOnHover className="[--duration:20s]" repeat={3}>+ {firstRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ <Marquee+ reverse+ pauseOnHover+ className="[--duration:20s]"+ repeat={3}+ >+ {secondRow.map((review) => (+ <ReviewCard key={review.username} {...review} />+ ))}+ </Marquee>+ </div>+ <div className="z-10 rounded-[2rem] border bg-background/10 p-3 shadow-2xl backdrop-blur-md">+ <HeartHandshake className="size-16 text-black dark:text-white lg:size-24" />+ </div>+ <div className="z-10 mt-4 flex flex-col items-center text-center text-primary">+ <h1 className="text-3xl font-bold lg:text-4xl">+ Stop wasting time on design.+ </h1>+ <p className="mt-2">+ Start your 7-day free trial. No credit card required.+ </p>+ <Link+ href={{ pathname: "/" }}+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "secondary",+ }),+ "group mt-4 rounded-[2rem] px-6",+ )}+ >+ Get Started+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </Link>+ </div>+ <div className="absolute inset-x-0 bottom-0 h-full bg-gradient-to-b from-transparent to-white to-70% dark:to-black" />+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/faq-1.tsx b/registry/blocks/example/faq-1.tsxnew file mode 100644index 00000000..e5d5d4de--- /dev/null+++ b/registry/blocks/example/faq-1.tsx@@ -0,0 +1,13 @@+export default function FAQ() {+ return (+ <section id="faq">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-600">+ Frequently Asked Questions+ </h3>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/features-1.tsx b/registry/blocks/example/features-1.tsxnew file mode 100644index 00000000..08e58418--- /dev/null+++ b/registry/blocks/example/features-1.tsx@@ -0,0 +1,1222 @@+import { cubicBezier, motion } from "framer-motion";+// import Marquee from "./marquee";+import { FC, ReactNode } from "react";+import { cn } from "../../../lib/utils";+// import {+// BentoGridContainer,+// BendroGridLayout,+// BentoGridContent,+// BentoGridImage,+// } from "./gridcomponent5";+// import { useTheme } from "../theme-provider";++interface BentoGridContainerProps {+ children: ReactNode;+ className?: string;+}++export const BentoGridContainer: FC<BentoGridContainerProps> = ({+ children,+ className,+}) => {+ return (+ <div+ className={cn(+ "h-fit rounded-xl border border-slate-200/50 bg-transparent p-1 [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:border-gray-800 dark:bg-transparent dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",+ className,+ )}+ >+ {children}+ </div>+ );+};++interface BendroGridLayoutProps {+ children: ReactNode;+ className?: string;+}++export const BendroGridLayout: FC<BendroGridLayoutProps> = ({+ children,+ className,+}) => {+ return (+ <div+ className={cn(+ "flex h-full w-full flex-col items-center justify-between gap-y-5",+ className,+ )}+ >+ {children}+ </div>+ );+};++interface BentoGridImageProps {+ children: ReactNode;+ className?: string;+}++export const BentoGridImage: FC<BentoGridImageProps> = ({+ children,+ className,+}) => {+ return (+ <div+ className={cn(+ "flex h-full w-full items-center justify-center bg-transparent",+ className,+ )}+ >+ {children}+ </div>+ );+};++interface BentoGridContentProps {+ children: ReactNode;+ className?: string;+}++export const BentoGridContent: FC<BentoGridContentProps> = ({+ children,+ className,+}) => {+ return (+ <div+ className={cn("flex flex-col items-start gap-y-1 px-5 pb-4", className)}+ >+ {children}+ </div>+ );+};++const texts = [+ {+ id: 1,+ header: "Activity channels.",+ subheader: "Stay in the know. On the go.",+ },+ {+ id: 2,+ header: "Team Updates.",+ subheader: "Collaborate effectively, wherever you are.",+ },+ {+ id: 3,+ header: "Project Progress.",+ subheader: "Track milestones and progress seamlessly.",+ },+ {+ id: 4,+ header: "Daily Digests.",+ subheader: "Get your daily dose of updates.",+ },+];++const containerVariants = {+ initial: {},+ whileHover: {+ transition: {+ staggerChildren: 0.1,+ },+ },+};++/* Bento grid 3 animation start */+const thirdfirstsecondVariants = {+ initial: (index: number) => ({+ y: 4,+ scale: 0.5,+ opacity: 0,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ }),+ whileHover: (index: number) => ({+ y: -2,+ opacity: 1,+ scale: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ }),+};+const thirdsecondsecondVariants = {+ initial: (index: number) => ({+ y: -2,+ opacity: 1,+ scale: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ }),+ whileHover: (index: number) => ({+ y: 8,+ opacity: 1,+ scale: 1.05,+ boxShadow:+ "rgba(39,245,76,0.15) 10px 20px 70px -20px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ }),+};+/* Bento grid 3 animation end */++/* ================================= */+/* ================================= */++/* Bento Grid 4 animation start */+const fourthBentoItemOneVariants = {+ initial: {+ x: 35,+ y: 5,+ scale: 0.9,+ rotate: -3,+ zIndex: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ x: 0,+ y: 0,+ scale: 1,+ rotate: 0,+ boxShadow:+ "rgba(39,245,76,0.15) 10px 20px 70px -20px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ },+};+const fourthBentoItemTwoVariants = {+ initial: {+ scale: 1.1,+ zIndex: 2,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ scale: 1,+ boxShadow:+ "rgba(39,127,245,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ },+};+const fourthBentoItemThreeVariants = {+ initial: {+ x: -35,+ y: 5,+ scale: 0.9,+ rotate: 3,+ zIndex: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ x: 0,+ y: 0,+ scale: 1,+ rotate: 0,+ boxShadow:+ "rgba(245,40,145,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ },+};+/* Bento Grid 4 animation end */++/* ================================= */+/* ================================= */++/* Bento Grid 5 animation start */+const fifthBentoItemOneVariants = {+ initial: {+ viewBox: "0 -950 366 1408",+ filter: "saturate(0.3)",+ opacity: 0.5,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ viewBox: "0 -60 366 310",+ filter: "saturate(1)",+ opacity: 1,+ boxShadow:+ "rgba(245,40,145,0.35) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+};+const fifthBentoItemTwoVariants = {+ initial: {+ y: 0,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: 0,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+};+/* Bento Grid 5 animation end */++/* ================================= */+/* ================================= */++/* Bento Grid 6 animation start */+const sixthBentoItemOneVariants = {+ initial: {+ y: 0,+ scale: 0.95,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: 25,+ x: 10,+ scale: 1,+ rotate: 2,+ boxShadow:+ "rgba(39,127,245,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+};+const sixthBentoItemTwoVariants = {+ initial: {+ y: 0,+ scale: 0.95,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: -25,+ x: -10,+ scale: 1,+ rotate: -3,+ boxShadow:+ "rgba(39,245,76,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+};+/* Bentro Grid 6 animation end */++/* ================================= */+/* ================================= */++/* Bento Grid 7 animation start */+const seventhBentoItemOneVariants = {+ initial: {+ y: 0,+ scale: 0.95,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: -10,+ scale: 1,+ boxShadow:+ "rgba(39,127,245,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+};+const seventhBentoItemTwoVariants = {+ initial: {+ y: 20,+ x: 5,+ display: "none",+ opacity: 0,+ scale: 0.95,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: 10,+ x: -3,+ display: "flex",+ opacity: 1,+ scale: 1,+ transition: {+ delay: 0.1,+ duration: 0.25,+ ease: "easeIn",+ },+ },+};+/* Bento Grid 7 animation end */++/* ================================= */+/* ================================= */++/* Bento Grid 8 animation start */+const eightBentoItemOneVariants = {+ initial: {+ y: 0,+ scale: 0.97,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: -45,+ scale: 1,+ boxShadow:+ "rgba(39,127,245,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+};+const eightBentoItemTwoVariants = {+ initial: {+ y: 30,+ opacity: 0,+ scale: 0.97,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: 10,+ opacity: 1,+ scale: 1,+ boxShadow:+ "rgba(245,40,145,0.05) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+};+const eightBentoItemThreeVariants = {+ initial: {+ x: 30,+ y: 20,+ opacity: 0,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ x: 5,+ y: 5,+ opacity: 1,+ boxShadow:+ "rgba(39,245,76,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+};+/* Bento Grid 8 animation end */++/* ================================= */+/* ================================= */++function BentoCard({+ children,+ className,+}: {+ children: ReactNode;+ className?: string;+}) {+ return (+ <motion.div+ variants={containerVariants}+ initial="initial"+ whileHover="whileHover"+ className={cn(+ "group relative flex h-full w-full cursor-pointer flex-col items-center justify-between gap-y-5 overflow-hidden rounded-xl",+ // 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:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset] dark:[border:1px_solid_rgba(255,255,255,.1)]",+ className,+ )}+ >+ {children}+ </motion.div>+ );+}++function Feature1() {+ return (+ <BentoCard>+ <div className="flex h-full w-full items-center justify-center rounded-t-xl border-0 bg-transparent">+ <div className="relative flex cursor-pointer flex-col items-center justify-center gap-y-2 p-10">+ <motion.div+ variants={{+ initial: {+ scale: 0.87,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ scale: 0.8,+ boxShadow:+ "rgba(245,40,145,0.35) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ }}+ className="z-[1] flex h-full w-full items-center justify-between gap-x-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="flex flex-col gap-y-2">+ <div className="h-2 w-32 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ </div>+ </motion.div>+ <motion.div+ variants={{+ initial: {+ y: -27,+ scale: 0.95,+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: -55,+ scale: 0.87,+ boxShadow:+ "rgba(39,127,245,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0,+ duration: 0.2,+ ease: "linear",+ },+ },+ }}+ className="z-[2] flex h-full w-full items-center justify-between gap-x-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="flex flex-col gap-y-2">+ <div className="h-2 w-32 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ <div className="h-2 w-20 rounded-full bg-slate-400/50"></div>+ </div>+ </motion.div>+ <motion.div+ variants={{+ initial: {+ y: -25,+ opacity: 0,+ scale: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ y: -45,+ opacity: 1,+ scale: 1,+ boxShadow:+ "rgba(39,245,76,0.15) 10px 20px 70px -20px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ },+ }}+ className="absolute bottom-0 z-[3] m-auto flex h-fit w-fit items-center justify-between gap-x-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="flex flex-col gap-y-2">+ <div className="h-2 w-32 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ <div className="h-2 w-20 rounded-full bg-slate-400/50"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ </div>+ </motion.div>+ </div>+ </div>+ <div className="flex flex-col items-start gap-y-1 px-5 pb-4">+ <div className="flex flex-col items-start gap-y-1">+ <h2 className="text-xl font-semibold">+ Write & schedule, effortlessly+ </h2>+ <p className="text-base font-normal text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for creators.+ </p>+ </div>+ </div>+ </BentoCard>+ );+}++function Feature2() {+ return (+ <BentoCard>+ <div className="flex h-[310px] w-full cursor-pointer flex-col gap-y-3.5 overflow-hidden rounded-t-md border-b border-slate-200/50 p-5 dark:border-neutral-800">+ {texts.map((text, index) => (+ <motion.div+ key={text.id}+ className="w-[400px] origin-right rounded-md border border-slate-300/50 bg-transparent p-4 shadow-[0px_0px_40px_-25px_rgba(0,0,0,0.25)] backdrop-blur-md dark:border-neutral-400/30"+ custom={index}+ variants={{+ initial: (index: number) => ({+ y: 0,+ scale: index === 3 ? 0.85 : 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: cubicBezier(0.22, 1, 0.36, 1),+ },+ }),+ whileHover: (index: number) => ({+ y: -100,+ opacity: 1,+ scale: index === 0 ? 0.85 : index === 3 ? 1 : 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: cubicBezier(0.22, 1, 0.36, 1),+ },+ }),+ }}+ >+ <p className="text-black dark:text-white">{text.header}</p>+ <p className="text-gray-400 dark:text-gray-400">{text.subheader}</p>+ </motion.div>+ ))}+ </div>+ <div className="flex flex-col items-start gap-y-1 px-5 pb-4">+ <div className="flex flex-col items-start gap-y-1">+ <h2 className="text-xl font-semibold">+ Write & schedule, effortlessly+ </h2>+ <p className="text-base font-normal text-slate-500">+ Craft and publish engaging content in an app built for creators.+ </p>+ </div>+ </div>+ </BentoCard>+ );+}++function Feature3() {+ return (+ <BentoCard>+ <div className="flex h-full w-full cursor-pointer flex-col items-center justify-center gap-y-2 overflow-hidden rounded-t-xl border-b border-slate-200/50 p-8 dark:border-neutral-800">+ <motion.p+ variants={{+ initial: (index: number) => ({+ y: 4,+ scale: 0.5,+ opacity: 0,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ }),+ whileHover: (index: number) => ({+ y: -2,+ opacity: 1,+ scale: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ }),+ }}+ className="w-fit rounded-full border border-slate-200 px-2 text-[15px] text-purple-400"+ >+ Make it Punchier+ </motion.p>+ <motion.div+ variants={{+ initial: (index: number) => ({+ y: -2,+ opacity: 1,+ scale: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ }),+ whileHover: (index: number) => ({+ y: 8,+ opacity: 1,+ scale: 1.05,+ boxShadow:+ "rgba(39,245,76,0.15) 10px 20px 70px -20px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ }),+ }}+ className=" flex items-start gap-x-2 rounded-lg border border-slate-300/50 bg-white p-4 shadow-[0px_0px_40px_-25px_rgba(0,0,0,0.25)] dark:border-neutral-400/30 dark:bg-neutral-800"+ >+ <div className="w-8 ">+ <div className="h-6 w-6 rounded-full bg-blue-500">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ </div>+ <div className="w-full">+ <h3 className="text-base font-semibold">Design</h3>+ <p className="text-sm text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for creators.+ </p>+ </div>+ </motion.div>+ </div>+ <div className="flex flex-col items-start gap-y-1 px-5 pb-4">+ <div className="flex flex-col items-start gap-y-1">+ <h2 className="text-xl font-semibold">+ Write & schedule, effortlessly+ </h2>+ <p className="text-base font-normal text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for creators.+ </p>+ </div>+ </div>+ </BentoCard>+ );+}++function Feature4() {+ return (+ <BentoCard className="lg:col-span-2">+ <div className="flex h-full w-full cursor-pointer flex-row items-center justify-center gap-y-2 overflow-hidden rounded-t-xl border-b border-slate-200/50 p-8 dark:border-neutral-800">+ <motion.div+ variants={{+ initial: {+ x: 35,+ y: 5,+ scale: 0.9,+ rotate: -3,+ zIndex: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ x: 0,+ y: 0,+ scale: 1,+ rotate: 0,+ boxShadow:+ "rgba(39,245,76,0.15) 10px 20px 70px -20px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ },+ }}+ className="z-[3] flex h-fit w-full flex-col items-center justify-between gap-x-2 gap-y-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="grid grid-cols-2 gap-2">+ <div className="h-2 w-14 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-400/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-300/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-600/80"></div>+ </div>+ </motion.div>+ <motion.div+ variants={{+ initial: {+ scale: 1.1,+ zIndex: 2,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ scale: 1,+ boxShadow:+ "rgba(39,127,245,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ },+ }}+ className="z-[3] flex h-fit w-full flex-col items-center justify-between gap-x-2 gap-y-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="grid grid-cols-2 gap-2">+ <div className="h-2 w-14 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-400/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-300/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-600/80"></div>+ </div>+ </motion.div>+ <motion.div+ variants={{+ initial: {+ x: -35,+ y: 5,+ scale: 0.9,+ rotate: 3,+ zIndex: 1,+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "linear",+ },+ },+ whileHover: {+ x: 0,+ y: 0,+ scale: 1,+ rotate: 0,+ boxShadow:+ "rgba(245,40,145,0.15) 0px 20px 70px -10px, rgba(36,42,66,0.04) 0px 10px 24px -8px, rgba(36,42,66,0.06) 0px 1px 4px -1px",+ transition: {+ delay: 0.05,+ duration: 0.2,+ ease: "easeInOut",+ },+ },+ }}+ className="z-[3] hidden h-fit w-full flex-col items-center justify-between gap-x-2 gap-y-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800 min-[1170px]:flex"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="grid grid-cols-2 gap-2">+ <div className="h-2 w-14 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-400/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-300/80"></div>+ <div className="h-2 w-14 rounded-full bg-neutral-600/80"></div>+ </div>+ </motion.div>+ </div>+ <div className="flex flex-col items-start gap-y-1 px-5 pb-4">+ <h2 className="text-xl font-semibold">+ No more rehydration or cold storage+ </h2>+ <p className="text-base font-normal text-neutral-500 dark:text-neutral-400">+ Customize retention per source to retain and query everything you+ want. No need to archive your logs to S3 anymore. Search all your logs+ anytime+ </p>+ </div>+ </BentoCard>+ );+}++export default function GridComponent6() {+ return (+ <section id="features">+ <div className="py-14">+ <div className="grid h-full gap-6 md:grid-cols-2 xl:grid-cols-3">+ <Feature1 />+ <Feature2 />+ <Feature3 />+ <Feature4 />++ <BentoGridContainer className="h-full p-0">+ <BendroGridLayout>+ <BentoGridImage className="border-0">+ <div className="relative h-full w-full border-b border-slate-200/50 dark:border-neutral-800">+ <div className="relative h-full w-full cursor-pointer overflow-hidden rounded-t-xl p-10">+ <motion.div+ variants={containerVariants}+ initial="initial"+ whileHover="whileHover"+ className="relative h-full w-full cursor-pointer overflow-hidden rounded-xl border border-slate-200/50 bg-white dark:border-neutral-700/50 dark:bg-neutral-800"+ >+ <motion.p+ variants={fifthBentoItemTwoVariants}+ className="absolute left-5 top-5 z-[9] w-fit text-[15px]"+ >+ +14+ </motion.p>+ <motion.svg+ variants={fifthBentoItemOneVariants}+ xmlns="http://www.w3.org/2000/svg"+ fill="none"+ preserveAspectRatio="none"+ style={{+ position: "absolute",+ left: 0,+ bottom: 0,+ height: "100%",+ width: "100%",+ }}+ viewBox="0 -950 366 1408"+ >+ <path+ fill="url(#a)"+ d="M0 193c109.5 0 260.5-52.5 366-192.5v907H0V193Z"+ />+ <defs>+ <linearGradient+ id="a"+ x1={183}+ x2={183}+ y1={0.5}+ y2={262}+ gradientUnits="userSpaceOnUse"+ >+ <stop stopColor="#797EFF" />+ <stop offset={1} stopColor="#79AFFF" />+ </linearGradient>+ </defs>+ </motion.svg>+ </motion.div>+ </div>+ </div>+ </BentoGridImage>+ <BentoGridContent>+ <div className="flex flex-col items-start gap-y-1">+ <h2 className="text-xl font-semibold">+ Write & schedule, effortlessly+ </h2>+ <p className="text-base font-normal text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for+ creators.+ </p>+ </div>+ </BentoGridContent>+ </BendroGridLayout>+ </BentoGridContainer>+ {/* 6 */}+ <BentoGridContainer className="h-full p-0 ">+ <BendroGridLayout>+ <BentoGridImage className="border-0">+ <motion.div+ variants={containerVariants}+ initial="initial"+ whileHover="whileHover"+ className="flex h-full w-full items-center justify-center rounded-t-xl border-b border-slate-200/50 dark:border-neutral-800"+ >+ <div className="relative flex cursor-pointer flex-col items-center justify-center gap-y-2 p-14">+ <motion.div+ variants={sixthBentoItemOneVariants}+ className="z-[3] flex h-full w-full items-center justify-between gap-x-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="flex flex-col gap-y-2">+ <div className="h-2 w-32 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ <div className="h-2 w-20 rounded-full bg-slate-400/50"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ </div>+ </motion.div>+ <motion.div+ variants={sixthBentoItemTwoVariants}+ className="absolute bottom-14 z-[2] m-auto flex h-fit w-fit items-center justify-between gap-x-2 rounded-md border border-neutral-400/20 bg-white p-5 px-2.5 transition-all duration-100 ease-linear dark:bg-neutral-800"+ >+ <div className="h-8 w-8 rounded-full bg-pink-300">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ <div className="flex flex-col gap-y-2">+ <div className="h-2 w-32 rounded-full bg-neutral-800/50 dark:bg-neutral-200/80"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ <div className="h-2 w-20 rounded-full bg-slate-400/50"></div>+ <div className="h-2 w-48 rounded-full bg-slate-400/50"></div>+ </div>+ </motion.div>+ </div>+ </motion.div>+ </BentoGridImage>+ <BentoGridContent>+ <div className="flex flex-col items-start gap-y-1">+ <h2 className="text-xl font-semibold">+ Write & schedule, effortlessly+ </h2>+ <p className="text-base font-normal text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for+ creators.+ </p>+ </div>+ </BentoGridContent>+ </BendroGridLayout>+ </BentoGridContainer>+ {/* 7 */}+ <BentoGridContainer className="h-full p-0">+ <BendroGridLayout>+ <BentoGridImage className="border-0">+ <motion.div+ variants={containerVariants}+ initial="initial"+ whileHover="whileHover"+ className="group flex h-full w-full cursor-pointer flex-col items-center justify-center gap-y-1 overflow-hidden rounded-t-xl border-b border-slate-200/50 dark:border-neutral-800"+ >+ <div className="relative flex flex-col items-center justify-center gap-y-2 px-10 py-20 lg:py-0">+ <motion.div+ variants={seventhBentoItemOneVariants}+ className="h-full w-full rounded-xl border border-slate-300/50 p-4 shadow-[0px_0px_40px_-25px_rgba(0,0,0,0.25)] group-hover:bg-white dark:border-neutral-400/30 group-hover:dark:bg-neutral-800"+ >+ <motion.div className=" flex items-start justify-center gap-x-2">+ <div className="w-8 ">+ <div className="h-6 w-6 rounded-full bg-blue-500">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ </div>+ <div className="w-full flex-1">+ <h3 className="text-base font-semibold">Design</h3>+ <p className="text-sm text-neutral-500 dark:text-neutral-400">+ I think the design can be improved+ </p>+ </div>+ </motion.div>+ <motion.div+ variants={seventhBentoItemTwoVariants}+ className="flex items-start justify-center gap-x-2"+ >+ <div className="w-8 ">+ <div className="h-6 w-6 rounded-full bg-blue-500">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ </div>+ <div className="w-[calc(100%-3rem)]">+ <h3 className="text-base font-semibold">Design</h3>+ <p className="text-sm text-neutral-500 dark:text-neutral-400">+ On it 🔥+ </p>+ </div>+ </motion.div>+ </motion.div>+ </div>+ </motion.div>+ </BentoGridImage>+ <BentoGridContent>+ <div className="flex flex-col items-start gap-y-1">+ <h2 className="text-xl font-semibold">+ Write & schedule, effortlessly+ </h2>+ <p className="text-base font-normal text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for+ creators.+ </p>+ </div>+ </BentoGridContent>+ </BendroGridLayout>+ </BentoGridContainer>+ {/* 8 */}+ <BentoGridContainer className="h-full p-0">+ <BendroGridLayout>+ <BentoGridImage className="border-0">+ <motion.div+ variants={containerVariants}+ initial="initial"+ whileHover="whileHover"+ className="flex h-full w-full cursor-pointer flex-col items-center justify-center gap-y-1 overflow-hidden rounded-t-xl border-b border-slate-200/50 dark:border-neutral-800"+ >+ <div className="relative flex flex-col items-center justify-center gap-y-2 px-10 py-20">+ <motion.div+ variants={eightBentoItemOneVariants}+ className=" relative flex items-start gap-x-2 rounded-lg border border-slate-300/50 bg-white p-4 shadow-[0px_0px_40px_-25px_rgba(0,0,0,0.25)] dark:border-neutral-400/30 dark:bg-neutral-800"+ >+ <div className="w-8 ">+ <div className="h-6 w-6 rounded-full bg-blue-500">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ </div>+ <div className="w-[calc(100%-3rem)]">+ <h3 className="text-base font-semibold">Design</h3>+ <p className="text-sm text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for+ creators.+ </p>+ </div>+ </motion.div>+ <motion.div+ variants={eightBentoItemTwoVariants}+ className=" absolute inset-10 -bottom-14 z-[3] m-auto flex h-fit items-start gap-x-2 rounded-lg border border-slate-300/50 bg-white p-4 shadow-[0px_0px_40px_-25px_rgba(0,0,0,0.25)] dark:border-neutral-400/30 dark:bg-neutral-800"+ >+ <div className="w-8 ">+ <div className="h-6 w-6 rounded-full bg-blue-500">+ <img+ className="h-full w-full rounded-full object-cover"+ src="https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?q=80&w=2080&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"+ alt=""+ />+ </div>+ </div>+ <div className="w-[calc(100%-3rem)]">+ <h3 className="text-base font-semibold">Design</h3>+ <p className="text-sm text-neutral-500 dark:text-neutral-400">+ Hello 🤞+ </p>+ </div>+ <motion.p+ variants={eightBentoItemThreeVariants}+ className="absolute -bottom-2 right-2 w-fit rounded-full border bg-green-500 px-2 py-0.5 text-xs text-white"+ >+ DM Sent+ </motion.p>+ </motion.div>+ </div>+ </motion.div>+ </BentoGridImage>+ <BentoGridContent>+ <div className="flex flex-col items-start gap-y-1">+ <h2 className="text-xl font-semibold">+ Write & schedule, effortlessly+ </h2>+ <p className="text-base font-normal text-neutral-500 dark:text-neutral-400">+ Craft and publish engaging content in an app built for+ creators.+ </p>+ </div>+ </BentoGridContent>+ </BendroGridLayout>+ </BentoGridContainer>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/footer-1.tsx b/registry/blocks/example/footer-1.tsxnew file mode 100644index 00000000..626207d7--- /dev/null+++ b/registry/blocks/example/footer-1.tsx@@ -0,0 +1,178 @@+import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import { LinkedInLogoIcon, TwitterLogoIcon } from "@radix-ui/react-icons";+import { ChevronRight, HeartHandshake } from "lucide-react";++const footerNavs = [+ {+ label: "Product",+ items: [+ {+ href: "/features",+ name: "Features",+ },+ {+ href: "/pricing",+ name: "Pricing",+ },+ {+ href: "/faq",+ name: "FAQ",+ },+ {+ href: "mailto:[email protected]",+ name: "Support",+ },+ ],+ },+ {+ label: "Company",+ items: [+ {+ href: "/about",+ name: "About Us",+ },+ {+ href: "/blog",+ name: "Blog",+ },+ {+ href: "/careers",+ name: "Careers",+ },+ {+ href: "/contact",+ name: "Contact",+ },+ ],+ },+ {+ label: "Resources",+ items: [+ {+ href: "/docs",+ name: "Documentation",+ },+ {+ href: "/api",+ name: "API Reference",+ },+ {+ href: "/community",+ name: "Community",+ },+ ],+ },+ {+ label: "Legal",+ items: [+ {+ href: "/privacy",+ name: "Privacy Policy",+ },+ {+ href: "/terms",+ name: "Terms of Service",+ },+ ],+ },+];++const footerSocials = [+ {+ href: "/",+ name: "Linkedin",+ icon: <LinkedInLogoIcon className="size-4" />,+ },+ {+ href: "/",+ name: "Twitter",+ icon: <TwitterLogoIcon className="size-4" />,+ },+];++export default function Footer() {+ return (+ <footer className="border-t">+ <div className="mx-auto w-full max-w-screen-xl px-4">+ <div className="gap-4 p-4 py-16 sm:pb-16 md:flex md:justify-between">+ <div className="mb-12 flex flex-col gap-4">+ <a href="/" className="flex items-center gap-2">+ <HeartHandshake className="size-8 text-black dark:text-white" />+ <span className="self-center whitespace-nowrap text-2xl font-semibold dark:text-white">+ Magic UI+ </span>+ </a>+ <div className="max-w-sm">+ <div className="z-10 mt-4 flex w-full flex-col items-start text-left">+ <h1 className="text-3xl font-bold lg:text-2xl">+ Get started today.+ </h1>+ <p className="mt-2">+ Start your 7-day free trial. No credit card required.+ </p>+ <a+ href="/signup"+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "default",+ }),+ "group mt-4 w-full rounded-[2rem] px-6",+ )}+ >+ Sign Up Free+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </a>+ </div>+ </div>+ </div>+ <div className="grid grid-cols-1 gap-8 sm:grid-cols-4 sm:gap-6">+ {footerNavs.map((nav) => (+ <div key={nav.label}>+ <h2 className="mb-6 text-sm font-semibold uppercase text-gray-900 dark:text-white">+ {nav.label}+ </h2>+ <ul className="grid gap-2">+ {nav.items.map((item) => (+ <li key={item.name}>+ <a+ href={item.href}+ className="group inline-flex cursor-pointer items-center justify-start gap-1 text-gray-400 duration-200 hover:text-gray-600 hover:opacity-90 dark:text-gray-400 dark:hover:text-gray-200"+ >+ {item.name}+ <ChevronRight className="h-4 w-4 translate-x-0 transform opacity-0 transition-all duration-300 ease-out group-hover:translate-x-1 group-hover:opacity-100" />+ </a>+ </li>+ ))}+ </ul>+ </div>+ ))}+ </div>+ </div>++ <div className="flex flex-col gap-2 border-t py-4 sm:flex sm:flex-row sm:items-center sm:justify-between">+ <div className="flex space-x-5 sm:mt-0 sm:justify-center">+ {footerSocials.map((social) => (+ <a+ key={social.name}+ href={social.href}+ className="fill-gray-500 text-gray-500 hover:fill-gray-900 hover:text-gray-900 dark:hover:fill-gray-600 dark:hover:text-gray-600"+ >+ {social.icon}+ <span className="sr-only">{social.name}</span>+ </a>+ ))}+ </div>+ <span className="text-sm text-gray-500 dark:text-gray-400 sm:text-center">+ Copyright © {new Date().getFullYear()}{" "}+ <a href="/" className="cursor-pointer">+ Magic UI+ </a>+ . All Rights Reserved.+ </span>+ </div>+ </div>+ </footer>+ );+}diff --git a/registry/blocks/example/footer-2.tsx b/registry/blocks/example/footer-2.tsxnew file mode 100644index 00000000..e8a066a2--- /dev/null+++ b/registry/blocks/example/footer-2.tsx@@ -0,0 +1,180 @@+import { Icons } from "@/components/icons";+import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import { LinkedInLogoIcon } from "@radix-ui/react-icons";+import { ChevronRight, HeartHandshake } from "lucide-react";++const footerNavs = [+ {+ label: "Product",+ items: [+ {+ href: "/features",+ name: "Features",+ },+ {+ href: "/pricing",+ name: "Pricing",+ },+ {+ href: "/faq",+ name: "FAQ",+ },+ {+ href: "mailto:[email protected]",+ name: "Support",+ },+ ],+ },+ {+ label: "Company",+ items: [+ {+ href: "/about",+ name: "About Us",+ },+ {+ href: "/blog",+ name: "Blog",+ },+ {+ href: "/careers",+ name: "Careers",+ },+ {+ href: "/contact",+ name: "Contact",+ },+ ],+ },+ {+ label: "Resources",+ items: [+ {+ href: "/docs",+ name: "Documentation",+ },+ {+ href: "/api",+ name: "API Reference",+ },+ {+ href: "/community",+ name: "Community",+ },+ ],+ },+ {+ label: "Legal",+ items: [+ {+ href: "/privacy",+ name: "Privacy Policy",+ },+ {+ href: "/terms",+ name: "Terms of Service",+ },+ ],+ },+];++const footerSocials = [+ {+ href: "/",+ name: "Linkedin",+ icon: <LinkedInLogoIcon className="size-4" />,+ },+ {+ href: "/",+ name: "Twitter",+ icon: <Icons.twitter className="size-4" />,+ },+];++export default function Footer() {+ return (+ <footer className="border-t">+ <div className="mx-auto w-full max-w-screen-xl px-4">+ <div className="gap-4 p-4 py-16 sm:pb-16 md:flex md:justify-between">+ <div className="mb-12 flex flex-col gap-4">+ <a href="/" className="flex items-center gap-2">+ <HeartHandshake className="size-8 text-primary" />+ <span className="self-center whitespace-nowrap text-2xl font-semibold dark:text-white">+ Magic UI+ </span>+ </a>+ <div className="max-w-sm">+ <div className="z-10 mt-4 flex w-full flex-col items-start text-left">+ <h1 className="text-3xl font-bold lg:text-2xl">+ Get started today.+ </h1>+ <p className="mt-2">+ Start your 7-day free trial. No credit card required.+ </p>+ <a+ href="/signup"+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "default",+ }),+ "group mt-4 w-full rounded-[2rem] px-6",+ )}+ >+ Sign Up Free+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </a>+ </div>+ </div>+ </div>+ <div className="grid grid-cols-1 gap-8 sm:grid-cols-4 sm:gap-6">+ {footerNavs.map((nav) => (+ <div key={nav.label}>+ <h2 className="mb-6 text-sm font-semibold uppercase text-gray-900 dark:text-white">+ {nav.label}+ </h2>+ <ul className="grid gap-2">+ {nav.items.map((item) => (+ <li key={item.name}>+ <a+ // href={item.href}+ href="/"+ className="group inline-flex cursor-pointer items-center justify-start gap-1 text-gray-400 duration-200 hover:text-black hover:opacity-90"+ >+ {item.name}+ <ChevronRight className="h-4 w-4 translate-x-0 transform opacity-0 transition-all duration-300 ease-out group-hover:translate-x-1 group-hover:opacity-100" />+ </a>+ </li>+ ))}+ </ul>+ </div>+ ))}+ </div>+ </div>++ <div className="flex flex-col gap-2 border-t py-4 sm:flex sm:flex-row sm:items-center sm:justify-between">+ <div className="flex space-x-5 sm:mt-0 sm:justify-center">+ {footerSocials.map((social) => (+ <a+ key={social.name}+ href={social.href}+ className="fill-gray-500 text-gray-500 hover:fill-gray-900 hover:text-gray-900 dark:hover:fill-gray-600 dark:hover:text-gray-600"+ >+ {social.icon}+ <span className="sr-only">{social.name}</span>+ </a>+ ))}+ </div>+ <span className="text-sm text-gray-500 dark:text-gray-400 sm:text-center">+ Copyright © {new Date().getFullYear()}{" "}+ <a href="/" className="cursor-pointer">+ Magic UI+ </a>+ . All Rights Reserved.+ </span>+ </div>+ </div>+ </footer>+ );+}diff --git a/registry/blocks/example/header-1.tsx b/registry/blocks/example/header-1.tsxnew file mode 100644index 00000000..5f26f53b--- /dev/null+++ b/registry/blocks/example/header-1.tsx@@ -0,0 +1,155 @@+"use client";++import { AnimatePresence, MotionConfig, motion } from "framer-motion";+import { useTheme } from "next-themes";+import { useEffect, useRef, useState } from "react";++export default function StickyHeader() {+ const [scrollY, setScrollY] = useState(0);+ const fixedNavRef = useRef<HTMLElement>(null);+ const { theme } = useTheme();+ const [active, setActive] = useState(false);++ useEffect(() => {+ const handleScroll = () => {+ setScrollY(window.scrollY);+ };++ window.addEventListener("scroll", handleScroll);++ return () => {+ window.removeEventListener("scroll", handleScroll);+ };+ }, []);++ /* chenge the nav to header and remove unncessary elements as much as you can */+ return (+ <header+ ref={fixedNavRef}+ className=" bg-white px-10 py-7 dark:bg-neutral-900 xl:px-0"+ >+ <section className="relative mx-auto flex max-w-5xl items-center justify-between">+ <h1>Logo</h1>++ <ul className="fixed left-4 right-4 top-4 z-[60] hidden items-center justify-center gap-x-5 md:flex">+ <motion.div+ initial={{ x: 0 }}+ animate={{+ boxShadow:+ scrollY >= 120+ ? theme === "dark"+ ? "0 0 0 1px rgba(255,255,255,.08), 0 1px 2px -1px rgba(255,255,255,.08), 0 2px 4px rgba(255,255,255,.04)"+ : "0 0 0 1px rgba(17,24,28,.08), 0 1px 2px -1px rgba(17,24,28,.08), 0 2px 4px rgba(17,24,28,.04)"+ : "none",+ }}+ transition={{+ ease: "linear",+ duration: 0.05,+ delay: 0.05,+ }}+ className="flex h-12 w-auto items-center justify-center gap-x-5 overflow-hidden rounded-full bg-white px-6 py-2.5 transition-all dark:bg-neutral-900 md:p-1.5 md:py-2"+ >+ <nav className="relative hidden h-full items-center justify-between gap-x-3.5 md:flex">+ <ul className="flex h-full flex-col justify-center gap-6 md:flex-row md:justify-start md:gap-0 lg:gap-1">+ <li className="px-[0.75rem] py-[0.375rem]">Home</li>+ <li className="px-[0.75rem] py-[0.375rem]">About</li>+ <li className="px-[0.75rem] py-[0.375rem]">Services</li>+ <li className="px-[0.75rem] py-[0.375rem]">Contact</li>+ </ul>+ </nav>+ <motion.div+ initial={{ width: 0 }}+ animate={{+ width: scrollY >= 120 ? "auto" : 0,+ }}+ transition={{+ ease: "linear",+ duration: 0.25,+ delay: 0.05,+ }}+ className="!hidden overflow-hidden rounded-full md:!block"+ >+ <AnimatePresence>+ {scrollY >= 120 && (+ <motion.ul+ initial={{ x: "125%" }}+ animate={{ x: "0" }}+ exit={{+ x: "125%",+ transition: { ease: "linear", duration: 1 },+ }}+ transition={{ ease: "linear", duration: 0.3 }}+ className="shrink-0 whitespace-nowrap"+ >+ <li>+ <a+ href="#"+ className="transition-fg relative inline-flex w-fit items-center justify-center gap-x-1.5 overflow-hidden rounded-full bg-neutral-900 px-3 py-1.5 text-white outline-none dark:bg-white dark:text-black"+ >+ <span data-sb-field-path=".label">Get Started</span>+ </a>+ </li>+ </motion.ul>+ )}+ </AnimatePresence>+ </motion.div>+ </motion.div>+ </ul>++ <div className="z-[999] hidden items-center gap-x-5 md:flex">+ <button>Get Started</button>+ {/* <ModeToggle /> */}+ </div>+ <MotionConfig transition={{ duration: 0.3, ease: "easeInOut" }}>+ <motion.button+ onClick={() => setActive((prev) => !prev)}+ animate={active ? "open" : "close"}+ className="relative flex h-8 w-8 items-center justify-center rounded-md md:hidden"+ >+ <motion.span+ style={{ left: "50%", top: "35%", x: "-50%", y: "-50%" }}+ className="absolute h-0.5 w-5 bg-black dark:bg-white"+ variants={{+ open: {+ rotate: ["0deg", "0deg", "45deg"],+ top: ["35%", "50%", "50%"],+ },+ close: {+ rotate: ["45deg", "0deg", "0deg"],+ top: ["50%", "50%", "35%"],+ },+ }}+ transition={{ duration: 0.3 }}+ ></motion.span>+ <motion.span+ style={{ left: "50%", top: "50%", x: "-50%", y: "-50%" }}+ className="absolute h-0.5 w-5 bg-black dark:bg-white"+ variants={{+ open: {+ opacity: 0,+ },+ close: {+ opacity: 1,+ },+ }}+ ></motion.span>+ <motion.span+ style={{ left: "50%", bottom: "30%", x: "-50%", y: "-50%" }}+ className="absolute h-0.5 w-5 bg-black dark:bg-white"+ variants={{+ open: {+ rotate: ["0deg", "0deg", "-45deg"],+ top: ["65%", "50%", "50%"],+ },+ close: {+ rotate: ["-45deg", "0deg", "0deg"],+ top: ["50%", "50%", "65%"],+ },+ }}+ ></motion.span>+ </motion.button>+ </MotionConfig>+ </section>+ </header>+ );+}diff --git a/registry/blocks/example/header-2.tsx b/registry/blocks/example/header-2.tsxnew file mode 100644index 00000000..e8a066a2--- /dev/null+++ b/registry/blocks/example/header-2.tsx@@ -0,0 +1,180 @@+import { Icons } from "@/components/icons";+import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import { LinkedInLogoIcon } from "@radix-ui/react-icons";+import { ChevronRight, HeartHandshake } from "lucide-react";++const footerNavs = [+ {+ label: "Product",+ items: [+ {+ href: "/features",+ name: "Features",+ },+ {+ href: "/pricing",+ name: "Pricing",+ },+ {+ href: "/faq",+ name: "FAQ",+ },+ {+ href: "mailto:[email protected]",+ name: "Support",+ },+ ],+ },+ {+ label: "Company",+ items: [+ {+ href: "/about",+ name: "About Us",+ },+ {+ href: "/blog",+ name: "Blog",+ },+ {+ href: "/careers",+ name: "Careers",+ },+ {+ href: "/contact",+ name: "Contact",+ },+ ],+ },+ {+ label: "Resources",+ items: [+ {+ href: "/docs",+ name: "Documentation",+ },+ {+ href: "/api",+ name: "API Reference",+ },+ {+ href: "/community",+ name: "Community",+ },+ ],+ },+ {+ label: "Legal",+ items: [+ {+ href: "/privacy",+ name: "Privacy Policy",+ },+ {+ href: "/terms",+ name: "Terms of Service",+ },+ ],+ },+];++const footerSocials = [+ {+ href: "/",+ name: "Linkedin",+ icon: <LinkedInLogoIcon className="size-4" />,+ },+ {+ href: "/",+ name: "Twitter",+ icon: <Icons.twitter className="size-4" />,+ },+];++export default function Footer() {+ return (+ <footer className="border-t">+ <div className="mx-auto w-full max-w-screen-xl px-4">+ <div className="gap-4 p-4 py-16 sm:pb-16 md:flex md:justify-between">+ <div className="mb-12 flex flex-col gap-4">+ <a href="/" className="flex items-center gap-2">+ <HeartHandshake className="size-8 text-primary" />+ <span className="self-center whitespace-nowrap text-2xl font-semibold dark:text-white">+ Magic UI+ </span>+ </a>+ <div className="max-w-sm">+ <div className="z-10 mt-4 flex w-full flex-col items-start text-left">+ <h1 className="text-3xl font-bold lg:text-2xl">+ Get started today.+ </h1>+ <p className="mt-2">+ Start your 7-day free trial. No credit card required.+ </p>+ <a+ href="/signup"+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "default",+ }),+ "group mt-4 w-full rounded-[2rem] px-6",+ )}+ >+ Sign Up Free+ <ChevronRight className="ml-1 size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </a>+ </div>+ </div>+ </div>+ <div className="grid grid-cols-1 gap-8 sm:grid-cols-4 sm:gap-6">+ {footerNavs.map((nav) => (+ <div key={nav.label}>+ <h2 className="mb-6 text-sm font-semibold uppercase text-gray-900 dark:text-white">+ {nav.label}+ </h2>+ <ul className="grid gap-2">+ {nav.items.map((item) => (+ <li key={item.name}>+ <a+ // href={item.href}+ href="/"+ className="group inline-flex cursor-pointer items-center justify-start gap-1 text-gray-400 duration-200 hover:text-black hover:opacity-90"+ >+ {item.name}+ <ChevronRight className="h-4 w-4 translate-x-0 transform opacity-0 transition-all duration-300 ease-out group-hover:translate-x-1 group-hover:opacity-100" />+ </a>+ </li>+ ))}+ </ul>+ </div>+ ))}+ </div>+ </div>++ <div className="flex flex-col gap-2 border-t py-4 sm:flex sm:flex-row sm:items-center sm:justify-between">+ <div className="flex space-x-5 sm:mt-0 sm:justify-center">+ {footerSocials.map((social) => (+ <a+ key={social.name}+ href={social.href}+ className="fill-gray-500 text-gray-500 hover:fill-gray-900 hover:text-gray-900 dark:hover:fill-gray-600 dark:hover:text-gray-600"+ >+ {social.icon}+ <span className="sr-only">{social.name}</span>+ </a>+ ))}+ </div>+ <span className="text-sm text-gray-500 dark:text-gray-400 sm:text-center">+ Copyright © {new Date().getFullYear()}{" "}+ <a href="/" className="cursor-pointer">+ Magic UI+ </a>+ . All Rights Reserved.+ </span>+ </div>+ </div>+ </footer>+ );+}diff --git a/registry/blocks/example/hero-1.tsx b/registry/blocks/example/hero-1.tsxnew file mode 100644index 00000000..3113fc94--- /dev/null+++ b/registry/blocks/example/hero-1.tsx@@ -0,0 +1,65 @@+"use client";++import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import FadeIn from "@/registry/components/magicui/fade-in";+import { ChevronRight } from "lucide-react";+import Link from "next/link";++export default function Hero() {+ return (+ <section id="hero">+ <div className="relative h-full overflow-hidden py-14">+ <div className="container flex flex-col ">+ <div className="mt-20 grid grid-cols-1">+ <div className="flex flex-col items-center gap-6 pb-8 text-center">+ <FadeIn delay={0.1}>+ <h1 className="text-5xl font-bold tracking-tighter sm:text-6xl md:text-7xl lg:text-7xl">+ Professional AI Headshots+ </h1>+ </FadeIn>+ <FadeIn delay={0.1}>+ <p className="text-sm leading-normal text-muted-foreground sm:text-xl">+ Generate AI headshots in minutes.+ </p>+ </FadeIn>+ <FadeIn delay={0.2} className="flex flex-col gap-4 lg:flex-row">+ <Link+ href="/login"+ className={cn(+ buttonVariants({+ size: "lg",+ }),+ "gap-2 whitespace-pre md:flex",+ "group relative w-full gap-1 overflow-hidden text-base font-semibold tracking-tighter",+ "transform-gpu ring-offset-current transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",+ )}+ >+ Get Started+ <ChevronRight className="size-4 translate-x-0 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </Link>+ </FadeIn>+ {/* <FadeIn delay={0.3}>+ <JoinUsers />+ </FadeIn> */}+ </div>+ </div>++ <FadeIn delay={0.4} className="flex">+ <video+ autoPlay+ loop+ muted+ src="demo.mp4"+ className="mt-32 w-full rounded-lg border shadow-2xl"+ />+ </FadeIn>+ </div>+ {/* <CarouselVertical className="absolute right-20 top-0 hidden 2xl:block" />+ <CarouselVertical className="absolute left-20 top-0 hidden 2xl:block" /> */}+ {/* <CarouselHorizontal className="z-10 my-14" />+ <Confetti className="absolute inset-x-0 bottom-0 -z-10 mx-auto size-[800px]" /> */}+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/hero-WIP.tsx b/registry/blocks/example/hero-WIP.tsxnew file mode 100644index 00000000..da5d348a--- /dev/null+++ b/registry/blocks/example/hero-WIP.tsx@@ -0,0 +1,241 @@+// "use client";++// import { buttonVariants } from "@/components/ui/button";+// import assets from "@/config/assets.json";+// import { cn } from "@/lib/utils";+// import FadeIn from "@/registry/components/magicui/fade-in";+// import { motion } from "framer-motion";+// import { ChevronRight } from "lucide-react";+// import Link from "next/link";+// import { useCallback, useEffect, useMemo, useState } from "react";++// export type Breakpoint = "xs" | "sm" | "md" | "lg";++// interface Breakpoints {+// [key: string]: number;+// }++// const BREAKPOINTS: Breakpoints = {+// xs: 640,+// sm: 768,+// md: 1024,+// lg: 1280,+// };++// const useBreakpoint = (): Breakpoint => {+// const [breakpoint, setBreakpoint] = useState<Breakpoint>("sm");++// const getBreakpoint = useCallback((): Breakpoint => {+// const width = window.innerWidth;+// if (width < BREAKPOINTS.sm) {+// return "xs";+// } else if (width < BREAKPOINTS.md) {+// return "sm";+// } else if (width < BREAKPOINTS.lg) {+// return "md";+// } else {+// return "lg";+// }+// }, []);++// useEffect(() => {+// const handleResize = () => {+// setBreakpoint(getBreakpoint());+// };++// window.addEventListener("resize", handleResize);+// handleResize(); // Call the function on page load++// return () => {+// window.removeEventListener("resize", handleResize);+// };+// }, [getBreakpoint]);++// return breakpoint;+// };++// // export default useBreakpoint;++// const OFFSET_BY = 80;++// const ROWS: Record<Breakpoint, number> = {+// xs: 4,+// sm: 3,+// md: 3,+// lg: 3,+// };++// const COLUMNS: Record<Breakpoint, number> = {+// xs: 5,+// sm: 7,+// md: 7,+// lg: 7,+// };++// const SIZES: Record<Breakpoint, number> = {+// xs: 64,+// sm: 64,+// md: 96,+// lg: 96,+// };++// export default function Hero() {+// const breakpoint: Breakpoint = useBreakpoint();+// const [size, setSize] = useState(SIZES[breakpoint]);+// const [totalColumns, setTotalColumns] = useState(COLUMNS[breakpoint]);+// const [totalRows, setTotalRows] = useState(ROWS[breakpoint]);++// const headshots = useMemo(() => {+// const remainder = assets.headshots.length % totalColumns;+// return remainder === 0+// ? assets.headshots+// : assets.headshots.slice(0, assets.headshots.length - remainder);+// }, [totalColumns]);++// useEffect(() => {+// const handleResize = () => {+// setTotalColumns(COLUMNS[breakpoint]);+// setTotalRows(ROWS[breakpoint]);+// setSize(SIZES[breakpoint]);+// };++// window.addEventListener("resize", handleResize);+// handleResize(); // Call the function on page load++// return () => {+// window.removeEventListener("resize", handleResize);+// };+// }, [breakpoint]);++// return (+// <section id="hero">+// <div className="relative h-full overflow-hidden py-14">+// <div className="container flex flex-col ">+// <div+// style={+// {+// "--size": `${size}px`,+// "--columns": `${totalColumns}`,+// "--rows": `${totalRows}`,+// } as React.CSSProperties+// }+// className={cn(+// "grid place-items-center justify-center",+// {+// [`-mt-48 grid-cols-[repeat(var(--columns),var(--size))] grid-rows-[repeat(var(--rows),var(--size))] gap-2`]:+// totalColumns === COLUMNS.xs,+// },+// {+// [`md:-mt-20 md:grid-cols-[repeat(var(--columns),var(--size))] md:grid-rows-[repeat(var(--rows),var(--size))] md:gap-4`]:+// totalColumns === COLUMNS.sm ||+// totalColumns === COLUMNS.md ||+// totalColumns === COLUMNS.lg,+// },+// )}+// >+// {headshots.map((logo, idx) => {+// const column = idx % totalColumns;+// const row = Math.floor(idx / totalColumns);+// const totalRows = Math.ceil(headshots.length / totalColumns);+// const bottomMiddleColumn = Math.floor(totalColumns / 2);+// const bottomMiddleRow = totalRows - 1;+// const offset = -Math.abs(bottomMiddleColumn - column) * OFFSET_BY;++// // Calculate delay based on distance from the bottom middle+// const distanceFromBottomMiddle = Math.sqrt(+// Math.pow(bottomMiddleColumn - column, 2) ++// Math.pow(bottomMiddleRow - row, 2),+// );++// // Calculate maximum possible distance+// const maxDistance = Math.sqrt(+// Math.pow(totalColumns - 1, 2) + Math.pow(totalRows - 1, 2),+// );++// // Invert the delay+// const delay = (maxDistance - distanceFromBottomMiddle) * 0.15;++// return (+// <motion.img+// key={idx}+// initial={{ opacity: 0, y: -20 }}+// animate={{ opacity: 1, y: 0 }}+// transition={{+// opacity: {+// delay,+// ease: [0.16, 1, 0.3, 1],+// duration: 1.7,+// },+// y: {+// delay,+// duration: 6.5,+// ease: [0.16, 1, 0.3, 1],+// },+// }}+// width={size}+// height={size}+// src={`/assets/headshots/${logo}`}+// style={+// {+// "--offset": `${offset}px`,+// } as React.CSSProperties+// }+// className={`mt-[var(--offset)] rounded-2xl shadow-2xl`}+// alt={`logo-${logo}`}+// />+// );+// })}+// </div>++// <div className="mt-20 grid grid-cols-1">+// <div className="flex flex-col items-center gap-6 pb-8 text-center">+// <FadeIn delay={0.1}>+// <h1 className="text-5xl font-bold tracking-tighter sm:text-6xl md:text-7xl lg:text-7xl">+// Professional AI Headshots+// </h1>+// </FadeIn>+// <FadeIn delay={0.1}>+// <p className="text-sm leading-normal text-muted-foreground sm:text-xl">+// Generate AI headshots in minutes.+// </p>+// </FadeIn>+// <FadeIn delay={0.2} className="flex flex-col gap-4 lg:flex-row">+// <Link+// href="/login"+// className={cn(+// buttonVariants({+// size: "lg",+// }),+// "gap-2 whitespace-pre md:flex",+// "group relative w-full gap-1 overflow-hidden text-base font-semibold tracking-tighter",+// "transform-gpu ring-offset-current transition-all duration-300 ease-out hover:ring-2 hover:ring-primary hover:ring-offset-2",+// )}+// >+// Get Started+// <ChevronRight className="size-4 translate-x-0 transition-all duration-300 ease-out group-hover:translate-x-1" />+// </Link>+// </FadeIn>+// {/* <FadeIn delay={0.3}>+// <JoinUsers />+// </FadeIn> */}+// </div>+// </div>++// <FadeIn delay={0.4} className="flex">+// <video+// autoPlay+// loop+// muted+// src="demo.mp4"+// className="mt-32 w-full rounded-lg border shadow-2xl"+// />+// </FadeIn>+// </div>+// {/* <CarouselVertical className="absolute right-20 top-0 hidden 2xl:block" />+// <CarouselVertical className="absolute left-20 top-0 hidden 2xl:block" /> */}+// {/* <CarouselHorizontal className="z-10 my-14" />+// <Confetti className="absolute inset-x-0 bottom-0 -z-10 mx-auto size-[800px]" /> */}+// </div>+// </section>+// );+// }diff --git a/registry/blocks/example/pricing-1.tsx b/registry/blocks/example/pricing-1.tsxnew file mode 100644index 00000000..bc9edbe0--- /dev/null+++ b/registry/blocks/example/pricing-1.tsx@@ -0,0 +1,13 @@+export default function Pricing() {+ return (+ <section id="pricing">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-600">+ Pricing+ </h3>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/pricing-2.tsx b/registry/blocks/example/pricing-2.tsxnew file mode 100644index 00000000..bc9edbe0--- /dev/null+++ b/registry/blocks/example/pricing-2.tsx@@ -0,0 +1,13 @@+export default function Pricing() {+ return (+ <section id="pricing">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-600">+ Pricing+ </h3>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-companies-1.tsx b/registry/blocks/example/social-proof-companies-1.tsxnew file mode 100644index 00000000..4eaf6754--- /dev/null+++ b/registry/blocks/example/social-proof-companies-1.tsx@@ -0,0 +1,36 @@+const companies = [+ "Google",+ "Microsoft",+ "Amazon",+ "Netflix",+ "YouTube",+ "Instagram",+ "Uber",+ "Spotify",+];++export default function Companies() {+ return (+ <section id="companies">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ TRUSTED BY LEADING TEAMS+ </h3>+ <div className="relative mt-6">+ <div className="grid grid-cols-2 place-items-center gap-2 md:grid-cols-4 xl:grid-cols-8 xl:gap-4">+ {companies.map((logo, idx) => (+ <img+ key={idx}+ src={`https://cdn.magicui.design/companies/${logo}.svg`}+ className="h-10 w-40 px-2 dark:brightness-0 dark:invert"+ alt={logo}+ />+ ))}+ </div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-companies-2.tsx b/registry/blocks/example/social-proof-companies-2.tsxnew file mode 100644index 00000000..3f7b6bad--- /dev/null+++ b/registry/blocks/example/social-proof-companies-2.tsx@@ -0,0 +1,38 @@+const companies = [+ "Google",+ "Microsoft",+ "Amazon",+ "Netflix",+ "YouTube",+ "Instagram",+ "Uber",+ "Spotify",+];++export default function Companies() {+ return (+ <section id="companies">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ TRUSTED BY LEADING TEAMS+ </h3>+ <div className="relative mt-6">+ <div className="grid grid-cols-2 place-items-center gap-2 md:grid-cols-4 xl:grid-cols-8 xl:gap-4">+ {companies.map((logo, idx) => (+ <img+ key={idx}+ src={`https://cdn.magicui.design/companies/${logo}.svg`}+ className="h-10 w-40 px-2 dark:brightness-0 dark:invert"+ alt={logo}+ />+ ))}+ </div>+ <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-white dark:from-black"></div>+ <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-white dark:from-black"></div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-companies-3.tsx b/registry/blocks/example/social-proof-companies-3.tsxnew file mode 100644index 00000000..d12782ae--- /dev/null+++ b/registry/blocks/example/social-proof-companies-3.tsx@@ -0,0 +1,40 @@+import Marquee from "@/registry/components/magicui/marquee";++const companies = [+ "Google",+ "Microsoft",+ "Amazon",+ "Netflix",+ "YouTube",+ "Instagram",+ "Uber",+ "Spotify",+];++export default function Companies() {+ return (+ <section id="companies">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ TRUSTED BY LEADING TEAMS+ </h3>+ <div className="relative mt-6">+ <Marquee className="max-w-full [--duration:40s]">+ {companies.map((logo, idx) => (+ <img+ key={idx}+ src={`https://cdn.magicui.design/companies/${logo}.svg`}+ className="h-10 w-28 dark:brightness-0 dark:invert"+ alt={logo}+ />+ ))}+ </Marquee>+ <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-background"></div>+ <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-background"></div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-companies-4.tsx b/registry/blocks/example/social-proof-companies-4.tsxnew file mode 100644index 00000000..13c10709--- /dev/null+++ b/registry/blocks/example/social-proof-companies-4.tsx@@ -0,0 +1,116 @@+const companies = [+ "Google",+ "Microsoft",+ "Amazon",+ "Netflix",+ "YouTube",+ "Instagram",+ "Uber",+ "Spotify",+ "Airbnb",+ "Adobe",+ "PayPal",+ "Slack",+ "Whatsapp",+ "GitHub",+ "Dropbox",+ "Tesla",+ "Zoom",+ "Tinder",+ "Shopify",+ "Stripe",+ "Atlassian",+ "Trello",+ "Canva",+ "Figma",+ "Docker",+ "Discord",+ "Evernote",+ "Mailchimp",+ "Hubspot",+ "Asana",+ "Monday.com",+ "Notion",+ "Xero",+ "Zapier",+ "ActiveCampaign",+ "Afterpay",+ "Airtable",+ "Airtasker",+ "Airwallex",+ "Amplitude",+ "Attentive",+ "Automattic",+ "Basecamp",+ "Booking.com",+ "Braze",+ "BrowserStack",+ "Calendly",+ "Carta",+ "Classpass",+ "Clearbit",+ "Codecademy",+ "Coinbase",+ "Contentful",+ "Culture Amp",+ "Customer.io",+ "Databricks",+ "Descript",+ "Drips",+ "Dribbble",+ "Elastic",+ "Freshworks",+ "Ghost",+ "Gong",+ "Grammarly",+ "Gumroad",+ "Gusto",+ "HashiCorp",+ "Hellosign",+ "Himalayas",+ "Hopin",+ "Hotjar",+ "InVision",+ "Intercom",+ "Lattice",+ "LaunchDarkly",+ "Linear",+ "Loom",+ "Maze",+ "Medium",+ "Miro",+ "Monzo",+ "Opendoor",+ "Outreach",+ "Pendo",+ "Pipedrive",+ "Plaid",+ "Postman",+];++export default function Companies() {+ return (+ <section id="companies">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ HELPED PEOPLE FROM COMPANIES LIKE+ </h3>+ <div className="relative mt-6">+ <div className="grid grid-cols-2 place-items-center gap-2 md:grid-cols-4 xl:grid-cols-8 xl:gap-4">+ {companies.map((logo, idx) => (+ <img+ key={idx}+ src={`https://cdn.magicui.design/companies/${logo}.svg`}+ className="h-10 w-40 px-2 dark:brightness-0 dark:invert"+ alt={logo}+ />+ ))}+ </div>+ <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/2 w-full bg-gradient-to-t from-background from-20%"></div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-press-1.tsx b/registry/blocks/example/social-proof-press-1.tsxnew file mode 100644index 00000000..1203279e--- /dev/null+++ b/registry/blocks/example/social-proof-press-1.tsx@@ -0,0 +1,36 @@+const press = [+ "TheNewYorkTimes",+ "TheWashingtonPost",+ "Forbes",+ "Bloomberg",+ "BusinessInsider",+ "TechCrunch",+ "TheGuardian",+ "Wired",+];++export default function Press() {+ return (+ <section id="press">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ FEATURED IN+ </h3>+ <div className="relative mt-6">+ <div className="grid grid-cols-2 place-items-center gap-2 md:gap-4 lg:grid-cols-4 xl:gap-x-6 2xl:grid-cols-8">+ {press.map((logo, idx) => (+ <img+ key={idx}+ src={`https://cdn.magicui.design/press/${logo}.svg`}+ className="h-10 w-40 px-2 dark:brightness-0 dark:invert"+ alt={logo}+ />+ ))}+ </div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-press-2.tsx b/registry/blocks/example/social-proof-press-2.tsxnew file mode 100644index 00000000..a15b994c--- /dev/null+++ b/registry/blocks/example/social-proof-press-2.tsx@@ -0,0 +1,38 @@+const press = [+ "TheNewYorkTimes",+ "TheWashingtonPost",+ "Forbes",+ "Bloomberg",+ "BusinessInsider",+ "TechCrunch",+ "TheGuardian",+ "Wired",+];++export default function Press() {+ return (+ <section id="press">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ FEATURED IN+ </h3>+ <div className="relative mt-6">+ <div className="grid grid-cols-2 place-items-center gap-2 md:gap-4 lg:grid-cols-4 xl:gap-x-6 2xl:grid-cols-8">+ {press.map((logo, idx) => (+ <img+ key={idx}+ src={`https://cdn.magicui.design/press/${logo}.svg`}+ className="h-10 w-40 px-2 dark:brightness-0 dark:invert"+ alt={`logo-${logo}`}+ />+ ))}+ </div>+ <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-white dark:from-black"></div>+ <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-white dark:from-black"></div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-press-3.tsx b/registry/blocks/example/social-proof-press-3.tsxnew file mode 100644index 00000000..6e7e557e--- /dev/null+++ b/registry/blocks/example/social-proof-press-3.tsx@@ -0,0 +1,40 @@+import Marquee from "@/registry/components/magicui/marquee";++const press = [+ "TheNewYorkTimes",+ "TheWashingtonPost",+ "Forbes",+ "Bloomberg",+ "BusinessInsider",+ "TechCrunch",+ "TheGuardian",+ "Wired",+];++export default function Press() {+ return (+ <section id="press">+ <div className="py-14">+ <div className="container mx-auto px-4 md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-500">+ FEATURED IN+ </h3>+ <div className="relative mt-6">+ <Marquee className="max-w-full [--duration:40s]">+ {press.map((logo, idx) => (+ <img+ key={idx}+ src={`https://cdn.magicui.design/press/${logo}.svg`}+ className="h-10 w-40 px-2 dark:brightness-0 dark:invert"+ alt={`logo-${logo}`}+ />+ ))}+ </Marquee>+ <div className="pointer-events-none absolute inset-y-0 left-0 h-full w-1/3 bg-gradient-to-r from-background"></div>+ <div className="pointer-events-none absolute inset-y-0 right-0 h-full w-1/3 bg-gradient-to-l from-background"></div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/example/social-proof-testimonials-1.tsx b/registry/blocks/example/social-proof-testimonials-1.tsxnew file mode 100644index 00000000..16c89b11--- /dev/null+++ b/registry/blocks/example/social-proof-testimonials-1.tsx@@ -0,0 +1,152 @@+import { cn } from "@/lib/utils";+import { StarIcon } from "lucide-react";++export const Highlight = ({+ children,+ className,+}: {+ children: React.ReactNode;+ className?: string;+}) => {+ return (+ <span+ className={cn(+ "bg-cyan-600/20 px-1 py-0.5 font-bold text-cyan-600 dark:bg-cyan-600/20 dark:text-cyan-600",+ className,+ )}+ >+ {children}+ </span>+ );+};++export interface TestimonialCardProps {+ name: string;+ role: string;+ description: React.ReactNode;+ className?: string;+ [key: string]: any;+}++export const TestimonialCard = ({+ description,+ name,++ role,+ className,+ ...props // Capture the rest of the props+}: TestimonialCardProps) => (+ <div+ className={cn(+ "flex h-96 w-72 shrink-0 cursor-pointer snap-center snap-always flex-col justify-between rounded-xl border border-neutral-200 bg-white p-4 shadow-xl shadow-black/[0.1] md:h-96 md:min-w-96",+ className,+ )}+ {...props} // Spread the rest of the props here+ >+ <div className="select-none font-normal text-neutral-700">+ {description}+ </div>++ <div className="select-none">+ <div className="flex flex-row py-1">+ <StarIcon className="size-4 text-yellow-300" />+ <StarIcon className="size-4 text-yellow-300" />+ <StarIcon className="size-4 text-yellow-300" />+ <StarIcon className="size-4 text-yellow-300" />+ <StarIcon className="size-4 text-yellow-300" />+ </div>+ <p className="font-medium text-neutral-500">{name}</p>+ <p className="font-normal text-neutral-400">{role}</p>+ </div>+ </div>+);++const CARDS = [+ {+ name: "John Doe",+ role: "Product Manager at Acme Corp",+ description: (+ <p>+ Very impressed with #SectaLabs headshots. After trying many services I+ decided to try them.+ <Highlight>They provided the best results by far!</Highlight> If you're+ looking for headshots, give them a try.+ </p>+ ),+ },+ {+ name: "John Doe",+ role: "Product Manager at Acme Corp",+ description: (+ <p>+ Very impressed with #SectaLabs headshots. After trying many services I+ decided to try them.+ <Highlight>They provided the best results by far!</Highlight> If you're+ looking for headshots, give them a try.+ </p>+ ),+ },+ {+ name: "John Doe",+ role: "Product Manager at Acme Corp",+ description: (+ <p>+ Very impressed with #SectaLabs headshots. After trying many services I+ decided to try them.+ <Highlight>They provided the best results by far!</Highlight> If you're+ looking for headshots, give them a try.+ </p>+ ),+ },+ {+ name: "John Doe",+ role: "Product Manager at Acme Corp",+ description: (+ <p>+ Very impressed with #SectaLabs headshots. After trying many services I+ decided to try them.+ <Highlight>They provided the best results by far!</Highlight> If you're+ looking for headshots, give them a try.+ </p>+ ),+ },+ {+ name: "John Doe",+ role: "Product Manager at Acme Corp",+ description: (+ <p>+ Very impressed with #SectaLabs headshots. After trying many services I+ decided to try them.+ <Highlight>They provided the best results by far!</Highlight> If you're+ looking for headshots, give them a try.+ </p>+ ),+ },+];++export default function Testimonial2() {+ return (+ <section id="testimonial">+ <div className="py-14">+ <div className="mx-auto md:container md:px-8">+ <h3 className="text-center text-sm font-semibold text-gray-600">+ TESTIMONIALS+ </h3>+ <div className="relative mx-auto mt-6 max-w-[100vw] overflow-hidden">+ <div className="no-scrollbar flex w-full snap-x snap-mandatory flex-row gap-6 overflow-x-auto py-14">+ {/* Empty placeholder */}+ <div className="size-72 shrink-0 md:h-60 md:min-w-96"></div>+ {CARDS.map((card, idx) => (+ <TestimonialCard {...card} key={idx} />+ ))}+ {/* Empty placeholder */}+ <div className="size-72 shrink-0 md:h-60 md:min-w-96"></div>+ </div>+ <div className="pointer-events-none absolute inset-y-0 left-0 hidden h-full w-1/5 bg-gradient-to-r from-background md:block"></div>+ <div className="pointer-events-none absolute inset-y-0 right-0 hidden h-full w-1/5 bg-gradient-to-l from-background md:block"></div>+ </div>+ </div>+ </div>+ </section>+ );+}diff --git a/registry/blocks/magicui/hero.tsx b/registry/blocks/magicui/hero.tsxdeleted file mode 100644index fee433ad..00000000--- a/registry/blocks/magicui/hero.tsx+++ /dev/null@@ -1,129 +0,0 @@-"use client";--import { cn } from "@/lib/utils";-import { BorderBeam } from "@/registry/components/magicui/border-beam";-import ShimmerButton from "@/registry/components/magicui/shimmer-button";-import TextShimmer from "@/registry/components/magicui/text-shimmer";-import { ArrowRightIcon } from "@radix-ui/react-icons";-import { useInView } from "framer-motion";-import { useRef } from "react";--interface HeroElementProps {- children: React.ReactNode;- className?: string;-}--export const HeroPill = ({ children, className }: HeroElementProps) => {- return (- <div- className={cn(- "backdrop-filter-[12px] inline-flex h-7 items-center justify-between rounded-full border border-white/5 bg-white/10 px-3 text-xs text-white transition-all ease-in hover:cursor-pointer hover:bg-white/20",- "group gap-1",- "animate-fade-in translate-y-[-1rem] opacity-0",- className,- )}- >- {children}- </div>- );-};--export const HeroTitle = ({ children, className }: HeroElementProps) => {- return (- <h1- className={cn(- "bg-gradient-to-br from-white from-30% to-white/40 bg-clip-text py-6 text-5xl font-medium leading-none tracking-tighter text-transparent sm:text-6xl md:text-7xl lg:text-8xl",- "animate-fade-in translate-y-[-1rem] opacity-0 [--animation-delay:200ms]",- className,- )}- >- {children}- </h1>- );-};--export const HeroSubtitle = ({ children, className }: HeroElementProps) => {- return (- <p- className={cn(- "mb-12 text-lg tracking-tight text-gray-400 md:text-xl",- "animate-fade-in translate-y-[-1rem] opacity-0 [--animation-delay:400ms]",- className,- )}- >- {children}- </p>- );-};--export const HeroImage = () => {- const ref = useRef(null);- const inView = useInView(ref, { once: true, margin: "-100px" });-- return (- <div- ref={ref}- className="animate-fade-up relative my-[8rem] opacity-0 [--animation-delay:400ms] [perspective:2000px] after:absolute after:inset-0 after:z-50 after:[background:linear-gradient(to_top,#09090b_30%,transparent)]"- >- <div- className={cn(- "bg-hero-gradient relative rounded-xl border border-white/10 bg-white bg-opacity-[0.01] ",- // inView ? "animate-image-rotate" : "[transform:rotateX(25deg)]",- "before:absolute before:bottom-1/2 before:left-0 before:top-0 before:h-full before:w-full before:opacity-0 before:[filter:blur(180px)]",- "before:[background-image:linear-gradient(to_bottom,var(--color-one),var(--color-one),transparent_40%)]",- inView && "before:animate-image-glow",- )}- >- <BorderBeam- duration={12}- delay={11}- colorFrom="var(--color-one)"- colorTo="var(--color-two)"- />- <BorderBeam- duration={12}- delay={8}- colorFrom="var(--color-one)"- colorTo="var(--color-two)"- />-- <img- src="/hero.webp"- alt="Hero Image"- className={cn("relative w-full rounded-[inherit] object-contain")}- />- </div>- </div>- );-};--export const HeroSection = () => {- return (- <section id="hero" className="mx-auto max-w-[80rem] px-6 md:px-8">- <HeroPill>- <TextShimmer className="inline-flex items-center justify-center">- <span>✨ Introducing Magic UI Template</span>{" "}- <ArrowRightIcon className="size-3 ml-1 transition-transform duration-300 ease-in-out group-hover:translate-x-0.5" />- </TextShimmer>- </HeroPill>- <HeroTitle>- Magic UI is the new way- <br className="hidden md:block" /> to build landing pages.- </HeroTitle>- <HeroSubtitle>- Beautifully designed, animated components and templates built with- <br className="hidden md:block" /> Tailwind CSS, React, and Framer- Motion.- </HeroSubtitle>- <ShimmerButton- className="animate-fade-in translate-y-[-1rem] gap-1 rounded-lg text-black opacity-0 ease-in-out [--animation-delay:600ms]"- background="hsl(var(--primary))"- shimmerColor="#000"- >- <span>Get Started for free </span>- <ArrowRightIcon className="size-4 ml-1 transition-transform duration-300 ease-in-out group-hover:translate-x-1" />- </ShimmerButton>- <HeroImage />- </section>- );-};diff --git a/registry/components/example/marquee-demo-vertical.tsx b/registry/components/example/marquee-demo-vertical.tsxindex 71263482..0e6373cb 100644--- a/registry/components/example/marquee-demo-vertical.tsx+++ b/registry/components/example/marquee-demo-vertical.tsx@@ -20,19 +20,8 @@ const reviews = [body: "I'm at a loss for words. This is amazing. I love it.",img: "https://avatar.vercel.sh/john",},- // {- // name: "Jane",- // username: "@jane",- // body: "I'm at a loss for words. This is amazing. I love it.",- // img: "https://avatar.vercel.sh/jane",- // },- // {- // name: "Jenny",- // username: "@jenny",- // body: "I'm at a loss for words. This is amazing. I love it.",- // img: "https://avatar.vercel.sh/jenny",- // },];+const firstRow = reviews.slice(0, reviews.length / 2);const secondRow = reviews.slice(reviews.length / 2);@@ -84,8 +73,8 @@ const MarqueeDemoVertical = () => {<ReviewCard key={review.username} {...review} />))}</Marquee>- {/* <div className="pointer-events-none absolute inset-x-0 top-0 h-1/3 bg-gradient-to-b from-white dark:from-background"></div>- <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-white dark:from-background"></div> */}+ <div className="pointer-events-none absolute inset-x-0 top-0 h-1/3 bg-gradient-to-b from-white dark:from-background"></div>+ <div className="pointer-events-none absolute inset-x-0 bottom-0 h-1/3 bg-gradient-to-t from-white dark:from-background"></div></div>);};diff --git a/registry/components/magicui/bento-grid.tsx b/registry/components/magicui/bento-grid.tsxindex 8cf67c22..267c82ba 100644--- a/registry/components/magicui/bento-grid.tsx+++ b/registry/components/magicui/bento-grid.tsx@@ -46,7 +46,7 @@ const BentoCard = ({// 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]",+ "transform-gpu dark:bg-transparent dark:[border:1px_solid_rgba(255,255,255,.1)] dark:[box-shadow:0_-20px_80px_-20px_#ffffff1f_inset]",className,)}>diff --git a/registry/components/magicui/magic-card.tsx b/registry/components/magicui/magic-card.tsxindex e9f920b6..2312bac7 100644--- a/registry/components/magicui/magic-card.tsx+++ b/registry/components/magicui/magic-card.tsx@@ -214,7 +214,7 @@ const MagicCard: React.FC<MagicCardProps> = ({{/* Background */}<divclassName={- "absolute inset-[1px] -z-20 rounded-2xl bg-white dark:bg-background/95"+ "absolute inset-[1px] -z-20 rounded-2xl bg-white dark:bg-black/95"}/></div>diff --git a/registry/index.tsx b/registry/index.tsxindex 9ad92a9e..cb64e049 100644--- a/registry/index.tsx+++ b/registry/index.tsx@@ -422,7 +422,161 @@ const example: Registry = {},};+const blocks: Registry = {+ "header-1": {+ name: "header-1",+ type: "blocks:example",+ files: ["registry/blocks/example/header-1.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/header-1")),+ },+ "header-2": {+ name: "header-2",+ type: "blocks:example",+ files: ["registry/blocks/example/header-2.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/header-2")),+ },+ "footer-1": {+ name: "footer-1",+ type: "blocks:example",+ files: ["registry/blocks/example/footer-1.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/footer-1")),+ },+ "footer-2": {+ name: "footer-2",+ type: "blocks:example",+ files: ["registry/blocks/example/footer-2.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/footer-2")),+ },+ "hero-1": {+ name: "hero-1",+ type: "blocks:example",+ files: ["registry/blocks/example/hero-1.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/hero-1")),+ },+ "social-proof-press-1": {+ name: "social-proof-press-1",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-press-1.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-press-1"),+ ),+ },+ "social-proof-press-2": {+ name: "social-proof-press-2",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-press-2.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-press-2"),+ ),+ },+ "social-proof-press-3": {+ name: "social-proof-press-3",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-press-3.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-press-3"),+ ),+ },+ "social-proof-companies-1": {+ name: "social-proof-companies-1",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-companies-1.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-companies-1"),+ ),+ },+ "social-proof-companies-2": {+ name: "social-proof-companies-2",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-companies-2.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-companies-2"),+ ),+ },+ "social-proof-companies-3": {+ name: "social-proof-companies-3",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-companies-3.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-companies-3"),+ ),+ },+ "social-proof-companies-4": {+ name: "social-proof-companies-4",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-companies-4.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-companies-4"),+ ),+ },+ "social-proof-testimonials-1": {+ name: "social-proof-testimonials-1",+ type: "blocks:example",+ files: ["registry/blocks/example/social-proof-testimonials-1.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/social-proof-testimonials-1"),+ ),+ },+ "features-1": {+ name: "features-1",+ type: "blocks:example",+ files: ["registry/blocks/example/features-1.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/features-1")),+ },+ "call-to-action-1": {+ name: "call-to-action-1",+ type: "blocks:example",+ files: ["registry/blocks/example/call-to-action-1.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/call-to-action-1"),+ ),+ },+ "call-to-action-2": {+ name: "call-to-action-2",+ type: "blocks:example",+ files: ["registry/blocks/example/call-to-action-2.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/call-to-action-2"),+ ),+ },+ "call-to-action-3": {+ name: "call-to-action-3",+ type: "blocks:example",+ files: ["registry/blocks/example/call-to-action-3.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/call-to-action-3"),+ ),+ },+ "call-to-action-4": {+ name: "call-to-action-4",+ type: "blocks:example",+ files: ["registry/blocks/example/call-to-action-4.tsx"],+ component: React.lazy(+ () => import("@/registry/blocks/example/call-to-action-4"),+ ),+ },+ "pricing-1": {+ name: "pricing-1",+ type: "blocks:example",+ files: ["registry/blocks/example/pricing-1.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/pricing-1")),+ },+ "pricing-2": {+ name: "pricing-2",+ type: "blocks:example",+ files: ["registry/blocks/example/pricing-2.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/pricing-2")),+ },+ "faq-1": {+ name: "faq-1",+ type: "blocks:example",+ files: ["registry/blocks/example/faq-1.tsx"],+ component: React.lazy(() => import("@/registry/blocks/example/faq-1")),+ },+};+export const registry: Registry = {...ui,...example,+ ...blocks,};diff --git a/registry/schema.ts b/registry/schema.tsindex 39abe976..6032421a 100644--- a/registry/schema.ts+++ b/registry/schema.ts@@ -11,6 +11,7 @@ export const registrySchema = z.record("components:ui","components:component","components:example",+ "blocks:example",]),component: z.function().args(z.any()).returns(z.any()).optional(),}),diff --git a/styles/globals.css b/styles/globals.cssindex c30086f7..8bd63e3b 100644--- a/styles/globals.css+++ b/styles/globals.css@@ -37,11 +37,11 @@}.dark {- --background: 240 10% 3.9%;+ --background: 0 0 0%;--foreground: 0 0% 98%;- --card: 240 10% 3.9%;+ --card: 0 0 0%;--card-foreground: 0 0% 98%;- --popover: 240 10% 3.9%;+ --popover: 0 0 0%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 240 5.9% 10%;diff --git a/styles/mdx.css b/styles/mdx.cssindex e0607626..52b25e96 100644--- a/styles/mdx.css+++ b/styles/mdx.css@@ -84,3 +84,7 @@[data-rehype-pretty-code-title] + pre {@apply mt-2;}++article > .steps:first-child > h3:first-child {+ @apply mt-0;+}