Skip to content

Commit

Permalink
Style Markup Added
Browse files Browse the repository at this point in the history
  • Loading branch information
H.$ committed Apr 2, 2024
1 parent 17a4d19 commit ab7b877
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
33 changes: 18 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
<script src="script.js" defer></script>
</head>
<body>
<div class="board" id="board">
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
</div>

<div class="winning-message" id="winningMessage">
<div data-winning-message-text></div>
<button id="restartButton">Restart</button>
<div class="game-board">
<h1>TicTacToe</h1>
<div class="board" id="board">
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
<div class="ceil" data-ceil></div>
</div>

<div class="winning-message" id="winningMessage">
<div data-winning-message-text></div>
<button id="restartButton">Restart</button>
</div>
</div>
</body>
</html>
11 changes: 10 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ body {

.board {
width: 100vw;
height: 100vh;
height: 60vh;
display: grid;
justify-content: center;
align-content: center;
Expand Down Expand Up @@ -133,6 +133,15 @@ body {
display: flex;
}

.game-board {
height: 100vh;
width: 100vw;
text-align: center;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
display: flex;
flex-direction: column;
justify-content: center;
}



Expand Down

0 comments on commit ab7b877

Please sign in to comment.