-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
142 lines (135 loc) · 5.88 KB
/
index.html
File metadata and controls
142 lines (135 loc) · 5.88 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
<!DOCTYPE html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Unity Chat</title>
<meta
name="description"
content="A Pollinations AI chat workspace with model, voice, and theme controls."
/>
<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=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/themes/prism-tomorrow.min.css" />
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div class="wallpaper"></div>
<div class="desktop-shell">
<header class="taskbar" aria-label="Desktop status bar">
<div class="taskbar-left">
<span class="taskbar-logo" aria-hidden="true">◎</span>
<span class="taskbar-title">Unity Chat</span>
</div>
<div class="taskbar-right">
<span class="taskbar-indicator" id="connectionStatus" aria-live="polite">Idle</span>
<span class="taskbar-clock" id="taskbarClock">--:--</span>
</div>
</header>
<main class="window glass" role="main" aria-label="Unity Chat workspace">
<div class="window-header">
<div class="window-title">
<div class="title-icon" aria-hidden="true">🪟</div>
<div>
<h1>Unity Chat</h1>
<p>Pollinations conversations in a focused creative workspace</p>
</div>
</div>
<div class="window-controls" aria-hidden="true">
<button type="button" class="window-button" title="Minimize"></button>
<button type="button" class="window-button" title="Maximize"></button>
<button type="button" class="window-button close" title="Close"></button>
</div>
</div>
<div class="window-body">
<aside class="control-pane" aria-label="Conversation controls">
<section class="panel">
<h2>Configuration</h2>
<label class="input-group">
<span>Text model</span>
<select id="modelSelect" aria-label="Pollinations text model"></select>
</label>
<label class="input-group">
<span>Voice</span>
<select id="voiceSelect" aria-label="Voice for text-to-speech"></select>
</label>
<label class="input-group">
<span>Theme</span>
<select id="themeSelect" aria-label="Interface theme"></select>
</label>
<div class="input-group toggle">
<label for="memoryToggle">Memory sync</label>
<input type="checkbox" id="memoryToggle" checked aria-label="Allow assistant to store memories" />
</div>
</section>
<section class="panel">
<h2>Session snapshot</h2>
<dl class="session-meta">
<div>
<dt>Model</dt>
<dd id="modelBadge">—</dd>
</div>
<div>
<dt>Voice</dt>
<dd id="voiceBadge">—</dd>
</div>
<div>
<dt>Theme</dt>
<dd id="themeBadge">Daylight</dd>
</div>
</dl>
</section>
<section class="panel memories-panel">
<div class="panel-header">
<h2>Saved memories</h2>
<button type="button" id="clearMemories" class="ghost-button">Clear</button>
</div>
<p class="panel-help">
Memories guide future replies. The latest entries are automatically attached to requests.
</p>
<ol id="memoryList" class="memory-list" aria-live="polite"></ol>
</section>
</aside>
<section class="chat-pane" aria-label="Conversation thread">
<div class="chat-log" id="chatLog" role="log" aria-live="polite"></div>
<form id="composer" class="composer" autocomplete="off">
<label for="messageInput" class="sr-only">Message</label>
<textarea
id="messageInput"
rows="1"
placeholder="Type a message to Pollinations..."
aria-label="Message input"
required
></textarea>
<div class="composer-footer">
<span id="charCounter">0 characters</span>
<div class="composer-actions">
<button type="button" class="ghost-button" id="resetChat">Reset</button>
<button type="submit" id="sendButton" class="primary-button">Send</button>
</div>
</div>
</form>
</section>
</div>
</main>
</div>
<div class="toast" id="toast" role="status" aria-live="polite" hidden></div>
<script
src="https://cdn.jsdelivr.net/npm/marked@12.0.2/marked.min.js"
integrity="sha384-/TQbtLCAerC3jgaim+N78RZSDYV7ryeoBCVqTuzRrFec2akfBkHS7ACQ3PQhvMVi"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/dompurify@3.0.9/dist/purify.min.js"
integrity="sha384-3HPB1XT51W3gGRxAmZ+qbZwRpRlFQL632y8x+adAqCr4Wp3TaWwCLSTAJJKbyWEK"
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/components/prism-core.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/prismjs@1.29.0/plugins/autoloader/prism-autoloader.min.js" crossorigin="anonymous"></script>
<script src="script.js" defer></script>
</body>
</html>