Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the UI of the chatbot #538

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 0 additions & 101 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -882,107 +882,6 @@ <h2>Rate your experience</h2>
</div>
</section>



<div class="fixed bottom-0 right-2 chatbot-container">
<!-- Button to open/close the chatbot -->
<button class="chatbot-button group" onclick="toggleChat()">
<img src="chatbot.gif" alt="chatbot" />
<span class="tooltip-text">Welcome to Buddytrail! <br />How can I help You? ^_^</span>
</button>

<!-- Chatbot area -->
<div id="chatbot-area" class="chatbot-iframe" style="display: none;">
<div class="chat-header">
<span>Chat with Buddytrail Bot</span>
</div>

<!-- Messages Section -->
<div class="chat-messages" id="chat-messages">
<!-- Sample messages -->
<div class="message incoming">
<p>Hello! How can I assist you today?</p>
</div>
<div class="message outgoing">
<p>I'm looking for more information about your services.</p>
</div>
</div>

<!-- Input area -->
<div class="chat-input-container">
<input type="text" id="chat-input" placeholder="Type a message..." />
<button class="send-btn" onclick="sendMessage()">Send</button>
</div>
</div>
</div>

<style>/* Chatbot container and button */
.chatbot-container {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 9999;
}
.chat

.chatbot-button {
background: none;
border: none;
cursor: pointer;
}


/* Chatbot iframe - Chat area */
.chatbot-iframe {
width: 350px;
height: 500px;
position: fixed;
bottom: 80px;
right: 20px;
display: none;
z-index: 100000;
background-color: rgba(255, 255, 255, 0.9);
border-radius: 10px;
border: 1px solid #ddd;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}

/* Header without close button */
.chat-header {
background-color: #197ae2;
color: white;
padding: 10px;
border-radius: 10px 10px 0 0;
display: flex;
justify-content: center;
align-items: center;
}

/* Message display area */
.chat-messages {
flex-grow: 1;
padding: 10px;
overflow-y: auto;
background-color: #f1f1f1;
}

/* Chat input area */
.chat-input-container {
display: flex;
padding: 10px;
background-color: #fff;
border-top: 1px solid #ddd;
}

#chat-input {
flex-grow: 1;
padding: 10px;
border-radius: 20px;
border: 1px solid #ccc;
}

.send-btn {
margin-left: 10px;
background-color: #45515f;
Expand Down