diff --git a/execs1/app.js b/execs1/app.js new file mode 100644 index 0000000..ba6086b --- /dev/null +++ b/execs1/app.js @@ -0,0 +1,21 @@ +let titulo = document.querySelector('h1') +titulo.innerHTML = 'Hora do Desafio' + +function mostrarMensagem(){ + console.log("O botão foi clicado") +} + +function mostrarAlerta(){ + alert('Eu amo JS.') +} + +function mostrarPrompt(){ + let nomeCidade = prompt('Digite o nome de uma cidade do Brasil: '); + alert(`Estive em ${nomeCidade} e me lembrei de você.`) +} + +function somar(){ + let num1 = parseInt(prompt('Digite um numero interio para soma: ')); + let num2 = parseInt(prompt('Digite outro número inteiro para soma: ')); + alert(`${num1} + ${num2} = ${num1 + num2}`) +} diff --git a/execs1/index.html b/execs1/index.html new file mode 100644 index 0000000..a1de275 --- /dev/null +++ b/execs1/index.html @@ -0,0 +1,22 @@ + + + + + + + Document + + +
+

+
+
+ + + + +
+ + + + \ No newline at end of file diff --git a/execs1/script.css b/execs1/script.css new file mode 100644 index 0000000..1b163eb --- /dev/null +++ b/execs1/script.css @@ -0,0 +1,35 @@ +header { + text-align: center; + font-size: 30px; + color: #279EFF; +} + +main, html { + margin: 0; + padding: 0; + height: 50%; + display: flex; + justify-content: center; + align-items: center; + background-color: #0C356A; +} + +.container { + text-align: center; + color: #279EFF; +} + +.button { + padding: 10px 20px; + margin: 10px; + font-size: 24px; + border: none; + background-color: #3498db; + cursor: pointer; + border-radius: 5px; +} + +.button:hover { + background-color: #2980b9; +} +