Skip to content

Commit

Permalink
Merge branch 'webapp_interface' of https://github.com/Arquisoft/wiq_es6c
Browse files Browse the repository at this point in the history
 into webapp_interface
  • Loading branch information
uo288574 committed Apr 29, 2024
2 parents 97fddc2 + 0c925cb commit a45658d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/nav/Nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ export const Nav = () => {
<Link to='/history' style={{color:'#0F0F0F', textDecoration: 'none', marginRight: '2vw', fontSize: '1.25rem'}}>
Historial
</Link>
<Link to='/appQuestion' style={{color:'#0F0F0F', textDecoration: 'none', fontSize: '1.25rem'}}>
<Link to='/appQuestion' style={{color:'#0F0F0F', textDecoration: 'none', marginRight: '2vw', fontSize: '1.25rem'}}>
Almacén de preguntas
</Link>
<Link to='/users' style={{color:'white', textDecoration: 'none'}}>
<Link to='/users' style={{color:'#0F0F0F', textDecoration: 'none', fontSize: '1.25rem'}}>
Usuarios
</Link>
</Container>
Expand All @@ -44,7 +44,7 @@ export const Nav = () => {
<HelpIcon sx={{ color: "#0F0F0F" }}/>
</IconButton>
</Link>
<Link to='/login' style={{color:'white', textDecoration: 'none'}}>
<Link to='/' style={{color:'white', textDecoration: 'none'}}>
<IconButton size="large" color="inherit" >
<LogoutIcon sx={{ color: "#0F0F0F" }}/>
</IconButton>
Expand Down
7 changes: 6 additions & 1 deletion webapp/src/userStats/components/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import React from 'react';
function Question(props) {
const { newQuestion } = props;

console.log(newQuestion)

return (
<div className='border'>
<div className='inner'>
<div className="header">
<h4>{newQuestion.title}</h4>
<h4>{newQuestion.title}</h4>
</div>
<div className='grid'>
{newQuestion.answers.map((answer, index) => {
Expand All @@ -21,6 +23,9 @@ function Question(props) {
}
})}
</div>
{newQuestion.ansIndex[0] === -1 ? (
<h5 className='noAnswer'>X Sin respuesta</h5>
) : null}
</div>
</div>
);
Expand Down
4 changes: 4 additions & 0 deletions webapp/src/userStats/css/Game.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,10 @@
gap: 1%;
}

#history .noAnswer{
color: red;
}

@media (max-width: 720px) {
#history .game{
display: grid;
Expand Down

0 comments on commit a45658d

Please sign in to comment.