1+ < html lang ="en ">
2+
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6+ < title > Chatbot Interface</ title >
7+ < script src ="https://cdn.tailwindcss.com "> </ script >
8+ < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css ">
9+ </ link >
10+ < style >
11+ body {
12+ font-family : 'Inter' , sans-serif;
13+ }
14+ </ style >
15+ </ head >
16+
17+ < body class ="bg-gray-800 text-white font-sans ">
18+ < div class ="flex h-screen ">
19+ <!-- Sidebar -->
20+ < div class ="w-64 bg-gray-900 p-6 ">
21+ < div class ="flex items-center justify-between mb-6 ">
22+ < button class ="bg-blue-600 text-white p-2 rounded-md ">
23+ < i class ="fas fa-plus "> </ i > New chat
24+ </ button >
25+ < button class ="text-gray-400 ">
26+ < i class ="fas fa-cog "> </ i >
27+ </ button >
28+ </ div >
29+ < div class ="mb-6 ">
30+ < div class ="flex items-center p-2 bg-blue-800 rounded-md mb-2 ">
31+ < i class ="fas fa-comment-alt text-blue-500 mr-2 "> </ i >
32+ < span > Chatbot definition expl</ span >
33+ </ div >
34+ </ div >
35+ < div class ="text-gray-400 ">
36+ < div class ="flex items-center mb-2 ">
37+ < i class ="fas fa-trash-alt mr-2 "> </ i >
38+ < span > Clear conversations</ span >
39+ </ div >
40+ < div class ="flex items-center mb-2 ">
41+ < i class ="fas fa-sun mr-2 "> </ i >
42+ < span > Light mode</ span >
43+ </ div >
44+ < div class ="flex items-center mb-2 ">
45+ < i class ="fab fa-discord mr-2 "> </ i >
46+ < span > OpenAI Discord</ span >
47+ </ div >
48+ < div class ="flex items-center mb-2 ">
49+ < i class ="fas fa-sync-alt mr-2 "> </ i >
50+ < span > Updates & FAQ</ span >
51+ </ div >
52+ < div class ="flex items-center ">
53+ < i class ="fas fa-sign-out-alt mr-2 "> </ i >
54+ < span > Log out</ span >
55+ </ div >
56+ </ div >
57+ </ div >
58+
59+ <!-- Main content -->
60+ < div class ="flex-1 flex flex-col p-6 " style ="justify-content: space-between; ">
61+ < div id ="chat-history ">
62+ < div class ="chat-message ">
63+ < div class ="flex items-center justify-between mb-6 ">
64+ < h1 class ="text-xl font-semibold user-prompt "> What is a Chatbot?</ h1 >
65+ < div class ="text-gray-400 ">
66+ < button class ="mr-2 ">
67+ < i class ="fas fa-print "> </ i >
68+ </ button >
69+ < button >
70+ < i class ="fas fa-expand-arrows-alt "> </ i >
71+ </ button >
72+ </ div >
73+ </ div >
74+ < div class ="bg-gray-700 p-6 rounded-md mb-6 flex-1 ai-response ">
75+ < p > A chatbot is a computer program that simulates human conversation through voice commands or
76+ text
77+ chats or both. It can be integrated with various messaging platforms like Facebook
78+ Messenger,
79+ WhatsApp, WeChat, etc. and can be used for a variety of purposes, such as customer service,
80+ entertainment, and e-commerce.</ p >
81+ </ div >
82+ < div class ="flex justify-end mb-6 ">
83+ < button class ="bg-blue-600 text-white p-2 rounded-md ">
84+ < i class ="fas fa-sync-alt "> </ i > Regenerate response
85+ </ button >
86+ </ div >
87+ </ div >
88+
89+ </ div >
90+
91+ <!-- Input box with send button -->
92+ < div >
93+
94+
95+ < div class ="mb-6 flex ">
96+ < input id ="message-input " type ="text " placeholder ="Type your message here... "
97+ class ="w-full p-4 bg-gray-900 rounded-l-md focus:outline-none placeholder-gray-500 ">
98+ < button id ="send-button " class ="bg-blue-600 text-white px-4 rounded-r-md ">
99+ < i class ="fas fa-paper-plane "> </ i >
100+ </ button >
101+ </ div >
102+
103+ < div class ="text-gray-400 text-xs mb-6 ">
104+ < p > ChatGPT Jan 9 Version. Free Research Preview. Our goal is to make AI systems more natural and
105+ safe to
106+ interact with. Your feedback will help us improve.</ p >
107+ </ div >
108+
109+ </ div >
110+
111+ </ div >
112+ </ div >
113+ < script src ="chatbot.js "> </ script >
114+ </ body >
115+
116+ </ html >
0 commit comments