diff --git a/src/pages/interviewRounds/InterviewRounds.tsx b/src/pages/interviewRounds/InterviewRounds.tsx index 99a8a58..fcf05c7 100644 --- a/src/pages/interviewRounds/InterviewRounds.tsx +++ b/src/pages/interviewRounds/InterviewRounds.tsx @@ -13,85 +13,100 @@ import closingDocs from '../../assets/icons/Closing_Docs.svg'; import joiningLetter from '../../assets/icons/Joining_Letter.svg'; import Celebrations from '../../assets/icons/Celebrations.svg'; +interface stepDetail { + stepNumber: number; + stepName: string; + descriptionImage: string; + buttonText: string; + isUnlocked: boolean; +} const InterviewRounds: React.FC = () => { - const [step, setStep] = useState(1); + let steps: stepDetail[] = [ + { + stepNumber: 1, + stepName: "Skill Information", + descriptionImage: skillInfo, + buttonText: "Let's start now", + isUnlocked: true + }, + { + stepNumber: 2, + stepName: "Preliminary Round", + descriptionImage: preliminaryRound, + buttonText: "Let's do this", + isUnlocked: false + }, + { + stepNumber: 3, + stepName: "Technical Interview", + descriptionImage: technicalInterview, + buttonText: "Schedule meeting", + isUnlocked: false + }, + { + stepNumber: 4, + stepName: "Assignment", + descriptionImage: assignment, + buttonText: "Show details", + isUnlocked: false + }, + { + stepNumber: 5, + stepName: "Final Interview", + descriptionImage: finalInterview, + buttonText: "Schedule meeting", + isUnlocked: false + }, + { + stepNumber: 6, + stepName: "Closing Docs", + descriptionImage: closingDocs, + buttonText: "Upload docs", + isUnlocked: false + }, + { + stepNumber: 7, + stepName: "Joining Letter", + descriptionImage: joiningLetter, + buttonText: "Show details", + isUnlocked: false + }, + { + stepNumber: 8, + stepName: "Celebrations", + descriptionImage: Celebrations, + buttonText: "Join Workex", + isUnlocked: false + }, + ]; + + const [stepNo, setStep] = useState(1); const setDescription = (stepNumbera: number) => { setStep(stepNumbera); } + const stepsList = steps.map((step, key) => { + return ( + + ); + }); + return (
- - - - - - - - - + {stepsList} ) diff --git a/src/pages/skillInformationStep/SkillInformationStep.tsx b/src/pages/skillInformationStep/SkillInformationStep.tsx index b844f57..15d39bb 100644 --- a/src/pages/skillInformationStep/SkillInformationStep.tsx +++ b/src/pages/skillInformationStep/SkillInformationStep.tsx @@ -6,7 +6,7 @@ import SkillsCard from './SkillsCard'; import reactIcon from '../../assets/images/React.png'; import angularIcon from '../../assets/images/Angular.png'; import ionicIcon from '../../assets/images/IonicFramework.png'; -import reactNative from '../../assets/images/ReactNative.png'; +import reactNativeIcon from '../../assets/images/ReactNative.png'; import vueIcon from '../../assets/images/VueJS.png'; import nodeJSIcon from '../../assets/images/NodeJS.png'; import ExpressJSICon from '../../assets/images/ExpressJS.png'; @@ -19,6 +19,10 @@ import DevOpsIcon from '../../assets/images/DevOps.png'; import { useState } from 'react'; import { Link } from 'react-router-dom'; +interface skill { + name: string; + icon: string; +} const SkillInformationStep: React.FC = () => { @@ -34,9 +38,85 @@ const SkillInformationStep: React.FC = () => { setSkills(newSkills); } + const skillsArr = [ + { + frontEnd: [ + { + name: "React JS/TS", + icon: reactIcon, + }, + { + name: "Angular8+", + icon: angularIcon, + }, { + name: "Ionic FrameWork", + icon: ionicIcon, + }, { + name: "React Native", + icon: reactNativeIcon, + }, { + name: "VueJS", + icon: vueIcon, + } + ], + + backEnd: [ + { + name: "NodeJS", + icon: nodeJSIcon, + }, + { + name: "ExpressJS", + icon: ExpressJSICon, + }, + { + name: "Django FrameWork", + icon: DjangoIcon, + } + ], + + Database: [ + { + name: "MySql", + icon: MySqlIcon, + }, + { + name: "MongoDB", + icon: MongoDBIcon, + }, + { + name: "PostgreSQL", + icon: postgreSqlIcon, + }, + ], + Beneficial: [ + { + name: "Firebase", + icon: FirebaseIcon, + }, + { + name: "DevOps (Docker / Kubernetes)", + icon: DevOpsIcon, + } + ] + } + ]; + const frontEndSkills: skill[] = []; + const backendSkills: skill[] = []; + const database: skill[] = []; + const beneficial: skill[] = []; + + skillsArr.forEach(skill => { + frontEndSkills.push(...skill.frontEnd); + backendSkills.push(...skill.backEnd); + database.push(...skill.Database); + beneficial.push(...skill.Beneficial); + }); + + + return ( - @@ -55,11 +135,18 @@ const SkillInformationStep: React.FC = () => {
Front-end:
- - - - - + { + frontEndSkills.map((skill, index) => { + return ( + + ); + }) + }
@@ -69,9 +156,18 @@ const SkillInformationStep: React.FC = () => {
Back-end:
- - - + { + backendSkills.map((skill, index) => { + return ( + + ); + }) + }
@@ -79,13 +175,22 @@ const SkillInformationStep: React.FC = () => {
Database:
-
- - - + { + database.map((skill, index) => { + return ( + + ); + }) + }
+
@@ -93,8 +198,18 @@ const SkillInformationStep: React.FC = () => {
Beneficial:
- - + { + beneficial.map((skill, index) => { + return ( + + ); + }) + }