-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
167 lines (160 loc) · 7.75 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Compass AI</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Tailwind CSS CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Feather Icons -->
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="h-screen w-screen flex flex-col bg-gray-800 text-white overflow-hidden">
<!-- Header -->
<header class="bg-gray-700 h-24 flex items-center justify-center">
<h1 class="text-3xl font-bold">Compass AI</h1>
</header>
<!-- Main Content -->
<main class="flex-1 flex overflow-hidden">
<!-- Conversations and Memories Sidebar -->
<aside class="w-1/4 bg-gray-600 p-4 overflow-y-auto">
<!-- Memories Section -->
<div id="memoriesContainer" class="mb-6">
<h2 class="text-xl font-semibold mb-2">Memories</h2>
<div id="memoriesList" class="space-y-2">
<!-- Memory Items will be appended here -->
</div>
</div>
<!-- Conversations Section -->
<div id="conversationsContainer" class="mb-6">
<h2 class="text-xl font-semibold mb-2">Conversations</h2>
<div id="conversationsList" class="space-y-2">
<!-- Conversation Items will be appended here -->
</div>
</div>
<!-- Settings Section -->
<div id="settingsContainer" class="mb-6">
<h2 class="text-xl font-semibold mb-2">Settings</h2>
<div class="space-y-4">
<!-- Theme Settings -->
<div>
<h3 class="font-semibold">Theme</h3>
<div class="flex space-x-2 mt-2">
<button id="themeLight" class="px-3 py-1 bg-white text-gray-800 rounded">Light</button>
<button id="themeDark" class="px-3 py-1 bg-gray-800 text-white rounded">Dark</button>
</div>
</div>
<!-- Other Settings can be added here -->
</div>
</div>
</aside>
<!-- Tool Output Area -->
<section class="flex-1 bg-gray-800 p-4 flex flex-col">
<div id="tool-output" class="flex-1 overflow-y-auto space-y-4">
<!-- Messages will be appended here -->
</div>
<div class="mt-4">
<!-- Input Area -->
<div class="flex space-x-2">
<textarea id="user-input" class="flex-1 p-2 rounded bg-gray-700 text-white focus:outline-none resize-none h-12" placeholder="Enter your message..."></textarea>
<button id="submit-button" class="w-12 h-12 bg-blue-500 hover:bg-blue-600 rounded flex items-center justify-center">
<i data-feather="arrow-right" class="text-white"></i>
</button>
<button id="menuButton" class="w-12 h-12 bg-gray-500 hover:bg-gray-600 rounded flex items-center justify-center">
<i data-feather="menu" class="text-white"></i>
</button>
</div>
</div>
</section>
</main>
<!-- Popout Menu -->
<div id="popoutMenu" class="fixed bottom-20 right-5 bg-gray-700 rounded-t-lg shadow-lg hidden">
<div id="popoutMenuHotBar" class="flex space-x-2 p-2 border-b border-gray-600">
<button class="menu-button bg-blue-500 hover:bg-blue-600 p-2 rounded">
<i data-feather="clipboard" class="text-white"></i>
</button>
<button class="menu-button bg-green-500 hover:bg-green-600 p-2 rounded">
<i data-feather="code" class="text-white"></i>
</button>
<button class="menu-button bg-yellow-500 hover:bg-yellow-600 p-2 rounded">
<i data-feather="clock" class="text-white"></i>
</button>
<button class="menu-button bg-purple-500 hover:bg-purple-600 p-2 rounded">
<i data-feather="bookmark" class="text-white"></i>
</button>
<button class="menu-button bg-red-500 hover:bg-red-600 p-2 rounded">
<i data-feather="refresh-cw" class="text-white"></i>
</button>
<button class="menu-button bg-gray-500 hover:bg-gray-600 p-2 rounded" id="closeMenuButton">
<i data-feather="x" class="text-white"></i>
</button>
</div>
<div class="p-4 space-y-4">
<button class="menu-item flex items-center space-x-2 p-2 rounded hover:bg-gray-600">
<i data-feather="star"></i>
<span>Guides</span>
</button>
<button class="menu-item flex items-center space-x-2 p-2 rounded hover:bg-gray-600">
<i data-feather="book"></i>
<span>Memories</span>
</button>
<button class="menu-item flex items-center space-x-2 p-2 rounded hover:bg-gray-600">
<i data-feather="terminal"></i>
<span>Instructions</span>
</button>
<button class="menu-item flex items-center space-x-2 p-2 rounded hover:bg-gray-600">
<i data-feather="book-open"></i>
<span>Notes</span>
</button>
<button class="menu-item flex items-center space-x-2 p-2 rounded hover:bg-gray-600">
<i data-feather="tool"></i>
<span>Tools</span>
</button>
<button class="menu-item flex items-center space-x-2 p-2 rounded hover:bg-gray-600">
<i data-feather="message-square"></i>
<span>Conversations</span>
</button>
<button class="menu-item flex items-center space-x-2 p-2 rounded hover:bg-gray-600">
<i data-feather="settings"></i>
<span>Settings</span>
</button>
</div>
</div>
<!-- Terms of Service Overlay -->
<div id="termsOverlay" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center">
<div class="bg-white text-gray-800 rounded-lg p-6 w-11/12 md:w-2/3 lg:w-1/2 overflow-y-auto max-h-screen">
<div class="flex flex-col items-center space-y-4">
<img src="https://via.placeholder.com/400x100?text=Compass+AI+Logo" alt="Compass AI Logo" class="w-full max-w-md">
<h1 class="text-2xl font-bold">Terms of Service</h1>
<ol class="list-decimal list-inside text-left space-y-2">
<li>This is an experimental tool that uses OpenAI's NLP API.</li>
<li>Information returned by the tool may not always be accurate or reliable.</li>
<li>The tool should be used for informational purposes only and should not be considered as professional advice.</li>
<li>OpenAI does not guarantee the correctness, completeness, or usefulness of the information provided.</li>
<li>This is an Alpha version of the tool, and frequent updates and improvements are expected.</li>
<li>Users are responsible for verifying the accuracy of the information obtained through the tool.</li>
<li>Any actions taken based on the information provided by the tool are at the user's own risk.</li>
</ol>
<p class="font-semibold">Version: Alpha 3.0.0</p>
<p>For support and further development, consider supporting Compass on Patreon:</p>
<a href="https://www.patreon.com/CompassAI" target="_blank">
<img src="https://via.placeholder.com/200x50?text=Patreon" alt="Patreon" class="w-48">
</a>
<p>Check out our development site for updates and more:</p>
<a href="https://ourtech.space/dev" target="_blank" class="text-blue-500 underline">OurTech Dev Site</a>
<div class="flex items-center space-x-2 mt-4">
<input type="checkbox" id="openAITermsCheckbox" class="h-4 w-4 text-blue-600 focus:ring-blue-500 border-gray-300 rounded">
<label for="openAITermsCheckbox" class="flex items-center cursor-pointer">
I accept the <a href="https://openai.com/policies" target="_blank" class="text-blue-500 underline">OpenAI Terms of Service</a>
</label>
</div>
<button id="acceptTermsButton" class="mt-4 px-4 py-2 bg-blue-500 hover:bg-blue-600 text-white rounded disabled:opacity-50" disabled>
Accept Terms of Service
</button>
</div>
</div>
</div>
<!-- Scripts -->
<script src="/js/main.js"></script>
</body>
</html>