UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
feat: add devtool template
Dillion Verma911f52072221
diff --git a/components/sidebar-nav.tsx b/components/sidebar-nav.tsxindex 166ab1e0..7d90e578 100644--- a/components/sidebar-nav.tsx+++ b/components/sidebar-nav.tsx@@ -1,10 +1,10 @@"use client";-import Link from "next/link";-import { usePathname } from "next/navigation";import { SidebarNavItem } from "@/types";import { ExternalLinkIcon } from "@radix-ui/react-icons";import { motion } from "framer-motion";+import Link from "next/link";+import { usePathname } from "next/navigation";import posthog from "posthog-js";import { cn } from "@/lib/utils";@@ -87,7 +87,7 @@ export function DocsSidebarNavItems({)}{item.paid && (<span className="relative z-10 ml-2 rounded-md bg-[#4ade80] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">- Paid+ Pro</span>)}{item.external && (@@ -110,7 +110,7 @@ export function DocsSidebarNavItems({)}{item.paid && (<span className="ml-2 rounded-md bg-[#4ade80] px-1.5 py-0.5 text-xs leading-none text-[#000000] no-underline group-hover:no-underline">- Paid+ Pro</span>)}</span>diff --git a/config/docs.ts b/config/docs.tsindex 36a5f612..a7ea7bb5 100644--- a/config/docs.ts+++ b/config/docs.ts@@ -82,11 +82,19 @@ export const docsConfig: DocsConfig = {{title: "Templates",items: [+ {+ title: "Dev Tool",+ href: `/docs/templates/devtool`,+ items: [],+ label: "New",+ paid: true,+ event: "template_devtool_clicked",+ },{title: "Mobile",href: `/docs/templates/mobile`,items: [],- label: "New",+ label: "",paid: true,event: "template_mobile_clicked",},diff --git a/content/docs/templates/devtool.mdx b/content/docs/templates/devtool.mdxnew file mode 100644index 00000000..9ebfa3f5--- /dev/null+++ b/content/docs/templates/devtool.mdx@@ -0,0 +1,75 @@+---+title: Dev Tool+date: 2024-11-18+description: The ultimate landing page template for your developer tool.+author: dillionverma+published: true+---++<div className="flex max-w-[800px] flex-col gap-4">+ <video+ autoPlay+ loop+ muted+ src="/devtool-demo.mp4"+ className="w-full rounded-xl border shadow-2xl"+ />+ <div className="flex w-full flex-col gap-2 sm:flex-row">+ <RepoDownload repo={"devtool-template"} owner={"magicuidesign"} />+ <TemplatePreview href="https://devtool-magicui.vercel.app/">+ Live Preview+ </TemplatePreview>+ </div>+</div>+### What is this?++This is a landing page template for a developer tool. The template is built with Next.js, TailwindCSS, and Framer Motion, optimized for showcasing developer tools and services.++### Who is this for?++You are launching a new developer tool or service and need a professional, eye-catching landing page to showcase your product's features and attract developers.++### Why should I use this?++- ✅ Save 500+ hours of work+- ✅ No need to learn advanced animations+- ✅ Easy to configure and change+- ✅ 1-click download and setup+- ✅ 5 minutes to update the text and images+- ✅ Deploy live to Vercel++### Features++- 1x Landing Page with 13 sections+ - Header Section+ - Hero Section+ - Logos Section+ - Examples Section+ - Use Cases Section+ - Features Section+ - Statistics Section+ - Testimonials Section+ - Pricing Section+ - Community Section+ - Blog Section+ - CTA Section+ - Footer Section+- 1x Blog using MDX+- Dark mode support+- 100% Mobile responsive+- Full SEO coverage+- Dynamic OpenGraph images for every page+- Tons of animations / micro-interactions+- Clean and maintainable code+- Global constants and variables for color, text, and more++### Dependencies++- Next.js 15+- React 18.3+- TypeScript 5+- TailwindCSS 3.4+- Framer Motion 11.3+- next-themes 0.3.0+- radix-ui+- shadcn/uidiff --git a/public/devtool-demo.mp4 b/public/devtool-demo.mp4new file mode 100644index 00000000..7aa8a300Binary files /dev/null and b/public/devtool-demo.mp4 differdiff --git a/public/mobile-demo.mp4 b/public/mobile-demo.mp4index 43029451..4f4413f1 100644Binary files a/public/mobile-demo.mp4 and b/public/mobile-demo.mp4 differdiff --git a/registry/default/magicui/ripple-button.tsx b/registry/default/magicui/ripple-button.tsxindex ff132723..f25e56f8 100644--- a/registry/default/magicui/ripple-button.tsx+++ b/registry/default/magicui/ripple-button.tsx@@ -19,7 +19,7 @@ const RippleButton = React.forwardRef<HTMLButtonElement, RippleButtonProps>(onClick,...props},- ref+ ref,) => {const [buttonRipples, setButtonRipples] = useState<Array<{ x: number; y: number; size: number; key: number }>@@ -46,7 +46,7 @@ const RippleButton = React.forwardRef<HTMLButtonElement, RippleButtonProps>(const lastRipple = buttonRipples[buttonRipples.length - 1];const timeout = setTimeout(() => {setButtonRipples((prevRipples) =>- prevRipples.filter((ripple) => ripple.key !== lastRipple.key)+ prevRipples.filter((ripple) => ripple.key !== lastRipple.key),);}, parseInt(duration));return () => clearTimeout(timeout);@@ -57,7 +57,7 @@ const RippleButton = React.forwardRef<HTMLButtonElement, RippleButtonProps>(<buttonclassName={cn("relative flex cursor-pointer items-center justify-center overflow-hidden rounded-lg border-2 bg-background px-4 py-2 text-center text-primary",- className+ className,)}onClick={handleClick}ref={ref}@@ -82,7 +82,7 @@ const RippleButton = React.forwardRef<HTMLButtonElement, RippleButtonProps>(</span></button>);- }+ },);RippleButton.displayName = "RippleButton";