Repository navigation
Expand file tree
/
Copy pathchat.html
More file actions
249 lines (233 loc) · 11.7 KB
/
Copy pathchat.html
File metadata and controls
249 lines (233 loc) · 11.7 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
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Tabish Ali's AI Chat - An intelligent conversational AI assistant">
<meta name="author" content="Tabish Ali">
<title>Tabish Ali's AI Chat - Intelligent Conversational Assistant</title>
<!-- Preconnect to external domains -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/chat.css">
</head>
<body>
<!-- Chat Container -->
<div class="chat-container">
<!-- Sidebar -->
<aside class="chat-sidebar" id="chatSidebar">
<div class="sidebar-header">
<div class="logo">
<svg class="logo-svg" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="logoGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#6366F1;stop-opacity:1" />
<stop offset="100%" style="stop-color:#8B5CF6;stop-opacity:1" />
</linearGradient>
</defs>
<circle cx="50" cy="50" r="40" fill="none" stroke="url(#logoGradient)" stroke-width="3"/>
<text x="50" y="58" text-anchor="middle" font-family="Space Grotesk, sans-serif" font-size="24" font-weight="700" fill="url(#logoGradient)">TA</text>
</svg>
<div class="logo-text">
<h1>Tabish Ali's</h1>
<span>AI Chat</span>
</div>
</div>
<button class="sidebar-toggle" id="sidebarToggle" aria-label="Toggle sidebar">
<i class="fas fa-bars"></i>
</button>
</div>
<button class="new-chat-btn" id="newChatBtn">
<i class="fas fa-plus"></i>
<span>New Chat</span>
</button>
<div class="chat-history">
<h3 class="history-title">Recent Chats</h3>
<div class="history-list" id="historyList">
<!-- Chat history items will be added here dynamically -->
</div>
</div>
<div class="sidebar-footer">
<div class="user-profile">
<div class="user-avatar">
<i class="fas fa-user"></i>
</div>
<div class="user-info">
<span class="user-name">Guest User</span>
<span class="user-status">Free Plan</span>
</div>
</div>
<button class="theme-toggle-btn" id="themeToggleBtn" aria-label="Toggle theme">
<i class="fas fa-moon"></i>
</button>
</div>
</aside>
<!-- Main Chat Area -->
<main class="chat-main">
<!-- Chat Header -->
<header class="chat-header">
<button class="mobile-menu-btn" id="mobileMenuBtn" aria-label="Open menu">
<i class="fas fa-bars"></i>
</button>
<div class="chat-title">
<h2>Tabish Ali's AI Assistant</h2>
<span class="chat-status">
<span class="status-indicator"></span>
Online
</span>
</div>
<div class="chat-actions">
<button class="action-btn" id="clearChatBtn" aria-label="Clear chat">
<i class="fas fa-trash"></i>
</button>
<button class="action-btn" id="settingsBtn" aria-label="Settings">
<i class="fas fa-cog"></i>
</button>
</div>
</header>
<!-- Chat Messages -->
<div class="chat-messages" id="chatMessages">
<!-- Welcome Screen -->
<div class="welcome-screen" id="welcomeScreen">
<div class="welcome-content">
<div class="welcome-icon">
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient id="welcomeGradient" x1="0%" y1="0%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:#6366F1;stop-opacity:1" />
<stop offset="50%" style="stop-color:#8B5CF6;stop-opacity:1" />
<stop offset="100%" style="stop-color:#EC4899;stop-opacity:1" />
</linearGradient>
</defs>
<circle cx="50" cy="50" r="45" fill="none" stroke="url(#welcomeGradient)" stroke-width="4"/>
<path d="M30 45 Q35 40 40 45 M60 45 Q65 40 70 45" stroke="url(#welcomeGradient)" stroke-width="3" fill="none"/>
<path d="M30 60 Q50 75 70 60" stroke="url(#welcomeGradient)" stroke-width="3" fill="none"/>
</svg>
</div>
<h2 class="welcome-title">Welcome to Tabish Ali's AI Chat</h2>
<p class="welcome-description">
Your intelligent conversational assistant powered by advanced AI technology.
Ask me anything, and I'll do my best to help!
</p>
<div class="suggestion-cards">
<div class="suggestion-card" data-prompt="Tell me about web development best practices">
<i class="fas fa-code"></i>
<h3>Web Development</h3>
<p>Learn about best practices</p>
</div>
<div class="suggestion-card" data-prompt="How can I improve my UI/UX design skills?">
<i class="fas fa-palette"></i>
<h3>Design Tips</h3>
<p>Improve your design skills</p>
</div>
<div class="suggestion-card" data-prompt="What are the latest trends in technology?">
<i class="fas fa-rocket"></i>
<h3>Tech Trends</h3>
<p>Stay updated with tech</p>
</div>
<div class="suggestion-card" data-prompt="Help me with JavaScript programming">
<i class="fas fa-laptop-code"></i>
<h3>Programming Help</h3>
<p>Get coding assistance</p>
</div>
</div>
</div>
</div>
<!-- Messages will be added here dynamically -->
</div>
<!-- Typing Indicator -->
<div class="typing-indicator" id="typingIndicator" style="display: none;">
<div class="typing-avatar">
<i class="fas fa-robot"></i>
</div>
<div class="typing-dots">
<span></span>
<span></span>
<span></span>
</div>
</div>
<!-- Chat Input -->
<div class="chat-input-container">
<form class="chat-input-form" id="chatForm">
<button type="button" class="attach-btn" aria-label="Attach file">
<i class="fas fa-paperclip"></i>
</button>
<textarea
class="chat-input"
id="chatInput"
placeholder="Type your message here..."
rows="1"
aria-label="Chat message input"
></textarea>
<button type="submit" class="send-btn" id="sendBtn" aria-label="Send message">
<i class="fas fa-paper-plane"></i>
</button>
</form>
<div class="input-footer">
<span class="input-hint">
<i class="fas fa-info-circle"></i>
Press Enter to send, Shift + Enter for new line
</span>
<span class="char-count" id="charCount">0 / 2000</span>
</div>
</div>
</main>
</div>
<!-- Settings Modal -->
<div class="modal" id="settingsModal">
<div class="modal-backdrop"></div>
<div class="modal-content">
<div class="modal-header">
<h3>Settings</h3>
<button class="modal-close" id="closeSettingsBtn" aria-label="Close settings">
<i class="fas fa-times"></i>
</button>
</div>
<div class="modal-body">
<div class="setting-group">
<label class="setting-label">
<span>AI Response Speed</span>
<select class="setting-select" id="responseSpeed">
<option value="fast">Fast</option>
<option value="normal" selected>Normal</option>
<option value="slow">Slow</option>
</select>
</label>
</div>
<div class="setting-group">
<label class="setting-label">
<span>Message Sound</span>
<input type="checkbox" class="setting-checkbox" id="messageSound" checked>
<span class="checkbox-slider"></span>
</label>
</div>
<div class="setting-group">
<label class="setting-label">
<span>Show Timestamps</span>
<input type="checkbox" class="setting-checkbox" id="showTimestamps" checked>
<span class="checkbox-slider"></span>
</label>
</div>
<div class="setting-group">
<label class="setting-label">
<span>Auto-scroll</span>
<input type="checkbox" class="setting-checkbox" id="autoScroll" checked>
<span class="checkbox-slider"></span>
</label>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" id="cancelSettingsBtn">Cancel</button>
<button class="btn btn-primary" id="saveSettingsBtn">Save Changes</button>
</div>
</div>
</div>
<!-- Custom JavaScript -->
<script src="assets/js/chat.js"></script>
</body>
</html>