Skip to content

Commit

Permalink
general signup
Browse files Browse the repository at this point in the history
  • Loading branch information
Kojimena committed Nov 15, 2023
1 parent 9a8fcc2 commit cf425ab
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 4 additions & 0 deletions uniEmpleos/src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,9 @@
"phone": "Phone",
"details": "Details",
"register": "Register"
},
"signUp":{
"student": "Searching for a job",
"enterprise": "Offering a job"
}
}
4 changes: 4 additions & 0 deletions uniEmpleos/src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@
"phone": "Teléfono",
"details": "Detalles",
"register": "Registrarse"
},
"signUp":{
"student": "Buscando empleo",
"enterprise": "Soy reclutador"
}

}
6 changes: 4 additions & 2 deletions uniEmpleos/src/pages/SignUp/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ import ButtonImage from "../../components/ButtonImage/ButtonImage"
import styles from "./SignUp.module.css"
import Logo from "../../components/Logo/Logo"
import { navigate } from "../../store"
import { useTranslation } from "react-i18next"

const LogIn = () => {
const { t } = useTranslation()
const handleCorpClick = () => {
navigate("/signupempresa")
}
Expand All @@ -20,14 +22,14 @@ const LogIn = () => {
<ButtonImage
src="/images/user.svg"
alt="user"
text="Buscando empleo"
text={t("signUp.student")}
textColor="#000"
onClick={handleUserClick}
/>
<ButtonImage
src="/images/corp.svg"
alt="corporation"
text="Soy reclutador"
text={t("signUp.enterprise")}
textColor="#000"
onClick={handleCorpClick}
/>
Expand Down

0 comments on commit cf425ab

Please sign in to comment.