-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
75 lines (64 loc) · 1.97 KB
/
index.html
File metadata and controls
75 lines (64 loc) · 1.97 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Synthwave AI by HouseLearning</title>
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Firebase (must load BEFORE app.js) -->
<script type="module">
import { initializeApp } from "https://www.gstatic.com/firebasejs/9.23.0/firebase-app.js";
import {
getAuth,
onAuthStateChanged,
signInWithEmailAndPassword,
createUserWithEmailAndPassword,
signInAnonymously,
signOut
} from "https://www.gstatic.com/firebasejs/9.23.0/firebase-auth.js";
const firebaseConfig = {
apiKey: "AIzaSyDoXSwni65CuY1_32ZE8B1nwfQO_3VNpTw",
authDomain: "contract-center-llc-10.firebaseapp.com",
projectId: "contract-center-llc-10"
};
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
window.firebaseAuth = auth;
window.firebaseAuthFns = {
onAuthStateChanged,
signInWithEmailAndPassword,
createUserWithEmailAndPassword,
signInAnonymously,
signOut
};
</script>
<!-- WebLLM (correct ESM import) -->
<script type="module">
import * as webllm from "https://esm.run/@mlc-ai/web-llm";
window.webllm = webllm;
</script>
</head>
<body>
<div class="app-shell">
<header>
<div class="brand">
<h1>Synthwave AI</h1>
</div>
<div class="auth">
<span id="user-pill"></span>
<button id="login-btn">Log in</button>
<button id="logout-btn" style="display:none;">Log out</button>
</div>
</header>
<main>
<div id="chat-body" class="chat-body"></div>
<div class="input-area">
<textarea id="user-input" placeholder="Say something..."></textarea>
<button id="voice-btn">🎤</button>
<button id="send-btn">Send</button>
</div>
</main>
</div>
<script src="app.js"></script>
<script type="module" src="app.js"></script></body>
</html>