diff --git a/frontend/admin-panel/src/App.tsx b/frontend/admin-panel/src/App.tsx index 4dc32b5..37e95d1 100644 --- a/frontend/admin-panel/src/App.tsx +++ b/frontend/admin-panel/src/App.tsx @@ -1,11 +1,13 @@ import { BrowserRouter, Routes, Route } from 'react-router-dom'; import Layout from './components/Layout'; import Dashboard from './pages/Dashboard'; +import Login from './pages/Login'; function App() { return ( + } /> }> } /> مدیریت کاربران} /> diff --git a/frontend/admin-panel/src/pages/Login.tsx b/frontend/admin-panel/src/pages/Login.tsx new file mode 100644 index 0000000..8a0847b --- /dev/null +++ b/frontend/admin-panel/src/pages/Login.tsx @@ -0,0 +1,90 @@ +import { useState } from 'react'; +import { useNavigate } from 'react-router-dom'; +import { Lock, Mail, ChevronLeft } from 'lucide-react'; + +export default function Login() { + const [email, setEmail] = useState(''); + const [password, setPassword] = useState(''); + const [isLoading, setIsLoading] = useState(false); + const navigate = useNavigate(); + + const handleLogin = (e: React.FormEvent) => { + e.preventDefault(); + setIsLoading(true); + + // Simulate API call + setTimeout(() => { + setIsLoading(false); + navigate('/'); + }, 1000); + }; + + return ( +
+
+
+ +
+

+ ورود به پنل مدیریت +

+

+ کانی‌نا | لابراتوار تخصصی مکمل‌های درمانی حیوانات +

+
+ +
+
+
+
+ +
+
+ +
+ setEmail(e.target.value)} + className="block w-full pl-3 pr-10 py-3 border border-gray-200 rounded-xl focus:ring-purple-500 focus:border-purple-500 sm:text-sm bg-gray-50 font-bold transition-all" + placeholder="admin@canina-iran.com" + dir="ltr" + /> +
+
+ +
+ +
+
+ +
+ setPassword(e.target.value)} + className="block w-full pl-3 pr-10 py-3 border border-gray-200 rounded-xl focus:ring-purple-500 focus:border-purple-500 sm:text-sm bg-gray-50 font-bold transition-all text-left" + placeholder="••••••••" + dir="ltr" + /> +
+
+ +
+ +
+
+
+
+
+ ); +}