forked from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #148 from Arquisoft/develop
🔀 Game design responsive
- Loading branch information
Showing
18 changed files
with
349 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const request = require('supertest'); | ||
const { MongoMemoryServer } = require('mongodb-memory-server'); | ||
|
||
let mongoServer; | ||
let app; | ||
|
||
beforeAll(async () => { | ||
mongoServer = await MongoMemoryServer.create(); | ||
const mongoUri = mongoServer.getUri(); | ||
process.env.MONGODB_URI = mongoUri; | ||
app = require('./creation-service'); | ||
}); | ||
|
||
afterAll(async () => { | ||
app.close(); | ||
await mongoServer.stop(); | ||
}); | ||
|
||
describe('Retrieve Service', () => { | ||
it('should add a new user on GET /createquestion', async () => { | ||
|
||
const response = await request(app).get('/createquestion'); | ||
expect(response.status).toBe(200); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const request = require('supertest'); | ||
const { MongoMemoryServer } = require('mongodb-memory-server'); | ||
|
||
let mongoServer; | ||
let app; | ||
|
||
beforeAll(async () => { | ||
mongoServer = await MongoMemoryServer.create(); | ||
const mongoUri = mongoServer.getUri(); | ||
process.env.MONGODB_URI = mongoUri; | ||
app = require('./retrieve-service'); | ||
}); | ||
|
||
afterAll(async () => { | ||
app.close(); | ||
await mongoServer.stop(); | ||
}); | ||
|
||
describe('Retrieve Service', () => { | ||
it('should add a new user on GET /getquestionshistory', async () => { | ||
|
||
const response = await request(app).get('/getquestionshistory'); | ||
expect(response.status).toBe(200); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.footer { | ||
position: absolute; | ||
width: 100%; | ||
background-color: #f5f5f5; | ||
padding: 0.5rem; | ||
text-align: center; | ||
margin-top: 90vh; | ||
height: auto; | ||
bottom: 0; | ||
} | ||
|
||
.footer a { | ||
color: #a5b8d4; | ||
text-decoration: none; | ||
font-weight: 600; | ||
} | ||
|
||
.footer a:hover { | ||
text-decoration: underline; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import './Footer.css'; // Importa el archivo de estilos CSS | ||
import { AppBar, Toolbar, Typography } from '@mui/material'; | ||
|
||
const Footer = () => { | ||
return ( | ||
<AppBar className="footer"> | ||
<Toolbar> | ||
<Typography variant="body1" className='fs-6' color="textSecondary"> | ||
© {new Date().getFullYear()} Hecho con ❤️ por <a href="https://github.com/coral2742">Coral</a>, <a href="https://github.com/baraganio">Carlos</a>, <a href="https://github.com/uo264915">Pablo</a> y <a href="https://github.com/UO290054">Raymond</a>. ASW - Curso 2023-24 | ||
</Typography> | ||
</Toolbar> | ||
</AppBar> | ||
); | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,64 @@ | ||
button[title="sigPreg"] { | ||
margin: 1em; | ||
margin-left: 2em; | ||
background-color: rgba(31, 60, 134, 0.764); | ||
} | ||
|
||
button[title="contador"]:disabled{ | ||
margin: 1em; | ||
background-color: rgba(31, 60, 134, 0.764); | ||
button[title="contador"]:disabled { | ||
margin: 0.5em; | ||
background-color: #0155B7; | ||
color: white; | ||
padding: 0.5rem; | ||
} | ||
|
||
button[title="btnsPreg"]{ | ||
button[title="btnsPreg"] { | ||
margin: 0.5em; | ||
padding-top: 0.2em; | ||
padding-bottom: 0.2em; | ||
background-color: rgba(29, 86, 109, 0.764); | ||
background-color: #4c8dbf; | ||
font-weight: 700; | ||
} | ||
|
||
button[title="puntuacion"]:disabled { | ||
margin: 1em; | ||
background-color: #0155B7; | ||
color: white; | ||
padding-top: 0.4em; | ||
padding-bottom: 0.2em; | ||
font-size: 1.5em; | ||
} | ||
|
||
|
||
button[title="volver"] { | ||
margin-top: 0.5em; | ||
} | ||
|
||
button[title="puntuacion"]:disabled{ | ||
|
||
button[title="volver"]:disabled { | ||
margin: 1em; | ||
background-color: rgba(31, 60, 134, 0.764); | ||
background-color: #0155B7; | ||
color: white; | ||
padding-top: 0.4em; | ||
padding-bottom: 0.2em; | ||
font-size: 1.5em; | ||
} | ||
|
||
.game-question h2 { | ||
font-size: 1.5rem; | ||
} | ||
|
||
.button-container { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
} | ||
|
||
|
||
@media (max-width: 600px) { | ||
.button-container { | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 0; | ||
margin: 0; | ||
} | ||
|
||
.button-container button { | ||
font-size: 12px; | ||
padding: 5px 10px; | ||
} | ||
} |
Oops, something went wrong.