|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.app { |
|
|
display: flex; |
|
|
flex-direction: column; |
|
|
height: 100vh; |
|
|
background-color: #f0f0f0; |
|
|
font-family: Arial, sans-serif; |
|
|
} |
|
|
|
|
|
.messages-container { |
|
|
flex: 1; |
|
|
overflow-y: auto; |
|
|
padding: 20px; |
|
|
} |
|
|
|
|
|
.message { |
|
|
max-width: 80%; |
|
|
padding: 10px; |
|
|
border-radius: 20px; |
|
|
margin-bottom: 10px; |
|
|
} |
|
|
|
|
|
.user-message { |
|
|
align-self: flex-end; |
|
|
background-color: #dcf8c6; |
|
|
margin-left: auto; |
|
|
} |
|
|
|
|
|
.bot-message { |
|
|
align-self: flex-start; |
|
|
background-color: #ffffff; |
|
|
} |
|
|
|
|
|
.input-container { |
|
|
display: flex; |
|
|
padding: 10px; |
|
|
background-color: #ffffff; |
|
|
} |
|
|
|
|
|
input { |
|
|
flex: 1; |
|
|
border: 1px solid #cccccc; |
|
|
border-radius: 20px; |
|
|
padding: 10px; |
|
|
margin-right: 10px; |
|
|
} |
|
|
|
|
|
button { |
|
|
background-color: #128C7E; |
|
|
color: #ffffff; |
|
|
border: none; |
|
|
border-radius: 20px; |
|
|
padding: 10px 20px; |
|
|
font-weight: bold; |
|
|
cursor: pointer; |
|
|
} |
|
|
|
|
|
.loading-container { |
|
|
display: flex; |
|
|
justify-content: center; |
|
|
margin: 10px 0; |
|
|
} |
|
|
|
|
|
.loading-bar { |
|
|
width: 50%; |
|
|
height: 5px; |
|
|
background: linear-gradient(90deg, #4c669f, #3b5998, #192f6a); |
|
|
border-radius: 5px; |
|
|
animation: loading 1.5s infinite; |
|
|
} |
|
|
|
|
|
@keyframes loading { |
|
|
0% { |
|
|
width: 0%; |
|
|
} |
|
|
50% { |
|
|
width: 50%; |
|
|
} |
|
|
100% { |
|
|
width: 100%; |
|
|
} |
|
|
} |