mirror of
https://github.com/uiverse-io/galaxy.git
synced 2025-11-28 05:00:22 +08:00
115 lines
2 KiB
HTML
115 lines
2 KiB
HTML
<div class="card-container">
|
|
<div class="card-header">
|
|
<div class="img-avatar"></div>
|
|
<div class="text-chat">Chat</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="messages-container">
|
|
<div class="message-box left">
|
|
<p>Hello, How are you?</p>
|
|
</div>
|
|
<div class="message-box right">
|
|
<p>I'm good, thanks for asking! How about you?</p>
|
|
</div>
|
|
</div>
|
|
<div class="message-input">
|
|
<form>
|
|
<textarea placeholder="Type your message here" class="message-send"></textarea>
|
|
<button type="submit" class="button-send">Send</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* From Uiverse.io by ahmed150up - Tags: card */
|
|
.card-container {
|
|
background-color: #fff;
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
margin: 20px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
width: 280px;
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-bottom: 10px;
|
|
border-bottom: 1px solid #ccc;
|
|
}
|
|
|
|
.card-header .img-avatar {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
margin-right: 20px;
|
|
background-color: #333;
|
|
}
|
|
|
|
.card-header .text-chat {
|
|
color: black;
|
|
margin: 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.card-body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.messages-container {
|
|
padding: 15px;
|
|
}
|
|
|
|
.message-box {
|
|
padding: 10px;
|
|
margin-bottom: 5px;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.message-box.left {
|
|
background-color: #f1f1f1;
|
|
color: black;
|
|
font-size: 13px;
|
|
left: 0;
|
|
}
|
|
|
|
.message-box.right {
|
|
background-color: #333;
|
|
color: #fff;
|
|
font-size: 13px;
|
|
right: 0;
|
|
}
|
|
|
|
.message-input {
|
|
padding: 5px;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.message-input .message-send {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: none;
|
|
border-radius: 10px;
|
|
resize: none;
|
|
}
|
|
|
|
.message-input .button-send {
|
|
background-color: #333;
|
|
color: #fff;
|
|
padding: 10px 20px;
|
|
border: none;
|
|
cursor: pointer;
|
|
margin-left: 10px;
|
|
border-radius: 10px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.message-input .button-send:hover {
|
|
background-color: #f1f1f1;
|
|
color: #333;
|
|
}
|
|
|
|
</style>
|