diff --git a/frontend/src/components/AuthForm.jsx b/frontend/src/components/AuthForm.jsx index 72cc358..ca62933 100644 --- a/frontend/src/components/AuthForm.jsx +++ b/frontend/src/components/AuthForm.jsx @@ -1,5 +1,6 @@ import { useState } from "react"; import axios from "axios"; +import bgFish from "../assets/Исходники/background.jpg"; import { useNavigate } from "react-router-dom"; const AuthForm = () => { @@ -57,75 +58,82 @@ const AuthForm = () => { setError(""); }; + // общий класс для всех полей ввода — фирменный стиль + const inputClass = + "block w-full rounded-md bg-white/5 border border-white/10 px-4 py-3 text-white placeholder-white/40 focus:border-gold focus:outline-none transition-colors"; + return ( -
-
-

- {isLogin ? "Вход в FISH FISH" : "Регистрация в FISH FISH"} +
+
+
+
+

+ {isLogin ? "Вход" : "Регистрация"}

-
-
- - + + + - {!isLogin && ( - <> - - - - - )} -
+ {!isLogin && ( + <> + + + + + )} - {error &&

{error}

} + {error &&

{error}

} -

+

{isLogin ? "Нет аккаунта?" : "Уже есть аккаунт?"}{" "} {isLogin ? "Зарегистрироваться" : "Войти"}