Create professional demos and 3D mockups in seconds, directly in your browser
Refactor button components in Header and Hero for improved accessibility; wrap buttons with Link for navigation.
CristianOlivera14cde2b637e50
diff --git a/app/components/common/header.tsx b/app/components/common/header.tsxindex 973206a..8f9d328 100644--- a/app/components/common/header.tsx+++ b/app/components/common/header.tsx@@ -49,12 +49,13 @@ export default function Header() {</div><div className="flex items-center gap-2 sm:gap-4">- <Button variant="outline" asChild>+ <Button asChild variant="outline"><Link href="/login">Iniciar sesión</Link></Button>- <Button variant="primary" className="px-4" size="sm">- Empezar a grabar- <Icon icon="solar:arrow-right-linear" width="16" className="hidden sm:flex" />+ <Button asChild variant="primary">+ <Link href="/editor">Empezar a grabar+ <Icon icon="solar:arrow-right-linear" width="16" className="hidden sm:flex" />+ </Link></Button></div></div>diff --git a/app/components/ui/hero.tsx b/app/components/ui/hero.tsxindex 2567fac..52e4ff9 100644--- a/app/components/ui/hero.tsx+++ b/app/components/ui/hero.tsx@@ -1,10 +1,11 @@import { Button } from "@/components/ui/button";import { Icon } from "@iconify/react";+import Link from "next/link";export default function Hero() {return (<>- <h1 className="text-5xl md:text-7xl font-semibold text-white tracking-tight mb-6 leading-[1.1]">+ <h1 className="text-5xl md:text-7xl font-semibold text-white tracking-tight mb-6 leading-[1.1] drop-shadow-[1.2px_1.2px_100.2px_rgba(183,203,248,1)]">Grabación de{" "}<span className="relative inline-flex items-center"><img@@ -30,11 +31,11 @@ export default function Hero() {</p><div className="flex flex-col sm:flex-row items-center justify-center gap-4 mb-20">- <Button variant="primary" size="xl" className="text-xl">- <div className="size-9 rounded-full bg-white flex items-center justify-center">+ <Button asChild variant="primary" size="xl" className="text-xl">+ <Link href="/editor"><div className="size-9 rounded-full bg-white flex items-center justify-center"><Icon icon="fluent:screenshot-record-16-regular" className="size-7 text-red-500" /></div>- Empezar a grabar+ Empezar a grabar</Link></Button></div></>