|
|
@@ -0,0 +1,35 @@
|
|
|
+import {Button} from "primereact/button";
|
|
|
+import {InputText} from "primereact/inputtext";
|
|
|
+import {useNavigate} from "react-router-dom";
|
|
|
+
|
|
|
+export default function () {
|
|
|
+ const navigate = useNavigate();
|
|
|
+
|
|
|
+ function onLoginClick() {
|
|
|
+
|
|
|
+ return navigate("/home")
|
|
|
+ }
|
|
|
+
|
|
|
+ return (
|
|
|
+ <div style={{display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100vh'}}
|
|
|
+ className="bg-orange-500">
|
|
|
+ <div className="surface-card p-4 shadow-2 border-round flex flex-column w-3 ">
|
|
|
+ <div className="text-3xl font-medium text-900 mb-2">Login Panel</div>
|
|
|
+ <div className="font-medium text-500 mb-3">Login using your credentials</div>
|
|
|
+
|
|
|
+ <span className="p-input-icon-left py-1 ">
|
|
|
+ <i className="pi pi-user"/>
|
|
|
+ <InputText placeholder="Username" className="min-w-full max-w-full"/>
|
|
|
+ </span>
|
|
|
+ <span className="p-input-icon-left py-1" >
|
|
|
+ <i className="pi pi-key"/>
|
|
|
+ <InputText type="password" placeholder="Password" className="min-w-full max-w-full"/>
|
|
|
+ </span>
|
|
|
+ <div className="flex justify-content-end pt-2">
|
|
|
+ <Button onClick={onLoginClick}>Login</Button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ )
|
|
|
+}
|