Graphley / website / 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: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; } |
| 8 | @font-face { font-family: "Instrument Sans"; src: url("../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; } |
| 9 | @font-face { font-family: "IBM Plex Mono"; src: url("../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; } |
| 10 | * { box-sizing: border-box; margin: 0; } |
| 11 | body { width: 1200px; height: 630px; overflow: hidden; background: #0b1b21; color: #e2eeec; font-family: "Instrument Sans", sans-serif; -webkit-font-smoothing: antialiased; } |
| 12 | .card { position: relative; width: 1200px; height: 630px; display: grid; grid-template-columns: 540px 1fr; align-items: center; gap: 48px; padding: 0 60px 0 72px; |
| 13 | background: |
| 14 | radial-gradient(700px 480px at 82% 55%, rgba(93, 182, 210, .2), transparent 70%), |
| 15 | repeating-linear-gradient(to bottom, transparent 0 47px, rgba(93, 182, 210, .07) 47px 48px), |
| 16 | #0b1b21; } |
| 17 | .brand { display: flex; align-items: center; gap: 14px; font: 700 36px/1 "Bricolage Grotesque"; letter-spacing: -.03em; } |
| 18 | .brand img { width: 56px; height: 56px; display: block; } |
| 19 | h1 { margin-top: 34px; font: 700 60px/1.02 "Bricolage Grotesque"; white-space: nowrap; letter-spacing: -.04em; } |
| 20 | h1 em { font-style: normal; color: #5db6d2; } |
| 21 | .copy p { margin-top: 24px; font-size: 26px; line-height: 1.4; color: #b4c8c7; } |
| 22 | .pill { display: inline-block; margin-top: 28px; padding: 7px 16px; border: 1px solid #2f5561; border-radius: 999px; background: rgba(17, 37, 44, .8); font: 500 15px/1.4 "IBM Plex Mono"; letter-spacing: .1em; color: #5db6d2; } |
| 23 | |
| 24 | .win { border: 1px solid #21404a; border-radius: 16px; overflow: hidden; background: #11252c; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8); } |
| 25 | .bar { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 16px; border-bottom: 1px solid #21404a; font-size: 16px; font-weight: 600; } |
| 26 | .lights { display: flex; gap: 8px; } |
| 27 | .lights i { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; } |
| 28 | .lights i:nth-child(2) { background: #febc2e; } |
| 29 | .lights i:nth-child(3) { background: #28c840; } |
| 30 | .bar .grow { flex: 1; } |
| 31 | .seg { display: flex; gap: 2px; padding: 3px; border: 1px solid #21404a; border-radius: 999px; background: #0a171c; font: 500 13px/1 "IBM Plex Mono"; color: #88a2a2; } |
| 32 | .seg span { padding: 6px 11px; border-radius: 999px; } |
| 33 | .seg .on { background: #11252c; color: #e2eeec; } |
| 34 | .main { padding: 20px 22px 18px; } |
| 35 | .main h3 { font: 700 28px/1 "Bricolage Grotesque"; letter-spacing: -.02em; } |
| 36 | .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; } |
| 37 | .kpi { padding: 12px 14px; border-radius: 10px; background: #0a171c; } |
| 38 | .kpi .l { font-size: 14px; color: #88a2a2; } |
| 39 | .kpi .v { font: 700 30px/1.15 "Bricolage Grotesque"; letter-spacing: -.02em; } |
| 40 | .kpi .d { font: 500 13px/1.4 "IBM Plex Mono"; color: #5cc594; } |
| 41 | svg { display: block; width: 100%; margin-top: 14px; } |
| 42 | </style> |
| 43 | <!-- no-orphans --><link rel="stylesheet" href="/no-orphans.css"><script src="/no-orphans.js" defer></script><!-- /no-orphans --></head> |
| 44 | <body> |
| 45 | <div class="card"> |
| 46 | <div class="copy"> |
| 47 | <div class="brand"><img src="../assets/icon.png" alt="">Graphley</div> |
| 48 | <h1>Every site and app.<br><em>One calm chart.</em></h1> |
| 49 | <p>Analytics for your Mac. Free, local-first, set up by your agents.</p> |
| 50 | <div class="pill">GRAPHLEY.AI</div> |
| 51 | </div> |
| 52 | <div class="win"> |
| 53 | <div class="bar"><span class="lights"><i></i><i></i><i></i></span>Graphley<span class="grow"></span><span class="seg"><span>7D</span><span class="on">30D</span><span>90D</span></span></div> |
| 54 | <div class="main"> |
| 55 | <h3>All sites</h3> |
| 56 | <div class="kpis"> |
| 57 | <div class="kpi"><div class="l">Visitors</div><div class="v">6,284</div><div class="d">▲ 14%</div></div> |
| 58 | <div class="kpi"><div class="l">App downloads</div><div class="v">198</div><div class="d">▲ 31%</div></div> |
| 59 | <div class="kpi"><div class="l">Key events</div><div class="v">281</div><div class="d">▲ 9%</div></div> |
| 60 | </div> |
| 61 | <svg id="chart" viewBox="0 0 560 168"></svg> |
| 62 | </div> |
| 63 | </div> |
| 64 | </div> |
| 65 | <script> |
| 66 | // Sample curves only, one per made-up site. |
| 67 | var colors = ['#5db6d2', '#59c9bf', '#e3a45a', '#a79ae0', '#e57f93']; |
| 68 | var bases = [92, 58, 34, 26, 17], out = ''; |
| 69 | [40, 100, 160].forEach(function (y, i) { out += '<line x1="0" x2="560" y1="' + y + '" y2="' + y + '" stroke="#21404a" ' + (i < 2 ? 'stroke-dasharray="2 3"' : '') + '/>'; }); |
| 70 | bases.forEach(function (b, s) { |
| 71 | var pts = []; |
| 72 | for (var i = 0; i < 30; i++) { |
| 73 | var v = b * (1 + 0.004 * i * (s === 2 ? 6 : 1)) * (1 + 0.13 * Math.sin((i + s * 5) / 3.1)) * ((i + 2) % 7 > 4 ? 0.78 : 1); |
| 74 | pts.push([i * 560 / 29, 160 - v]); |
| 75 | } |
| 76 | var line = pts.map(function (p, i) { return (i ? 'L' : 'M') + p[0].toFixed(1) + ' ' + p[1].toFixed(1); }).join(' '); |
| 77 | out += '<path d="' + line + ' L560 160 L0 160 Z" fill="' + colors[s] + '" opacity=".14"/><path d="' + line + '" fill="none" stroke="' + colors[s] + '" stroke-width="2.6" stroke-linejoin="round" stroke-linecap="round"/>'; |
| 78 | }); |
| 79 | document.getElementById('chart').innerHTML = out; |
| 80 | </script> |
| 81 | </body> |
| 82 | </html> |