Day 8

Today, I am nearly finished with the interface layout.  I will fine tune it tomorrow and get some basic interface functionality in place.
#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="colors">Colors</button>
<button id="math">Math</button>
<button id="addsub">Add / Subtract</button>
<button id="multdiv">Multiply / Divide</button>
<button id="easy">Easy</button>
<button id="medium">Medium</button>
<button id="hard">Hard</button>
<label id="or"> or </label>
<label id="decide">You prefer to play</label>
<label id="score">Score: </label>
</div>
</div>
<div id="shape00">
<div>
<button id="cancel">Cancel</button>
<button id="start">Start</button>
<button id="btn-time"></button>
<label id="lbl-time"></label>
<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>

**********

shapes.css

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: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #efefef;
}

#shape0 #exit {
position: absolute;
bottom: 20px;
left: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ff1a1a;
width: 110px;
height: 40px;
}

#shape0 #play {
position: absolute;
bottom: 20px;
right: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #009900;
width: 110px;
height: 40px;
}

#shape0 #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%;
}

#shape0 #easy {
position: absolute;
bottom: 70px;
left: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #009900;
width: 70px;
height: 25px;
}

#shape0 #medium {
position: absolute;
bottom: 70px;
left: 90px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ffff33;
width: 70px;
height: 25px;
}

#shape0 #hard {
position: absolute;
bottom: 70px;
right: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ff1a1a;
width: 70px;
height: 25px;
}

#shape0 #addsub {
position: absolute;
bottom: 160px;
left: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #009900;
width: 110px;
height: 25px;
}

#shape0 #multdiv {
position: absolute;
bottom: 160px;
right: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ff1a1a;
width: 110px;
height: 25px;
}

#shape0 #colors {
position: absolute;
bottom: 190px;
left: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #009900;
width: 100px;
height: 25px;
}

#shape0 #or {
position: absolute;
bottom: 188px;
left: 120px;
/*border-radius: 12px;*/
/*box-shadow: 3px 4px 5px lightblue;*/
/*background-color: #009900;*/
width: 10px;
height: 25px;
}

#shape0 #math {
position: absolute;
bottom: 190px;
right: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ff1a1a;
width: 100px;
height: 25px;
}

#shape0 #decide {
position: absolute;
top: 8%;
left: 50%;
transform: translate(-50%, -50%);
width: 70%;
height: 20px;
border-radius: 15px;
box-shadow: 3px 4px 5px lightblue;
background-color: #fefefe;
text-align: center;
/*padding: 10px 0;*/
/*padding-left: 5px;*/
}

/*#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;
}

#shape00 #cancel {
position: absolute;
bottom: 20px;
left: 10px;
border-radius: 12px;
box-shadow: 3px 4px 5px lightblue;
background-color: #ff1a1a;
width: 110px;
height: 40px;
}

#shape00 #start {
position: absolute;
bottom: 20px;
right: 10px;
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: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #ff0000;
}

#shape1:hover {
position: absolute;
top: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-image: radial-gradient(circle, #ff6666, #ff0000);
}

#shape2 {
position: absolute;
top: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #009900;
}

#shape2:hover {
position: absolute;
top: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-image: radial-gradient(circle, #00e600, #009900);
}

#shape3 {
position: absolute;
bottom: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-color: blue;
}

#shape3:hover {
position: absolute;
bottom: 1em;
left: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 5px 6px 3px #595959;
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: 5px 6px 3px #595959;
border-radius: 25px;
background-color: yellow;
}

#shape4:hover {
position: absolute;
bottom: 1em;
right: 1em;
width: 250px;
height: 250px;
margin: auto;
box-shadow: 5px 6px 3px #595959;
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: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #00bfff;
}

#shape5:hover {
position: absolute;
top: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-image: radial-gradient(circle, #80dfff, #00bfff);
}

#shape6 {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #ff1aff;
}

#shape6:hover {
position: absolute;
top: 50%;
left: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-image: radial-gradient(circle, #ff80ff 1%, #ff1aff);
}

#shape7 {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #4d0099;
}

#shape7:hover {
position: absolute;
top: 50%;
right: 1em;
transform: translate(0%, -50%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
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: 5px 6px 3px #595959;
border-radius: 25px;
background-color: #ff3300;
}

#shape8:hover {
position: absolute;
bottom: 1em;
left: 50%;
transform: translate(-50%, 0%);
width: 250px;
height: 250px;
box-shadow: 5px 6px 3px #595959;
border-radius: 25px;
background-image: radial-gradient(circle, #ff704d 1%, #ff3300);
}

#shape9 {}

Comments

Popular posts from this blog

Day 1

Day 365 + 1

Day 365 + 2