generated from Arquisoft/wiq_0
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #49 from Arquisoft/GameMenuView
Game menu view
- Loading branch information
Showing
4 changed files
with
70 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
button{ | ||
width: 100%; | ||
height: 45px; | ||
background: darkblue; | ||
border: none; | ||
outline: none; | ||
border-radius: 40px; | ||
box-shadow: 0 0 10px black; | ||
cursor:pointer; | ||
font-size: 16px; | ||
color: white; | ||
font-weight: 700; | ||
margin: 0.5em; | ||
} | ||
|
||
div{ | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
height: 100vh; | ||
} |
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,27 @@ | ||
import './GameMenu.css'; | ||
export default function GameMenu() { | ||
return ( | ||
<div> | ||
<h2>Game</h2> | ||
<ButtonHistoricalData /> | ||
<ButtonNewGame /> | ||
</div> | ||
); | ||
} | ||
|
||
function ButtonHistoricalData() { | ||
function handleClick() { | ||
//ir a la vista de historical data | ||
alert("Historical DAta"); | ||
} | ||
return <button onClick={handleClick}>Historical Data</button>; | ||
} | ||
|
||
function ButtonNewGame() { | ||
function handleClick() { | ||
//ir a la vista de la primera pregunta | ||
alert("New game"); | ||
} | ||
return <button onClick={handleClick}>Create New Game</button>; | ||
} | ||
|