diff --git a/frontend/src/domains/auth/presentation/components/AuthVisualPanel.tsx b/frontend/src/domains/auth/presentation/components/AuthVisualPanel.tsx index 42b0ccc..0023d73 100644 --- a/frontend/src/domains/auth/presentation/components/AuthVisualPanel.tsx +++ b/frontend/src/domains/auth/presentation/components/AuthVisualPanel.tsx @@ -1,10 +1,9 @@ -import { Image } from "@unpic/react" -import { Bell, Instagram, Linkedin, Search, TrendingUp } from "lucide-react" +import { Image } from "@unpic/react"; +import { Bell, Instagram, Linkedin, Search, TrendingUp } from "lucide-react"; export default function LeftSide() { return ( - ) + ); } diff --git a/frontend/src/domains/auth/presentation/components/LoginFormPanel.tsx b/frontend/src/domains/auth/presentation/components/LoginFormPanel.tsx index e9e3898..0726b4a 100644 --- a/frontend/src/domains/auth/presentation/components/LoginFormPanel.tsx +++ b/frontend/src/domains/auth/presentation/components/LoginFormPanel.tsx @@ -10,6 +10,8 @@ import { motion } from "framer-motion"; import { ArrowLeft, Eye, EyeOff } from "lucide-react"; import { FormEvent, useState } from "react"; import { useNavigate } from "react-router-dom"; +import { useTheme } from "@/shared/hooks/useTheme"; +import { ThemeToggle } from "@/shared/ui/theme-toggle"; const STATIC_STARS = Array.from({ length: 40 }).map((_, i) => { const random = (min: number, max: number) => @@ -56,6 +58,7 @@ function StarsBackground() { export default function RightSide() { const navigate = useNavigate(); const { login } = useAuth(); + const { resolvedTheme, toggleTheme } = useTheme(); const [showPassword, setShowPassword] = useState(false); const [email, setEmail] = useState(""); const [password, setPassword] = useState(""); @@ -152,14 +155,16 @@ export default function RightSide() {
-
+
Voltar para a página principal + +

@@ -168,15 +173,7 @@ export default function RightSide() { ! >

-

- Novo por aqui?{" "} - - Cadastre-se - -

+
Esqueceu a senha? @@ -278,10 +275,19 @@ export default function RightSide() { disabled={isLoading} whileHover={{ scale: isLoading ? 1 : 1.01 }} whileTap={{ scale: isLoading ? 1 : 0.99 }} - className="w-full bg-gradient-to-r from-blue-600 via-purple-600 to-teal-600 hover:opacity-95 text-white py-3.5 px-4 rounded-xl font-bold text-base focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all shadow-md shadow-blue-500/10 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed" + className="w-full bg-gradient-to-r from-[#004726] to-[#00663A] hover:opacity-95 text-white py-3.5 px-4 rounded-xl font-bold text-base focus:outline-none focus:ring-2 focus:ring-blue-500 transition-all shadow-md shadow-blue-500/10 cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed" > {isLoading ? "Entrando..." : "Entrar"} +

+ Novo por aqui?{" "} + + Cadastre-se + +

diff --git a/frontend/src/domains/auth/presentation/components/RegisterFormPanel.tsx b/frontend/src/domains/auth/presentation/components/RegisterFormPanel.tsx index cfc836c..ab5b951 100644 --- a/frontend/src/domains/auth/presentation/components/RegisterFormPanel.tsx +++ b/frontend/src/domains/auth/presentation/components/RegisterFormPanel.tsx @@ -4,6 +4,9 @@ import { ArrowLeft, Eye, EyeOff } from "lucide-react"; import { FormEvent, useState } from "react"; import PhoneInput from "react-phone-number-input"; import "react-phone-number-input/style.css"; +import { ThemeToggle } from "@/shared/ui/theme-toggle"; +import { useTheme } from "@/shared/hooks/useTheme"; + import { getGithubAuthUrl, getGoogleAuthUrl, @@ -88,7 +91,9 @@ export default function RegisterSide() { const [levelError, setLevelError] = useState(""); const [isLoading, setIsLoading] = useState(false); - const [apiError, setApiError] = useState(""); + const [apiError, setApiError] = useState(""); + const { resolvedTheme, toggleTheme } = useTheme(); + const handleGoogleLogin = async () => { setIsLoading(true); @@ -220,7 +225,7 @@ export default function RegisterSide() {
-
+

@@ -236,15 +243,7 @@ export default function RegisterSide() { ! >

-

- Já tem conta?{" "} - - Entrar - -

+
{isLoading ? "Cadastrando..." : "Cadastrar"} +

+ Já tem conta?{" "} + + Entrar + +