Added dezigng to the dice quessing number game

This commit is contained in:
2024-08-09 17:12:41 +02:00
parent 3986c648e0
commit 1c203683de
4 changed files with 42 additions and 16 deletions

View File

@@ -10,22 +10,23 @@
<title>Quess Number 1D6</title> <title>Quess Number 1D6</title>
</head> </head>
<body> <body>
<h1>Guess The Number!</h1> <article class="gameBack">
<h3>You are: <span id="answear"></span></h3> <h1>Guess The Number!</h1>
<img src="./6.png" alt="" id="dice"> <h3>You are: <span id="answear"></span></h3>
<div class="ques"> <img src="./6.png" alt="" id="dice">
<p>Quess: </p> <div class="ques">
<select id="num"> <p>Quess: </p>
<option value="1">1</option> <select id="num">
<option value="2">2</option> <option value="1">1</option>
<option value="3">3</option> <option value="2">2</option>
<option value="4">4</option> <option value="3">3</option>
<option value="5">5</option> <option value="4">4</option>
<option value="6">6</option> <option value="5">5</option>
</select> <option value="6">6</option>
</div> </select>
</div>
<button onclick="roll()">Roll<br>the<br>Dice!</button> <button onclick="roll()">Roll<br>the<br>Dice!</button>
</article>
<script src="main.js"></script> <script src="main.js"></script>
</body> </body>
</html> </html>

BIN
Games/QuessNumber-1D6/mobile.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

BIN
Games/QuessNumber-1D6/pc.jpg Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@@ -10,6 +10,10 @@ body{
flex-direction: column; flex-direction: column;
min-height: 100vh; min-height: 100vh;
background-color: #333; background-color: #333;
background-image: url("./pc.jpg");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
color: #fff; color: #fff;
text-align: center; text-align: center;
} }
@@ -49,3 +53,24 @@ button{
color: red;/* color: red;/*
text-transform: uppercase;*/ text-transform: uppercase;*/
} }
.gameBack{
padding: 1rem;
height: 450px;
width: 300px;
display: flex;
justify-content: space-around;
align-items: center;
flex-direction: column;
backdrop-filter: blur(5px);
border-radius: 50px;
box-shadow:
inset 10px 10px 20px #fff,
10px 10px 20px #333;
}
@media screen and (max-width: 500px){
body{
background-image: url("./mobile.jpg");
}
}