Skip to content

Commit 294a2b8

Browse files
authored
Adds index.html and signup.html
1 parent 5cc868a commit 294a2b8

File tree

2 files changed

+88
-0
lines changed

2 files changed

+88
-0
lines changed

views/index.html

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<title>Low impact authentication via SMS</title>
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
10+
<!-- import the webpage's stylesheet -->
11+
<link rel="stylesheet" href="/style.css">
12+
13+
<!-- import the webpage's client-side javascript file -->
14+
<script src="/client.js" defer></script>
15+
</head>
16+
17+
<body>
18+
<header>
19+
<h1>
20+
Low-impact authentication via SMS
21+
</h1>
22+
</header>
23+
24+
<main>
25+
<p>
26+
How does it work? The admin of this site generates a text to your phone, allowing you to pick a username
27+
and create an account here. Once your account is created, you're logged in and your phone number is deleted.
28+
This allows the admin to easily provide access to trusted friends while not putting their personal
29+
information at risk.
30+
</p>
31+
32+
<p>
33+
Received an authentication code? <a href="/signup">Go here to sign up!</a>
34+
</p>
35+
</main>
36+
37+
</body>
38+
39+
</html>

views/signup.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<title>Low impact authentication via SMS</title>
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
10+
<!-- import the webpage's stylesheet -->
11+
<link rel="stylesheet" href="/style.css">
12+
13+
<!-- import the webpage's client-side javascript file -->
14+
<script src="/client.js" defer></script>
15+
<!-- <script type="application/json" src="/client.js" defer></script> -->
16+
</head>
17+
18+
<body>
19+
<header>
20+
<h1>
21+
Low-impact authentication via SMS
22+
</h1>
23+
</header>
24+
25+
<main>
26+
<h2>
27+
Sign up or log in
28+
</h2>
29+
30+
<form id="loginForm" method="post" action="/login">
31+
<label>Phone number:
32+
<input type="phone" id="phone" name="phone" autocomplete="phone" />
33+
</label>
34+
35+
<label>Username:
36+
<input type="text" id="username" name="username" autocomplete="username" />
37+
</label>
38+
39+
<label>PIN:
40+
<input type="text" id="pin" name="pin" autocomplete="pin" />
41+
</label>
42+
43+
<input type="submit" value="Sign up" id="signup_btn" />
44+
<h3 id="feedback"></h3>
45+
</form>
46+
</main>
47+
</body>
48+
49+
</html>

0 commit comments

Comments
 (0)