-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
58 lines (54 loc) · 2.68 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Twitter Login Page</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="login-card">
<div class="login-card-head">
<a href="#">
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-x" width="24" height="24"
viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round"
stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<line x1="18" y1="6" x2="6" y2="18"></line>
<line x1="6" y1="6" x2="18" y2="18"></line>
</svg>
</a>
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-twitter" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path
d="M22 4.01c-1 .49 -1.98 .689 -3 .99c-1.121 -1.265 -2.783 -1.335 -4.38 -.737s-2.643 2.06 -2.62 3.737v1c-3.245 .083 -6.135 -1.395 -8 -4c0 0 -4.182 7.433 4 11c-1.872 1.247 -3.739 2.088 -6 2c3.308 1.803 6.913 2.423 10.034 1.517c3.58 -1.04 6.522 -3.723 7.651 -7.742a13.84 13.84 0 0 0 .497 -3.753c-.002 -.249 1.51 -2.772 1.818 -4.013z">
</path>
</svg>
</div>
<h1>Sign in to Twitter</h1>
<a href="#" class="btn" style="margin-bottom: 1.5rem">
<img src="google.svg" alt=""> Continue with Google
</a>
<a href="#" class="btn" style="margin-bottom: 1.5rem">
<img src="apple.svg" alt=""> Continue with Apple
</a>
<div class="line-border">or</div>
<div class="input-group">
<input type="text">
<span>Phone, email or username</span>
</div>
<a href="#" class="btn" style="margin-bottom: 1.5rem">Next</a>
<a href="#" class="btn btn-outline">Forgot Password?</a>
<div style="margin: 3rem 0; color: #888">Don't have an account?</div>
<a href="#">Sign Up</a>
</div>
<script>
const input = document.querySelector('.login-card input[type="text"]');
input.addEventListener('focus', () => input.classList.add('focus'));
input.addEventListener('focusout', () => !input.value ? input.classList.remove('focus') : false);
</script>
</body>
</html>