fix: update frontend deploy pipeline

This commit is contained in:
Tiago Yamamoto 2026-03-07 11:33:48 -06:00
parent 6bf6a96036
commit 335c3a49c8

View file

@ -2,6 +2,7 @@
import Image from "next/image";
import Link from "next/link";
import { useAuth } from "@/context/AuthContext";
import {
ShieldCheckIcon,
TruckIcon,
@ -18,6 +19,7 @@ import {
* Apresenta informações sobre o projeto e opções de login/cadastro
*/
const HomePage = () => {
const { user, loading } = useAuth();
return (
<div className="min-h-screen bg-gradient-to-br from-blue-50 to-green-50">
@ -45,6 +47,15 @@ const HomePage = () => {
>
FAQ
</Link>
{!loading && user ? (
<Link
href="/dashboard"
className="bg-blue-600 text-white px-4 sm:px-6 py-2 rounded-lg text-sm sm:text-base font-medium hover:bg-blue-700 transition-colors"
>
Dashboard
</Link>
) : (
<>
<Link
href="/login"
className="bg-white text-blue-600 px-2 sm:px-4 py-2 rounded-lg text-sm sm:text-base font-medium hover:bg-gray-50 transition-colors"
@ -57,6 +68,8 @@ const HomePage = () => {
>
Cadastrar-se
</Link>
</>
)}
</div>
</div>
</div>
@ -91,10 +104,10 @@ const HomePage = () => {
{/* CTA Buttons */}
<div className="flex flex-col sm:flex-row gap-6 justify-center items-center mb-16">
<Link
href="/login?tab=cadastro"
href={!loading && user ? "/dashboard" : "/login?tab=cadastro"}
className="group bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white px-10 py-4 rounded-xl text-lg font-semibold transition-all duration-500 ease-out inline-flex items-center justify-center shadow-lg hover:shadow-xl transform hover:-translate-y-1 hover:scale-105 min-w-[200px]"
>
Começar Agora
{!loading && user ? "Ir para Dashboard" : "Começar Agora"}
</Link>
<button
onClick={() => document.getElementById('features')?.scrollIntoView({ behavior: 'smooth' })}