Skip to content

Commit ff61c0c

Browse files
feat: solve 1st stage of the Hyperskill project "Minesweeper"
1 parent e4d09f2 commit ff61c0c

File tree

6 files changed

+116
-0
lines changed

6 files changed

+116
-0
lines changed

hyperskill/05_minesweeper/01/.gitkeep

Whitespace-only changes.
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
2+
3+
.App {
4+
text-align: center;
5+
}
6+
7+
.App-logo {
8+
height: 40vmin;
9+
pointer-events: none;
10+
}
11+
12+
@media (prefers-reduced-motion: no-preference) {
13+
.App-logo {
14+
animation: App-logo-spin infinite 20s linear;
15+
}
16+
}
17+
18+
.App-header {
19+
background-color: #282c34;
20+
min-height: 100vh;
21+
display: flex;
22+
flex-direction: column;
23+
align-items: center;
24+
justify-content: center;
25+
font-size: calc(10px + 2vmin);
26+
color: white;
27+
}
28+
29+
.App-link {
30+
color: #61dafb;
31+
}
32+
33+
@keyframes App-logo-spin {
34+
from {
35+
transform: rotate(0deg);
36+
}
37+
to {
38+
transform: rotate(360deg);
39+
}
40+
}
41+
42+
.App p {
43+
font-family: 'Roboto', sans-serif;
44+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import React from 'react';
2+
import bomb from './bomb.svg';
3+
import './App.css';
4+
5+
function App() {
6+
return (
7+
<div className="App">
8+
<header className="App-header">
9+
<img src={bomb} className="App-logo" alt="logo" />
10+
<p>
11+
Minesweeper is loading...
12+
</p>
13+
</header>
14+
</div>
15+
);
16+
}
17+
18+
export default App;
Lines changed: 30 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
body {
2+
margin: 0;
3+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5+
sans-serif;
6+
-webkit-font-smoothing: antialiased;
7+
-moz-osx-font-smoothing: grayscale;
8+
}
9+
10+
code {
11+
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
12+
monospace;
13+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import React from 'react';
2+
import ReactDOM from 'react-dom';
3+
import './index.css';
4+
import App from './App';
5+
6+
ReactDOM.render(
7+
<React.StrictMode>
8+
<App />
9+
</React.StrictMode>,
10+
document.getElementById('root')
11+
);

0 commit comments

Comments
 (0)