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

[C6] barra de vida, boton de ataque, link a redes sociales. #10

Open
wants to merge 1 commit 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
113 changes: 113 additions & 0 deletions css/estilos.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@


body {
font-family: 'Source Sans Pro', sans-serif;
margin: 0;
}

h1, h2, h3, h4, h5, h6{
font-family: 'Fjalla One', sans-serif;
font-weight: normal;
/* font-style: italic; */
}

h1 {
font-size: 40px;
line-height: 1.5;
letter-spacing: -.2px;
color: black;
margin: 0;

}



.player1{
border: 1px solid gray;
border-radius: 10px;

margin-bottom: 15px;

margin: 20px;
padding: 20px;
background:#43D8C9 ;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}

.player2{
border: 1px solid gray;
border-radius: 10px;

margin-bottom: 15px;

margin: 20px;
padding: 20px;
background: #FFBD11;
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
}

.button {
border: none;
color: white;
padding: 15px 32px;
font-size: 16px;
margin: 4px 2px;
cursor: pointer;
background-color: #1A46E5;
display: inline-block;
align-items: center;
flex-wrap: wrap;
}

.player {
font-size: 30px;

display:flex;
justify-content: center;
}

.footer {
color: black;
display: flex;
justify-content: space-between;

}

.container {
max-width: auto;
margin: 0 auto;
display: flex;
justify-content: center;


}


h2 {
padding: 5px;
text-align: center;
}


.health-box {
background-color: #ccc;
height: 30px;
width: 500px;
margin: 0 auto;
border: solid 1px #aaa;
}

.health-bar {
background-color: #007f00;
width: inherit;
height: 28px;

bottom: 56px;
}

64 changes: 64 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8" />
<title>Jueguito</title>
<link href="https://fonts.googleapis.com/css?family=Fjalla+One|Source+Sans+Pro" rel="stylesheet">
<link rel="stylesheet" href="css/estilos.css">

<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

<div class="container">
<h1>
Platzi Game
</h1>

</div>

<div class="container">

<article class="player1">
<div class>
<h3 class="player">Player 1</h3>
<div class="total"></div>

<div class="health-box">
<div class="health-bar"></div>
</div>
<button class = "button" >Atack!</button>
</div>

</article>
<article class="player2">
<div>
<h3 class="player">Player 2</h3>
<div class="total"></div>

<div class="health-box">
<div class="health-bar"></div>
</div>
<button class="button">Atack!</button>
</div>

</article>
</div>




<footer class="footer">
<div class="container">
<div>
<p>Made by <a href="https://github.com/joethecoderr/" >@joethecoderr<img src="https://img.icons8.com/cute-clipart/64/000000/github.png"/></a></p>

</div>
</div>
</footer>
</body>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>


</html>
Empty file added js/barra_vida.js
Empty file.