UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
fix: fix hero buttons
Arghya Dasadeda3b486a8
diff --git a/components/sections/hero.tsx b/components/sections/hero.tsxindex 7b27ffac..cb1dac1c 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@@ -63,35 +63,33 @@ export default async function Hero() {Perfect companion for <b>shadcn/ui</b>.</p>- <div className="mx-0 flex w-full max-w-full flex-col gap-4 py-1 sm:max-w-lg sm:flex-row md:mx-auto">- <div className="flex w-full flex-col gap-2 sm:flex-row sm:gap-4">- <Link- href="/components"- className={cn(- buttonVariants({- variant: "rainbow",- size: "lg",- }),- "w-full gap-2",- )}- >- Browse Components- <ChevronRight className="ml-1 size-4 shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" />- </Link>- <Link- href="https://pro.magicui.design"- className={cn(- buttonVariants({- size: "lg",- variant: "rainbow-outline",- }),- "w-full gap-2",- )}- >- Browse Templates- <ChevronRight className="ml-1 size-4 shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" />- </Link>- </div>+ <div className="md:mx-auto w-full flex md:max-w-xs flex-col gap-4 gap-y-2 md:flex-row md:justify-center">+ <Link+ href="/components"+ className={cn(+ buttonVariants({+ variant: "rainbow",+ size: "lg",+ }),+ "w-full gap-2"+ )}+ >+ Browse Components+ <ChevronRight className="ml-1 size-4 shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </Link>+ <Link+ href="https://pro.magicui.design"+ className={cn(+ buttonVariants({+ size: "lg",+ variant: "rainbow-outline",+ }),+ "w-full gap-2"+ )}+ >+ Browse Templates+ <ChevronRight className="ml-1 size-4 shrink-0 transition-all duration-300 ease-out group-hover:translate-x-1" />+ </Link></div></div></div>