Dashboard Temp Share Shortlinks Frames API

HTMLify

index.html
Views: 33 | Author: karbonsites
 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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ChatSphere - Realtime Chat</title>
    <link rel="stylesheet" href="style.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
</head>
<body>
    <div id="auth-container" class="auth-container">
        <div class="auth-card">
            <h1 class="logo">ChatSphere</h1>
            <p class="tagline">Realtime Communication, Minimalist Design.</p>
            <div id="auth-form">
                <div class="tab-switcher">
                    <button id="login-tab" class="tab-button active">Login</button>
                    <button id="register-tab" class="tab-button">Register</button>
                </div>
                <form id="login-form" class="auth-form">
                    <input type="email" id="login-email" placeholder="Email" required>
                    <input type="password" id="login-password" placeholder="Password" required>
                    <button type="submit" class="btn primary">Sign In</button>
                    <p id="login-message" class="message"></p>
                </form>
                <form id="register-form" class="auth-form hidden">
                    <input type="email" id="register-email" placeholder="Email" required>
                    <input type="password" id="register-password" placeholder="Password" required>
                    <button type="submit" class="btn primary">Create Account</button>
                    <p id="register-message" class="message"></p>
                </form>
            </div>
        </div>
    </div>

    <div id="chat-container" class="chat-container hidden">
        <header class="chat-header">
            <h1 class="logo-small">ChatSphere</h1>
            <div class="user-info">
                <span id="current-user-email"></span>
                <button id="logout-btn" class="btn secondary small">Logout</button>
            </div>
        </header>
        <main class="chat-main">
            <div class="chat-window">
                <div id="message-feed" class="message-feed">
                    <!-- Messages will be inserted here -->
                </div>
                <form id="message-form" class="message-input-form">
                    <input type="text" id="message-input" placeholder="Type your message..." autocomplete="off" required>
                    <button type="submit" class="btn primary">Send</button>
                </form>
            </div>
            <div class="chat-sidebar">
                <h2>Users Online</h2>
                <ul id="user-list"></ul>
            </div>
        </main>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
    <script src="script.js" defer></script>

  <a href="https://karbonsites.space/home" target="_blank" id="karbon-promo-banner">
      <span></span>
      <div>Built with <b>Karbon Sites</b></div>
  </a>
</body>
</html>