Skip to content

Commit 05f4848

Browse files
committed
feat: day 8
1 parent 6c80510 commit 05f4848

File tree

3 files changed

+16
-7
lines changed

3 files changed

+16
-7
lines changed

008-form wave animation/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,23 @@
88
</head>
99
<body>
1010
<div class="container">
11-
<h1>Please Login</h1>
11+
<!-- Change the Main Title -->
12+
<h1>Welcome Back</h1>
1213
<form>
1314
<div class="form-control">
1415
<input type="text" required />
1516
<label>Email</label>
1617
</div>
18+
<!-- Add a New Input Field -->
19+
<div class="form-control">
20+
<input type="text" required />
21+
<label>Username</label>
22+
</div>
1723
<div class="form-control">
1824
<input type="password" required />
1925
<label>Password</label>
2026
</div>
21-
<button class="btn">Login</button>
27+
<button class="btn">Sign In</button>
2228
<p class="text">Don't have an account? <a href="#">Register</a></p>
2329
</form>
2430
</div>

008-form wave animation/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ labels.forEach((label) => {
55
.split("")
66
.map(
77
(letter, idx) =>
8-
`<span style="transition-delay:${idx * 50}ms">${letter}</span>`
8+
// Adjust Wave Animation Speed
9+
`<span style="transition-delay:${idx * 25}ms">${letter}</span>`
910
)
1011
.join("");
1112
});

008-form wave animation/style.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ body {
3030

3131
.container a {
3232
text-decoration: none;
33-
color: lightblue;
33+
color: #59a96a;
3434
}
3535

3636
.btn {
3737
cursor: pointer;
3838
display: inline-block;
3939
width: 100%;
40-
background: lightblue;
40+
/* Modify Button Appearance */
41+
background: #59a96a;
4142
padding: 15px;
4243
font-family: inherit;
4344
font-size: 16px;
@@ -77,7 +78,7 @@ body {
7778
.form-control input:focus,
7879
.form-control input:valid {
7980
outline: 0;
80-
border-bottom-color: lightblue;
81+
border-bottom-color: #13293d;
8182
}
8283

8384
.form-control label {
@@ -96,6 +97,7 @@ body {
9697

9798
.form-control input:focus + label span,
9899
.form-control input:valid + label span {
99-
color: lightblue;
100+
/* Change Label Color on Focus */
101+
color: #59a96a;
100102
transform: translateY(-30px);
101103
}

0 commit comments

Comments
 (0)