Skip to content
Open
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
24 changes: 24 additions & 0 deletions public/Day-215 CHATBOT/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">

<title>Document</title>
</head>
<body>

<div class="chat-container">
<div class="chat-header">
<h1>SPIG THE CHATBOT</h1>
</div>
<div class="chat-message" id="chat-message"></div>
<div class="chat-input-container">
<input type="text" id="user-input" placeholder="Type your message...">
<button id="send-button">Send</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>
Empty file.
132 changes: 132 additions & 0 deletions public/Day-215 CHATBOT/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
body{
font-family: 'Lato', sans-serif;
justify-content: center;
align-items: center;
display: flex;
margin:0;
padding: 0;
height: 100vh;
color: darkgray;
background-color: white;

}

.chat-container{
width: 100%;
max-width: 400px;
background-color: white;
border-radius: 10px;
box-shadow: 0 0 10px rgba(28, 28, 215, 0.868);
overflow: hidden;
display: flex;
flex-direction: column;
height: 90vh;
}

.chat-header{
background-color: white;
color: royalblue;
padding: 15px;
text-align: center;
}

.chat-header h1{
margin: 0;
font-size: 1.5rem;
color: darkgray;

}

.chat-message{
flex-grow: 1;
padding: 20px;
overflow-y: auto;
}

.messages{
display: flex;
align-items: 5px;
margin-bottom: 15px;
}

.message-content{
padding: 10px;
border-radius: 5px;
max-width: 70%;
}

.user-message{
flex-direction: row-reverse;
}

.user-message .message-content{
background-color: white;
margin-right: 10px
}

.bot-message .message-content{
background-color: white;
margin-left: 10px;
}

.download.png{
width: 30px;
height: 30px;
border-radius: 50%;
object-fit: cover;
}

.chat-input-container{
display: flex;
padding: 15px;
background-color: white;
}

#user-input{
flex-grow: 1;
padding: 10px;
border: 1px solid #4a4a4a;
border-radius: 5px;
font-size: 1rem;
background-color: white;
color: teal;
outline: none;
}

#send-button{
padding: 10px 20px;
background-color: #4a90e2;
color: #fff;
border: none;
}

#send-button:hover{
background-color: #3a7bc8;
}

#send-button:disabled{
background-color: #2a5a8a;
cursor: not-allowed;
}

@media(max-width: 480px) {
.chat-container{
height: 100vh;
border-radius: 0;
}
}

/* SCROLLBAR Syles*/

::-webkit-scrollbar{
width: 8px;
}

::-webkit-scrollbar-thumb{
background-color: #4a4a4a;
border-radius: 4px;

}
::-webkit-scrollbar-thumb:hover{
background-color: #5a5a5a;
}