Skip to content

Commit

Permalink
CSSを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
YamazakiYusuke committed Jul 10, 2023
1 parent 22240aa commit 392d35a
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 25 deletions.
73 changes: 49 additions & 24 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,38 +1,63 @@
.App {
text-align: center;
/* App.css */

:root {
--background: #333;
--text: #f2f2f2;
--border: #666;
}

.App-logo {
height: 40vmin;
pointer-events: none;
body {
background-color: var(--background);
color: var(--text);
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
.game {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
height: 100vh;
}

.App-header {
background-color: #282c34;
min-height: 100vh;
.game-board {
margin-right: 50px;
}

.game-info {
display: flex;
flex-direction: column;
align-items: center;
align-items: flex-start;
font-size: 20px;
}

ol {
padding-left: 0;
}

ol li {
list-style-type: none;
}

.board-row {
display: flex;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
.square {
width: 60px;
height: 60px;
background-color: var(--background);
border: 1px solid var(--border);
color: var(--text);
font-size: 24px;
font-weight: bold;
line-height: 60px;
text-align: center;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
.status {
font-size: 24px;
font-weight: bold;
margin-bottom: 15px;
text-align: center;
}
1 change: 0 additions & 1 deletion src/components/Square.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '../App.css';
import PropTypes from 'prop-types';

function Square({value, onSquareClick}) {
return (<button className="square" onClick={onSquareClick}>{value}</button>);
Expand Down

0 comments on commit 392d35a

Please sign in to comment.