Created
April 2, 2021 01:11
-
-
Save dns1002/3b355635db2f4b7afba8f5d9d7cb5bf3 to your computer and use it in GitHub Desktop.
Conversor de moedas (de altura)
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 altura | |
</h1> | |
<p class="page-subtitle"> | |
Converta metros para pés | |
</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 inches_to_cm = 2.54 | |
var altura_cm = parseInt(prompt ("Informe a altura em cm:")) | |
var altura_pol = parseInt(altura_cm/inches_to_cm) | |
var altura_pes = parseInt(altura_pol/12) | |
var altura_pol = altura_pol % 12 | |
alert (altura_cm + ' cm = ' + altura_pes +"'" + altura_pol + '"') |
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://i.ytimg.com/vi/FkjKTZs1CDc/sddefault.jpg'); | |
background-color: #000000; | |
background-size: 100vh; | |
background-position: center; | |
background-repeat: no-repeat; | |
} | |
.container { | |
text-align: left; | |
padding: 20px; | |
height: 100vh; | |
} | |
.page-title { | |
color: #ffffff; | |
margin: 0 0 5px; | |
} | |
.page-subtitle { | |
color: #ffffff; | |
margin-top: 5px; | |
} | |
.page-logo { | |
width: 200px; | |
position: absolute; | |
top: 40px; | |
right:0px; | |
} | |
.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