-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
60 lines (52 loc) · 1.47 KB
/
login.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Telegram Login</title>
<style>
* {
margin: 0;
}
:root {
font-size: 20px;
}
body {
font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
line-height: 1.5;
height: 100vh;
overflow: hidden;
}
.container {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.main {
width: 16rem;
padding: 1rem 1rem 4rem;
}
h1 {
font-size: 1.5rem;
margin-bottom: .5rem;
}
.paragraph {
line-height: 1.25;
margin-bottom: 2.25rem;
}
</style>
</head>
<body>
<div class="container">
<div class="main">
<h1>Please log in</h1>
<p class="paragraph">Only selected users may see this site.</p>
<script async src="https://telegram.org/js/telegram-widget.js?22" data-telegram-login="YOUR_BOT_USERNAME"
data-size="large" data-auth-url="/auth/telegram-callback?next={{ next_path }}"
data-request-access="write"></script>
</div>
</div>
</body>
</html>