Skip to content

Commit 99fdeb7

Browse files
committed
style: resize buttons, their text, margines
1 parent 3c3417e commit 99fdeb7

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

main.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ const isAdult = document.createElement("h2");
99
isAdult.textContent = "Are You an Adult (18+)?";
1010
document.body.append(isAdult);
1111

12-
isAdult.style.marginTop = "50px";
12+
isAdult.style.marginTop = "100px";
1313
isAdult.style.textAlign = "center";
1414

15+
1516
const btnsContainer = document.createElement("div");
1617
document.body.append(btnsContainer);
1718

@@ -23,17 +24,21 @@ const adultBtn = document.createElement("button");
2324
adultBtn.textContent = "Yes, I am 18 or Above";
2425
btnsContainer.append(adultBtn);
2526

26-
adultBtn.style.width = "200px";
27+
adultBtn.style.width = "220px";
2728
adultBtn.style.height = "40px";
2829
adultBtn.style.borderRadius = "15px";
30+
adultBtn.style.fontWeight = "bold";
31+
adultBtn.style.fontSize = "large"
2932

3033
const underageBtn = document.createElement("button");
3134
underageBtn.textContent = "No, I am under 18";
3235
btnsContainer.append(underageBtn);
3336

34-
underageBtn.style.width = "200px";
37+
underageBtn.style.width = "220px";
3538
underageBtn.style.height = "40px";
3639
underageBtn.style.borderRadius = "15px";
40+
underageBtn.style.fontWeight = "bold";
41+
underageBtn.style.fontSize = "large";
3742

3843
underageBtn.addEventListener("click", ()=> {
3944
document.body.innerHTML = "";

0 commit comments

Comments
 (0)