Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webapp interface #59

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions webapp/src/components/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ const Menu = () => {
console.log(questions)
};

const openStoredQuestions = async () => {
navigation("/appQuestion")
}

return (
<Container component="main" maxWidth="xl" sx={{ marginTop: 4 }}>
<p>Bienvenido a wiq_06c por favor seleccione un modo de juego para comenzar partida:</p>
Expand All @@ -97,6 +101,14 @@ const Menu = () => {
>
Clasico
</button>
<button
name="openStoredQuestions"
onClick={() => openStoredQuestions()}
style={{backgroundColor: 'lightgrey'}}
>
Preguntas guardadas
</button>

</Container>
);

Expand Down
4 changes: 3 additions & 1 deletion webapp/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import {

import FirstGame from './components/FirstGame';
import Menu from './components/Menu';
import Login from './components/Login'
import Login from './components/Login';
import AppQuestion from './storeQuestion/App'


const root = ReactDOM.createRoot(document.getElementById('root'));
Expand All @@ -26,6 +27,7 @@ root.render(
<Routes>
<Route path="/" element={<App/>}></Route>
<Route path="/firstGame" element={<FirstGame/>}></Route>
<Route path="/appQuestion" element={<AppQuestion/>}></Route>
<Route path="/menu" element={<Menu/>}></Route>
<Route path="/login" element={<Login/>}></Route>
</Routes>
Expand Down