Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reto completado #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 242 additions & 0 deletions chars.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,242 @@
.char {
width: 90%;
height: 90%;
position: relative;
}
.head {
position: absolute;
top: 41px;
right: 106px;
height: 120px;
width: 120px;
border-radius: 20%;
background: rgb(8, 54, 80);
}
.hand1{
position: absolute;
top: 74px;
right: 208px;
height: 72px;
width: 34px;
border-radius: 50px;
background: rgb(16 96 101);
}
.hand2 {
position: absolute;
top: 74px;
right: 90px;
height: 72px;
width: 34px;
border-radius: 50px;
background: rgb(47, 145, 150);
}

.horn1 {
position: absolute;
top: 18px;
right: 125px;
height: 47px;
width: 22px;
border-radius: 50px;
background: rgb(141, 195, 220);
}

.horn2 {
position: absolute;
top: 18px;
right: 196px;
height: 47px;
width: 22px;
border-radius: 50px;
background: rgb(122, 187, 218);
}

.foot1{
position: absolute;
top: 116px;
right: 167px;
height: 72px;
width: 33px;
border-radius: 50px;
background: rgb(5, 29, 43);
}
.foot2{
position: absolute;
top: 116px;
right: 125px;
height: 72px;
width: 33px;
border-radius: 50px;
background: rgb(8 ,54 ,80);
}

.eye1{
position: absolute;
top: 86px;
right: 142px;
height: 15px;
width: 15px;
border-radius: 50px;
background: #ffff;
}
.eye2{
position: absolute;
top: 86px;
right: 192px;
height: 15px;
width: 15px;
border-radius: 50px;
background: #ffff;
}

.eye3{
position: absolute;
top: 51px;
right: 191px;
height: 7px;
width: 19px;
border-radius: 50px;
background: #d6e220;
}
.eye4{
position: absolute;
top: 51px;
right: 158px;
height: 7px;
width: 19px;
border-radius: 50px;
background: #d6e220;
}

.head1 {
position: absolute;
top: 71px;
right: 130px;
height: 53px;
width: 88px;
border-radius: 17px;
background: rgb(47 145 150);
}

.body1{
position: absolute;
top: 74px;
right: 113px;
height: 93px;
width: 93px;
border-radius: 100px;
background: rgb(69 183 189);
}

.foot3{
position: absolute;
top: 126px;
right: 144px;
height: 76px;
width: 33px;
border-radius: 50px;
background: rgb(69 183 189);
transform: rotate(45deg);
}
.foot4{
position: absolute;
top: 129px;
right: 96px;
height: 33px;
width: 76px;
border-radius: 50px;
background: rgb(47 145 150);
}

.hand4{
transform: rotate(45deg);
position: absolute;
top: 102px;
right: 81px;
height: 27px;
width: 53px;
border-radius: 50px;
background: rgb(107 216 222);
}
.hand3{
position: absolute;
top: 104px;
right: 147px;
height: 27px;
width: 81px;
border-radius: 50px;
background: rgb(47 145 150);
}
.stick5{
position: absolute;
top: 43px;
right: 185px;
height: 77px;
width: 13px;
border-radius: 50px;
background: rgb(47 145 150);
}
.stick6{
position: absolute;
top: 43px;
right: 132px;
height: 77px;
width: 13px;
border-radius: 50px;
background: rgb(69 183 189);
}
.eye5{
position: absolute;
top: 4px;
right: 172px;
height: 60px;
width: 60px;
border-radius: 100px;
background: rgb(47 145 150);
}
.eye5w{
position: absolute;
top: 11px;
right: 179px;
height: 45px;
width: 45px;
border-radius: 100px;
background: #ffff;
}
.eye5b{
position: absolute;
top: 25px;
right: 203px;
height: 15px;
width: 15px;
border-radius: 100px;
background: #000;
}

.eye6{
position: absolute;
top: 4px;
right: 121px;
height: 60px;
width: 60px;
border-radius: 100px;
background: rgb(69 183 189);
}
.eye6w{
position: absolute;
top: 11px;
right: 129px;
height: 45px;
width: 45px;
border-radius: 100px;
background: #ffff;
}
.eye6b{
position: absolute;
top: 25px;
right: 153px;
height: 15px;
width: 15px;
border-radius: 100px;
background: #000;
}
Binary file added images/icons8-github-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons8-instagram-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons8-twitter-circled-50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
124 changes: 124 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="chars.css" />
<title>Platzi Game</title>
</head>
<body>
<div class="modal_back" id="finish">
<div class="modal">
<div class="gif_container">
<img id="gif" src="" alt="">
</div>
<div class="result">
<h1 id="winner"></h1>
<button class="btn2" onclick="location.reload()"> <p class="btn2_text">Play again</p></button>
</div>
</div>
</div>
<section class="main">
<h1 class="title">Platzi Game</h1>

<div class="main__cards">
<div class="card player1">
<h2 class="title">Player 1</h2>
<div class="controls">
<div class="hp_stats">
<h2 class="hp_per" id="hp1">100%</h2>
<div class="hp_bar">
<div class="hp_bar_player1" id="hp1Bar"></div>
</div>
</div>
<button class="btn" id="player1_play" onclick="jugar(2)">
<h2>Play</h2>
</button>
</div>
<div class="img_char">
<div class="char">
<div class="horn2"></div>
<div class="hand1"></div>
<div class="foot1"></div>
<div class="foot2"></div>
<div class="head"></div>
<div class="hand2"></div>
<div class="horn1"></div>
<div class="head1"></div>
<div class="eye1"></div>
<div class="eye2"></div>
<div class="eye3"></div>
<div class="eye4"></div>

</div>
</div>
</div>
<div class="card player2">
<h2 class="title">Player 2</h2>
<div class="controls">
<div class="hp_stats">
<h2 class="hp_per" id="hp2">100%</h2>
<div class="hp_bar">
<div class="hp_bar_player2" id="hp2Bar"></div>
</div>
</div>
<button class="btn disable" id="player2_play" onclick="jugar(1)">
<h2>Play</h2>
</button>
</div>
<div class="img_char">
<div class="char">
<div class="foot3"></div>
<div class="foot4"></div>
<div class="hand3"></div>
<div class="stick5"></div>
<div class="eye5"></div>
<div class="eye5w"></div>
<div class="eye5b"></div>
<div class="body1"></div>
<div class="hand4"></div>
<div class="stick6"></div>
<div class="eye6"></div>
<div class="eye6w"></div>
<div class="eye6b"></div>
</div>
</div>
</div>
</div>
</section>
<footer>
Made by @fjarauj0
<a
class="social_link github"
href="https://github.com/fjarauj0"
target="_blank"
rel="noopener"
alt="github"
></a>
<a
class="social_link twitter"
href="https://twitter.com/fjarauj0"
target="_blank"
rel="noopener"
alt="twitter"
></a>
<a
class="social_link instagram"
href="https://www.instagram.com/fjarauj0/"
target="_blank"
rel="noopener"
alt="instagram"
></a>
</footer>
<div class="circle c1"></div>
<div class="circle c2"></div>
<div class="circle c3"></div>
<div class="circle c4"></div>
<script src="script.js"></script>
</body>
</html>
Loading