diff --git a/package-lock.json b/package-lock.json index 0d62def..565b898 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1670,7 +1670,6 @@ }, "node_modules/@clack/prompts/node_modules/is-unicode-supported": { "version": "1.3.0", - "dev": true, "inBundle": true, "license": "MIT", "engines": { diff --git a/src/Pages/Login.tsx b/src/Pages/Login.tsx index ea2c5dd..c479a26 100644 --- a/src/Pages/Login.tsx +++ b/src/Pages/Login.tsx @@ -50,8 +50,8 @@ const Login = () => { - - + + diff --git a/src/Pages/ManageJobs/ManageJobsAdd.tsx b/src/Pages/ManageJobs/ManageJobsAdd.tsx index d69907f..bf74bd6 100644 --- a/src/Pages/ManageJobs/ManageJobsAdd.tsx +++ b/src/Pages/ManageJobs/ManageJobsAdd.tsx @@ -43,50 +43,59 @@ function ManageJobsAdd() { Job title + + Workspace mode - + + Category - + + Sub-Category - + + Salary - + + Experience - + + Job Location - - {/* Country Selection + + {/* Country Selection */} - - Country Selection - - - - - {frameworks.items.map((movie) => ( - - {movie.label} - - ))} - - - + + Country Selection + + + + + {frameworks.items.map((movie) => ( + + {movie.label} + + ))} + + + Job type - + + Skills required - + + Job Description* diff --git a/src/Pages/ManageJobs/ViewManageJob.tsx b/src/Pages/ManageJobs/ViewManageJob.tsx index c8b574b..2fb4217 100644 --- a/src/Pages/ManageJobs/ViewManageJob.tsx +++ b/src/Pages/ManageJobs/ViewManageJob.tsx @@ -44,52 +44,53 @@ function ViewManageJob() { Job title - + Workspace mode - + Category - + Sub-Category - + Salary - + Experience - + Job Location - - {/* Country Selection + + {/* Country Selection */} - - Country Selection - - - - - {frameworks.items.map((movie) => ( - - {movie.label} - - ))} - - - + + Country Selection + + + + + {frameworks.items.map((movie) => ( + + {movie.label} + + ))} + + + Job type - + Skills required - + Job Description* + Upload Image diff --git a/src/Pages/MyProfile/MyProfile.tsx b/src/Pages/MyProfile/MyProfile.tsx index 9c7ed8b..e72c329 100644 --- a/src/Pages/MyProfile/MyProfile.tsx +++ b/src/Pages/MyProfile/MyProfile.tsx @@ -2,9 +2,9 @@ import MainFrame from "../../components/MainFrame" const MyProfile = () => { return ( - + - MyProfile + MyProfile ) } diff --git a/src/Pages/Profile/ChangePassword.tsx b/src/Pages/Profile/ChangePassword.tsx new file mode 100644 index 0000000..fee0a39 --- /dev/null +++ b/src/Pages/Profile/ChangePassword.tsx @@ -0,0 +1,58 @@ + +import { DialogBody, DialogCloseTrigger, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "../../components/ui/dialog" +import { Field, Grid, Heading, Input, Stack, Text } from "@chakra-ui/react" +import { FaRegEdit } from "react-icons/fa"; +import { Button } from "../../components/ui/button"; +import EnterPassword from "./EnterPassword"; +function Changepassword() { + return ( + + + + + + + + + + CHANGE PASSWORD + + + + + + New password + + + Confirm password + + + + + + {/* */} + + + + {/* */} + + + + ) +} + +export default Changepassword \ No newline at end of file diff --git a/src/Pages/Profile/EnterOTP.tsx b/src/Pages/Profile/EnterOTP.tsx new file mode 100644 index 0000000..1e07d2c --- /dev/null +++ b/src/Pages/Profile/EnterOTP.tsx @@ -0,0 +1,109 @@ +import { DialogBody, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "../../components/ui/dialog" +import { Box, Input, Stack, Text } from "@chakra-ui/react" +import { Button } from "../../components/ui/button"; +import { useState } from "react"; +import { BiSolidEdit } from "react-icons/bi"; + +function EnterOTP() { + const [otp, setOtp] = useState(["", "", "", ""]); + + // Handle change for OTP inputs + const handleChange = (e: React.ChangeEvent, index: number): void => { + const value = e.target.value; + + // Prevent non-numeric input + if (/[^0-9]/.test(value)) return; + + // Update the OTP state with the new value + const newOtp = [...otp]; + newOtp[index] = value; + setOtp(newOtp); + + // Move focus to the next input automatically + if (value && index < otp.length - 1) { + const nextInput = document.getElementById(`otp-input-${index + 1}`) as HTMLInputElement; + if (nextInput) nextInput.focus(); + } + }; + + return ( + + + + + + + + + + ENTER OTP + + + + OTP has been send to your E-mail Address + + + 9619565889 + + + + + + {/* 4 OTP Inputs */} + {otp.map((digit, index) => ( + handleChange(e, index)} + maxLength={1} // Only allows 1 character per input + /> + ))} + + + + Resend OTP + + + + + + + + + {/* */} + + + + ) +} + +export default EnterOTP \ No newline at end of file diff --git a/src/Pages/Profile/EnterPassword.tsx b/src/Pages/Profile/EnterPassword.tsx new file mode 100644 index 0000000..18eb230 --- /dev/null +++ b/src/Pages/Profile/EnterPassword.tsx @@ -0,0 +1,55 @@ + +import { DialogBody, DialogContent, DialogFooter, DialogHeader, DialogRoot, DialogTitle, DialogTrigger } from "../../components/ui/dialog" +import { Field, Input, Stack } from "@chakra-ui/react" +import { Button } from "../../components/ui/button"; +import EnterOTP from "./EnterOTP"; +function EnterPassword() { + return ( + + + + + + + + + + ENTER PASSWORD + + + + + + Password + + + + + + + {/* */} + + + + {/* */} + + + + ) +} + +export default EnterPassword \ No newline at end of file diff --git a/src/Pages/Profile/Profile.tsx b/src/Pages/Profile/Profile.tsx index 49e11f8..858216a 100644 --- a/src/Pages/Profile/Profile.tsx +++ b/src/Pages/Profile/Profile.tsx @@ -1,10 +1,60 @@ +import { Avatar, Box, Field, Input, SimpleGrid, Stack, Text } from "@chakra-ui/react" import MainFrame from "../../components/MainFrame" +import { FaCamera } from "react-icons/fa"; +import { Button } from "../../components/ui/button"; +import Changepassword from "./ChangePassword"; const Profile = () => { return ( - Profile - + + alert("Avatar clicked!")}> + + + + + + + + + + {`Jackson Da`.slice(0, 10) + '...'} + {/* Employee ID: #1245679 */} + + Employee ID: #1245679 + + + + + First Name + + + last Name + + + Phone Number + + + + Update password + {/* */} + + + + + + + ) } diff --git a/src/components/EditSubAdmin.tsx b/src/components/EditSubAdmin.tsx index 1640f05..f3c267b 100644 --- a/src/components/EditSubAdmin.tsx +++ b/src/components/EditSubAdmin.tsx @@ -17,7 +17,9 @@ function EditSubAdmin() { First Name - + First Name + Last Name