Spaces:
Running
Running
File size: 25,794 Bytes
284056b 355991f 284056b 2c13e0f 284056b 9241525 284056b b61c52a f6b4abc b61c52a 284056b f6b4abc 284056b 2c13e0f 01b3ee1 2c13e0f 795b8aa 2c13e0f 0f6d778 67e9385 220a975 67e9385 467f1e7 20e9485 300aa49 71e6f40 67e9385 284056b 67e9385 9af2b43 284056b 2c13e0f 284056b 2c13e0f 284056b 47d2218 284056b be407c2 dfe830f 284056b dfe830f 284056b 13afed9 284056b 99f00b5 284056b 1cc93b9 284056b 7ab0468 284056b c7d3a77 300aa49 71e6f40 284056b f87709d 284056b f87709d 284056b cdb81a7 284056b f87709d 284056b cdb81a7 284056b a470800 8989356 0d4acf8 8989356 0d4acf8 8989356 b61c52a 9241525 b61c52a 9241525 b61c52a 9241525 b61c52a 284056b b61c52a 284056b 63e5a0c 284056b dfe830f 284056b dfe830f 284056b b61c52a 9af2b43 284056b 20e9485 284056b 355991f 8474609 | 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 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 | <!--
Be Honest β 4 Interface Mockup (Single HTML file)
Updated to reflect user's requirements:
- Product name: Be Honest
- Interfaces: Home, ShoutLink (Individual), Business, Contact
- Playful tone for Home & ShoutLink; professional for Business
- Light / Dark theme toggle
- Mobile-first responsive layout
- Mock features: create honest link (requires login modal), link preview, social-share card preview (image-style), QR placeholder, business analytics mock, rating + rant QR flows, pricing table
Note: This is a visual, non-functional front-end mockup useful for pitching and testing UX. No backend logic or real QR/image export is implemented (placeholders included).
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>Speak Your Truth, Stay Anonymous | Be Honest</title>
<meta name="description" content="A safe space to express honestly, share feedback, and collect anonymous responses.">
<style>
/* Base / Variables */
:root{
--bg:#f6f9fc;--card:#ffffff;--muted:#556677;--accent:#ff6b6b;--accent2:#7c3aed;--glass:rgba(0,0,0,0.04);
--fun-grad:linear-gradient(90deg,var(--accent),#ff9966);
--radius:16px;--maxw:1100px
}
[data-theme="dark"]{--bg:#071122;--card:#08131c;--muted:#9fb3c8;--accent:#06b6d4;--accent2:#7c3aed;--glass:rgba(255,255,255,0.03)}
*{box-sizing:border-box;font-family:Inter,ui-sans-serif,system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial;color:var(--text,#0b1220)}
html,body{height:100%;margin:0;background:var(--bg);color:var(--text)}
.container{max-width:var(--maxw);margin:18px auto;padding:16px}
header{display:flex;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:56px;height:56px;border-radius:12px;background:var(--fun-grad);display:flex;align-items:center;justify-content:center;font-weight:800;color:white}
h1{margin:0;font-size:18px}
.tag{font-size:12px;color:var(--muted)}
nav{margin-left:auto;display:flex;gap:8px;align-items:center}
.navbtn{background:transparent;border:none;padding:8px 12px;border-radius:10px;cursor:pointer;color:var(--muted);font-weight:600}
.navbtn.active{background:var(--glass);color:inherit}
.theme-toggle{padding:8px;border-radius:8px;border:1px solid var(--glass);cursor:pointer}
main{display:grid;grid-template-columns:1fr;gap:16px;margin-top:18px}
/* Card */
.card{background:var(--card);border-radius:var(--radius);box-shadow:0 6px 24px rgba(10,20,30,0.06);padding:16px;border:1px solid var(--glass)}
.muted{color:var(--muted);font-size:13px}
.btn{background:var(--accent);border:none;color:white;padding:10px 14px;border-radius:10px;cursor:pointer;font-weight:700}
.btn.secondary{background:transparent;border:1px solid var(--glass);color:inherit}
/* Home Feed */
.feed{display:flex;flex-direction:column;gap:12px}
.post{padding:14px;border-radius:12px;border:1px solid var(--glass);background:linear-gradient(180deg, rgba(0,0,0,0.01), transparent)}
.pill{padding:6px 8px;border-radius:999px;background:rgba(0,0,0,0.03);font-size:12px}
/* Layout for wider screens */
@media(min-width:900px){
main{grid-template-columns:360px 1fr 360px}
}
/* Individual (ShoutLink) */
.center{display:flex;flex-direction:column;gap:12px}
.link-preview{display:flex;align-items:center;gap:12px;padding:12px;border-radius:12px;border:1px dashed var(--glass)}
.share-card{width:100%;padding:24px;border-radius:14px;text-align:center;background:var(--fun-grad);color:white;font-weight:800;font-size:20px}
.qr{width:120px;height:120px;border-radius:12px;background:repeating-conic-gradient(#fff 0 10deg, rgba(0,0,0,0.08) 10deg 20deg);display:flex;align-items:center;justify-content:center}
/* Business analytics */
.metrics{display:flex;gap:12px;flex-wrap:wrap}
.metric{flex:1;min-width:140px;padding:12px;border-radius:12px;background:linear-gradient(180deg, rgba(0,0,0,0.02), transparent)}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:8px;border-bottom:1px solid var(--glass);text-align:left}
/* Footer */
footer{margin-top:12px;text-align:center;color:var(--muted);font-size:13px}
/* Login modal (mock) */
.modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(2,6,23,0.5);visibility:hidden;opacity:0;transition:all .18s}
.modal.show{visibility:visible;opacity:1}
.modal .box{width:320px;background:var(--card);padding:18px;border-radius:12px}
input[type=text],input[type=password]{width:100%;padding:10px;border-radius:8px;border:1px solid var(--glass);margin-top:8px}
/* Responsive tweaks */
@media(max-width:899px){
.logo{width:44px;height:44px}
nav{gap:6px}
}
</style>
</head>
<body data-theme="light">
<div class="container">
<header>
<div class="brand">
<div class="logo">BH</div>
<div>
<h1>Be Honest</h1>
<div class="tag muted">Say it honestly. Stay anonymous.
</div>
</div>
<nav>
<button class="navbtn active" data-view="home">Home</button>
<button class="navbtn" data-view="shout">ShoutLink</button>
<button class="navbtn" data-view="business">Business</button>
<button class="navbtn" data-view="contact">Contact</button>
<button class="theme-toggle" id="themeToggle">π</button>
</nav>
</header>
<main>
<!-- HERO SECTION (Only shown on Home view) -->
<div class="card" id="heroSection" style="grid-column:1/-1;padding:32px;text-align:center;background:var(--fun-grad);color:white">
<h1 style="font-size:32px;margin-bottom:12px">Speak Your Truth, Stay Anonymous</h1>
<p style="font-size:18px;margin:0 auto;max-width:600px">A safe space to express honestly, share feedback, and collect anonymous responses.</p>
<div style="display:flex;gap:12px;justify-content:center;margin-top:24px">
<button class="btn" style="background:white;color:var(--accent)">Create ShoutLink</button>
<button class="btn secondary" style="color:white;border-color:rgba(255,255,255,0.3)">Business</button>
</div>
</div>
<!-- LEFT COLUMN (Only shown on Home view) -->
<main>
<!-- LEFT COLUMN (Filters / Quick Post) -->
<div class="card" id="leftCol">
<div style="display:flex;justify-content:space-between;align-items:center"><strong>Quick Post</strong><span class="muted" style="font-size:12px"></span></div>
<div class="muted" style="margin-top:8px;font-size:13px">Share a customer service experience in under 2 minutes. Attach optional proof.</div>
<div style="margin-top:12px">
<input class="search" placeholder="Business name e.g. Konga" style="width:100%;padding:10px;border-radius:8px;border:1px solid var(--glass)" />
<textarea placeholder="Write your experience..." style="width:100%;height:120px;margin-top:8px;padding:10px;border-radius:8px;border:1px solid var(--glass)"></textarea>
<div style="display:flex;gap:8px;margin-top:8px;justify-content:space-between;align-items:center">
<div class="muted">Visibility: <span class="pill">Public</span></div>
<div style="display:flex;gap:8px">
<button class="btn">Post Anonymously</button>
<button class="btn secondary">Attach proof</button>
</div>
</div>
<div style="margin-top:16px">
<div class="share-card" id="quickPostShareCard">Share your best or worst customer service experience on Be Honest!
<div style="display:flex;gap:8px;margin-top:16px">
<button class="btn" style="font-size:12px;padding:6px 10px">Copy Link</button>
<button class="btn secondary" style="font-size:12px;padding:6px 10px">Download Image</button>
</div>
</div>
</div>
</div>
<hr style="margin:12px 0;border:none;border-top:1px solid var(--glass)" />
<div>
<strong>Filters</strong>
<div style="margin-top:8px;display:flex;gap:8px;flex-direction:column">
<select style="padding:10px;border-radius:8px;border:1px solid var(--glass)"><option>All industries</option><option>Banking</option><option>Telecom</option><option>Food & Beverage</option></select>
<input placeholder="Country or city" style="padding:10px;border-radius:8px;border:1px solid var(--glass)" />
<div style="display:flex;gap:8px"><button class="btn secondary">Apply</button><button class="btn secondary">Clear</button></div>
</div>
</div>
</div>
<!-- CENTER COLUMN (Main View Panels) -->
<div>
<!-- HOME VIEW -->
<div class="card view" id="view-home">
<div style="display:flex;align-items:center;justify-content:space-between;gap:12px">
<div>
<h2 style="margin:0">Customer Service Stories</h2>
<div class="muted" style="margin-top:6px">Top rants & reviews from around the world.</div>
</div>
<div style="display:flex;gap:8px;align-items:center">
<div class="muted small">Sort</div>
<select style="padding:8px;border-radius:8px;border:1px solid var(--glass)"><option>Latest</option><option>Trending</option></select>
</div>
</div>
<div style="margin-top:12px" class="feed">
<div class="post">
<div style="display:flex;gap:8px;align-items:center"><div class="pill">Banking β’ Lagos</div><div class="muted" style="margin-left:auto">2 hours ago</div></div>
<h3 style="margin:8px 0">"Teller refused to accept my complaint"</h3>
<div class="muted">I went to Zenith Bank Ikeja branch to query an incorrect fee. The teller rolled her eyes and told me to come back another day. Attached a photo of my receipt.</div>
<div style="display:flex;gap:8px;margin-top:8px"><button class="btn secondary">204 likes</button><button class="btn secondary">15 Share</button><button class="btn secondary">Download image</button></div>
</div>
<div class="post">
<div style="display:flex;gap:8px;align-items:center"><div class="pill">Airlines β’ Global</div><div class="muted" style="margin-left:auto">1 day ago</div></div>
<h3 style="margin:8px 0">"Overbooked and no help at counter"</h3>
<div class="muted">Tried to rebook after flight cancellation. Staff were dismissive and gave no clear timeline. I took screenshots of their chat replies.</div>
<div style="display:flex;gap:8px;margin-top:8px"><button class="btn secondary">567 likes</button><button class="btn secondary">20 Share</button></div>
</div>
</div>
</div>
<!-- SHOUTLINK / INDIVIDUAL VIEW -->
<div class="card view" id="view-shout" style="display:none">
<div style="display:flex;justify-content:space-between;align-items:center">
<div>
<h2 style="margin:0">ShoutLink β Personal honest links</h2>
<div class="muted" style="margin-top:6px">Create a social-ready link where people can leave anonymous feedback about you.</div>
</div>
<div style="display:flex;gap:8px">
<button class="btn" id="loginBtn">Login / Create Account</button>
</div>
</div>
<div style="margin-top:12px" class="center">
<div style="display:flex;gap:12px;flex-direction:column">
<div>
<label class="muted">Ask a question</label>
<div style="display:flex;gap:8px;margin-top:6px"><input id="shoutSlug" placeholder="e.g Tell me your secret" style="padding:10px;border-radius:8px;border:1px solid var(--glass)" /><button class="btn" id="createLink">Create Link</button></div>
<div class="muted" style="margin-top:8px">Preview: <span style="font-weight:700">behonest.me/</span><span id="slugPreview">ayodele...</span></div>
</div>
<div style="display:flex;gap:12px;flex-wrap:wrap;align-items:center">
<div style="flex:1;min-width:240px">
<div class="link-preview">
<div style="flex:1">
<div style="font-weight:800;font-size:16px">behonest.me/<span id="slugPreviewLarge">ayodele</span></div>
<div class="muted" style="margin-top:6px">People can leave anonymous feedback via this link. You will see responses privately. Once you create a new link, the previous link stops running</div>
</div>
<div style="display:flex;flex-direction:column;gap:8px;align-items:center">
<div class="qr"></div>
<div class="muted" style="font-size:12px">QR placeholder</div>
</div>
</div>
</div>
<div style="flex:1;min-width:220px">
<div class="card">
<div style="font-weight:800">Social Image Preview</div>
<div class="share-card" id="shareCard">Tell me your secret - on Be Honest!
<div style="display:flex;gap:8px;margin-top:16px"><button class="btn" style="font-size:12px;padding:6px 10px">Copy Link</button><button class="btn secondary" style="font-size:12px;padding:6px 10px">Download Image</button></div>
</div>
</div>
</div>
</div>
<div class="card">
<strong>Login to see your responses</strong>
<div class="muted" style="margin-top:8px">You will see messages here once people start responding to your link. Export as image or copy a shareable card for social media.</div>
<div style="margin-top:8px">
<div class="post" style="margin-bottom:8px"><div class="muted small">3 days ago - 40 response</div><div style="margin-top:6px">Tell me your secret nobody knows - Click to see all response</div></div>
<div class="post"><div class="muted small">1 week ago - 100 response</div><div style="margin-top:6px">What do you love about me? - Click to see all response</div></div>
</div>
<div style="display:flex;gap:8px;margin-top:12px"><button class="btn">Create Social image preview card</button><button class="btn secondary">Generate printable QR</button></div>
</div>
</div>
</div>
</div>
<!-- BUSINESS VIEW -->
<div class="card view" id="view-business" style="display:none">
<div style="display:flex;justify-content:space-between;align-items:center">
<div>
<h2 style="margin:0">Business Dashboard</h2>
<div class="muted" style="margin-top:6px">Claim your business, track reviews & run campaigns to solicit ratings and rants.</div>
</div>
<div><button class="btn">Login/Signup</button></div>
</div>
<div style="margin-top:12px" class="metrics">
<div class="metric"><div class="muted">Avg. Rating</div><div style="font-weight:800;font-size:20px">3.2 / 5</div></div>
<div class="metric"><div class="muted">Monthly Complaints</div><div style="font-weight:800;font-size:20px">128</div></div>
<div class="metric"><div class="muted">Customer Pulse</div><div style="font-weight:800;font-size:20px">-14%</div></div>
</div>
<div style="margin-top:12px;display:flex;gap:12px;flex-direction:column">
<div class="card">
<strong>Collect Ratings at Point-of-Sale</strong>
<div class="muted" style="margin-top:6px">Create a QR code customers scan to quickly rate (1-5) or leave a short review. Ratings feed into analytics; longer anonymous rants go to the service inbox.</div>
<div style="display:flex;gap:8px;margin-top:8px;flex-wrap:wrap"><button class="btn">Generate Rating Link/QR</button><button class="btn secondary">Generate Rant Link/QR</button><button class="btn secondary">Export CSV</button></div>
</div>
<div class="card">
<strong>Keyword Trends</strong>
<table class="table"><tr><th>Keyword</th><th>Mentions</th></tr><tr><td>Queue</td><td>124</td></tr><tr><td>Refund</td><td>97</td></tr><tr><td>Rude Staff</td><td>78</td></tr></table>
</div>
<div class="card">
<strong>Pricing (Preview)</strong>
<div style="display:flex;gap:12px;margin-top:8px">
<div style="flex:1;padding:12px;border-radius:12px;background:rgba(0,0,0,0.02)"><div style="font-weight:700">Starter</div><div class="muted">Basic analytics β’ 30-day lookback</div><div style="margin-top:8px"><button class="btn">Get Started</button></div></div>
<div style="flex:1;padding:12px;border-radius:12px;background:linear-gradient(90deg, rgba(6,182,212,0.06), rgba(124,58,237,0.06))"><div style="font-weight:700">Pro</div><div class="muted">Full insights β’ API access β’ Export</div><div style="margin-top:8px"><button class="btn">Request Demo</button></div></div>
</div>
</div>
<div class="card">
<strong>Login to see your responses</strong>
<div class="muted" style="margin-top:8px">You will see messages here once customers start responding to your link. Export as image or copy a shareable card for social media.</div>
<div style="margin-top:8px">
<div class="post" style="margin-bottom:8px"><div class="muted small">3 days ago - 40 response</div><div style="margin-top:6px">What do you think about our service? - Click to see all response</div></div>
<div class="post"><div class="muted small">1 week ago - 100 response</div><div style="margin-top:6px">What do you love about me? - Click to see all response</div></div>
</div>
<div style="display:flex;gap:8px;margin-top:12px"><button class="btn">Create Social image preview card</button><button class="btn secondary">Generate printable QR</button></div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Testimonials (Business View Only) -->
<div class="card" id="businessTestimonials" style="display:none">
<strong>Testimonials</strong>
<div style="display:flex;gap:16px;margin-top:12px;overflow-x:auto;padding-bottom:8px">
<div style="min-width:240px;padding:16px;border-radius:12px;background:rgba(0,0,0,0.02)">
<div style="font-weight:700">"Game Changer"</div>
<div class="muted" style="margin-top:4px">Our response time improved by 40% after implementing Be Honest feedback.</div>
<div style="display:flex;align-items:center;gap:8px;margin-top:8px">
<div style="width:32px;height:32px;border-radius:50%;background:var(--glass)"></div>
<div style="font-size:14px">Retail Chain</div>
</div>
</div>
<div style="min-width:240px;padding:16px;border-radius:12px;background:rgba(0,0,0,0.02)">
<div style="font-weight:700">"Valuable Insights"</div>
<div class="muted" style="margin-top:4px">We uncovered 3 major pain points we didn't know existed.</div>
<div style="display:flex;align-items:center;gap:8px;margin-top:8px">
<div style="width:32px;height:32px;border-radius:50%;background:var(--glass)"></div>
<div style="font-size:14px">Banking</div>
</div>
</div>
<div style="min-width:240px;padding:16px;border-radius:12px;background:rgba(0,0,0,0.02)">
<div style="font-weight:700">"Easy Setup"</div>
<div class="muted" style="margin-top:4px">Had QR codes in all branches within a day. Customers love it.</div>
<div style="display:flex;align-items:center;gap:8px;margin-top:8px">
<div style="width:32px;height:32px;border-radius:50%;background:var(--glass)"></div>
<div style="font-size:14px">FMCG</div>
</div>
</div>
</div>
</div>
</div>
<!-- CONTACT VIEW -->
<div class="card view" id="view-contact" style="display:none">
<h2>Contact Us</h2>
<p class="muted">Questions, partnerships, press β we'd love to hear from you.</p>
<div style="display:flex;flex-direction:column;gap:8px;margin-top:12px;max-width:560px">
<input placeholder="Name" style="padding:10px;border-radius:8px;border:1px solid var(--glass)" />
<input placeholder="Email" style="padding:10px;border-radius:8px;border:1px solid var(--glass)" />
<textarea placeholder="Message" style="padding:10px;border-radius:8px;border:1px solid var(--glass)"></textarea>
<div style="display:flex;gap:8px"><button class="btn">Send</button><button class="btn secondary">Twitter</button><button class="btn secondary">Instagram</button></div>
</div>
</div>
</div>
<!-- RIGHT COLUMN (Extras / Trending) -->
<div class="card" id="rightCol" style="min-width:260px">
<div style="display:flex;justify-content:space-between;align-items:center"><strong>Trending Tags</strong><div class="muted small">#customerstories</div></div>
<div style="margin-top:8px;display:flex;flex-direction:column;gap:8px"><div class="pill">#refund</div><div class="pill">#queue</div><div class="pill">#rude-staff</div><div class="pill">#delivery</div></div>
<hr style="margin:12px 0;border:none;border-top:1px solid var(--glass)" />
<div><strong>Why Be Honest?</strong><div class="muted" style="margin-top:8px">Focused on customer service stories first β but supports personal anonymous links too.</div></div>
</div>
</main>
<footer class="muted">Be Honest β’ Demo mockup β built for UX testing. Theme, mobile-first and playful/professional mix applied.</footer>
</div>
<!-- Login Modal (Mock) -->
<div class="modal" id="loginModal"><div class="box card"><h3>Login / Create Account</h3><div class="muted">Create a simple account to manage your ShoutLink(s)</div><input placeholder="Username" /><input placeholder="Email" /><input placeholder="Password" type="password" /><div style="display:flex;gap:8px;margin-top:12px"><button class="btn" id="mockLogin">Create</button><button class="btn secondary" id="closeModal">Cancel</button></div><div style="margin-top:8px" class="muted">Or <button class="btn secondary">Continue with Google</button></div></div></div>
<script>
// Simple view switcher
document.querySelectorAll('.navbtn').forEach(b=>b.addEventListener('click',e=>{
document.querySelectorAll('.navbtn').forEach(x=>x.classList.remove('active'));
b.classList.add('active');
const view=b.getAttribute('data-view');
document.querySelectorAll('.view').forEach(v=>v.style.display='none');
document.getElementById('view-'+(view==='home'? 'home': view)).style.display='block';
// Show/hide left column, hero section and testimonials based on view
const leftCol = document.getElementById('leftCol');
const heroSection = document.getElementById('heroSection');
const testimonials = document.getElementById('businessTestimonials');
leftCol.style.display = view === 'home' ? 'block' : 'none';
heroSection.style.display = view === 'home' ? 'block' : 'none';
testimonials.style.display = view === 'business' ? 'block' : 'none';
}));
// Theme toggle
const themeToggle=document.getElementById('themeToggle');
themeToggle.addEventListener('click',()=>{
const body=document.body;const current=body.getAttribute('data-theme');
if(current==='light'){body.setAttribute('data-theme','dark');themeToggle.textContent='βοΈ'}else{body.setAttribute('data-theme','light');themeToggle.textContent='π'}
});
// Shout slug preview
const slugInput=document.getElementById('shoutSlug');
const quickPostTextarea = document.querySelector('#leftCol textarea');
const quickPostShareCard = document.getElementById('quickPostShareCard');
quickPostTextarea.addEventListener('input', (e) => {
const text = e.target.value || 'Share your best or worst customer service experience on Be Honest!';
quickPostShareCard.textContent = text.length > 100 ? text.substring(0, 100) + '...' : text;
});
const slugPreview=document.getElementById('slugPreview');
const slugPreviewLarge=document.getElementById('slugPreviewLarge');
slugInput.addEventListener('input',e=>{const v=e.target.value||'ayodele';slugPreview.textContent=v;slugPreviewLarge.textContent=v;});
// Mock login modal
const loginBtn=document.getElementById('loginBtn');const loginModal=document.getElementById('loginModal');const closeModal=document.getElementById('closeModal');
loginBtn.addEventListener('click',()=>loginModal.classList.add('show'));
closeModal.addEventListener('click',()=>loginModal.classList.remove('show'));
document.getElementById('mockLogin').addEventListener('click',()=>{alert('Account created (mock). You can now create ShoutLink.');loginModal.classList.remove('show');});
// Create link (mock)
document.getElementById('createLink').addEventListener('click',()=>{alert('ShoutLink created: behonest.me/'+(slugInput.value||'ayodele')+' (mock)');});
</script>
</body>
</html>
|