diff --git a/.env b/.env new file mode 100644 index 0000000..41e3d61 --- /dev/null +++ b/.env @@ -0,0 +1,3 @@ +CITY_API_KEY="" + +BACKEND_API_TOKEN="eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjc4Nzc5NDEzLCJpYXQiOjE2NjE0OTk0MTMsImp0aSI6IjdiM2E2NzYzNWIxYjRkYWZiMTljYTg1NmI3NGQ0MWI1IiwidXNlcl9pZCI6Mn0.dzHFep_buR6XWpNCkrOkGEuh7Ah1H3M0M1sfL85XogM" \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..50e51c5 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": ["next/core-web-vitals", "prettier"] +} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d4ae225 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +node_modules +.next +.swc +out +yarn.lock \ No newline at end of file diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..1b07c39 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +# Ignore artifacts: +build +coverage \ No newline at end of file diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..1d894d4 --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,7 @@ +{ + "semi": false, + "trailingComma": "es5", + "singleQuote": true, + "tabWidth": 2, + "useTabs": true +} diff --git a/README.md b/README.md index 2854971..7675401 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# iYojna-admin-frontend \ No newline at end of file +# Shishya Frontend Admin diff --git a/components/AuthHeader.tsx b/components/AuthHeader.tsx new file mode 100644 index 0000000..7328329 --- /dev/null +++ b/components/AuthHeader.tsx @@ -0,0 +1,46 @@ +import { Typography, Layout } from 'antd' + +const { Title, Text } = Typography +const { Header } = Layout + +const AuthHeader = () => { + return ( +
+ + SHISHYA + + + One stop destination for students to track all their documents. + +
+ ) +} + +export default AuthHeader diff --git a/components/CreateFormStatus.tsx b/components/CreateFormStatus.tsx new file mode 100644 index 0000000..20a59f5 --- /dev/null +++ b/components/CreateFormStatus.tsx @@ -0,0 +1,58 @@ +import React from 'react' +import styles from '../styles/Components/create-form-status.module.css' + +type CreateFormStatusType = { + currentStep: number +} + +const CreateFormStatus = ({ currentStep }: CreateFormStatusType) => { + return ( +
+
+
+
+
+
+
+
+
+
+
+
+

+ Form Details +

+
+
+

+ Document Required +

+
+
+
+ ) +} + +export default CreateFormStatus diff --git a/components/CreateJobStatus.tsx b/components/CreateJobStatus.tsx new file mode 100644 index 0000000..397cab2 --- /dev/null +++ b/components/CreateJobStatus.tsx @@ -0,0 +1,78 @@ +import React from 'react' +import styles from '../styles/Components/create-form-status.module.css' + +type CreateJobStatusType = { + currentStep: number +} + +const CreateJobStatus = ({ currentStep }: CreateJobStatusType) => { + return ( +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+

+ Job Details +

+
+
+

+ Eligibility of Students +

+
+
+

+ Document Required +

+
+
+
+ ) +} + +export default CreateJobStatus diff --git a/components/CustomButton.tsx b/components/CustomButton.tsx new file mode 100644 index 0000000..7f7703f --- /dev/null +++ b/components/CustomButton.tsx @@ -0,0 +1,22 @@ +import React from 'react' +import styles from '../styles/Components/CustomButton.module.css' + +interface IProps { + title: string + handleClick: () => void + style?: {} +} + +const CustomButton = ({ title, handleClick, style }: IProps) => { + return ( +
+
{title}
+
+ ) +} + +export default CustomButton diff --git a/components/CustomInput.tsx b/components/CustomInput.tsx new file mode 100644 index 0000000..d8dad85 --- /dev/null +++ b/components/CustomInput.tsx @@ -0,0 +1,59 @@ +import React from 'react' +import { DatePicker, Input, Select } from 'antd' +import styles from '../styles/Components/CustomInput.module.css' + +const { Option } = Select +const { TextArea } = Input + +interface IProps { + placeholder: string | undefined + type: string + data: any + label: string + onChange: any +} + +const CustomInput = ({ placeholder, type, data, label, onChange }: IProps) => { + return ( +
+ +
+ {type === 'text' ? ( + + ) : null} + {type === 'date' ? ( + + ) : null} + {type === 'drop-down' ? ( + + ) : null} + {type === 'textarea' ? ( +