This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const pessoas = []; | |
| for(let pedidos = 0; pedidos < 3; pedidos++) { | |
| const nome = prompt("Qual o seu nome?"); | |
| const idade = prompt("Qual sua idade?"); | |
| const pessoa = { nome: nome, idade: idade }; | |
| pessoas.push(pessoa); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body > * { | |
| padding: 20px; | |
| text-align: center; | |
| font-weight: bold; | |
| } | |
| body { | |
| min-height: 100vh; | |
| display: grid; | |
| grid-template-columns: 2fr 1fr; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| box-sizing: border-box; | |
| font-family: system-ui, sans-serif; | |
| } | |
| main { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .cabecalho { | |
| text-align: center; | |
| margin: 50px 0; | |
| } | |
| .titulo__principal { | |
| display: block; | |
| font-size: 32px; | |
| text-transform: uppercase; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| font-family: sans-serif; | |
| } | |
| body { | |
| background-color: rgb(231 231 231); | |
| } | |
| a { | |
| text-decoration: none; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| font-family: Arial, sans-serif; | |
| font-size: 16px; | |
| color: rgb(64, 64, 64); | |
| } | |
| a { | |
| text-decoration: none; | |
| cursor: inherit; | |
| color: inherit; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| background-color: #1c1c1c; | |
| } | |
| .avatar { | |
| position: relative; | |
| height: 96px; | |
| width: 96px; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| * { | |
| font-family: -apple-system, sans-serif; | |
| font-size: 16px; | |
| font-weight: 600; | |
| line-height: 20px; | |
| } | |
| .botao { | |
| display: inline-flex; | |
| align-items: center; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| body { | |
| font-family: "Open Sans", sans-serif; | |
| font-weight: 400; | |
| font-size: 12px; | |
| } | |
| .menu { | |
| background-color: #2280a6; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function carregarDadosApi(url) { | |
| $.getJSON(url, (retorno) => { | |
| for (let i = 0; i < retorno.length; i++) { | |
| const item = retorno[i] | |
| $('#box').append('<div class="item-' + i + '"><h1>' + item.name + '</h1></div>') | |
| for (let j = 0; j < item.images.length; j++) { | |
| const image = item.images[j]; | |
| $('.item-' + i).append('<img src="' + image + '">') | |
| } | |
| if (item.price) { |