-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
81 lines (80 loc) · 3.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>nin0chat</title>
<link href="https://fonts.googleapis.com/css?family=Inter" rel="stylesheet" />
<script lang="ts" type="module">
import { addMessage, initWebSocket } from "./src/index";
import { configButtonsRow } from "./src/global";
import "./css/index.css";
import "./css/global.css";
import "./css/messages.css";
initWebSocket();
configButtonsRow();
</script>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=robot"
/>
</head>
<body>
<div id="app-bar">
<a href="/" id="title">
<p>nin0chat</p>
</a>
<p id="tagline">
the chat app of all time. straight to the point, easily accessible, open and
lightweight.
</p>
</div>
<div id="buttons-row">
<a href="/login.html"><button data-href="/login.html">login</button></a>
<a href="/signup.html"><button data-href="/signup.html">sign up</button></a>
<a href="https://github.com/nin0chat/docs"
><button data-href="https://github.com/nin0chat/docs">documentation</button></a
>
<a href="/privacy.html"
><button data-href="/privacy.html">privacy/clear my data</button></a
>
</div>
<div id="information">
<h3>how to join</h3>
<p>
if you're simply taking a look, you can quickly join by entering a username and
connecting! if you'd like to control your username, make bots, or gain more
permissions, you can also create an account.
</p>
<h3>rules</h3>
<p>
they're quite simple: use common sense. filters exist, do not bypass them.
<br />
ratelimits also exist, so do not spam. you cannot use guest/user accounts as bots.
you have to register them on the dev portal.
</p>
<h3>join as guest</h3>
<p id="guest-limitations">
note: guests are not allowed to send links, attach files or send messages bigger
than 300 characters. make an account to lift these limits.
</p>
<div id="guest-join-field">
<input type="text" id="username" placeholder="username" maxlength="30" />
<button id="join">join</button>
</div>
</div>
<div id="container">
<div id="content"></div>
<div id="members">
<strong>members (0)</strong>
</div>
</div>
<div id="input-bar">
<textarea placeholder="type a message..."></textarea>
<button id="send">send</button>
</div>
<div id="error">
<p></p>
</div>
</body>
</html>