aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/Login.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/pages/Login.jsx')
-rw-r--r--src/pages/Login.jsx24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pages/Login.jsx b/src/pages/Login.jsx
new file mode 100644
index 0000000..89e0c8b
--- /dev/null
+++ b/src/pages/Login.jsx
@@ -0,0 +1,24 @@
+import React from 'react';
+import { useNavigate } from 'react-router-dom';
+
+const Login = () => {
+ const navigate = useNavigate();
+
+ const handleLogin = () => {
+ // Handle login logic here
+ navigate('/dashboard');
+ };
+
+ return (
+ <div>
+ <h1>Login</h1>
+ <form onSubmit={handleLogin}>
+ <input type="text" placeholder="Username" />
+ <input type="password" placeholder="Password" />
+ <button type="submit">Login</button>
+ </form>
+ </div>
+ );
+};
+
+export default Login;