diff --git a/src/App.js b/src/App.js
index 6659750..4509176 100644
--- a/src/App.js
+++ b/src/App.js
@@ -123,6 +123,7 @@ function App() {
gameClient.createNewGame(rows, cols, mines).then(response => {
setActiveGame(response);
setFlags(mines);
+ document.getElementsByClassName('reset')[0].innerHTML = '🙂';
generateDummyBoard();
});
};
@@ -133,6 +134,7 @@ function App() {
return (
-
{dummyBoard.map((cols, rowId) => (
@@ -25,7 +24,6 @@ const Board = ({ dummyBoard, handleCellClick, handleCellContextMenu }) => {
))}
-
);
};
diff --git a/src/components/Board/styles.scss b/src/components/Board/styles.scss
index 51e042a..4248bd4 100644
--- a/src/components/Board/styles.scss
+++ b/src/components/Board/styles.scss
@@ -2,19 +2,7 @@
.board {
display: flex;
-
- &-col-left,
- &-col-right {
- flex: 1 1 auto;
- }
-
- &-col-center {
- flex: 0 0 auto;
- border-width: 3px;
- border-style: solid;
- border-color: darken($gray, 20%) lighten($gray, 20%) lighten($gray, 20%)
- darken($gray, 20%);
- }
+ justify-content: center;
&-row {
display: flex;
diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js
index 691889f..424bd73 100644
--- a/src/components/Header/Header.js
+++ b/src/components/Header/Header.js
@@ -17,32 +17,46 @@ const Header = ({
return (
-
-
{flags}
+
+
{flags}
{
@@ -54,7 +68,7 @@ const Header = ({
}}>
🙂
-
000
+
000
);
diff --git a/src/components/Header/styles.scss b/src/components/Header/styles.scss
index a23d641..ba45076 100644
--- a/src/components/Header/styles.scss
+++ b/src/components/Header/styles.scss
@@ -1,19 +1,50 @@
@import '../../assets/scss/variables';
.header {
- max-width: 500px;
+ max-width: 400px;
width: 100%;
- padding: 5px;
margin: 0 auto;
display: flex;
justify-content: space-between;
flex-direction: column;
+ &-col-left,
+ &-col-right {
+ flex: 1 1 auto;
+ }
+
+ &-col-center {
+ flex: 0 0 auto;
+ border-width: 3px;
+ border-style: solid;
+ border-color: darken($gray, 20%) lighten($gray, 20%) lighten($gray, 20%)
+ darken($gray, 20%);
+ }
+
.settings {
- max-width: 221px;
display: flex;
justify-content: center;
- margin: 10px auto;
+ border-width: 3px;
+ border-style: solid;
+ border-color: lighten($gray, 20%) darken($gray, 20%) darken($gray, 20%)
+ lighten($gray, 20%);
+ padding-bottom: 5px;
+
+ .form-control {
+ display: flex;
+ flex-direction: column;
+
+ &:last-child {
+ align-items: flex-end;
+ justify-content: flex-end;
+ }
+
+ label {
+ font-size: 75%;
+ text-transform: uppercase;
+ padding: 5px;
+ }
+ }
input {
width: 40px;
@@ -22,18 +53,28 @@
text-align: center;
background: $gray-light;
margin: 0 2px;
+ border-color: darken($gray, 20%) lighten($gray, 20%) lighten($gray, 20%)
+ darken($gray, 20%);
+ font-size: 120%;
}
.button {
cursor: pointer;
margin: 0 2px;
+ height: 38px;
+ border-color: lighten($gray, 20%) darken($gray, 20%) darken($gray, 20%)
+ lighten($gray, 20%);
}
}
- .canvas {
+ &-actions {
display: flex;
justify-content: space-between;
flex-direction: row;
+ border-width: 3px;
+ border-style: solid;
+ border-color: lighten($gray, 20%) darken($gray, 20%) darken($gray, 20%)
+ lighten($gray, 20%);
.led-panel {
font-family: 'Space Mono', monospace;
@@ -47,10 +88,11 @@
}
.reset {
- width: 30px;
- line-height: 30px;
+ width: 24px;
+ line-height: 24px;
text-align: center;
cursor: pointer;
+ margin: 3px;
}
}
}