From fe164c08dcf16341fb7a0da64ecc047a4444ac1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Monteser=C3=ADn=20Rodr=C3=ADguez?= Date: Thu, 11 Apr 2024 20:39:36 +0200 Subject: [PATCH 1/9] Added some visual changes --- webapp/src/components/home/Home.css | 2 +- webapp/src/components/home/Home.js | 19 +++++++++++-------- webapp/tailwind.config.js | 4 +++- 3 files changed, 15 insertions(+), 10 deletions(-) diff --git a/webapp/src/components/home/Home.css b/webapp/src/components/home/Home.css index 676732e4..87b1baa8 100644 --- a/webapp/src/components/home/Home.css +++ b/webapp/src/components/home/Home.css @@ -1,7 +1,7 @@ p,h1,h2,h3,h4,h5,h6,span { font-family: Consolas, monaco, serif; - color:#FFFFFF; + /*color:#FFFFFF;*/ } .buttonGradient { diff --git a/webapp/src/components/home/Home.js b/webapp/src/components/home/Home.js index ad611281..8f9983d5 100644 --- a/webapp/src/components/home/Home.js +++ b/webapp/src/components/home/Home.js @@ -78,8 +78,8 @@ export const Home = () => alignItems: "left" }} - className="bg-white dark:bg-dark-mode text-black dark:text-white " + className="bg-teal-50 dark:bg-zinc-800 text-black dark:text-white " > WiQ WiQ @@ -136,12 +136,15 @@ export const Home = () => from-cyan-50 via-cyan-300 to blue-500 dark:from-orange-500 dark:via-purple-500 dark:to-pink-500 buttonGradient"> - JUGAR + JUGAR
-
@@ -167,7 +170,7 @@ export const Home = () => transform: 'translateY(-50%) translateX(-50%)', left: '50%' }}> - + @@ -178,7 +181,7 @@ export const Home = () =>
{tags.map((tag) => toggleTag(e, tag)} variant="outlined" diff --git a/webapp/tailwind.config.js b/webapp/tailwind.config.js index 447314c3..d6f84818 100644 --- a/webapp/tailwind.config.js +++ b/webapp/tailwind.config.js @@ -7,7 +7,9 @@ module.exports = { theme: { extend: { backgroundColor: { - 'dark-mode': '#171717' + 'dark-mode': '#171717', + 'dark-purple': '#2A153E', + 'light-blue': '#88d5f1', }, backgroundImage: { 'light': "url('/src/media/wiq_banner.light.png')", From 6768c8a6a279b07f2af9e1fe579e245bd39b7e88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Monteser=C3=ADn=20Rodr=C3=ADguez?= Date: Thu, 11 Apr 2024 21:26:21 +0200 Subject: [PATCH 2/9] Some visual changes and added about us --- webapp/src/components/home/Home.css | 4 +--- webapp/src/components/home/Home.js | 4 +++- webapp/src/components/nav/Nav.js | 8 +++++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/webapp/src/components/home/Home.css b/webapp/src/components/home/Home.css index 87b1baa8..a604f33d 100644 --- a/webapp/src/components/home/Home.css +++ b/webapp/src/components/home/Home.css @@ -55,13 +55,11 @@ p,h1,h2,h3,h4,h5,h6,span { div.tagChip { border-width: 2px; - margin:0.5em; - border-color: #c08f49; } div.tagChip[data-active="true"]{ - background: rgb(49, 5, 87); + background: #ebd3b2; } diff --git a/webapp/src/components/home/Home.js b/webapp/src/components/home/Home.js index 8f9983d5..15275b02 100644 --- a/webapp/src/components/home/Home.js +++ b/webapp/src/components/home/Home.js @@ -181,14 +181,16 @@ export const Home = () =>
{tags.map((tag) => toggleTag(e, tag)} variant="outlined" label={tag.name} data-active={tag.active} + color = "secondary" > + )} diff --git a/webapp/src/components/nav/Nav.js b/webapp/src/components/nav/Nav.js index d57d655b..4dd9d0c3 100644 --- a/webapp/src/components/nav/Nav.js +++ b/webapp/src/components/nav/Nav.js @@ -127,7 +127,13 @@ export const Nav = () => { > WIQ - + + Sobre nosotros + From 48016ca0631b10bf88bab03285ad6ba19f300f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Monteser=C3=ADn=20Rodr=C3=ADguez?= Date: Sat, 13 Apr 2024 20:26:22 +0200 Subject: [PATCH 3/9] Created footer --- webapp/package-lock.json | 171 +++++++++++++++++++++++ webapp/package.json | 1 + webapp/src/components/footer/Footer.js | 15 ++ webapp/src/components/game/Game.js | 2 + webapp/src/components/history/History.js | 2 + webapp/src/components/home/Home.js | 2 + webapp/src/components/profile/Profile.js | 3 +- 7 files changed, 195 insertions(+), 1 deletion(-) create mode 100644 webapp/src/components/footer/Footer.js diff --git a/webapp/package-lock.json b/webapp/package-lock.json index 35532466..6f178d89 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -17,6 +17,7 @@ "@testing-library/user-event": "^14.5.2", "axios": "^1.6.5", "history": "^5.3.0", + "mdb-react-ui-kit": "^7.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-native": "^0.73.5", @@ -13732,6 +13733,44 @@ "node": ">=0.10.0" } }, + "node_modules/framer-motion": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.18.0.tgz", + "integrity": "sha512-oGlDh1Q1XqYPksuTD/usb0I70hq95OUzmL9+6Zd+Hs4XV0oaISBa/UUMSjYiq6m8EUF32132mOJ8xVZS+I0S6w==", + "dependencies": { + "tslib": "^2.4.0" + }, + "optionalDependencies": { + "@emotion/is-prop-valid": "^0.8.2" + }, + "peerDependencies": { + "react": "^18.0.0", + "react-dom": "^18.0.0" + }, + "peerDependenciesMeta": { + "react": { + "optional": true + }, + "react-dom": { + "optional": true + } + } + }, + "node_modules/framer-motion/node_modules/@emotion/is-prop-valid": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", + "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", + "optional": true, + "dependencies": { + "@emotion/memoize": "0.7.4" + } + }, + "node_modules/framer-motion/node_modules/@emotion/memoize": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", + "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", + "optional": true + }, "node_modules/fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", @@ -21359,6 +21398,40 @@ "integrity": "sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==", "dev": true }, + "node_modules/mdb-react-ui-kit": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/mdb-react-ui-kit/-/mdb-react-ui-kit-7.2.0.tgz", + "integrity": "sha512-2AoW02DL2K1k4X4PoG8k1VGkWTTskykvGpKn7fLkGOmUD2eEXOKzLhSXgw3HbaYqg4ikWM2tL86M4oxRCtZdWg==", + "dependencies": { + "@popperjs/core": "2.11.5", + "clsx": "1.1.1", + "framer-motion": "^10.16.4", + "react-popper": "2.3.0" + }, + "peerDependencies": { + "@types/react": "^18.0.9", + "@types/react-dom": "^18.0.3", + "react": "^18.1.0", + "react-dom": "^18.1.0" + } + }, + "node_modules/mdb-react-ui-kit/node_modules/@popperjs/core": { + "version": "2.11.5", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.5.tgz", + "integrity": "sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/mdb-react-ui-kit/node_modules/clsx": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", + "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==", + "engines": { + "node": ">=6" + } + }, "node_modules/mdn-data": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", @@ -25774,6 +25847,11 @@ "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" }, + "node_modules/react-fast-compare": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", + "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" + }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", @@ -26018,6 +26096,20 @@ "node": ">=12" } }, + "node_modules/react-popper": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz", + "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==", + "dependencies": { + "react-fast-compare": "^3.0.1", + "warning": "^4.0.2" + }, + "peerDependencies": { + "@popperjs/core": "^2.0.0", + "react": "^16.8.0 || ^17 || ^18", + "react-dom": "^16.8.0 || ^17 || ^18" + } + }, "node_modules/react-refresh": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", @@ -30922,6 +31014,14 @@ "makeerror": "1.0.12" } }, + "node_modules/warning": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", + "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", + "dependencies": { + "loose-envify": "^1.0.0" + } + }, "node_modules/watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", @@ -42010,6 +42110,32 @@ "map-cache": "^0.2.2" } }, + "framer-motion": { + "version": "10.18.0", + "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-10.18.0.tgz", + "integrity": "sha512-oGlDh1Q1XqYPksuTD/usb0I70hq95OUzmL9+6Zd+Hs4XV0oaISBa/UUMSjYiq6m8EUF32132mOJ8xVZS+I0S6w==", + "requires": { + "@emotion/is-prop-valid": "^0.8.2", + "tslib": "^2.4.0" + }, + "dependencies": { + "@emotion/is-prop-valid": { + "version": "0.8.8", + "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", + "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", + "optional": true, + "requires": { + "@emotion/memoize": "0.7.4" + } + }, + "@emotion/memoize": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", + "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", + "optional": true + } + } + }, "fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", @@ -47809,6 +47935,29 @@ "integrity": "sha512-q9JtQJKjpsVxCRVgQ+WapguSbKC3SQ5HEzFGPAJMStgh3QjCawp00UKv3MTTAArTmGmmPUvllHZoNbZ3gs0I+Q==", "dev": true }, + "mdb-react-ui-kit": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/mdb-react-ui-kit/-/mdb-react-ui-kit-7.2.0.tgz", + "integrity": "sha512-2AoW02DL2K1k4X4PoG8k1VGkWTTskykvGpKn7fLkGOmUD2eEXOKzLhSXgw3HbaYqg4ikWM2tL86M4oxRCtZdWg==", + "requires": { + "@popperjs/core": "2.11.5", + "clsx": "1.1.1", + "framer-motion": "^10.16.4", + "react-popper": "2.3.0" + }, + "dependencies": { + "@popperjs/core": { + "version": "2.11.5", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.5.tgz", + "integrity": "sha512-9X2obfABZuDVLCgPK9aX0a/x4jaOEweTTWE2+9sr0Qqqevj2Uv5XorvusThmc9XGYpS9yI+fhh8RTafBtGposw==" + }, + "clsx": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.1.1.tgz", + "integrity": "sha512-6/bPho624p3S2pMyvP5kKBPXnI3ufHLObBFCfgx+LkeR5lg2XYy2hqZqUf45ypD8COn2bhgGJSUE+l5dhNBieA==" + } + } + }, "mdn-data": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.4.tgz", @@ -50906,6 +51055,11 @@ "resolved": "https://registry.npmjs.org/react-error-overlay/-/react-error-overlay-6.0.11.tgz", "integrity": "sha512-/6UZ2qgEyH2aqzYZgQPxEnz33NJ2gNsnHA2o5+o4wW9bLM/JYQitNP9xPhsXwC08hMMovfGe/8retsdDsczPRg==" }, + "react-fast-compare": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-3.2.2.tgz", + "integrity": "sha512-nsO+KSNgo1SbJqJEYRE9ERzo7YtYbou/OqjSQKxV7jcKox7+usiUVZOAC+XnDOABXggQTno0Y1CpVnuWEc1boQ==" + }, "react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", @@ -51104,6 +51258,15 @@ } } }, + "react-popper": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz", + "integrity": "sha512-e1hj8lL3uM+sgSR4Lxzn5h1GxBlpa4CQz0XLF8kx4MDrDRWY0Ena4c97PUeSX9i5W3UAfDP0z0FXCTQkoXUl3Q==", + "requires": { + "react-fast-compare": "^3.0.1", + "warning": "^4.0.2" + } + }, "react-refresh": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.11.0.tgz", @@ -54874,6 +55037,14 @@ "makeerror": "1.0.12" } }, + "warning": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", + "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", + "requires": { + "loose-envify": "^1.0.0" + } + }, "watchpack": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz", diff --git a/webapp/package.json b/webapp/package.json index 4d01ad14..4fbe4c77 100644 --- a/webapp/package.json +++ b/webapp/package.json @@ -12,6 +12,7 @@ "@testing-library/user-event": "^14.5.2", "axios": "^1.6.5", "history": "^5.3.0", + "mdb-react-ui-kit": "^7.2.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-native": "^0.73.5", diff --git a/webapp/src/components/footer/Footer.js b/webapp/src/components/footer/Footer.js new file mode 100644 index 00000000..038d507e --- /dev/null +++ b/webapp/src/components/footer/Footer.js @@ -0,0 +1,15 @@ +import React from 'react'; +import { MDBFooter } from 'mdb-react-ui-kit'; + +export const Footer= () => { + return ( + +
+ © {new Date().getFullYear()} Copyright:{' '} + + MDBootstrap.com + +
+
+ ); +} \ No newline at end of file diff --git a/webapp/src/components/game/Game.js b/webapp/src/components/game/Game.js index 9e66bce1..cf3dabdb 100644 --- a/webapp/src/components/game/Game.js +++ b/webapp/src/components/game/Game.js @@ -4,6 +4,7 @@ import {Button, Box, Container, CssBaseline,Typography, Grid, Paper, LinearProgr import bannerDark from '../../media/wiq_banner.png'; import { startNewGame, nextQuestion, awnser, getEndTime, getGameSettings } from "../../services/game.service"; import { Nav } from '../nav/Nav'; +import {Footer} from '../footer/Footer'; import {useLocation} from "react-router-dom"; import Swal from 'sweetalert2'; @@ -258,6 +259,7 @@ export const Game = () => { +