Author: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
all: bootstrap hello world
css/style.css | 39 +++++++++++++++++++++++++++++++++++++++ index.html | 20 ++++++++++++++++++++ js/script.js | 6 ++++++
diff --git a/css/style.css b/css/style.css new file mode 100644 index 0000000000000000000000000000000000000000..2763ddd03e09c82d90a0812858ed8cbaf67d4b60 --- /dev/null +++ b/css/style.css @@ -0,0 +1,39 @@ +body { + font-family: Arial, sans-serif; + text-align: center; + margin: 0; + padding: 0; + background-color: #f0f0f0; +} + +header { + background-color: #4CAF50; + color: white; + padding: 20px 0; +} + +main { + margin: 20px; +} + +button { + padding: 10px 20px; + font-size: 16px; + color: #fff; + background-color: #4CAF50; + border: none; + border-radius: 5px; + cursor: pointer; + transition: background-color 0.3s; +} + +button:hover { + background-color: #45a049; +} + +p { + margin-top: 20px; + font-size: 18px; + color: #333; +} + diff --git a/index.html b/index.html new file mode 100644 index 0000000000000000000000000000000000000000..ac789e3ae5fa414ba949bb103fe523221f964df9 --- /dev/null +++ b/index.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html lang="pt-BR"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Buenas</title> + <link rel="stylesheet" href="css/style.css"> +</head> +<body> + <header> + <h1>Buenas!</h1> + </header> + <main> + <button id="changeText">Clique aqui!</button> + <p id="message">Bem-vindo à página!</p> + </main> + <script src="js/script.js"></script> +</body> +</html> + diff --git a/js/script.js b/js/script.js new file mode 100644 index 0000000000000000000000000000000000000000..839d3d75c84f47b95233c81f2ea45a91605ebc3b --- /dev/null +++ b/js/script.js @@ -0,0 +1,6 @@ +document.querySelector("#changeText").addEventListener("click", () => { + const message = document.getElementById("message"); + message.textContent = "Você clicou no botão!"; + message.style.color = "tomato"; +}); +