mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-27 20:50:21 +08:00
72 lines
1.3 KiB
HTML
72 lines
1.3 KiB
HTML
<div class="card">
|
|
<div class="chat-header">Chat</div>
|
|
<div class="chat-window">
|
|
<ul class="message-list"></ul>
|
|
</div>
|
|
<div class="chat-input">
|
|
<input type="text" class="message-input" placeholder="Type your message here">
|
|
<button class="send-button">Send</button>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by ahmed150up - Tags: form, chat */
|
|
.card {
|
|
width: 260px;
|
|
background-color: #fff;
|
|
border: 1px solid #ccc;
|
|
border-radius: 5px;
|
|
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.chat-header {
|
|
background-color: #333;
|
|
color: #fff;
|
|
padding: 10px;
|
|
font-size: 18px;
|
|
border-top-left-radius: 5px;
|
|
border-top-right-radius: 5px;
|
|
}
|
|
|
|
.chat-window {
|
|
height: 220px;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.message-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.chat-input {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 10px;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.message-input {
|
|
flex: 1;
|
|
border: none;
|
|
outline: none;
|
|
padding: 5px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.send-button {
|
|
border: none;
|
|
outline: none;
|
|
background-color: #333;
|
|
color: #fff;
|
|
font-size: 14px;
|
|
padding: 5px 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.send-button:hover {
|
|
background-color: rgb(255, 255, 255);
|
|
color: rgb(0, 0, 0);
|
|
box-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.25);
|
|
}
|
|
</style>
|