-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrand.html
More file actions
315 lines (295 loc) · 21.1 KB
/
Copy pathbrand.html
File metadata and controls
315 lines (295 loc) · 21.1 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
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<!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 — Brand</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); }
/* Main */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.page-top { display: flex; align-items: center; height: 52px; flex-shrink: 0; padding: 0 28px; border-bottom: 1px solid var(--border); }
.page-title { font-size: 13px; font-weight: 500; color: var(--text); }
.brand-body { flex: 1; display: flex; min-height: 0; }
/* Left form */
.brand-form { width: 48%; max-width: 560px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; padding: 28px; }
.section + .section { margin-top: 40px; }
.section-title { font-size: 17px; font-weight:500; margin: 0 0 4px; }
.section-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 16px; max-width: 440px; }
.field-input { width: 100%; height: 42px; border: 1px solid var(--border); border-radius: 8px; padding: 0 14px; font-family: inherit; font-size: 14px; color: var(--text); }
.field-input:focus { outline: none; border-color: #b9bcc1; }
.char-count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.asset-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.asset-info { flex: 1; }
.asset-name { font-size: 13.5px; font-weight:500; display: flex; align-items: center; gap: 5px; }
.asset-name svg { width: 13px; height: 13px; color: #b3b8bf; }
.asset-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.asset-thumb { width: 42px; height: 42px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.asset-thumb.icon { font-size: 16px; font-weight:500; }
.asset-thumb.logo { background: #1f2937; color: #fff; font-size: 8px; font-weight:500; gap: 3px; }
.asset-thumb.logo .lg-dot { width: 9px; height: 9px; border-radius: 2px; background: #fff; }
.asset-thumb.empty { border: 1.5px dashed #c7ccd3; color: #b3b8bf; cursor: pointer; }
.swatches { display: flex; gap: 14px; margin-top: 6px; }
.swatch { }
.swatch-chip { width: 100%; height: 40px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08); }
.swatch-label { font-size: 12px; color: var(--text); margin-top: 6px; font-weight: 500; }
.swatch-hex { font-size: 11px; color: var(--muted); }
.swatch { width: 120px; }
/* Right preview */
.brand-preview { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.preview-tabs { display: flex; gap: 22px; padding: 0 28px; border-bottom: 1px solid var(--border); }
.preview-tab { padding: 12px 2px; font-size: 14px; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; margin-bottom: -1px; }
.preview-tab.active { color: var(--text); font-weight: 500; border-bottom-color: var(--dark); }
.preview-stage { flex: 1; padding: 40px 0 40px 40px; background: var(--bg-soft); display: flex; }
.login-card { flex: 1; background: #fff; border: 1px solid var(--border); border-right: none; border-radius: 14px 0 0 14px; overflow: hidden; display: flex; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.login-form { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 48px; }
.login-inner { width: 100%; max-width: 300px; }
.login-form .login-icon { width: 44px; height: 44px; border-radius: 11px; background: #f0f1f3; color: #5a6068; border: 1px solid rgba(0,0,0,0.08); display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight:500; margin: 0 auto 18px; }
.login-form label { font-size: 12px; font-weight: 500; color: var(--text); display: block; margin: 12px 0 6px; }
.login-form .lf-input { width: 100%; height: 40px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.login-form .signin { width: 100%; height: 44px; border: none; border-radius: 8px; color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; margin-top: 18px; }
.login-side { width: 30%; flex-shrink: 0; }
/* Preview views (Login / Client Portal / Notifications) */
.pv-view { flex: 1; display: flex; min-width: 0; }
.pv-view[hidden] { display: none; }
.pv-card { flex: 1; background: #fff; border: 1px solid var(--border); border-right: none; border-radius: 14px 0 0 14px; overflow: hidden; display: flex; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.pv-portal-side { width: 38%; max-width: 230px; flex-shrink: 0; background: #26262a; color: #fff; padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.pv-portal-brand { display: flex; align-items: center; gap: 9px; padding: 4px 6px 14px; font-size: 14px; font-weight: 500; }
.pv-av { width: 26px; height: 26px; border-radius: 7px; background: #3a3a40; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; flex-shrink: 0; }
.pv-portal-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-pnav { display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 8px; font-size: 13px; color: rgba(255,255,255,0.8); }
.pv-pnav span { width: 16px; height: 16px; border-radius: 4px; background: rgba(255,255,255,0.22); flex-shrink: 0; }
.pv-pnav.active { background: rgba(255,255,255,0.10); color: #fff; }
.pv-portal-body { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pv-bar { height: 10px; border-radius: 99px; background: #e7e7e2; }
.pv-bar.w30 { width: 30%; } .pv-bar.w50 { width: 50%; } .pv-bar.w70 { width: 70%; }
.pv-block { height: 120px; border-radius: 10px; background: #f1f1ee; }
.pv-pill { width: 120px; height: 34px; border-radius: 8px; background: #d9ed92; }
.pv-notif-card { margin: auto; width: 360px; max-width: calc(100% - 48px); background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.05); display: flex; flex-direction: column; gap: 12px; }
.pv-notif-head { display: flex; align-items: center; gap: 11px; }
.pv-notif-meta { display: flex; flex-direction: column; gap: 2px; }
.pv-notif-from { font-size: 14px; font-weight: 500; color: #212b36; }
.pv-notif-sub { font-size: 12px; color: #9aa0a6; }
.pv-notif-btn { margin-top: 6px; align-self: flex-start; padding: 9px 16px; border-radius: 8px; background: #5b6cf0; color: #fff; font-size: 13px; font-weight: 500; }
/* Responsive: on narrow screens there isn't room for the live preview, so
hide it entirely and let the brand form use the full width. */
@media (max-width: 900px) {
.brand-body { flex-direction: column; }
.brand-form { width: 100%; max-width: none; flex-shrink: 0; border-right: none; }
.brand-preview { display: none; }
}
</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" data-nav="messages.html"><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 active"><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>
<!-- Main -->
<main class="main">
<div class="page-top"><div class="page-title">Brand</div></div>
<div class="brand-body">
<!-- Left: form -->
<div class="brand-form">
<div class="section">
<h2 class="section-title">Brand name</h2>
<p class="section-desc">Your brand name is the name your customers use to refer to you. It doesn't need to be your legal business name.</p>
<input class="field-input" id="brandNameInput" type="text" value="BrandMages" />
<div class="char-count" id="charCount">10 of 30 characters used.</div>
</div>
<div class="section">
<h2 class="section-title">Image assets</h2>
<p class="section-desc">Your icon and login images are used in various places to customize the experience for you and your clients</p>
<div class="asset-row">
<div class="asset-info">
<div class="asset-name">Square icon</div>
<div class="asset-sub">Used in the navbar, invoices and on mobile</div>
</div>
<div class="asset-thumb icon" id="assetIcon">B</div>
</div>
<div class="asset-row">
<div class="asset-info">
<div class="asset-name">Full logo</div>
<div class="asset-sub">Used on login pages</div>
</div>
<div class="asset-thumb logo"><span id="logoName">BrandMages</span></div>
</div>
<div class="asset-row">
<div class="asset-info">
<div class="asset-name">Square login image</div>
<div class="asset-sub">Used on the side of your login page</div>
</div>
<div class="asset-thumb" id="assetLoginImg"></div>
</div>
<div class="asset-row">
<div class="asset-info">
<div class="asset-name">Social sharing image</div>
<div class="asset-sub">Used when a link to your portal is shared</div>
</div>
<div class="asset-thumb empty"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg></div>
</div>
</div>
</div>
<!-- Right: live preview -->
<div class="brand-preview">
<div class="preview-tabs">
<div class="preview-tab active" data-pv="login">Login</div>
<div class="preview-tab" data-pv="portal">Client Portal</div>
<div class="preview-tab" data-pv="notif">Notifications</div>
</div>
<div class="preview-stage">
<!-- Login -->
<div class="pv-view" data-pv="login">
<div class="login-card">
<div class="login-form">
<div class="login-inner">
<div class="login-icon" id="loginIcon">B</div>
<label>Email</label>
<div class="lf-input"></div>
<label>Password</label>
<div class="lf-input"></div>
<button class="signin" id="signinBtn">Sign in</button>
</div>
</div>
<div class="login-side" id="loginSide"></div>
</div>
</div>
<!-- Client Portal -->
<div class="pv-view" data-pv="portal" hidden>
<div class="pv-card">
<div class="pv-portal-side" id="pvPortalSide">
<div class="pv-portal-brand"><span class="pv-av" id="pvPortalAv">B</span><span class="pv-portal-name" id="pvPortalName">Brand</span></div>
<div class="pv-pnav active" id="pvPortalNav"><span></span>Home</div>
<div class="pv-pnav"><span></span>Messages</div>
</div>
<div class="pv-portal-body">
<div class="pv-bar w30"></div>
<div class="pv-block"></div>
<div class="pv-pill" id="pvPortalPill"></div>
</div>
</div>
</div>
<!-- Notifications -->
<div class="pv-view" data-pv="notif" hidden>
<div class="pv-notif-card">
<div class="pv-notif-head"><span class="pv-av" id="pvNotifAv">B</span><div class="pv-notif-meta"><span class="pv-notif-from" id="pvNotifName">Brand</span><span class="pv-notif-sub">New notification</span></div></div>
<div class="pv-bar w70"></div>
<div class="pv-bar w50"></div>
<div class="pv-notif-btn" id="pvNotifBtn">View update</div>
</div>
</div>
</div>
</div>
</div>
</main>
</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]; }
// Colors come from the theme picked in onboarding's customization step.
const THEMES = {
brand: { accent: '#5b6cf0', panel: '#d9def9' },
dark: { accent: '#1f1f22', panel: '#2a2a2e' },
light: { accent: '#8a9070', panel: '#e8eee0' },
};
const theme = THEMES[getHashParam('theme')] || THEMES.brand;
const company = getHashParam('company') || 'Studio';
const letter = company.trim()[0].toUpperCase();
const [avBg, avFg] = avatarColor(company);
// Sidebar
document.getElementById('wsName').textContent = company;
const wa = document.getElementById('wsAvatar'); wa.textContent = letter; wa.style.background = avBg; wa.style.color = avFg;
// Brand name (test client info, as if filled out)
const bn = document.getElementById('brandNameInput'); bn.value = company;
document.getElementById('charCount').textContent = company.length + ' of 30 characters used.';
// Image assets
const ai = document.getElementById('assetIcon'); ai.textContent = letter; ai.style.background = avBg; ai.style.color = avFg;
document.getElementById('logoName').textContent = company;
document.getElementById('assetLoginImg').style.background = theme.panel;
// Login preview
const li = document.getElementById('loginIcon'); li.textContent = letter;
document.getElementById('signinBtn').style.background = theme.accent;
document.getElementById('loginSide').style.background = theme.panel;
// Carry params on nav links
const navParams = [];
['company','name','email','theme'].forEach(k => { const v = getHashParam(k); if (v) navParams.push(k + '=' + encodeURIComponent(v)); });
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; }); } }); })();
// Login is the only functional preview. Client Portal + Notifications are
// not part of the prototype — they stay inactive and prototype-hints.js
// shows the "Not part of this prototype" tooltip on hover (inactive
// .preview-tab is hintable). No tab-switching is wired.
</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>