Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Verzidee committed Mar 31, 2024
2 parents f58d4a4 + f82eeee commit 3de7502
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 24 deletions.
4 changes: 2 additions & 2 deletions webapp/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Layout from './components/Layout'; // Asegúrate de importar el nuevo com
import Home from './components/pages/Home';
import Historial from './components/pages/Historial';
import Jugar from './components/pages/Jugar';
import SignUp from './components/AddUser';
import LogIn from './components/Login';
import SignUp from './components/pages/AddUser';
import LogIn from './components/pages/Login';
import { AuthProvider } from './AuthContext';
import Logout from "./components/Logout";
import AboutUS from "./components/pages/AboutUS";
Expand Down
37 changes: 22 additions & 15 deletions webapp/src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,31 @@ function Navbar() {
</li>
{isLoggedIn ? (
<>
<li className='nav-item'>
<Link to='/jugar' className='nav-links' onClick={closeMenu}>Jugar</Link>
</li>
<li className='nav-item'>
<Link to='/historial' className='nav-links' onClick={closeMenu}>Historial</Link>
</li>
<li className='nav-item'>
<Link to='/logout' className='nav-links-mobile' onClick={closeMenu}>Salir</Link>
</li>

<li className='nav-item'>
<Link to='/jugar' className='nav-links' onClick={closeMenu}>Jugar</Link>
</li>
<li className='nav-item'>
<Link to='/historial' className='nav-links' onClick={closeMenu}>Historial</Link>
</li>
<li className='nav-item'>
<Link to='/aboutus' className='nav-links' onClick={closeMenu}>About US</Link>
</li>
<li className='nav-item'>
<Link to='/logout' className='nav-links-mobile' onClick={closeMenu}>Salir</Link>
</li>
</>
) : (
<>
<li>
<Link to='/sign-up' className='nav-links-mobile' onClick={closeMenu}>Registrarse</Link>
</li>
<li>
<Link to='/login' className='nav-links-mobile' onClick={closeMenu}>Entrar</Link>
</li>
<li className='nav-item'>
<Link to='/aboutus' className='nav-links' onClick={closeMenu}>About US</Link>
</li>
<li>
<Link to='/sign-up' className='nav-links-mobile' onClick={closeMenu}>Registrarse</Link>
</li>
<li>
<Link to='/login' className='nav-links-mobile' onClick={closeMenu}>Entrar</Link>
</li>
</>
)}
</ul>
Expand Down
10 changes: 5 additions & 5 deletions webapp/src/components/pages/AboutUS.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ function AboutUS() {
src='images/design.jpg' // Asegúrate de cambiar esta imagen por una representativa del diseño gráfico
text='Estudiantes innovadores que transformaron la visión del proyecto con su diseño gráfico.'
label='Diseño Gráfico'
path='/areas/diseno-grafico'
path='https://arquisoft.github.io/wiq_es04d/'
/>
{/* Lógica de API de Wikidata */}
<CardItem
src='images/api-logic.jpg' // Asegúrate de cambiar esta imagen por una representativa de la lógica de API
text='Desarrollo de la lógica de integración con la API de Wikidata para enriquecer nuestro proyecto.'
label='API de Wikidata'
path='/areas/logica-api'
path='https://arquisoft.github.io/wiq_es04d/'
/>
</ul>
<ul className='cards__items'>
Expand All @@ -30,21 +30,21 @@ function AboutUS() {
src='images/database.jpg' // Asegúrate de cambiar esta imagen por una representativa de bases de datos
text='Implementación de soluciones de bases de datos para gestionar eficientemente la información.'
label='Base de Datos'
path='/areas/base-de-datos'
path='https://arquisoft.github.io/wiq_es04d/'
/>
{/* Documentación */}
<CardItem
src='images/documentation.jpg' // Asegúrate de cambiar esta imagen por una representativa de la documentación
text='Creación de documentación detallada para facilitar la comprensión y el uso del proyecto.'
label='Documentación'
path='/areas/documentacion'
path='https://arquisoft.github.io/wiq_es04d/'
/>
{/* Despliegue de la Aplicación */}
<CardItem
src='images/deployment.jpg' // Asegúrate de cambiar esta imagen por una representativa del despliegue
text='Técnicas y estrategias de despliegue aplicadas para poner en marcha nuestra aplicación.'
label='Despliegue'
path='/areas/despliegue'
path='https://arquisoft.github.io/wiq_es04d/'
/>
</ul>
</div>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useContext } from 'react';
import axios from 'axios';
import { Container, Typography, Button,TextField, Snackbar } from '@mui/material';
import { AuthContext } from '../AuthContext';
import { AuthContext } from '../../AuthContext';
import {Link, useNavigate} from "react-router-dom";

const Login = () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { render, fireEvent, screen, waitFor, act } from '@testing-library/react'
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import Login from './Login';
import {AuthProvider} from "../AuthContext";
import {AuthProvider} from "../../AuthContext";
import {MemoryRouter} from "react-router-dom";

const mockAxios = new MockAdapter(axios);
Expand Down

0 comments on commit 3de7502

Please sign in to comment.