Add basic creator chat flow

This commit is contained in:
Thuvaraka Yogarajah committed 2026-06-14 12:07:01 +02:00
1 parent af7271e2f8
commit 10592b76c7
4 files changed
+416 -99

No files matched your search

+84
View File
@@ -42,9 +42,81 @@
.new-chat-btn {
background: none;
border: none;
border-radius: 999px;
font-size: 1.2rem;
color: #3b82f6;
cursor: pointer;
padding: 8px;
}
.new-chat-btn:hover,
.new-chat-btn[aria-expanded="true"] {
background: #eef2ff;
}
.new-chat-panel {
border-bottom: 1px solid #eef2f7;
padding: 14px 16px;
}
.new-chat-panel input {
width: 100%;
border: 1px solid #dbe2ea;
border-radius: 12px;
padding: 10px 12px;
font: inherit;
}
.creator-search-results {
display: grid;
gap: 8px;
margin-top: 10px;
max-height: 260px;
overflow-y: auto;
}
.creator-result {
align-items: center;
background: #f8fafc;
border: 1px solid transparent;
border-radius: 12px;
color: inherit;
cursor: pointer;
display: flex;
gap: 10px;
padding: 10px;
text-align: left;
width: 100%;
}
.creator-result:hover,
.creator-result:focus-visible {
background: #eef2ff;
border-color: #c7d2fe;
}
.creator-result img {
border-radius: 50%;
height: 36px;
object-fit: cover;
width: 36px;
}
.creator-result span {
display: grid;
}
.creator-result small,
.creator-result-empty,
.chat-empty {
color: #64748b;
font-size: 0.82rem;
}
.creator-result-empty,
.chat-empty {
padding: 18px;
text-align: center;
}
.chat-list-items {
@@ -195,6 +267,7 @@
padding: 16px 24px;
border-top: 1px solid #eef2f7;
background: #fff;
margin: 0;
}
.chat-input-area input {
flex: 1;
@@ -207,6 +280,12 @@
.chat-input-area input:focus {
border-color: #3b82f6;
}
.chat-input-area input:disabled {
background: #f8fafc;
cursor: not-allowed;
}
.send-btn {
background: var(--gradient);
border: none;
@@ -221,6 +300,11 @@
opacity: 0.85;
}
.send-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Responsive */
@media (max-width: 768px) {
.chats-main {
+27 -2
View File
@@ -133,7 +133,14 @@
.creator-stats i {
margin-right: 4px;
}
.follow-btn {
.creator-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.follow-btn,
.creator-chat-btn {
background: var(--gradient);
color: white;
border: none;
@@ -142,11 +149,25 @@
font-size: 0.8rem;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
justify-content: center;
min-height: 34px;
text-decoration: none;
transition: opacity 0.2s;
}
.follow-btn:hover {
.follow-btn:hover,
.creator-chat-btn:hover {
opacity: 0.85;
}
.creator-chat-btn {
background: #eef2ff;
color: #2563eb;
}
.follow-btn.following {
background: transparent;
border: 2px solid #94a3b8;
@@ -187,6 +208,10 @@
.follow-btn {
width: 100%;
}
.creator-actions,
.creator-chat-btn {
width: 100%;
}
}
/* Star rating in creator cards */