Skip to content

Commit

Permalink
Changed css and added rules to start page
Browse files Browse the repository at this point in the history
  • Loading branch information
l-yang-05 committed Oct 10, 2019
1 parent df62514 commit 7af6c37
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 9 deletions.
36 changes: 33 additions & 3 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,47 @@ input {
}

.container-start{
margin-top: 10%;
margin-top: 5%;
text-align: center;
}

.container-start header{
font-weight: bold;
font-size: 110px;
font-size: 80px;
}

.container-start h2{
font-size: 40px;
color:lemonchiffon;
margin: 0;
}

.container-start h3{
font-size: 36px;
}

.container-start p{
font-size: 50px;
font-size: 25px;
}

.difficulty{
margin-top:100px;

}

.desc{
color: lemonchiffon;
width: 60%;
display: flex;
flex-direction: column;
align-self: center;
justify-content: center;
margin: 0 auto;
text-align: left;
}

.desc p{
font-size: 20px;
}

.container-score{
Expand Down
19 changes: 13 additions & 6 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,12 +186,19 @@ const App = () => {
else {
return (
<div className="container-start">
<header className="Title_Start">Game Start</header>
<p>Select the difficulty:</p>
<form>
<button type='button' onClick={standard}>Standard</button>
<button type='button' onClick={expert}>Expert</button>
</form>
<header className="Title_Start">Number Guessing Game</header>
<h2 className="rules">Rules:</h2>
<p className="desc">
First, choose a difficulty! (Easy: 1-10; Hard: 1-100). Enter in a number to see if your guess was right. Keep on trying
to win and try beating your highscore! You can do it! :D
</p>
<div className="difficulty">
<h3>Select the difficulty:</h3>
<form>
<button type='button' onClick={standard}>Standard</button>
<button type='button' onClick={expert}>Expert</button>
</form>
</div>
</div>
);
}
Expand Down

0 comments on commit 7af6c37

Please sign in to comment.