-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
245 lines (223 loc) · 11.1 KB
/
index.html
File metadata and controls
245 lines (223 loc) · 11.1 KB
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="theme-color" content="#8c25f4">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<title>HashChat - Private Anonymous Chat</title>
<link rel="stylesheet" href="stylesheet.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
rel="stylesheet">
<style>
</style>
</head>
<body>
<!-- Landing Page Content (Intitially visible) & hidden when Chat is open -->
<div id="landing-page">
<!-- Navigation -->
<nav>
<div class="logo">
<div class="logo-icon"></div>
<span>HashChat</span>
</div>
<div class="nav-links">
<a href="SECURITY.md">Security</a>
<a href="DOCS.md">Docs</a>
</div>
<button class="hamburger" onclick="toggleMobileMenu()">
<span></span>
<span></span>
<span></span>
</button>
</nav>
<!-- Mobile Menu Overlay -->
<div class="mobile-menu-overlay"></div>
<!-- Mobile Navigation -->
<div class="mobile-nav">
<div class="mobile-nav-links">
<a href="SECURITY.md">Security</a>
<a href="DOCS.md">Docs</a>
</div>
</div>
<!-- Hero Section -->
<section class="hero">
<h1>Start a <span class="accent">Private</span> Chat.</h1>
<p>Instant, anonymous rooms. No history. No traces. Just clear, secure communication that disappears when
you're
done.</p>
<button class="cta-button" onclick="createNewRoom()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
</svg>
Generate Private Link →
</button>
<div class="cta-subtext">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" />
</svg>
NO REGISTRATION REQUIRED
</div>
</section>
<!-- Magic Link Mockup -->
<section class="magic-link-section">
<div class="glass-card">
<div class="browser-mockup">
<div class="browser-bar">
<div class="browser-dot"></div>
<div class="browser-dot"></div>
<div class="browser-dot"></div>
<div class="browser-url">hashchat.room</div>
</div>
<div class="hash-display">
<p class="hash-text" id="hashText">example.com/#3f454rf</p>
<div class="copy-icon" onclick="copyHash()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
</div>
</div>
</div>
<p class="magic-caption">This unique cryptographic hash ensures only those with the link can access the
room.</p>
</div>
</section>
<!-- Feature Grid -->
<section class="features-section">
<div class="features-grid">
<div class="feature-card">
<div class="feature-icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16" />
</svg>
</div>
<h3>Zero Trace</h3>
<p>Messages exist only in memory; closing the tab purges them instantly. No server logs, no history,
no
evidence.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
</svg>
</div>
<h3>Client-Side Encryption</h3>
<p>Data is encrypted before leaving your device. End-to-end encryption ensures only participants can
read messages.</p>
</div>
<div class="feature-card">
<div class="feature-icon">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" />
</svg>
</div>
<h3>Truly Anonymous</h3>
<p>No email, no phone numbers, no IP tracking. No accounts to create. Just pure, untraceable
communication.</p>
</div>
</div>
</section>
<!-- Workflow Section -->
<section class="workflow-section">
<p class="workflow-title">The Hash Workflow</p>
<div class="workflow-steps">
<div class="workflow-step">
<div class="step-number">1</div>
<span class="step-label">Generate</span>
<p class="step-content">When you click on the generate private link, a unique 7-character hash is
created.</p>
</div>
<span class="step-arrow">→</span>
<div class="workflow-step">
<div class="step-number">2</div>
<span class="step-label">Invite</span>
<p class="step-content">Now you and your friend both can chat on that generated Link.</p>
</div>
<span class="step-arrow">→</span>
<div class="workflow-step">
<div class="step-number">3</div>
<span class="step-label">Vanish</span>
<p class="step-content">When you're done chatting just leave that chat, it will be deleted
immediately.
</p>
</div>
</div>
</section>
<!-- Footer -->
<footer>
<div class="footer-content">
<div class="footer-links">
<a href="PRIVACY.md">Privacy</a>
<a href="TERMS.md">Terms</a>
<a href="https://github.com/Vanshdeveloper/hashchat">GitHub</a>
</div>
<p class="copyright">© 2026 HashChat</p>
</div>
</footer>
</div>
<!-- Landing Page Ends Here -->
<!-- Chat Page Template (Hidden by default, shown when a room is created or joined) -->
<div id="chat-page">
<!-- Navigation Bar -->
<nav class="chat-nav">
<div class="chat-logo">
<div class="logo-icon"></div>
<span>HashChat</span>
</div>
<div class="chat-status">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
</svg>
<span id="room-id-display"></span>
</div>
<button class="copy-link-btn" onclick="copyHash()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round"
d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z" />
</svg>
Copy Link
</button>
</nav>
<!-- Chat Stream -->
<div class="chat-container">
<div class="chat-stream" id="chat-stream">
<!-- This will be populated by user's Messages -->
</div>
</div>
<!-- Input Area -->
<div class="input-area">
<div class="input-container">
<input type="text" id="message-input" placeholder="Type a message..." autocomplete="off">
<button class="send-btn" onclick="sendMessage()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"
stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8" />
</svg>
</button>
</div>
<p class="encryption-note">MESSAGES ARE END-TO-END ENCRYPTED</p>
</div>
</div>
<script src="script.js" type="module"></script>
</body>
</html>