-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessages.html
More file actions
249 lines (233 loc) · 19.3 KB
/
Copy pathmessages.html
File metadata and controls
249 lines (233 loc) · 19.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>Assembly Studio — Messages</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet" />
<style>
:root { --text:#212b36; --muted:#6b6f76; --border:#dfe1e4; --bg-soft:#f8f9fb; --bg-hover:#eff1f4; --dark:#1a1a1a; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
.shell { display: flex; height: 100vh; overflow: hidden; }
/* Sidebar (shared) */
.sidebar { width: 248px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px; gap: 4px; }
.ws { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 4px; cursor: pointer; }
.ws:hover { background: var(--bg-hover); }
.ws-avatar { width: 26px; height: 26px; border-radius: 7px; background: #f0f1f3 !important; border: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #5a6068 !important; font-size: 13px; font-weight: 400; }
.ws-name { font-weight: 500; font-size: 14px; flex: 1; }
.nav { display: flex; flex-direction: column; gap: 1px; margin-top: 8px; }
.nav-group-label { font-size: 11px; font-weight:500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 14px 8px 5px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 4px; font-size: 13.5px; color: var(--text); cursor: pointer; text-decoration: none; }
.nav-item:hover { background: var(--bg-hover); }
.nav-item.active { background: var(--bg-hover); }
.nav-item svg { color: var(--muted); flex-shrink: 0; }
.nav-item .ic, .ws-caret-img, .checklist-item .ic { display: block; flex-shrink: 0; }
.nav-item.add { color: var(--muted); }
.spacer { flex: 1; }
.checklist { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-top: 10px; }
.checklist-title { font-size: 12.5px; font-weight:500; margin-bottom: 10px; }
.checklist-item { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 12.5px; color: var(--muted); }
.checklist-item.active { color: var(--text); font-weight: 500; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 2px; }
.foot-actions { display: flex; align-items: center; gap: 8px; }
.sidebar-foot .icon-btn { display: flex; align-items: center; justify-content: center; padding: 7px; border: 1px solid var(--border); background: #fff; border-radius: 999px; cursor: pointer; }
.sidebar-foot .icon-btn:hover { background: var(--bg-hover); }
.sidebar-foot .open-portal { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border: 1px solid var(--border); background: #fff; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--text); cursor: pointer; font-family: inherit; }
.sidebar-foot .open-portal:hover { background: var(--bg-hover); }
/* Messages layout */
.msg-layout { flex: 1; display: flex; min-width: 0; }
.conv-list { width: 360px; flex-shrink: 0; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.pane-head { display: flex; align-items: center; height: 52px; flex-shrink: 0; padding: 0 20px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 500; }
.conv { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
.conv:hover, .conv.active { background: var(--bg-soft); }
.conv-ic { width: 36px; height: 36px; border-radius: 9px; background: var(--dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.conv-ic svg { width: 18px; height: 18px; color: #fff; }
.conv-ic.conv-ic-co { background: #f0f1f3; color: #5a6068; font-size: 15px; font-weight:500; }
.conv-body { min-width: 0; flex: 1; }
.conv-name { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-sub { font-size: 12px; color: var(--muted); }
.conv-time { font-size: 11px; color: var(--muted); align-self: flex-start; margin-top: 2px; }
.thread { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.thread-head { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 52px; flex-shrink: 0; border-bottom: 1px solid var(--border); }
.thread-name { font-size: 13px; font-weight: 500; }
.thread-menu { border: none; background: transparent; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--muted); display: inline-flex; }
.thread-menu:hover { background: var(--bg-hover); }
.thread-body { flex: 1; overflow-y: auto; padding: 20px; }
.banner { display: flex; gap: 12px; background: #e9f0fe; border-radius: 12px; padding: 16px 18px; font-size: 13.5px; color: #1f2b45; line-height: 1.55; margin-bottom: 22px; }
.banner-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; display: block; }
.banner-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.banner-text p { margin: 0; }
.banner a { color: #2563eb; font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; }
.banner a svg { width: 12px; height: 12px; }
.msg { display: flex; gap: 12px; }
.msg-av { width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 400; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.msg-main { min-width: 0; }
.msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.msg-author { font-size: 13.5px; font-weight:500; }
.msg-time { font-size: 12px; color: var(--muted); }
.msg-text { font-size: 13.5px; line-height: 1.6; color: #2c3votes; color: #2f3742; max-width: 620px; }
.msg-text ol { margin: 8px 0; padding-left: 20px; }
.msg-text li { margin: 4px 0; }
.msg-text p { margin: 10px 0 0; }
.composer { border-top: 1px solid var(--border); padding: 12px 20px 18px; }
.composer-inner { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.composer-toolbar { display: flex; align-items: center; gap: 2px; padding: 7px 10px; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.tool { width: 32px; height: 32px; border: none; background: transparent; border-radius: 6px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 400; }
.tool:hover { background: var(--bg-hover); }
.tool svg { width: 18px; height: 18px; }
.tool img { display: block; width: 18px; height: 18px; }
.composer-toolbar .t-sep { width: 1px; height: 18px; background: var(--border); margin: 0 6px; flex-shrink: 0; }
.composer-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.composer-body textarea { width: 100%; border: none; outline: none; resize: none; font-family: inherit; font-size: 13.5px; color: var(--text); min-height: 38px; max-height: 140px; background: transparent; }
.composer-body textarea::placeholder { color: #9aa0a6; }
.composer-foot { display: flex; align-items: center; justify-content: flex-end; }
.send-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: var(--bg-hover); color: #9aa0a6; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.send-btn:hover { background: #e4e7eb; }
.right-rail { width: 48px; flex-shrink: 0; border-left: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 6px; }
.right-rail .rr-av { width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 400; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.right-rail .rr-btn { width: 32px; height: 32px; border: none; background: transparent; border-radius: 8px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.right-rail .rr-btn:hover, .right-rail .rr-btn.active { background: var(--bg-hover); color: var(--text); }
</style>
</head>
<body>
<div class="shell">
<!-- Sidebar -->
<aside class="sidebar">
<div class="ws">
<div class="ws-avatar" id="wsAvatar">S</div>
<span class="ws-name" id="wsName">Studio</span>
<img class="ws-caret-img" src="assets/chevron.svg" alt="" width="12" height="12" />
</div>
<nav class="nav">
<a class="nav-item" data-nav="crm.html"><img class="ic" src="assets/crm.svg" alt="" width="16" height="16" />CRM</a>
<a class="nav-item" data-nav="team.html"><img class="ic" src="assets/team.svg" alt="" width="18" height="18" />Team</a>
<a class="nav-item" data-nav="notifications.html"><svg width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="#212B36" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9"/><path d="M10.3 21a1.94 1.94 0 0 0 3.4 0"/></svg>Notifications</a>
<div class="nav-group-label">Apps</div>
<a class="nav-item" data-nav="home.html"><img class="ic" src="assets/home.svg" alt="" width="18" height="18" />Home</a>
<a class="nav-item active"><img class="ic" src="assets/message.svg" alt="" width="18" height="18" />Messages</a>
<a class="nav-item add" data-nav="studio.html"><img class="ic" src="assets/pls.svg" alt="" width="15" height="15" />Add app</a>
<div class="nav-group-label">Customize</div>
<a class="nav-item" data-nav="brand.html"><img class="ic" src="assets/brand.svg" alt="" width="18" height="18" />Brand</a>
<a class="nav-item" data-nav="app-library.html"><img class="ic" src="assets/apps.svg" alt="" width="18" height="18" />App Library</a>
</nav>
<div class="spacer"></div>
<div class="checklist" style="visibility:hidden">
<div class="checklist-title">Getting started</div>
<div class="checklist-item"><img class="ic" src="assets/todo.svg" alt="" width="14" height="14" />Publish your first app</div>
<div class="checklist-item"><img class="ic" src="assets/todo.svg" alt="" width="14" height="14" />Create test client</div>
<div class="checklist-item"><img class="ic" src="assets/todo.svg" alt="" width="14" height="14" />Explore the client experience</div>
<div class="checklist-item"><img class="ic" src="assets/todo.svg" alt="" width="14" height="14" />Invite your team</div>
</div>
<div class="sidebar-foot">
<div class="foot-actions">
<button class="icon-btn" type="button"><img src="assets/settings.svg" alt="Settings" width="16" height="16" /></button>
<button class="icon-btn" type="button"><img src="assets/helpcenter.svg" alt="Help" width="16" height="16" /></button>
</div>
<button class="open-portal" type="button">Open Portal <img src="assets/openportal.svg" alt="" width="12" height="12" /></button>
</div>
</aside>
<!-- Messages -->
<div class="msg-layout">
<!-- Conversation list -->
<div class="conv-list">
<div class="pane-head">Messages</div>
<div class="conv active">
<div class="conv-ic conv-ic-co" id="conv1Av">B</div>
<div class="conv-body"><div class="conv-name" id="conv1Name">BrandMages (Test Company)</div><div class="conv-sub">Conversation Created</div></div>
<div class="conv-time">1h</div>
</div>
</div>
<!-- Thread -->
<div class="thread">
<div class="thread-head">
<div class="thread-name">Charles Musial</div>
<button class="thread-menu"><svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><circle cx="5" cy="12" r="1.6"/><circle cx="12" cy="12" r="1.6"/><circle cx="19" cy="12" r="1.6"/></svg></button>
</div>
<div class="thread-body">
<div class="banner">
<svg class="banner-icon" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="12" r="10" fill="#2563eb"/><path d="M12 11v5" stroke="#fff" stroke-width="2" stroke-linecap="round"/><circle cx="12" cy="7.6" r="1.2" fill="#fff"/></svg>
<div class="banner-text"><p>The welcome message below will be sent when the client logs in. You can update the welcome message in your settings or send a message below to overwrite it.</p><a href="#">Update settings <svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.63886 1.5C9.95058 1.5 10.2014 1.75078 10.2014 2.0625V7.68749C10.2014 7.99921 9.95058 8.24999 9.63886 8.24999C9.32714 8.24999 9.07636 7.99921 9.07636 7.68749V3.41953L2.16231 10.3336C1.942 10.5539 1.58575 10.5539 1.36778 10.3336C1.14981 10.1133 1.14747 9.75937 1.36543 9.53905L8.27949 2.625H4.01153C3.69981 2.625 3.44903 2.37422 3.44903 2.0625C3.44903 1.75078 3.69981 1.5 4.01153 1.5H9.63652H9.63886Z" fill="currentColor"/></svg></a></div>
</div>
<div class="msg">
<span class="msg-av" id="msgAv">AE</span>
<div class="msg-main">
<div class="msg-meta"><span class="msg-author" id="msgAuthor">Ana Eremina</span><span class="msg-time">1:34 PM</span></div>
<div class="msg-text">
Hi Michelle, welcome to <span id="msgBrand">BrandMages</span>! To get started, follow the steps laid out below:
<ol>
<li>Fill out the intake form located in the "Forms" module.</li>
<li>Connect your payment method through Settings → Payment methods.</li>
<li>Your dashboard will then be setup and available to you 24/7!</li>
</ol>
<p>For questions visit the Knowledge Base page or shoot us a message for any inquiry on the Messages page. Looking forward to working with you.</p>
</div>
</div>
</div>
</div>
<div class="composer">
<div class="composer-inner">
<div class="composer-toolbar">
<button class="tool"><img src="assets/Menu-item.svg" width="15" height="15" alt="Bold" /></button>
<button class="tool"><img src="assets/ff.svg" width="15" height="15" alt="Italic" /></button>
<button class="tool"><img src="assets/underline.svg" width="15" height="15" alt="Underline" /></button>
<span class="t-sep"></span>
<button class="tool"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="8" y1="6" x2="21" y2="6"/><line x1="8" y1="12" x2="21" y2="12"/><line x1="8" y1="18" x2="21" y2="18"/><line x1="3" y1="6" x2="3.01" y2="6"/><line x1="3" y1="12" x2="3.01" y2="12"/><line x1="3" y1="18" x2="3.01" y2="18"/></svg></button>
<button class="tool"><img src="assets/d.svg" width="15" height="15" alt="Numbered list" /></button>
<span class="t-sep"></span>
<button class="tool"><img src="assets/link.svg" width="15" height="15" alt="Link" /></button>
</div>
<div class="composer-body">
<textarea rows="1" placeholder="Message your client"></textarea>
<div class="composer-foot">
<button class="send-btn"><svg width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg></button>
</div>
</div>
</div>
</div>
</div>
<!-- Right rail -->
<div class="right-rail">
<span class="rr-av" id="rrAv">AE</span>
<button class="rr-btn"><img src="assets/rr-person.svg" width="17" height="17" alt="Client" /></button>
<button class="rr-btn"><img src="assets/rr-doc.svg" width="17" height="17" alt="Notes" /></button>
<button class="rr-btn active"><img src="assets/rr-chat.svg" width="17" height="17" alt="Messages" /></button>
</div>
</div>
</div>
<script>
function getHashParam(name) { const m = location.hash.match(new RegExp('[#&]' + name + '=([^&]*)')); return m ? decodeURIComponent(m[1].replace(/\+/g, ' ')) : ''; }
const AVATAR_COLORS = [['#f4f5f7','#1f1f1f'],['#e4f1eb','#44856f'],['#ece8f6','#7a6cb2'],['#f6e5e6','#ac5462'],['#efe9d2','#a5812b'],['#dce9f0','#6e96ad'],['#e8eee0','#8a9070'],['#f2e6f1','#9c4f92']];
function avatarColor(s) { let h = 0; s = (s || '').toString(); for (let i = 0; i < s.length; i++) h = (h * 31 + s.charCodeAt(i)) >>> 0; return AVATAR_COLORS[h % AVATAR_COLORS.length]; }
function initials(name) { const p = name.trim().split(/\s+/); return ((p[0]?.[0]||'') + (p[1]?.[0]||'')).toUpperCase() || 'U'; }
function paint(el, name) { const [bg, fg] = avatarColor(name); el.style.background = bg; el.style.color = fg; }
const company = getHashParam('company') || 'Studio';
const uName = getHashParam('name') || 'Test User';
document.getElementById('wsName').textContent = company;
document.getElementById('wsAvatar').textContent = company.trim()[0].toUpperCase();
paint(document.getElementById('wsAvatar'), company);
// Conversation + welcome message reflect the workspace + the signed-in user
document.getElementById('conv1Name').textContent = company + ' (Test Company)';
document.getElementById('conv1Av').textContent = (company.trim()[0] || 'B').toUpperCase();
document.getElementById('msgBrand').textContent = company;
document.getElementById('msgAuthor').textContent = uName;
['msgAv','rrAv'].forEach(id => { const el = document.getElementById(id); el.textContent = initials(uName); paint(el, uName); });
const navParams = [];
if (getHashParam('company')) navParams.push('company=' + encodeURIComponent(getHashParam('company')));
if (getHashParam('name')) navParams.push('name=' + encodeURIComponent(getHashParam('name')));
if (getHashParam('email')) navParams.push('email=' + encodeURIComponent(getHashParam('email')));
if (getHashParam('theme')) navParams.push('theme=' + encodeURIComponent(getHashParam('theme')));
const navSuffix = navParams.length ? '#' + navParams.join('&') : '';
document.querySelectorAll('[data-nav]').forEach(a => { a.setAttribute('href', a.dataset.nav + navSuffix); });
(function(){ const purl = 'portal.html' + navSuffix; const op = document.querySelector('.open-portal'); if (op) op.addEventListener('click', function(){ location.href = purl; }); document.querySelectorAll('.checklist-item').forEach(function(it){ if (it.textContent.indexOf('Explore the client experience') > -1) { it.style.cursor = 'pointer'; it.addEventListener('click', function(){ location.href = purl; }); } }); })();
</script>
<script src="ftux.js?v=53"></script>
<script src="apps-nav.js?v=6"></script>
<script src="prototype-hints.js?v=6"></script>
</body>
</html>