-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
114 lines (101 loc) · 3.1 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!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" />
<link
rel="icon"
type="favicon"
id="favicon"
href="./assets/light-fav.ico"
/>
<link rel="stylesheet" href="./styles/custom-prefers-toggle.css" />
<!-- <script src="custom-prefers-toggle.js"></script> -->
<script defer src="cpt.js"></script>
<title>Github login</title>
</head>
<body class="lightmode">
<div class="header">
<!-- icon -->
<img src="./assets/l-logo.png" alt="Github logo" class="logo" />
<h1>Sign in to GitHub</h1>
</div>
<div class="container">
<form class="container__form" action="#">
<div class="container__form--name">
<label for="email" class="label">E-mail address</label>
<input
type="email"
id="email"
class="input"
name="email"
minlength="10"
pattern="[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+"
required
/>
<!-- The aria-live attribute is set on <span> so that custom error message is presented to everyone, including screenreader. -->
<span class="error" aria-live="polite"></span>
</div>
<div class="container__form--pass">
<div class="pass">
<label for="password" class="label">Password</label>
<a href="https://github.com/password_reset" class="forgot"
>Forgot password?</a
>
</div>
<input
type="password"
id="password"
class="input"
minlength="8"
maxlength="16"
required
/>
<span class="error" aria-live="polite"></span>
</div>
<div class="container__form--button">
<button class="button">Sign in</button>
</div>
</form>
<form class="login" action="#">
<p>
New to Github?
<a href="https://github.com/join?source=login" class="create"
>Create an account.</a
>
</p>
</form>
</div>
<div class="footer">
<a
href="https://docs.github.com/en/github/site-policy/github-terms-of-service"
class="link"
>Terms</a
>
<a
href="https://docs.github.com/en/github/site-policy/github-privacy-statement"
class="link"
>Privacy</a
>
<a href="https://github.com/security" class="link">Security</a>
<a href="https://support.github.com/request" class="contact"
>Contact GitHub</a
>
</div>
<!-- dark/light switch -->
<label class="switch">
<i class="fas fa-adjust"></i>
<div>
<input
type="checkbox"
class="checkbox"
aria-label="toggle dark mode"
id="dark-mode-toggle"
/>
<span class="slider round"></span>
</div>
</label>
<p class="theme-switch">Switch theme</p>
</body>
</html>