+ {juegoIniciado ? (
+ // Muestra otro componente o contenido cuando el juego está iniciado
+
+ ) : (
+ // Muestra el contenido inicial con el botón "Jugar"
+
+
+
+
+
+ )}
+
+
+ )
+};
+
+export default HomeScreen;
+
\ No newline at end of file
diff --git a/webapp/src/components/Login.js b/webapp/src/components/Login.js
index 0ad6268e..06804794 100644
--- a/webapp/src/components/Login.js
+++ b/webapp/src/components/Login.js
@@ -2,6 +2,8 @@
import React, { useState } from 'react';
import axios from 'axios';
import { Container, Typography, TextField, Button, Snackbar } from '@mui/material';
+import HomeScreen from './HomeScreen';
+import { Link } from "react-router-dom";
const Login = () => {
const [username, setUsername] = useState('');
@@ -37,12 +39,7 @@ const Login = () => {
{loginSuccess ? (
-
- Hello {username}!
-
-
- Your account was created on {new Date(createdAt).toLocaleDateString()}.
-
+
)}
);
};
-export default Login;
+export default Login;
\ No newline at end of file
diff --git a/webapp/src/index.js b/webapp/src/index.js
index bd72ce49..bf6590a7 100644
--- a/webapp/src/index.js
+++ b/webapp/src/index.js
@@ -8,9 +8,11 @@ import 'bootstrap/dist/css/bootstrap.min.css';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
-
+
+
-
+
+
);
// If you want to start measuring performance in your app, pass a function