diff --git a/uniEmpleos/src/components/Header/Header.jsx b/uniEmpleos/src/components/Header/Header.jsx
index 997768c7..1c2f380e 100644
--- a/uniEmpleos/src/components/Header/Header.jsx
+++ b/uniEmpleos/src/components/Header/Header.jsx
@@ -69,9 +69,8 @@ export const Header = () => {
return (
diff --git a/uniEmpleos/src/components/ImageDirectUploader/ImageDirectUploader.module.css b/uniEmpleos/src/components/ImageDirectUploader/ImageDirectUploader.module.css
index 9efb7010..9ae44a6f 100644
--- a/uniEmpleos/src/components/ImageDirectUploader/ImageDirectUploader.module.css
+++ b/uniEmpleos/src/components/ImageDirectUploader/ImageDirectUploader.module.css
@@ -23,6 +23,11 @@
cursor: pointer;
border-radius: 5px;
border: 2px solid #ccc;
+ overflow: hidden;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 1;
+ line-height: 2;
}
.UploaderInput {
diff --git a/uniEmpleos/src/components/InfoStudent/InfoStudent.jsx b/uniEmpleos/src/components/InfoStudent/InfoStudent.jsx
index e7aa5c01..a141469a 100644
--- a/uniEmpleos/src/components/InfoStudent/InfoStudent.jsx
+++ b/uniEmpleos/src/components/InfoStudent/InfoStudent.jsx
@@ -2,7 +2,15 @@ import React from "react"
import PropTypes from "prop-types"
import style from "./InfoStudent.module.css"
-const InfoStudent = ({ nombre, apellido, universidad, pfp, onClick }) => {
+const InfoStudent = ({
+ nombre,
+ apellido,
+ universidad,
+ pfp,
+ onClick,
+ showState,
+ state,
+}) => {
return (
{`${nombre} ${apellido}`}
-
{universidad}
+ {universidad && (
+
{universidad}
+ )}
+ {showState && (
+
+ Estado:
+
+ {`${state}`}
+
+
+ )}
@@ -21,9 +41,10 @@ const InfoStudent = ({ nombre, apellido, universidad, pfp, onClick }) => {
InfoStudent.propTypes = {
nombre: PropTypes.string.isRequired,
apellido: PropTypes.string.isRequired,
- universidad: PropTypes.string.isRequired,
+ universidad: PropTypes.string,
pfp: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired,
+ estado: PropTypes.string,
}
export default InfoStudent
diff --git a/uniEmpleos/src/components/InfoStudent/InfoStudent.module.css b/uniEmpleos/src/components/InfoStudent/InfoStudent.module.css
index 1f6e6512..544638f1 100644
--- a/uniEmpleos/src/components/InfoStudent/InfoStudent.module.css
+++ b/uniEmpleos/src/components/InfoStudent/InfoStudent.module.css
@@ -5,6 +5,7 @@
height: 100px;
padding: 10px;
animation: aparecer 0.5s ease;
+ justify-content: space-evenly;
}
@keyframes aparecer {
@@ -20,7 +21,7 @@
.button {
display: flex;
- width: 100%;
+ width: calc(100% - 20px);
height: 100%;
justify-content: start;
align-items: center;
@@ -29,7 +30,7 @@
background-color: #8c6fd454;
gap: 20px;
border-radius: 10px;
- padding: 0;
+ padding: 0 10px;
}
.button:hover {
@@ -62,7 +63,7 @@
.infoContainer {
width: calc(75% - 20px);
- height: 80%;
+ height: 100%;
display: flex;
flex-direction: column;
overflow: auto;
@@ -84,3 +85,24 @@
color: #333333;
text-align: left;
}
+
+.stateContainer {
+ display: flex;
+ flex-direction: row;
+ gap: 5px;
+}
+
+@media (max-width: 767px) {
+ .mainContainer {
+ width: calc(100% - 20px);
+ height: 150px;
+ }
+
+ .pfpContainer {
+ width: calc(30% - 20px);
+ }
+
+ .infoContainer {
+ width: calc(70% - 20px);
+ }
+}
diff --git a/uniEmpleos/src/components/InfoTab/InfoTab.jsx b/uniEmpleos/src/components/InfoTab/InfoTab.jsx
index 22a39744..d3ee472a 100644
--- a/uniEmpleos/src/components/InfoTab/InfoTab.jsx
+++ b/uniEmpleos/src/components/InfoTab/InfoTab.jsx
@@ -33,7 +33,7 @@ const InfoTab = ({
{verPostulantes && (
-
@@ -42,9 +42,9 @@ const InfoTab = ({
InfoTab.propTypes = {
title: PropTypes.string.isRequired,
- area: PropTypes.string.isRequired,
+ area: PropTypes.string,
salary: PropTypes.string.isRequired,
- company: PropTypes.string.isRequired,
+ company: PropTypes.string,
labelbutton: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequired,
verPostulantes: PropTypes.func.isRequired,
diff --git a/uniEmpleos/src/components/Loader/Loader.jsx b/uniEmpleos/src/components/Loader/Loader.jsx
new file mode 100644
index 00000000..d8cd61d3
--- /dev/null
+++ b/uniEmpleos/src/components/Loader/Loader.jsx
@@ -0,0 +1,37 @@
+import React from "react"
+import style from "./Loader.module.css"
+
+const Loader = ({ size }) => {
+ const customStyle = [
+ {
+ "--d": "200ms",
+ },
+ {
+ "--d": "400ms",
+ },
+ {
+ "--d": "600ms",
+ },
+ {
+ "--d": "800ms",
+ },
+ {
+ "--d": "1000ms",
+ },
+ ]
+
+ return (
+
- {response.data ? (
- response.data.map((postulante) => (
- handleClickUsuario(postulante.id_estudiante)}
- />
- ))
- ) : (
- No hay postulantes
- )}
-
+ {loading ? (
+
+ {response.data ? (
+ response.data.map((postulante) => (
+ handleClickUsuario(postulante.id_estudiante)}
+ />
+ ))
+ ) : (
+ No hay postulantes
+ )}
+
+ )}
)
}
diff --git a/uniEmpleos/src/pages/PostulationsEmpresa/PostulationsEmpresa.jsx b/uniEmpleos/src/pages/PostulationsEmpresa/PostulationsEmpresa.jsx
index 1528184f..d6768061 100644
--- a/uniEmpleos/src/pages/PostulationsEmpresa/PostulationsEmpresa.jsx
+++ b/uniEmpleos/src/pages/PostulationsEmpresa/PostulationsEmpresa.jsx
@@ -8,6 +8,7 @@ import { Header } from "../../components/Header/Header"
import { navigate } from "../../store"
import useApi from "../../Hooks/useApi"
import Popup from "../../components/Popup/Popup"
+import Loader from "../../components/Loader/Loader"
const schema = Joi.object({
token: Joi.string().required(),
@@ -30,15 +31,18 @@ const PostulationsEmpresa = () => {
const [warning, setWarning] = useState(false)
const [error, setError] = useState("")
const [typeError, setTypeError] = useState(1)
+ const [loading, setLoading] = useState(false)
useEffect(() => {
if (api.data) {
const { offers } = api.data
setData(offers)
}
+ setLoading(false)
}, [api.data])
useEffect(() => {
+ setLoading(true)
api.handleRequest("POST", "/offers/company", {
id_empresa: user.id_user,
})
@@ -72,17 +76,20 @@ const PostulationsEmpresa = () => {
return (