Skip to content

Commit

Permalink
Criando cardJogo.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexSimao committed Jul 20, 2023
1 parent dbf1c3a commit 704af9e
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 5 deletions.
Binary file added Desafios/desafio-08/imagens/imgJogo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 9 additions & 5 deletions Desafios/desafio-08/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,20 @@ document.write(`
`)
//======================================================

document.write("<h2> Objeto jogo </h2>")

const jogoObj = {
jogo: "The Last Of Us 2",
desenvolvedora: "Naughty Dog",
anoLancamento: 2020
}

document.write(`
<p> Jogo: ${jogoObj.jogo} </p>
<p> Desenvolvido por: ${jogoObj.desenvolvedora} </p>
<p> Ano de Lançamento: ${jogoObj.anoLancamento} </p>
<div class="cardJogo">
<h2> jogo </h2>
<p class="titulo"> Título: </p>
<p class="conteudo"> ${jogoObj.jogo} </p>
<p class="titulo"> Desenvolvido por: </p>
<p class="conteudo"> ${jogoObj.desenvolvedora} </p>
<p class="titulo"> Ano de Lançamento: </p>
<p class="conteudo"> ${jogoObj.anoLancamento} </p>
</div>
`)
31 changes: 31 additions & 0 deletions Desafios/desafio-08/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,35 @@ body{

.arrayMeses p{
margin: 5px 0 0 0;
}

.cardJogo{
width: 300px;
height: 300px;
margin: 30px 0 0 0;
padding: 15px;
background-image: url(imagens/imgJogo.jpg);
background-position: center center;
background-size: cover;
border: 2px solid #303030;
border-radius: 15px;
}

.cardJogo h2{
color: white;
text-shadow: 1.5px 1.5px 0 black;
margin: 5px 0 30px 0;
}

.titulo{
color: white;
text-shadow: 1px 1px 0 black;
margin: 5px 0 3px 0;
}

.conteudo{
background-color: rgba(255, 255, 255, 0.7);
padding: 10px;
border: 1px solid #303030;
border-radius: 8px;
}

0 comments on commit 704af9e

Please sign in to comment.