Add new files to first Sprint

This commit is contained in:
Paweł Kawczyński 2017-12-06 11:57:37 +01:00
parent 63a19978f0
commit 45ac47cf40
4 changed files with 356 additions and 0 deletions

295
css/style.css Normal file
View File

@ -0,0 +1,295 @@
@font-face {
font-family: headersFont;
src: url(fonts/ARCADE.TTF);
}
h1 {
font-family: headersFont;
font-size: 100px;
color: yellow;
display: flex;
align-items: center;
justify-content: center;
}
html {
background-color: cornflowerblue;
}
#char-container {
position: absolute;
top: 300px;
left: 400px;
}
#char-head {
width: 400px;
height: 300px;
background-color: #ffc993;
border-radius: 50px 50px;
z-index: 1;
}
#char-ear-left {
position: absolute;
top: 124px;
left: -22px;
width: 42px;
height: 66px;
border-color: #ffc993;
border-radius: 33px / 42px;
background-color: #ffc993;
z-index: 0;
}
#char-ear-right {
position: absolute;
top: 124px;
left: 380px;
width: 42px;
height: 66px;
border-color: #ffc993;
border-radius: 33px / 42px;
background-color: #ffc993;
z-index: 0;
}
#char-hair {
width: 400px;
height: 90px;
background-color: #000000;
border-radius: 45px 45px;
}
#char-eyebrown-left {
position: absolute;
top: 150px;
left: 90px;
border-style: solid;
border-width: 20px 0 0 50px;
border-color: transparent transparent transparent #ca815e;
}
#char-eyebrown-right {
position: absolute;
top: 150px;
left: 270px;
border-style: solid;
border-width: 0 0 20px 50px;
border-color: transparent transparent #ca815e transparent;
}
#char-eye-left {
position: absolute;
top: 176px;
left: 108px;
width: 36px;
height: 36px;
border-radius: 50%;
background-color: #000000;
}
#char-pupil-left {
position: absolute;
top: 8px;
left: 8px;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #ffffff;
}
#char-eye-right {
position: absolute;
top: 176px;
left: 264px;
width: 36px;
height: 36px;
border-radius: 50%;
background-color: #000000;
}
#char-pupil-right {
position: absolute;
top: 8px;
left: 8px;
width: 20px;
height: 20px;
border-radius: 50%;
background-color: #ffffff;
}
#char-mouth {
position: absolute;
top: 228px;
left: 164px;
width: 80px;
height: 30px;
border-radius: 0 0 80px 80px;
background-color: #000000;
}
#char-tooth-left {
position: absolute;
top: 0px;
left: 24px;
width: 12px;
height: 14px;
background-color: #ffffff;
}
#char-tooth-right {
position: absolute;
top: 0px;
left: 44px;
width: 12px;
height: 14px;
background-color: #ffffff;
}
#char-main-body {
position: absolute;
width: 400px;
height: 400px;
}
#char-body {
position: absolute;
top: 0px;
left: 110px;
width: 180px;
height: 200px;
border-radius: 20px;
background-color: #632e90;
}
#char-arm-left {
position: absolute;
top: 40px;
left: 70px;
width: 50px;
height: 124px;
border-radius: 53px 53px;
background-color: #632e90;
transform: rotate(310deg);
z-index: 1;
}
#char-arm-right {
position: absolute;
top: 40px;
left: 280px;
width: 50px;
height: 124px;
border-radius: 53px 53px;
background-color: #632e90;
transform: rotate(50deg);
}
#char-forearm-left {
position: absolute;
top: -40px;
width: 50px;
height: 90px;
border-radius: 53px 53px;
background-color: #ffc993;
}
#char-forearm-right {
position: absolute;
top: -40px;
width: 50px;
height: 90px;
border-radius: 53px 53px;
background-color: #ffc993;
}
#char-lower {
position: absolute;
}
#char-pants-middle {
position: absolute;
width: 170px;
height: 48px;
top: 200px;
left: 115px;
border-radius: 10px 10px;
background-color: #e31e5e;
}
#char-pants-left {
position: absolute;
top: 200px;
left: 114px;
width: 70px;
height: 100px;
border-radius: 10px 10px;
background-color: #e31e5e;
}
#char-pants-right {
position: absolute;
top: 200px;
left: 220px;
width: 70px;
height: 100px;
border-radius: 10px 10px;
background-color: #e31e5e;
}
#char-leg-left {
position: absolute;
top: 100px;
left: 13px;
width: 44px;
height: 40px;
background-color: #ffc993;
}
#char-leg-right {
position: absolute;
top: 100px;
left: 13px;
width: 44px;
height: 40px;
background-color: #ffc993;
}
#char-sock-left {
position: absolute;
top: 140px;
left: 13px;
width: 44px;
height: 20px;
background-color: #0072bb;
}
#char-sock-right {
position: absolute;
top: 140px;
left: 13px;
width: 44px;
height: 20px;
background-color: #0072bb;
}
#char-shoe-left {
position: absolute;
top: 160px;
left: -27px;
width: 84px;
height: 34px;
border-radius: 25px 0 0 0;
background-color: #8e8e8e;
}
#char-shoe-right {
position: absolute;
top: 160px;
left: 13px;
width: 84px;
height: 34px;
border-radius: 0 25px 0 0;
background-color: #8e8e8e;
}

BIN
fonts/ARCADE.TTF Normal file

Binary file not shown.

61
index.html Normal file
View File

@ -0,0 +1,61 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The HTML5 Herald</title>
<meta name="description" content="The HTML5 Herald">
<meta name="author" content="SitePoint">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>PLAY &amp;&amp; LEARN</h1>
<div id="game-container"></div>
<div id="char-container">
<div id="char-head">
<div id="char-hair"></div>
<div id="char-ear-left"></div>
<div id="char-ear-right"></div>
<div id="char-eyebrown-left"></div>
<div id="char-eyebrown-right"></div>
<div id="char-eye-left">
<div id="char-pupil-left"></div>
</div>
<div id="char-eye-right">
<div id="char-pupil-right"></div>
</div>
<div id="char-mouth">
<div id="char-tooth-left"></div>
<div id="char-tooth-right"></div>
</div>
</div>
<div id="char-main-body">
<div id="char-body"></div>
<div id="char-arm-left">
<div id="char-forearm-left"></div>
</div>
<div id="char-arm-right">
<div id="char-forearm-right"></div>
</div>
<div id="char-lower">
<div id="char-pants-middle"></div>
<div id="char-pants-left">
<div id="char-leg-left"></div>
<div id="char-sock-left"></div>
<div id="char-shoe-left"></div>
</div>
<div id="char-pants-right">
<div id="char-leg-right"></div>
<div id="char-sock-right"></div>
<div id="char-shoe-right"></div>
</div>
</div>
</div>
<script src="js/script.js"></script>
</body>
</html>

0
js/script.js Normal file
View File