Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solved issue #103- Add the footer #127

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 84 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,17 @@
<html lang="en">

<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- Stylesheet -->
<link rel="stylesheet" href="style.css" />

<!-- JavaScript files -->
<script defer src="./js/edge.js"></script>
<script defer src="./js/box.js"></script>
<script defer src="./js/board.js"></script>
<script defer src="./js/game.js"></script>

<!-- Stylesheet -->
<link rel="stylesheet" href="style.css" />
Expand All @@ -17,14 +26,79 @@
<script defer src="./js/game.js"></script>
<script defer src="./js/theme.js"></script>

<!-- Logo of the game -->
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">

<!-- Title of the game -->
<title>Dots & Boxes Game</title>
<!-- Logo of the game -->
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">

<!-- Title of the game -->
<title>Dots & Boxes Game</title>
</head>

<body>
<!-- Setting Page -->
<div class="settings">
<div class="form">
<h1 class="heading"
style="font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;">
▁ β–‚ β–„ β–… β–† β–‡ β–ˆ MAXIMISE BOXES!! β–ˆ β–‡ β–† β–… β–„ β–‚ ▁
</h1>

<h3 class="instructions-heading">Instructions</h3>

<p class="instructions">
1. Select the number of rows, columns and players. <br>
2. The player who has maximum number of boxes on board is the winner. <br>
3. Players will switch after every turn. But the player who has filled the last box, will get one extra
chance
consecutively. <br>
</p>

</div>

<!-- Form page -->
<div class="form">
<div>
<h2>What size of Board do you want? :</h2>
</div>

<div class="form-item">
<label for="rows">Rows : <span class="details">(between 5 and 30)</span></label>
<input type="number" id="rows" min="5" max="30" value="6" />
</div>

<div class="form-item">
<label for="columns">Columns : <span class="details">(between 5 and 30)</span></label>
<input type="number" id="columns" min="5" max="30" value="6" />
</div>

<div class="form-item">
<label for="players-count">Players : <span class="details">(between 2 and 6)</span></label>
<input type="number" id="players-count" min="2" max="6" value="2" />
</div>

<button class="start-btn">START</button>

</div>


</div>

<!-- Players -->
<div class="players" style="margin-top: 50px;"></div>

<div class="player-turn">
<div class="bg" style="margin-top: 60px;">
<span class="name">PlayerX</span>'s turn
</div>
</div>

<!-- Game Page -->
<div class="board" style="margin-top: 154px;"></div>

<!-- Footer -->
<footer>
<p>&copy; 2024 Dots & Boxes. All rights reserved.</p>
</footer>

<!-- Setting Page -->
<div class="settings">
Expand Down Expand Up @@ -108,6 +182,10 @@ <h2 style="color: rgb(211, 211, 211);">What size of Board do you want? :</h2>

<button class="mute-btn"><i class="fa fa-volume-up fa-2x"></i></button>


</body>

</html>
<!--Video by <a href="https://pixabay.com/users/blendertimer-9538909/?utm_source=link-attribution&utm_medium=referral&utm_campaign=video&utm_content=80645">Daniel Roberts</a> from <a href="https://pixabay.com//?utm_source=link-attribution&utm_medium=referral&utm_campaign=video&utm_content=80645">Pixabay</a>
</a>

12 changes: 12 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,18 @@ h1 {
.settings button:active {
background: rgb(70, 70, 70);
}

footer {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background-color: #333;
color: white;
text-align: center;
padding: 10px 0;
z-index: 1000;
}
.back{
position: absolute;
right: 0;
Expand Down