-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removed text input and button and added layout and some styling
- Loading branch information
1 parent
48a7d74
commit ce5c6ba
Showing
3 changed files
with
64 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
const form = document.getElementById("bmiForm"); | ||
|
||
form.addEventListener("submit", (event) => { | ||
event.preventDefault(); // Stop page reload from happening | ||
const inputData = document.getElementById("userInput").value; | ||
console.log("Input data:",inputData); | ||
document.getElementById("userInput").value = ""; | ||
}) | ||
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,46 @@ | ||
* { | ||
margin: 0; | ||
box-sizing: border-box; | ||
font-family: Arial, Helvetica, sans-serif; | ||
} | ||
body { | ||
background: #0a0e21; | ||
} | ||
#container { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: center; | ||
} | ||
#title { | ||
color: white; | ||
text-align: center; | ||
padding: 30px 0px 10px 0px; | ||
width: 100vw; | ||
} | ||
.square { | ||
width: 40vw; | ||
height: 35vw; | ||
background-color: #13172b; | ||
border: none; | ||
color: white; | ||
border-radius: 15px; | ||
margin: 3vw; | ||
margin-bottom: 4vw; | ||
font-size: 1.5rem; | ||
} | ||
#height { | ||
height: 35vw; | ||
width: 87vw; | ||
color: white; | ||
background-color: #13172b; | ||
border-radius: 15px; | ||
} | ||
#calculate { | ||
background-color: #ce3058; | ||
border: none; | ||
color: white; | ||
height: 15vw; | ||
width: 87vw; | ||
font-size: 1.75rem; | ||
border-radius: 15px; | ||
} |