Skip to content
Closed
Show file tree
Hide file tree
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
10 changes: 9 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,15 @@ <h4>Community</h4>
</div>
</div>
</footer>
<!-- footer code ends -->
<div class="chat-container">
<div class="chat-box" id="chat-box">
<div class="chat-message bot">Hi! I'm your chatbot. Ask me anything!</div>
</div>
<div class="input-box">
<input type="text" id="user-input" placeholder="Type your message...">
<button onclick="sendMessage()">Send</button>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

logic: The sendMessage() function is not defined anywhere in the codebase. This will cause a JavaScript error when users click the Send button.

</div>
</div>



Expand Down
46 changes: 46 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -695,3 +695,49 @@ a {
background-color: skyblue;
}

}
}
.chat-container {
width: 400px;
margin: 50px auto;
background: #dae6d7;
right: 40px;
bottom: 5px;
position: fixed;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
overflow: hidden;
}
.chat-box {
max-height: 400px;
overflow-y: auto;
padding: 20px;
border-bottom: 1px solid #ccc;
}
.chat-message {
margin-bottom: 10px;
}
.chat-message.user {
text-align: right;
color: blue;
}
.chat-message.bot {
text-align: left;
color: black;
}
.input-box {
display: flex;
padding: 10px;
}
.input-box input {
flex: 1;
padding: 10px;
font-size: 16px;
}
.input-box button {
padding: 10px 20px;
background: #007bff;
color: white;
border: none;
cursor: pointer;
}
Loading