Branchwell

Bucksley / website · bucksley.ai / tools / social-card.html

1<!doctype html>
2<!-- Source for /social-card.png (1200 × 630). Render with tools/render-social-card.js. Not deployed. Sample data only. -->
3<html lang="en">
4<head>
5<meta charset="utf-8">
6<style>
7 @font-face { font-family: "Inter Variable"; src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; }
8 @font-face { font-family: "JetBrains Mono Variable"; src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; }
9 * { box-sizing: border-box; margin: 0; }
10 :root { --disp: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter Variable", sans-serif; --mono: ui-monospace, "SF Mono", "JetBrains Mono Variable", monospace; }
11 body { width: 1200px; height: 630px; overflow: hidden; background: #0d0e17; color: #f2f2fa; font-family: var(--disp); -webkit-font-smoothing: antialiased; }
12 .card { position: relative; width: 1200px; height: 630px; display: grid; grid-template-columns: 520px 1fr; align-items: center; gap: 44px; padding: 0 56px 0 72px;
13 background: radial-gradient(720px 500px at 80% 52%, rgba(138, 107, 255, .26), transparent 70%), #0d0e17; }
14 .card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(to right, #b6f24a 0 20%, #35c9f0 20% 40%, #8a6bff 40% 60%, #ff5c7a 60% 80%, #ff9f43 80%); }
15 .brand { display: flex; align-items: center; gap: 14px; font-weight: 800; font-size: 36px; letter-spacing: -.035em; }
16 .brand img { width: 58px; height: 58px; display: block; }
17 h1 { margin-top: 34px; font-weight: 800; font-size: 62px; line-height: 1.02; letter-spacing: -.05em; }
18 h1 em { font-style: normal; color: #a58eff; }
19 .copy p { margin-top: 24px; font-size: 25px; line-height: 1.4; color: #c3c4d8; }
20 .pill { display: inline-block; margin-top: 28px; padding: 7px 16px; border: 1px solid #383c58; border-radius: 999px; background: rgba(23, 25, 40, .8); font: 600 15px/1.4 var(--mono); letter-spacing: .1em; color: #b6f24a; }
21 .win { border: 1px solid #272a3f; border-radius: 16px; overflow: hidden; background: #0d0e17; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); }
22 .bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid #272a3f; background: #12131f; font-size: 14px; font-weight: 700; color: #9092ac; }
23 .lights { display: flex; gap: 8px; }
24 .lights i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; }
25 .lights i:nth-child(2) { background: #febc2e; }
26 .lights i:nth-child(3) { background: #28c840; }
27 .bar .on { padding: 5px 12px; border-radius: 999px; background: #8a6bff; color: #fff; }
28 .main { padding: 20px 22px 18px; }
29 .lbl { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9092ac; }
30 .big { margin-top: 4px; font: 600 52px/1 var(--mono); letter-spacing: -.06em; }
31 .big small { font-size: 26px; color: #9092ac; }
32 .chip { display: inline-block; margin-top: 10px; padding: 4px 11px; border-radius: 999px; background: rgba(182, 242, 74, .16); color: #b6f24a; font: 600 15px var(--mono); }
33 .keys { display: flex; gap: 20px; margin-top: 14px; font-size: 15px; color: #9092ac; }
34 .keys i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
35 .keys b { color: #f2f2fa; font: 500 15px var(--mono); }
36 svg { display: block; width: 100%; margin-top: 12px; }
37</style>
38<!-- no-orphans --><link rel="stylesheet" href="/no-orphans.css"><script src="/no-orphans.js" defer></script><!-- /no-orphans --></head>
39<body>
40<div class="card">
41 <div class="copy">
42 <div class="brand"><img src="../assets/icon.png" alt="">Bucksley</div>
43 <h1>Every account.<br><em>One honest picture.</em></h1>
44 <p>Personal finance for Mac and iPhone. Free, read&#8209;only, with no Bucksley server.</p>
45 <div class="pill">BUCKSLEY.AI</div>
46 </div>
47 <div class="win">
48 <div class="bar"><span class="lights"><i></i><i></i><i></i></span><span class="on">Home</span><span>Spending</span><span>Budgets</span></div>
49 <div class="main">
50 <div class="lbl">Net worth</div>
51 <div class="big">$184,047<small>.12</small></div>
52 <span class="chip">+21.7% 1Y</span>
53 <div class="keys"><span><i style="background:#8a6bff"></i>Investments <b>$142.4k</b></span><span><i style="background:#35c9f0"></i>Cash <b>$33.3k</b></span><span><i style="background:#b6f24a"></i>Crypto <b>$9.6k</b></span></div>
54 <svg id="chart" viewBox="0 0 560 190"></svg>
55 </div>
56 </div>
57</div>
58<script>
59 // Sample stacked areas only.
60 var n = 40, inv = [], cash = [], cry = [];
61 for (var i = 0; i < n; i++) {
62 inv.push(98 + i * 0.95 + 4 * Math.sin(i / 3.2));
63 cash.push(24 + i * 0.12 + 2.2 * Math.sin(i / 1.7));
64 cry.push(5 + i * 0.1 + 2.4 * Math.sin(i / 2.3 + 1));
65 }
66 var max = 175, H = 186;
67 function y(v) { return H - v / max * H; }
68 function x(i) { return i * 560 / (n - 1); }
69 function band(lo, hi, color) {
70 var top = hi.map(function (v, i) { return (i ? 'L' : 'M') + x(i).toFixed(1) + ' ' + y(v).toFixed(1); }).join('');
71 var bot = ''; for (var i = n - 1; i >= 0; i--) bot += 'L' + x(i).toFixed(1) + ' ' + y(lo[i]).toFixed(1);
72 return '<path d="' + top + bot + 'Z" fill="' + color + '"/><path d="' + top + '" fill="none" stroke="#0d0e17" stroke-width="2"/>';
73 }
74 var zero = inv.map(function () { return 0; });
75 var s1 = inv, s2 = inv.map(function (v, i) { return v + cash[i]; }), s3 = s2.map(function (v, i) { return v + cry[i]; });
76 document.getElementById('chart').innerHTML = band(s2, s3, '#b6f24a') + band(s1, s2, '#35c9f0') + band(zero, s1, '#8a6bff') +
77 '<line x1="0" x2="560" y1="' + y(50) + '" y2="' + y(50) + '" stroke="#0d0e17" stroke-opacity=".45"/><line x1="0" x2="560" y1="' + y(100) + '" y2="' + y(100) + '" stroke="#0d0e17" stroke-opacity=".45"/>' +
78 '<circle cx="557" cy="' + y(s3[n - 1]) + '" r="6" fill="#f2f2fa" stroke="#0d0e17" stroke-width="3"/>';
79</script>
80</body>
81</html>