diff --git a/frontend/assets/css/infoDoc.css b/frontend/assets/css/infoDoc.css index e554062..4a265f0 100644 --- a/frontend/assets/css/infoDoc.css +++ b/frontend/assets/css/infoDoc.css @@ -61,11 +61,10 @@ body { .porcentaje-dificultad { display: flex; - justify-content: space-around; - align-items: center; + justify-content: center; /* Centrar los elementos horizontalmente */ + align-items: center; /* Centrar los elementos verticalmente */ margin: 20px 0; } - .porcentaje { text-align: center; font-size: 1.2em; @@ -90,18 +89,12 @@ body { font-size: 2em; } -.porcentaje { - font-size: 1.2em; - color: #000; - margin: 5px 0; +.linea-vertical { + width: 3px; + height: 50px; + background-color: rgb(0, 0, 0); + margin: 0 50px; /* Reducir el espacio horizontal entre los elementos */ } - -.dificultad { - font-size: 1.2em; - color: #000; - margin: 5px 0; -} - .calificar-btn { background-color: #ffa500; color: #fff; @@ -186,8 +179,6 @@ td { margin-bottom: 20px; } - - /* Estilos para el contenedor de comentarios */ .calificacion { display: flex; @@ -270,7 +261,6 @@ td { justify-content: center; } - .label span{ font-size: 1em; } @@ -299,4 +289,4 @@ td { margin-bottom: 10px; display: flex; justify-content: center; -} +} \ No newline at end of file diff --git a/frontend/assets/css/localidades.css b/frontend/assets/css/localidades.css index 8cc9a36..ca970bd 100644 --- a/frontend/assets/css/localidades.css +++ b/frontend/assets/css/localidades.css @@ -115,7 +115,7 @@ padding: 20px; border-radius: 5px; transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease; - background-color: #f5f5f5; + background-color: #ffffff; max-width: 600px; margin: auto; font-size: 1em; diff --git a/frontend/assets/css/newtext.css b/frontend/assets/css/newtext.css index cf42ada..d042533 100644 --- a/frontend/assets/css/newtext.css +++ b/frontend/assets/css/newtext.css @@ -151,15 +151,9 @@ body { } -.buttonImgPosi { - width: 50px; - height: 50px; -} - -.buttonImgNega { - width: 50px; - height: 50px; - color: #007bff; +.like-deseleccionado, .dislike-deseleccionado, .like-seleccionado, .dislike-seleccionado { + width: 70px; + height: 70px; } .submitImg { @@ -167,15 +161,7 @@ body { height: auto; } - -.buttonImgPosiComment { - padding: 5px; - width: 50px; - height: 50px; -} - -.buttonImgNegaComment { - padding: 5px; - width: 50px; - height: 50px; +.buttonImgPosiComment, .buttonImgNegaComment{ + width: 70px; + height: 70px; } \ No newline at end of file diff --git a/frontend/assets/css/perfil.css b/frontend/assets/css/perfil.css index b67f092..afcde03 100644 --- a/frontend/assets/css/perfil.css +++ b/frontend/assets/css/perfil.css @@ -165,29 +165,61 @@ body { gap: 10px; } -/* New CSS for buttons */ -.profile-btn { +.profile-btn.like-btn { position: absolute; top: 10px; - background-color: #ffffff; + right: 0px; + background: none; border: none; - font-size: 1.5rem; cursor: pointer; + display: flex; + align-items: center; +} + +.like-icon-container { + width: 80px; /* Ajustar el tamaño del contenedor según sea necesario */ + height: 80px; /* Ajustar el tamaño del contenedor según sea necesario */ + display: flex; + align-items: center; + justify-content: center; +} + +.like-icon { + font-size: 25px; /* Ajustar el tamaño del ícono según sea necesario */ + color: #000; /* Color del ícono */ transition: color 0.3s ease; } -.profile-btn.like-btn { - right: 10px; +.profile-btn.like-btn:hover .like-icon { + color: #ff0000; /* Cambiar color del ícono al pasar el mouse */ } +/* CSS para el botón Editar en la esquina inferior derecha */ .profile-btn.edit-btn { - left: 10px; + position: absolute; + bottom: 10px; /* Ajustar la distancia desde abajo según sea necesario */ + right: 10px; /* Ajustar la distancia desde la derecha según sea necesario */ + background: none; + border: none; + cursor: pointer; + display: flex; + align-items: center; } -.profile-btn:hover { - color: #007BFF; +.edit-text { + font-size: 14px; /* Tamaño del texto "Editar" */ + margin-right: 5px; /* Espacio entre texto e ícono */ } +.edit-icon { + font-size: 20px; /* Tamaño del ícono */ + color: #000; /* Color del ícono */ + transition: color 0.3s ease; +} + +.profile-btn.edit-btn:hover .edit-icon { + color: #007bff; /* Cambiar color del ícono al pasar el mouse */ +} /* CSS for Modal */ .modal { display: none; diff --git a/frontend/assets/img/dislike-deseleccionado.png b/frontend/assets/img/dislike-deseleccionado.png new file mode 100644 index 0000000..19e01e7 Binary files /dev/null and b/frontend/assets/img/dislike-deseleccionado.png differ diff --git a/frontend/assets/img/dislike-seleccionado.png b/frontend/assets/img/dislike-seleccionado.png new file mode 100644 index 0000000..396e6b0 Binary files /dev/null and b/frontend/assets/img/dislike-seleccionado.png differ diff --git a/frontend/assets/img/like-deseleccionado.png b/frontend/assets/img/like-deseleccionado.png new file mode 100644 index 0000000..c180191 Binary files /dev/null and b/frontend/assets/img/like-deseleccionado.png differ diff --git a/frontend/assets/img/like-seleccionado.png b/frontend/assets/img/like-seleccionado.png new file mode 100644 index 0000000..179b66e Binary files /dev/null and b/frontend/assets/img/like-seleccionado.png differ diff --git a/frontend/assets/img/votoNega.png b/frontend/assets/img/votoNega.png deleted file mode 100644 index d8b9a1a..0000000 Binary files a/frontend/assets/img/votoNega.png and /dev/null differ diff --git a/frontend/assets/img/votoNega.webp b/frontend/assets/img/votoNega.webp deleted file mode 100644 index 397b531..0000000 Binary files a/frontend/assets/img/votoNega.webp and /dev/null differ diff --git a/frontend/assets/img/votoPosi.png b/frontend/assets/img/votoPosi.png deleted file mode 100644 index 1e58465..0000000 Binary files a/frontend/assets/img/votoPosi.png and /dev/null differ diff --git a/frontend/assets/img/votoPosi.webp b/frontend/assets/img/votoPosi.webp deleted file mode 100644 index f46c692..0000000 Binary files a/frontend/assets/img/votoPosi.webp and /dev/null differ diff --git a/frontend/assets/js/textFetch.js b/frontend/assets/js/textFetch.js index 6da1398..2275d56 100644 --- a/frontend/assets/js/textFetch.js +++ b/frontend/assets/js/textFetch.js @@ -240,9 +240,9 @@ function displayPostResponses(responseData) { const voteButtons = document.createElement('div'); voteButtons.className = 'votes'; voteButtons.innerHTML = ` - -

${response.puntuacion}

- + +

${response.puntuacion}

+ `; const commentInfo = document.createElement('div'); @@ -257,11 +257,11 @@ function displayPostResponses(responseData) { commentsContainer.appendChild(commentElement); commentElement.querySelector('.upvote').addEventListener('click', function() { - handleVote(commentElement.querySelector('.vote-count'), this, commentElement.querySelector('.downvote')); + handleVote(commentElement.querySelector(`#vote-count-${response.comentario_id}`), this, commentElement.querySelector('.downvote')); }); - + commentElement.querySelector('.downvote').addEventListener('click', function() { - handleVote(commentElement.querySelector('.vote-count'), this, commentElement.querySelector('.upvote')); + handleVote(commentElement.querySelector(`#vote-count-${response.comentario_id}`), this, commentElement.querySelector('.upvote')); }); }); } @@ -277,9 +277,9 @@ function displayAllPostResponses(responseData) { const voteButtons = document.createElement('div'); voteButtons.className = 'votes'; voteButtons.innerHTML = ` - -

${response.cantidad}

- + +

${response.puntuacion}

+ `; const commentInfo = document.createElement('div'); diff --git a/frontend/atencionestudiante.html b/frontend/atencionestudiante.html index 3743e32..5dd521f 100644 --- a/frontend/atencionestudiante.html +++ b/frontend/atencionestudiante.html @@ -225,7 +225,7 @@

Reseñas

diff --git a/frontend/cafeteria.html b/frontend/cafeteria.html index 68e4c4e..228b0a9 100644 --- a/frontend/cafeteria.html +++ b/frontend/cafeteria.html @@ -225,7 +225,7 @@

Reseñas

diff --git a/frontend/infoDocente.html b/frontend/infoDocente.html index 0a979ee..9f2f3cf 100644 --- a/frontend/infoDocente.html +++ b/frontend/infoDocente.html @@ -190,10 +190,11 @@
Nombre Completo

- tomaría de nuevo el curso + 100% tomaría de nuevo el curso
+
- nivel de dificultad + 3.0 nivel de dificultad
diff --git a/frontend/match.html b/frontend/match.html index 336888d..e7784ac 100644 --- a/frontend/match.html +++ b/frontend/match.html @@ -225,7 +225,7 @@

Reseñas

diff --git a/frontend/text.html b/frontend/text.html index 57a9a40..413c6d3 100644 --- a/frontend/text.html +++ b/frontend/text.html @@ -150,42 +150,41 @@
Nombre Completo
-
-
-
-
- Foto de perfil -
-

-

-

-
- -
-
-
- -

- -
-
-
-
- - -
-
- -
- -
-
- - +
+
+
+ Foto de perfil +
+

+

+

+
+ +
+
+
+ +

+ +
+
+
+
+ + +
+
+ +
+ +
+
+ + diff --git a/frontend/users-profile.html b/frontend/users-profile.html index 39c1abe..a1abbe0 100644 --- a/frontend/users-profile.html +++ b/frontend/users-profile.html @@ -187,8 +187,15 @@

- - + +

Mis preguntas

@@ -222,7 +229,6 @@

Editar Perfil

-