Skip to content

changed the color and font sizes #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/age-calculator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<div class="container">
<h1>Age Calculator</h1>
<div class="form">
<label for="birthday">Enter you date of birth</label>
<label for="birthday">Enter your date of birth</label>
<input type="date" id="birthday" name="birthday">
<button id="btn">Calculate Age</button>
<p id="result">Your age is 21 years old</p>
<p id="result">You are ? years old</p>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion projects/age-calculator/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function calculateAge() {
alert("Please enter your birthday");
} else {
const age = getAge(birthdayValue);
resultEl.innerText = `Your age is ${age} ${age > 1 ? "years" : "year"} old`;
resultEl.innerText = `You are ${age} ${age > 1 ? "years" : "year"} old`;
}
}

Expand Down
17 changes: 9 additions & 8 deletions projects/age-calculator/style.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
body {
margin: 0;
padding: 20px;
font-family: "Montserrat", sans-serif;
background-color: #f7f7f7;
}

.container {
background-color: white;
background-color: #FFEAEA;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
padding: 20px;
max-width: 600px;
width: auto;
height: 700px;
margin: 0 auto;
border-radius: 5px;
margin-top: 50px;
/* margin-top: 50px; */
}

h1 {
font-size: 36px;
font-size: 50px;
text-align: center;
margin-top: 0;
margin-bottom: 20px;
margin-top: 200px;
margin-bottom: 50px;
}

.form {
Expand All @@ -30,6 +30,7 @@ h1 {

label {
font-weight: bold;
font-size: 25px;
margin-bottom: 10px;
}

Expand All @@ -42,7 +43,7 @@ input {
}

button {
background-color: #007bff;
background-color: #687FE5;
color: white;
border: none;
padding: 10px 20px;
Expand Down