A Pen by orestesnetobr on CodePen.
Created
May 4, 2021 18:02
-
-
Save orestesnetobr/df26ef6a3fda32a46bba88522ffefc32 to your computer and use it in GitHub Desktop.
Conversor de Moedas
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 01 | |
</title> | |
</head> | |
<body> | |
<div class="container"> | |
<h1 class="page-title"> | |
Conversor de moedas | |
</h1> | |
<p class="page-subtitle"> | |
Descubra os valores em dolar U$ | |
</p> | |
<img src="https://www.alura.com.br/assets/img/imersoes/dev-2021/logo-imersao-conversor-de-moedas.svg" class="page-logo" alt=""> | |
</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> | |
</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 valorEmDolar = parseFloat(prompt("Qual o valor em dólar que você deseja converter? ")) | |
var valorEmReal = valorEmDolar * 5.50 | |
alert("Valor em real R$:" + " " + valorEmReal.toFixed(2)) |
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: 400px; | |
background-image: url('https://images.pexels.com/photos/53621/calculator-calculation-insurance-finance-53621.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940.jpeg'); | |
background-color: #000000; | |
background-size: cover; | |
background-position: center bottom; | |
background-repeat: no-repeat; | |
} | |
.container { | |
text-align: center; | |
padding: 20px; | |
height: 100vh; | |
} | |
.page-title { | |
color: #ffffff; | |
margin: 0 0 5px; | |
} | |
.page-subtitle { | |
color: #ffffff; | |
margin-top: 5px; | |
} | |
.page-logo { | |
width: 200px; | |
} | |
.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