Skip to content

Commit

Permalink
Add styled board
Browse files Browse the repository at this point in the history
  • Loading branch information
lancesnider committed Jul 23, 2016
1 parent fababb3 commit 6e76204
Show file tree
Hide file tree
Showing 3 changed files with 115 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<head>
<meta charset="UTF-8">
<title>Math Boggle</title>
<link rel="stylesheet" type="text/css" href="math-boggle/styles.css">
</head>
<body>
<div id="math-boggle"></div>
Expand Down
49 changes: 47 additions & 2 deletions math-boggle/GameBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,60 @@ import React from 'react'
class Operands extends React.Component {
render(){
return (
<div>Operands</div>
<div className="operands">
<div>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
</div>
<div>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
</div>
<div>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
</div>
<div>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
</div>
<div>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
<button className="button">9</button>
</div>
</div>
)
}
}

class Operators extends React.Component {
render(){
return (
<div>Operators</div>
<div>
<div className="operators">
<button className="button">+</button>
<button className="button">-</button>
<button className="button">*</button>
<button className="button">/</button>
<button className="button">^</button>
</div>
<button className="button equals">=</button>
</div>
)
}
}
Expand Down
67 changes: 67 additions & 0 deletions math-boggle/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
body {
background-color: #272822;
color: white;
font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace;
}

.button {
width: 60px;
height: 60px;
text-decoration: none;
border: 1px solid black;
font-size: 18px;
font-family: Courier New,Courier,Lucida Sans Typewriter,Lucida Typewriter,monospace;
}

.button:focus {
outline: 0;
}




.operands .button {
background-color: #e0e0e0;
color: black;
}

.operands .button:hover {
background-color: #ccc;
}

.operands .button:focus {
outline: 0;
}

.operands .button:disabled {
background-color: #ccc;
}





.operators .button {
background-color: #f5923e;
color: white;
font-size: 24px;
}

.operators .button:hover {
background-color: #c2732f;
}





.equals {
color: white;
background-color: #7b9a38;
width: 300px;
font-size: 32px;
}

.equals:hover {
background-color: #688035;
}

0 comments on commit 6e76204

Please sign in to comment.