fix: navegacion dinamica al dominio principal al hacer clic en Volver al Inicio o Logo
This commit is contained in:
parent
d287a8f430
commit
887f7aa43f
|
|
@ -11,20 +11,23 @@ export default function PublicLayout() {
|
||||||
<div className="max-w-7xl mx-auto px-6 h-16 flex items-center justify-between">
|
<div className="max-w-7xl mx-auto px-6 h-16 flex items-center justify-between">
|
||||||
|
|
||||||
{/* Logo del Proyecto (RepairIT) */}
|
{/* Logo del Proyecto (RepairIT) */}
|
||||||
<Link to="/" className="flex items-center gap-2">
|
<a
|
||||||
|
href={window.location.hostname.includes("repairit.cloud") ? "https://repairit.cloud" : "/"}
|
||||||
|
className="flex items-center gap-2"
|
||||||
|
>
|
||||||
<span className="font-outfit text-2xl font-black tracking-tight text-foreground">
|
<span className="font-outfit text-2xl font-black tracking-tight text-foreground">
|
||||||
Repair<span className="text-primary">IT</span>
|
Repair<span className="text-primary">IT</span>
|
||||||
</span>
|
</span>
|
||||||
</Link>
|
</a>
|
||||||
|
|
||||||
{/* Menú de Navegación de la Landing - Optimizado para Móviles */}
|
{/* Menú de Navegación de la Landing - Optimizado para Móviles */}
|
||||||
<nav className="flex items-center gap-4 sm:gap-6">
|
<nav className="flex items-center gap-4 sm:gap-6">
|
||||||
<Link
|
<a
|
||||||
to="/"
|
href={window.location.hostname.includes("repairit.cloud") ? "https://repairit.cloud" : "/"}
|
||||||
className="hidden md:block text-sm font-medium text-muted-foreground hover:text-foreground transition-colors"
|
className="hidden md:block text-sm font-medium text-muted-foreground hover:text-foreground transition-colors"
|
||||||
>
|
>
|
||||||
Inicio
|
Inicio
|
||||||
</Link>
|
</a>
|
||||||
<a
|
<a
|
||||||
href="#caracteristicas"
|
href="#caracteristicas"
|
||||||
className="hidden md:block text-sm font-medium text-muted-foreground hover:text-foreground transition-colors"
|
className="hidden md:block text-sm font-medium text-muted-foreground hover:text-foreground transition-colors"
|
||||||
|
|
@ -51,7 +54,9 @@ export default function PublicLayout() {
|
||||||
</a>
|
</a>
|
||||||
<Separator orientation="vertical" className="hidden md:block h-4 !self-center" />
|
<Separator orientation="vertical" className="hidden md:block h-4 !self-center" />
|
||||||
<Button asChild variant="outline" size="sm" className="text-primary border-primary/20 hover:border-primary/40 bg-primary/10 hover:bg-primary/20 font-bold transition-all duration-200">
|
<Button asChild variant="outline" size="sm" className="text-primary border-primary/20 hover:border-primary/40 bg-primary/10 hover:bg-primary/20 font-bold transition-all duration-200">
|
||||||
<Link to="/login">Panel Técnico</Link>
|
<a href={window.location.hostname.includes("repairit.cloud") ? "https://app.repairit.cloud/dashboard" : "/login"}>
|
||||||
|
Panel Técnico
|
||||||
|
</a>
|
||||||
</Button>
|
</Button>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -128,9 +128,12 @@ export default function TrackingPage() {
|
||||||
|
|
||||||
{/* Botón de retorno simple */}
|
{/* Botón de retorno simple */}
|
||||||
<div>
|
<div>
|
||||||
<Link to="/" className="inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors font-medium">
|
<a
|
||||||
|
href={window.location.hostname.includes("repairit.cloud") ? "https://repairit.cloud" : "/"}
|
||||||
|
className="inline-flex items-center gap-1.5 text-xs text-muted-foreground hover:text-foreground transition-colors font-medium cursor-pointer"
|
||||||
|
>
|
||||||
<ArrowLeft className="w-3.5 h-3.5" /> Volver al Inicio
|
<ArrowLeft className="w-3.5 h-3.5" /> Volver al Inicio
|
||||||
</Link>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Tarjeta Principal de Resumen del Dispositivo */}
|
{/* Tarjeta Principal de Resumen del Dispositivo */}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user