Day 7
Still working the Simple Simon game. I should finish the basic layout tomorrow, and then I need to start working on the actual game code. I am not used to coding every day like this. CodingPhase, you are forcing me to improve. Thank you.
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
shapes.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="shapes.css">
<title>Shapes</title>
</head>
<body>
<div id="shape-board">
<div id="shape0">
<div>
<button id="play">Play</button>
<button id="exit">Exit</button>
<button id="easy">Easy</button>
<button id="medium">Medium</button>
<button id="hard">Hard</button>
<label id="score">Score: </label>
</div>
</div>
<div id="shape00">
<div>
<button id="cancel">Cancel</button>
<button id="start">Start</button>
<label id="score">Score: </label>
<label id="diff">Difficulty: </label>
</div>
</div>
<div id="shape1"></div>
<div id="shape2"></div>
<div id="shape3"></div>
<div id="shape4"></div>
<div id="shape5"></div>
<div id="shape6"></div>
<div id="shape7"></div>
<div id="shape8"></div>
<div id="shape9"></div>
</div>
</body>
</html>
**********
body {
background-color: green;
}
#shape-board {
position: relative;
max-width: 800px;
height: 50em;
margin: 50px auto;
border: 3px solid black;
border-radius: 10px;
background-image: url(textur_holz_22.png);
}
#shape0 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: white;
}
#play {}
#exit {}
#easy {}
#medium {}
#hard {}
/*#shape00 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #efefef;
}
#cancel {
position: absolute;
bottom: 20px;
left: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ff1a1a;
width: 110px;
height: 40px;
}
#start {
position: absolute;
bottom: 20px;
right: 12px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #009900;
width: 110px;
height: 40px;
}
#shape00 #score {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 15px;
box-shadow: 3px 4px 5px lightblue;
background-color: #fefefe;
padding: 10px 0;
padding-left: 5px;
width: 90%;
}
#shape00 #diff {
position: absolute;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
width: 70%;
height: 20px;
border-radius: 15px;
box-shadow: 3px 4px 5px lightblue;
background-color: #fefefe;
padding: 10px 0;
padding-left: 5px;
}*/
/*#shape1 {
position: absolute;
top: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: red;
}
#shape1:hover {
position: absolute;
top: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, orange, red);
}
#shape2 {
position: absolute;
top: 1em;
right: 1em
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: green;
}
#shape2:hover {
position: absolute;
top: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, lightgreen, green);
}
#shape3 {
position: absolute;
bottom: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: blue;
}
#shape3:hover {
position: absolute;
bottom: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, lightblue, blue);
}
#shape4 {
position: absolute;
bottom: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: yellow;
}
#shape4:hover {
position: absolute;
bottom: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, white, yellow, #FED400);
}
#shape5 {
position: absolute;
top: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: lightgreen;
}
#shape5:hover {
position: absolute;
top: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #FFE7FF, lightgreen, #5BC85B);
}
#shape6 {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: orange;
}
#shape6:hover {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #FFD280, orange);
}
#shape7 {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: purple;
}
#shape7:hover {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #DD4CFF, purple);
}
#shape8 {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: #00ffff;
}
#shape8:hover {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #fff, #00ffff, #00eeee);
}
#shape9 {}
*/
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
shapes.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="shapes.css">
<title>Shapes</title>
</head>
<body>
<div id="shape-board">
<div id="shape0">
<div>
<button id="play">Play</button>
<button id="exit">Exit</button>
<button id="easy">Easy</button>
<button id="medium">Medium</button>
<button id="hard">Hard</button>
<label id="score">Score: </label>
</div>
</div>
<div id="shape00">
<div>
<button id="cancel">Cancel</button>
<button id="start">Start</button>
<label id="score">Score: </label>
<label id="diff">Difficulty: </label>
</div>
</div>
<div id="shape1"></div>
<div id="shape2"></div>
<div id="shape3"></div>
<div id="shape4"></div>
<div id="shape5"></div>
<div id="shape6"></div>
<div id="shape7"></div>
<div id="shape8"></div>
<div id="shape9"></div>
</div>
</body>
</html>
**********
body {
background-color: green;
}
#shape-board {
position: relative;
max-width: 800px;
height: 50em;
margin: 50px auto;
border: 3px solid black;
border-radius: 10px;
background-image: url(textur_holz_22.png);
}
#shape0 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: white;
}
#play {}
#exit {}
#easy {}
#medium {}
#hard {}
/*#shape00 {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #efefef;
}
#cancel {
position: absolute;
bottom: 20px;
left: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ff1a1a;
width: 110px;
height: 40px;
}
#start {
position: absolute;
bottom: 20px;
right: 12px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #009900;
width: 110px;
height: 40px;
}
#shape00 #score {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 15px;
box-shadow: 3px 4px 5px lightblue;
background-color: #fefefe;
padding: 10px 0;
padding-left: 5px;
width: 90%;
}
#shape00 #diff {
position: absolute;
top: 20%;
left: 50%;
transform: translate(-50%, -50%);
width: 70%;
height: 20px;
border-radius: 15px;
box-shadow: 3px 4px 5px lightblue;
background-color: #fefefe;
padding: 10px 0;
padding-left: 5px;
}*/
/*#shape1 {
position: absolute;
top: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: red;
}
#shape1:hover {
position: absolute;
top: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, orange, red);
}
#shape2 {
position: absolute;
top: 1em;
right: 1em
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: green;
}
#shape2:hover {
position: absolute;
top: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, lightgreen, green);
}
#shape3 {
position: absolute;
bottom: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: blue;
}
#shape3:hover {
position: absolute;
bottom: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, lightblue, blue);
}
#shape4 {
position: absolute;
bottom: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: yellow;
}
#shape4:hover {
position: absolute;
bottom: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, white, yellow, #FED400);
}
#shape5 {
position: absolute;
top: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: lightgreen;
}
#shape5:hover {
position: absolute;
top: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #FFE7FF, lightgreen, #5BC85B);
}
#shape6 {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: orange;
}
#shape6:hover {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #FFD280, orange);
}
#shape7 {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: purple;
}
#shape7:hover {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #DD4CFF, purple);
}
#shape8 {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-color: #00ffff;
}
#shape8:hover {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.5), 0 6px 20px 0 rgba(0, 0, 0, 0.35);
border-radius: 25px;
background-image: radial-gradient(circle, #fff, #00ffff, #00eeee);
}
#shape9 {}
*/
Comments
Post a Comment