Day 6
I am building a Simple Simon like game for my grand-children. This is the first draft of the design.
#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="cancel">Cancel</button>
<button id="play">Play</button>
<button id="easy">Easy</button>
<button id="medium">Medium</button>
<button id="hard">Hard</button>
<label id="score" placeholder="Score"></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 {
/*width: 99%;*/
height: 50em;
/*border: 1px solid red;*/
background-color: green;
}
#shape-board {
position: relative;
max-width: 800px;
height: 50em;
margin: 50px auto;
border: 3px solid black;
border-radius: 10px;
/*background-color: lightblue;*/
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: 2px solid black;*/
border-radius: 25px;
background-color: white;
}
#shape1 {
position: absolute;
top: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: red;
}
#shape1:hover {
position: absolute;
top: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-image: radial-gradient(circle, orange, red);
}
#shape2 {
position: absolute;
top: 1em;
right: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: green;
}
#shape2:hover {
position: absolute;
top: 1em;
right: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-image: radial-gradient(circle, lightgreen, green);
}
#shape3 {
position: absolute;
bottom: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: blue;
}
#shape3:hover {
position: absolute;
bottom: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-image: radial-gradient(circle, lightblue, blue);
}
#shape4 {
position: absolute;
bottom: 1em;
right: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: yellow;
}
#shape4:hover {
position: absolute;
bottom: 1em;
right: 1em;
/*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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: lightgreen;
}
#shape5:hover {
position: absolute;
top: 1em;
left: 50%;
transform: translate(-50%, 0%);
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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: orange;
}
#shape6:hover {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: purple;
}
#shape7:hover {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: #00ffff;
}
#shape8:hover {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0%);
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: 2px solid black;*/
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="cancel">Cancel</button>
<button id="play">Play</button>
<button id="easy">Easy</button>
<button id="medium">Medium</button>
<button id="hard">Hard</button>
<label id="score" placeholder="Score"></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 {
/*width: 99%;*/
height: 50em;
/*border: 1px solid red;*/
background-color: green;
}
#shape-board {
position: relative;
max-width: 800px;
height: 50em;
margin: 50px auto;
border: 3px solid black;
border-radius: 10px;
/*background-color: lightblue;*/
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: 2px solid black;*/
border-radius: 25px;
background-color: white;
}
#shape1 {
position: absolute;
top: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: red;
}
#shape1:hover {
position: absolute;
top: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-image: radial-gradient(circle, orange, red);
}
#shape2 {
position: absolute;
top: 1em;
right: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: green;
}
#shape2:hover {
position: absolute;
top: 1em;
right: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-image: radial-gradient(circle, lightgreen, green);
}
#shape3 {
position: absolute;
bottom: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: blue;
}
#shape3:hover {
position: absolute;
bottom: 1em;
left: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-image: radial-gradient(circle, lightblue, blue);
}
#shape4 {
position: absolute;
bottom: 1em;
right: 1em;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: yellow;
}
#shape4:hover {
position: absolute;
bottom: 1em;
right: 1em;
/*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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: lightgreen;
}
#shape5:hover {
position: absolute;
top: 1em;
left: 50%;
transform: translate(-50%, 0%);
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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: orange;
}
#shape6:hover {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: purple;
}
#shape7:hover {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -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: 2px solid black;*/
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;
/*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: 2px solid black;*/
border-radius: 25px;
background-color: #00ffff;
}
#shape8:hover {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0%);
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: 2px solid black;*/
border-radius: 25px;
background-image: radial-gradient(circle, #fff, #00ffff, #00eeee);
}
#shape9 {}
Comments
Post a Comment