diff --git a/frontned/eslint.config.js b/frontned/eslint.config.js index c0418b7..c1c335f 100644 --- a/frontned/eslint.config.js +++ b/frontned/eslint.config.js @@ -25,6 +25,7 @@ export default defineConfig([ 'react/jsx-indent': ['error', 4], 'react/jsx-indent-props': ['error', 4], 'semi': ['error', 'always'], + '@typescript-eslint/semi': ['error', 'always'], }, }, ]) diff --git a/frontned/src/pages/Login.tsx b/frontned/src/pages/Login.tsx index aca4b36..ab557fb 100644 --- a/frontned/src/pages/Login.tsx +++ b/frontned/src/pages/Login.tsx @@ -1,12 +1,14 @@ import { useEffect, useState } from "react"; import { Layout } from "../components/Layout"; import type { LoginProps } from "../types/Login"; +import { Eye, EyeOff } from "lucide-icons-react"; export const Login = () => { const [form, setForm] = useState({ email: "", password: "" }); + const [showPassword, setShowPassword] = useState(false); const handleChange = (e: React.ChangeEvent) => { setForm({ @@ -15,6 +17,10 @@ export const Login = () => { }); }; + const handleShowPassword = () => { + setShowPassword(!showPassword); + }; + useEffect(() => { console.log(form); }, [form]); @@ -35,10 +41,10 @@ export const Login = () => { className={Styles.input} onChange={handleChange}/> -
+
{ className={Styles.input} onChange={handleChange} /> +
@@ -55,10 +69,12 @@ export const Login = () => { }; const Styles = { - layout: "h-screen flex flex-col gap-4 justify-center", + layout: "h-screen flex flex-col gap-4 justify-center animate-fade-up", logo: "w-36 h-36 mx-auto mb-4", card: "w-96 p-8 shadow-lg rounded-lg border border-cardBorder bg-card", label: "block mb-2 text-md font-medium text-text", + inputWrapper: "relative", input: "bg-gray-50 border border-cardBorder text-text text-md rounded-lg outline-none block w-full p-2.5", + iconButton: "absolute right-3 top-1/2 text-text p-1 focus:outline-none", button: "w-full bg-accent p-2 rounded-md mt-4 text-white font-bold text-lg hover:bg-hover transition duration-150", }; \ No newline at end of file diff --git a/frontned/tailwind.config.js b/frontned/tailwind.config.js index 4d2eb44..6808447 100644 --- a/frontned/tailwind.config.js +++ b/frontned/tailwind.config.js @@ -15,6 +15,15 @@ export default { hover: '#D04A0F', accent: '#E95A1B', }, + keyframes: { + 'fade-up': { + '0%': { opacity: '0', transform: 'translateY(8px)' }, + '100%': { opacity: '1', transform: 'translateY(0)' }, + }, + }, + animation: { + 'fade-up': 'fade-up 300ms ease-out forwards', + }, }, }, plugins: [],