Spaces:
Sleeping
Sleeping
Update application/templates/index.html
Browse files- application/templates/index.html +160 -33
application/templates/index.html
CHANGED
@@ -1,55 +1,182 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
<head>
|
4 |
-
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
5 |
<meta charset="UTF-8">
|
6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
7 |
-
<
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/atom-one-dark.min.css">
|
|
|
|
|
12 |
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
13 |
-
|
14 |
-
|
|
|
|
|
15 |
</head>
|
16 |
<body>
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
</div>
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
|
|
|
|
|
|
28 |
</div>
|
29 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
|
31 |
-
|
32 |
<div class="container" id="container">
|
33 |
<div class="messages" id="messages">
|
|
|
34 |
</div>
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
</div>
|
41 |
</div>
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
</div>
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
<div class="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
</div>
|
52 |
-
|
53 |
-
|
|
|
|
|
54 |
</body>
|
55 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
<head>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>Xylaria AI Chat</title>
|
7 |
+
|
8 |
+
<!-- Fonts -->
|
9 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
10 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
|
11 |
+
|
12 |
+
<!-- Icons -->
|
13 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
14 |
+
|
15 |
+
<!-- Syntax Highlighting -->
|
16 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/atom-one-dark.min.css">
|
17 |
+
|
18 |
+
<!-- MathJax -->
|
19 |
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
|
20 |
+
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
|
21 |
+
|
22 |
+
<!-- Custom CSS -->
|
23 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
|
24 |
</head>
|
25 |
<body>
|
26 |
+
<!-- Navigation -->
|
27 |
+
<nav class="nav-container">
|
28 |
+
<div class="nav-content">
|
29 |
+
<div class="nav-left">
|
30 |
+
<div class="hamburger" id="hamburger">
|
31 |
+
<div class="line1"></div>
|
32 |
+
<div class="line2"></div>
|
33 |
+
</div>
|
34 |
+
<div class="brand">
|
35 |
+
<span class="brand-text">Xylaria</span>
|
36 |
+
<span class="brand-version">v2.0</span>
|
37 |
+
</div>
|
38 |
+
</div>
|
39 |
+
|
40 |
+
<div class="nav-center">
|
41 |
+
<select name="models" id="models" class="models">
|
42 |
+
<option value="gpt-4">GPT-4</option>
|
43 |
+
<option value="gpt-3.5">GPT-3.5</option>
|
44 |
+
<option value="claude">Claude</option>
|
45 |
+
</select>
|
46 |
+
</div>
|
47 |
+
|
48 |
+
<div class="nav-right">
|
49 |
+
<button class="theme-toggle" id="themeToggle">
|
50 |
+
<i class="fas fa-moon"></i>
|
51 |
+
</button>
|
52 |
+
<button class="settings-btn" id="settingsBtn">
|
53 |
+
<i class="fas fa-cog"></i>
|
54 |
+
</button>
|
55 |
+
</div>
|
56 |
</div>
|
57 |
+
</nav>
|
58 |
+
|
59 |
+
<!-- Sidebar Menu -->
|
60 |
+
<div class="menu" id="menu">
|
61 |
+
<div class="menu-header">
|
62 |
+
<div class="new-chat" id="newChat">
|
63 |
+
<i class="fas fa-plus"></i>
|
64 |
+
<span>New Chat</span>
|
65 |
</div>
|
66 |
</div>
|
67 |
+
|
68 |
+
<div class="menu-content">
|
69 |
+
<div class="chats-header">
|
70 |
+
<span class="chats-title">Recent Chats</span>
|
71 |
+
<button class="clear-chats" id="clearChats">
|
72 |
+
<i class="fas fa-trash-alt"></i>
|
73 |
+
</button>
|
74 |
+
</div>
|
75 |
+
<div class="prev-chats-cont" id="prevChatsCont"></div>
|
76 |
+
</div>
|
77 |
+
|
78 |
+
<div class="menu-footer">
|
79 |
+
<button class="discord-btn">
|
80 |
+
<i class="fab fa-discord"></i>
|
81 |
+
<span>Join Discord</span>
|
82 |
+
</button>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
|
86 |
+
<!-- Main Container -->
|
87 |
<div class="container" id="container">
|
88 |
<div class="messages" id="messages">
|
89 |
+
<!-- Messages will be dynamically inserted here -->
|
90 |
</div>
|
91 |
+
|
92 |
+
<div class="input-container">
|
93 |
+
<div class="inputs">
|
94 |
+
<button id="webSearch" class="web-search">
|
95 |
+
<i class="fa-solid fa-globe"></i>
|
96 |
+
</button>
|
97 |
+
<textarea
|
98 |
+
id="textBox"
|
99 |
+
class="text-box"
|
100 |
+
placeholder="Send a message..."
|
101 |
+
rows="1"
|
102 |
+
></textarea>
|
103 |
+
<button id="sendBtn" class="send-btn">
|
104 |
+
<i class="fa-solid fa-paper-plane"></i>
|
105 |
+
</button>
|
106 |
+
</div>
|
107 |
+
<div class="input-footer">
|
108 |
+
<span class="input-info">AI may produce inaccurate information</span>
|
109 |
+
</div>
|
110 |
</div>
|
111 |
</div>
|
112 |
+
|
113 |
+
<!-- Welcome Modal -->
|
114 |
+
<div class="modal" id="welcomeModal">
|
115 |
+
<div class="modal-content">
|
116 |
+
<div class="modal-header">
|
117 |
+
<h2>Welcome to Xylaria!</h2>
|
118 |
+
<button class="close-modal" id="closeModal">
|
119 |
+
<i class="fas fa-times"></i>
|
120 |
+
</button>
|
121 |
+
</div>
|
122 |
+
<div class="modal-body">
|
123 |
+
<p>Experience the next generation of AI conversation.</p>
|
124 |
+
<div class="feature-list">
|
125 |
+
<div class="feature-item">
|
126 |
+
<i class="fas fa-brain"></i>
|
127 |
+
<span>Advanced AI Models</span>
|
128 |
+
</div>
|
129 |
+
<div class="feature-item">
|
130 |
+
<i class="fas fa-bolt"></i>
|
131 |
+
<span>Fast Response Times</span>
|
132 |
+
</div>
|
133 |
+
<div class="feature-item">
|
134 |
+
<i class="fas fa-lock"></i>
|
135 |
+
<span>Secure Conversations</span>
|
136 |
+
</div>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
<div class="modal-footer">
|
140 |
+
<button class="start-btn" id="startBtn">Get Started</button>
|
141 |
+
</div>
|
142 |
+
</div>
|
143 |
</div>
|
144 |
+
|
145 |
+
<!-- Settings Modal -->
|
146 |
+
<div class="settings-modal" id="settingsModal">
|
147 |
+
<div class="settings-content">
|
148 |
+
<div class="settings-header">
|
149 |
+
<h2>Settings</h2>
|
150 |
+
<button class="close-settings" id="closeSettings">
|
151 |
+
<i class="fas fa-times"></i>
|
152 |
+
</button>
|
153 |
+
</div>
|
154 |
+
<div class="settings-body">
|
155 |
+
<div class="settings-section">
|
156 |
+
<h3>Appearance</h3>
|
157 |
+
<div class="setting-item">
|
158 |
+
<span>Theme</span>
|
159 |
+
<select id="themeSelect" class="theme-select">
|
160 |
+
<option value="system">System</option>
|
161 |
+
<option value="light">Light</option>
|
162 |
+
<option value="dark">Dark</option>
|
163 |
+
</select>
|
164 |
+
</div>
|
165 |
+
<div class="setting-item">
|
166 |
+
<span>Font Size</span>
|
167 |
+
<select id="fontSize" class="font-select">
|
168 |
+
<option value="small">Small</option>
|
169 |
+
<option value="medium">Medium</option>
|
170 |
+
<option value="large">Large</option>
|
171 |
+
</select>
|
172 |
+
</div>
|
173 |
+
</div>
|
174 |
+
</div>
|
175 |
+
</div>
|
176 |
</div>
|
177 |
+
|
178 |
+
<!-- Scripts -->
|
179 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js"></script>
|
180 |
+
<script src="{{ url_for('static', filename='js/script.js') }}" type="module"></script>
|
181 |
</body>
|
182 |
</html>
|