A Pen by Diego Loiola on CodePen.
Created
April 6, 2021 19:03
-
-
Save diegoamloiola/57e4e06695e5f24f0c252c52819cd295 to your computer and use it in GitHub Desktop.
Imersão Alura A2
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
| <html> | |
| <head> | |
| <title> | |
| Imersão Dev - Aula 02 | |
| </title> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <h1 class="page-title"> | |
| Quem é esse pokemon? | |
| </h1> | |
| <img src="https://www.alura.com.br/assets/img/imersoes/dev-2021/logo-imersao-calculadora.svg" class="page-logo" | |
| alt=""> | |
| <div class="pokemon"> | |
| </div> | |
| </div> | |
| <a href="https://alura.com.br/" target="_blank"> | |
| <img src="https://www.alura.com.br/assets/img/home/alura-logo.svg" alt="" class="alura-logo"> | |
| </a> | |
| <h2></h2> | |
| </body> | |
| </html> |
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
| var opcao = prompt("Qual o nome desse pokemon?") | |
| if(opcao == "Dewgong" || opcao=="dewgong"){ | |
| alert("Parabéns! Você acertou.") | |
| } else{ | |
| alert("Resposta incorreta") | |
| } |
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: 'Roboto Mono',monospace; | |
| min-height: 854px; | |
| background-image: url('https://pokemongolive.com/img/posts/anniversaryposter2019.jpg'); | |
| background-color: #000000; | |
| background-size: cover; | |
| background-position: center top; | |
| background-repeat: no-repeat; | |
| } | |
| .container { | |
| text-align: center; | |
| padding: 20px; | |
| height: 100vh; | |
| } | |
| .page-title { | |
| color: #000000; | |
| margin: 0 0 5px; | |
| } | |
| .page-subtitle { | |
| color: #000000; | |
| margin-top: 5px; | |
| } | |
| .page-logo { | |
| width: 200px; | |
| } | |
| .pokemon { | |
| width: 480px; | |
| height: 360px; | |
| background-image: url('https://img.playbuzz.com/image/upload/ar_1.5,c_pad,f_jpg,b_auto/q_auto:good,f_auto,fl_lossy,w_640,c_limit,dpr_1/cdn/5dd1da62-7fad-4065-ac16-928d743a2176/7f8aa5a6-c0d0-4e28-8751-a3e6ff70b865.jpg'); | |
| margin: 0 auto; | |
| position: center; | |
| background-repeat: no-repeat; | |
| } | |
| .alura-logo { | |
| width: 40px; | |
| position: absolute; | |
| top: 10px; | |
| right:10px; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment