UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
feat: add new changelog template
Dillion Verma6ccc9f1903ee
diff --git a/components/mdx-components.tsx b/components/mdx-components.tsxindex 8b782b27..b956905b 100644--- a/components/mdx-components.tsx+++ b/components/mdx-components.tsx@@ -1,6 +1,5 @@import { Callout } from "@/components/callout";import { CodeBlockCommand } from "@/components/code-block-command";-import RepoDownload from "@/components/repo-download";import TechStack from "@/components/tech-stack";import TemplatePreview from "@/components/template-preview";import {@@ -16,9 +15,10 @@ import { TweetCard } from "@/registry/magicui/tweet-card";import { useMDXComponent } from "@content-collections/mdx/react";import Image from "next/image";import Link from "next/link";-import { ComponentPreview } from "./component-preview";-import { ComponentSource } from "./component-source";-import { CopyButton } from "./copy-button";+import { ComponentPreview } from "@/components/component-preview";+import { ComponentSource } from "@/components/component-source";+import { CopyButton } from "@/components/copy-button";+import { TemplateOpen } from "@/components/template-open";const CustomLink = (props: any) => {const href = props.href;@@ -45,7 +45,7 @@ const components = {AccordionTrigger,Callout,TechStack,- RepoDownload,+ TemplateOpen,TemplatePreview,Image,Tweet: ({ id }: { id: string }) => <TweetCard id={id} className="mx-auto" />,diff --git a/components/repo-download.tsx b/components/repo-download.tsxdeleted file mode 100644index b12c3e09..00000000--- a/components/repo-download.tsx+++ /dev/null@@ -1,62 +0,0 @@-"use client";--import { ArrowRightIcon, Download } from "lucide-react";-import Link from "next/link";-import { useState } from "react";-import { toast } from "sonner";--import { Icons } from "@/components/icons";-import { Button, buttonVariants } from "@/components/ui/button";-import { cn } from "@/lib/utils";--interface RepoDownloadProps {- url: string;- free?: boolean;-}--export default function RepoDownload({ url, free = false }: RepoDownloadProps) {- const [loading, setLoading] = useState(false);-- const handleDownload = async () => {- setLoading(true);-- try {- window.location.href = url;- } catch (error) {- toast.error("Error occured while downloading. Please try again.");- console.error("error", error);- } finally {- setLoading(false);- }- };-- if (free) {- return (- <Button- onClick={handleDownload}- disabled={loading}- className="not-prose group relative w-full gap-2"- >- {loading ? "Downloading" : "Free Download"}- {!loading && <Download className="size-4" />}- {loading && <Icons.spinner className="size-4 animate-spin" />}- </Button>- );- }-- return (- <Link- href="https://pro.magicui.design/#pricing"- target="_blank"- className={cn(- buttonVariants({- variant: "default",- }),- "not-prose group relative w-full gap-1",- )}- >- Buy Now- <ArrowRightIcon className="size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />- </Link>- );-}diff --git a/components/sections/hero.tsx b/components/sections/hero.tsxindex 3ed771dc..7b27ffac 100644--- a/components/sections/hero.tsx+++ b/components/sections/hero.tsx@@ -12,7 +12,7 @@ export default async function Hero() {const post = allDocs.filter((post) =>- post.date && post.date <= new Date().toISOString() && post.published+ 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@@ -34,7 +34,7 @@ export default async function Hero() {variant: "outline",size: "sm",}),- "rounded-full"+ "rounded-full",)}>π <Separator className="mx-2 h-4" orientation="vertical" />@@ -47,7 +47,7 @@ export default async function Hero() {"text-black dark:text-white","relative mx-0 max-w-[43.5rem] pt-5 md:mx-auto md:px-4 md:py-2","text-balance text-left font-semibold tracking-tighter md:text-center",- "text-5xl sm:text-7xl md:text-7xl lg:text-7xl"+ "text-5xl sm:text-7xl md:text-7xl lg:text-7xl",)}>UI library for Design Engineers@@ -72,7 +72,7 @@ export default async function Hero() {variant: "rainbow",size: "lg",}),- "w-full gap-2"+ "w-full gap-2",)}>Browse Components@@ -85,7 +85,7 @@ export default async function Hero() {size: "lg",variant: "rainbow-outline",}),- "w-full gap-2"+ "w-full gap-2",)}>Browse Templatesdiff --git a/components/template-open.tsx b/components/template-open.tsxnew file mode 100644index 00000000..9f9cd708--- /dev/null+++ b/components/template-open.tsx@@ -0,0 +1,48 @@+"use client";++import { ArrowRightIcon } from "lucide-react";+import Link from "next/link";+import { buttonVariants } from "@/components/ui/button";+import { cn } from "@/lib/utils";+import { GitHubLogoIcon } from "@radix-ui/react-icons";++interface TemplateOpenProps {+ url: string;+ free?: boolean;+}++export function TemplateOpen({ url, free = false }: TemplateOpenProps) {+ if (free) {+ return (+ <Link+ href={url}+ target="_blank"+ className={cn(+ buttonVariants({+ variant: "default",+ }),+ "not-prose group relative w-full gap-2",+ )}+ >+ Download+ <GitHubLogoIcon className="size-4" />+ </Link>+ );+ }++ return (+ <Link+ href="https://pro.magicui.design/#pricing"+ target="_blank"+ className={cn(+ buttonVariants({+ variant: "default",+ }),+ "not-prose group relative w-full gap-1",+ )}+ >+ Buy Now+ <ArrowRightIcon className="size-4 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </Link>+ );+}diff --git a/config/docs.ts b/config/docs.tsindex 09d8cc39..bc16692c 100644--- a/config/docs.ts+++ b/config/docs.ts@@ -15,7 +15,7 @@ export const docsConfig: DocsConfig = {title: "Templates",href: "https://pro.magicui.design",event: "header_cta_clicked",- label: "New",+ label: "",},{title: "Showcase",@@ -76,13 +76,13 @@ export const docsConfig: DocsConfig = {title: "Tailwind v4",href: "/docs/tailwind-v4",items: [],- label: "New",+ label: "",},{title: "MCP",href: "/docs/mcp",items: [],- label: "New",+ label: "",},],},@@ -93,7 +93,7 @@ export const docsConfig: DocsConfig = {title: "AI Agent",href: `/docs/templates/agent`,items: [],- label: "New",+ label: "",paid: true,event: "template_agent_clicked",},@@ -137,6 +137,14 @@ export const docsConfig: DocsConfig = {label: "",event: "template_portfolio_clicked",},+ {+ title: "Changelog",+ href: `/docs/templates/changelog`,+ items: [],+ label: "New",+ paid: false,+ event: "template_changelog_clicked",+ },],},{@@ -250,7 +258,7 @@ export const docsConfig: DocsConfig = {title: "Smooth Cursor",href: `/docs/components/smooth-cursor`,items: [],- label: "New",+ label: "",},],},@@ -374,7 +382,7 @@ export const docsConfig: DocsConfig = {title: "Video Text",href: `/docs/components/video-text`,items: [],- label: "New",+ label: "",},{title: "Number Ticker",diff --git a/content/docs/templates/agent.mdx b/content/docs/templates/agent.mdxindex 9765d327..76207bb0 100644--- a/content/docs/templates/agent.mdx+++ b/content/docs/templates/agent.mdx@@ -15,12 +15,13 @@ published: trueclassName="w-full rounded-xl border"/><div className="flex w-full flex-col gap-2 sm:flex-row">- <RepoDownload repo={"agent-template"} owner={"magicuidesign"} />+ <TemplateOpen /><TemplatePreview href="https://agent-magicui.vercel.app/">Live Preview</TemplatePreview></div></div>+### What is this?This is a landing page template for an AI agent startup. The template is built with Next.js, TailwindCSS, and Motion, optimized for showcasing AI agent services.diff --git a/content/docs/templates/changelog.mdx b/content/docs/templates/changelog.mdxnew file mode 100644index 00000000..e37ee6c7--- /dev/null+++ b/content/docs/templates/changelog.mdx@@ -0,0 +1,45 @@+---+title: Changelog Template+date: 2025-07-16+description: A minimal changelog template built using Next.js.+author: dillionverma+published: true+---++<div className="flex max-w-[800px] flex-col gap-4">+ <video+ autoPlay+ loop+ muted+ src="/changelog-demo.mp4"+ className="w-full rounded-xl border"+ />+ <div className="flex w-full flex-col gap-2 sm:flex-row">+ <TemplateOpen+ url="https://github.com/magicuidesign/changelog-template"+ free+ />+ <TemplatePreview href="https://changelog-magicui.vercel.app/">+ Live Preview{" "}+ </TemplatePreview>+ </div>+</div>++A minimal changelog template to showcase your product updates, releases, and improvements in a beautiful timeline format. Built with Next.js, TailwindCSS, and Fumadocs for easy content management.++### Dependencies++- Next.js 15+- React 19+- TypeScript 5+- TailwindCSS 4+- Fumadocs UI+- next-themes+- radix-ui+- shadcn/ui++### Tech Stack++<TechStack+ technologies={["nextjs", "react", "typescript", "tailwindcss", "shadcn"]}+/>diff --git a/content/docs/templates/devtool.mdx b/content/docs/templates/devtool.mdxindex b5813d61..086dea90 100644--- a/content/docs/templates/devtool.mdx+++ b/content/docs/templates/devtool.mdx@@ -15,7 +15,7 @@ published: trueclassName="w-full rounded-xl border"/><div className="flex w-full flex-col gap-2 sm:flex-row">- <RepoDownload repo={"devtool-template"} owner={"magicuidesign"} />+ <TemplateOpen /><TemplatePreview href="https://devtool-magicui.vercel.app/">Live Preview</TemplatePreview>diff --git a/content/docs/templates/mobile.mdx b/content/docs/templates/mobile.mdxindex fe532483..e7991e24 100644--- a/content/docs/templates/mobile.mdx+++ b/content/docs/templates/mobile.mdx@@ -15,7 +15,7 @@ published: trueclassName="w-full rounded-xl border"/><div className="flex w-full flex-col gap-2 sm:flex-row">- <RepoDownload repo={"mobile-template"} owner={"magicuidesign"} />+ <TemplateOpen /><TemplatePreview href="https://mobile-magicui.vercel.app/">Live Preview</TemplatePreview>diff --git a/content/docs/templates/portfolio.mdx b/content/docs/templates/portfolio.mdxindex 94ddfbd1..29842e72 100644--- a/content/docs/templates/portfolio.mdx+++ b/content/docs/templates/portfolio.mdx@@ -1,7 +1,7 @@---title: Portfolio Templatedate: 2024-06-18-description: A minimal portfolio template to showcase your work and experience+description: A minimal portfolio template to showcase your work and experience.author: dillionvermapublished: true---@@ -15,28 +15,14 @@ published: trueclassName="w-full rounded-xl border"/><div className="flex w-full flex-col gap-2 sm:flex-row">- <RepoDownload- url="https://codeload.github.com/dillionverma/portfolio/legacy.zip/refs/heads/main"- free- />+ <TemplateOpen url="https://github.com/dillionverma/portfolio" free /><TemplatePreview href="https://portfolio-magicui.vercel.app/">Live Preview{" "}</TemplatePreview></div></div>-### What is this?--A complete template to market yourself and your portfolio to the world as a developer--### Why should I use this?--- β Save 100+ 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+A portfolio template used to showcase your skills, work experience, and projects as a developer.### Featuresdiff --git a/content/docs/templates/saas.mdx b/content/docs/templates/saas.mdxindex 50bd18ee..bd0f8f86 100644--- a/content/docs/templates/saas.mdx+++ b/content/docs/templates/saas.mdx@@ -15,7 +15,7 @@ published: trueclassName="w-full rounded-xl border"/><div className="flex w-full flex-col gap-2 sm:flex-row">- <RepoDownload repo={"saas-template"} owner={"magicuidesign"} />+ <TemplateOpen /><TemplatePreview href="https://saas-magicui.vercel.app/">Live Preview</TemplatePreview>diff --git a/content/docs/templates/startup.mdx b/content/docs/templates/startup.mdxindex 8f12e902..2e937d05 100644--- a/content/docs/templates/startup.mdx+++ b/content/docs/templates/startup.mdx@@ -15,7 +15,7 @@ published: trueclassName="w-full rounded-xl border"/><div className="flex w-full flex-col gap-2 sm:flex-row">- <RepoDownload repo={"startup-template"} owner={"dillionverma"} />+ <TemplateOpen /><TemplatePreview href="https://startup-template-sage.vercel.app/">Live Preview{" "}</TemplatePreview>diff --git a/public/changelog-demo.mp4 b/public/changelog-demo.mp4new file mode 100644index 00000000..17302891Binary files /dev/null and b/public/changelog-demo.mp4 differ