Graphley / app · graphley.ai / design / app-store / layouts.html
| 1 | <!doctype html> |
| 2 | <html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"> |
| 3 | <title>Graphley App Store screenshots</title> |
| 4 | <!-- Light, flat, one accent (Tide accent #1D6E8A). Real simulator captures of the sample data, no drawn hardware, no blur. |
| 5 | render.mjs passes ?device=iphone|ipad&sources=<capture folder>&icon=<app icon>[&slide=N | &review=1]. --> |
| 6 | <style> |
| 7 | *{box-sizing:border-box}html,body{margin:0} |
| 8 | body{background:#dfe7e5;font-family:"Avenir Next",Avenir,-apple-system,sans-serif;-webkit-font-smoothing:antialiased;color:#0E2830; |
| 9 | --accent:#1D6E8A;--ink:#0E2830;--ink2:#2F4C52;--line:#C3D2CE;--ground:#EEF3F1;--band:#DDE8E5} |
| 10 | body.iphone{--W:1320px;--H:2868px;--tw:330px;--th:717px} |
| 11 | body.ipad{--W:2752px;--H:2064px;--tw:688px;--th:516px} |
| 12 | .overview{display:grid;grid-template-columns:repeat(3,var(--tw));gap:28px;padding:32px;width:max-content} |
| 13 | .thumb{width:var(--tw);height:var(--th);overflow:hidden;border-radius:20px;outline:1px solid #b9c8c4} |
| 14 | .single .overview{display:block;padding:0}.single .thumb{width:var(--W);height:var(--H);border-radius:0;outline:0}.single .slide{transform:none} |
| 15 | .slide{position:relative;width:var(--W);height:var(--H);overflow:hidden;background:var(--ground);transform:scale(.25);transform-origin:top left} |
| 16 | /* A flat tide band behind the screen, the shape of the app icon's wave. */ |
| 17 | .band{position:absolute;inset:auto 0 0 0;z-index:0} |
| 18 | .band path{fill:var(--band)} |
| 19 | .brand{display:flex;align-items:center;gap:22px;font-size:50px;font-weight:600;color:var(--ink2);letter-spacing:-.4px} |
| 20 | .brand img{width:88px;height:88px;border-radius:20px;outline:2px solid #fff} |
| 21 | h1{margin:44px 0 0;font-size:132px;line-height:1.05;letter-spacing:-4px;font-weight:700} |
| 22 | h1 em{font-style:normal;color:var(--accent)} |
| 23 | .sub{margin:36px 0 0;font-size:58px;line-height:1.24;font-weight:500;color:var(--ink2);letter-spacing:-.4px} |
| 24 | .copy{position:absolute;z-index:3} |
| 25 | .shot{position:absolute;z-index:2;display:block;border:3px solid var(--line);background:#fff;overflow:hidden} |
| 26 | .shot img{display:block;width:100%;height:auto} |
| 27 | .chips{display:flex;flex-wrap:wrap;gap:20px;margin-top:52px} |
| 28 | .chip{display:inline-flex;align-items:center;gap:16px;border-radius:999px;padding:22px 34px;font-size:44px;font-weight:600;letter-spacing:-.3px;background:#fff;color:var(--ink);border:3px solid var(--line);white-space:nowrap} |
| 29 | .chip svg{width:40px;height:40px;flex:none;stroke:var(--accent);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round} |
| 30 | .steps{display:flex;flex-direction:column;gap:22px;margin-top:56px} |
| 31 | .step{display:flex;align-items:center;gap:28px;background:#fff;border:3px solid var(--line);border-radius:36px;padding:30px 36px} |
| 32 | .step .n{flex:none;width:76px;height:76px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:42px;font-weight:700} |
| 33 | .step b{display:block;font-size:48px;letter-spacing:-.4px} |
| 34 | .step span{display:block;font-size:38px;color:var(--ink2);margin-top:4px;line-height:1.25} |
| 35 | /* iPhone: copy on top, the screen below, running off the bottom edge. */ |
| 36 | .iphone .copy{left:110px;right:110px;top:150px} |
| 37 | .iphone .shot{left:160px;width:1000px;border-radius:84px} |
| 38 | /* iPad: copy on the left, the portrait screen on the right. */ |
| 39 | .ipad .copy{left:140px;top:200px;width:930px} |
| 40 | .ipad h1{font-size:120px}.ipad .sub{font-size:54px} |
| 41 | .ipad .shot{right:130px;top:190px;width:1500px;border-radius:60px} |
| 42 | </style></head><body><main class="overview" id="overview"></main> |
| 43 | <script> |
| 44 | const q=new URLSearchParams(location.search); |
| 45 | const device=q.get('device')==='ipad'?'ipad':'iphone'; |
| 46 | document.body.classList.add(device); |
| 47 | const P=device==='iphone'; |
| 48 | const root=(q.get('sources')||'').replace(/\/$/,'');if(!root)throw Error('Pass the capture folder'); |
| 49 | const src=n=>`${root}/${n}.png`; |
| 50 | const brand=`<div class="brand"><img src="${q.get('icon')}" alt="">Graphley</div>`; |
| 51 | const shot=(phone,pad,top)=>`<div class="shot" style="${P?`top:${top}px`:''}"><img src="${src(P?phone:pad)}" alt=""></div>`; |
| 52 | const band=P?`<svg class="band" viewBox="0 0 1320 1700" width="1320" height="1700"><path d="M0 420 C 300 250, 620 520, 1320 260 L1320 1700 L0 1700Z"/></svg>` |
| 53 | :`<svg class="band" viewBox="0 0 2752 1100" width="2752" height="1100"><path d="M0 420 C 700 200, 1500 640, 2752 300 L2752 1100 L0 1100Z"/></svg>`; |
| 54 | const icon={ |
| 55 | key:'<path d="M15 7a4 4 0 1 1-4 4"/><path d="M11 11 3 19v2h3v-2h2v-2h2l1.5-1.5"/><circle cx="15" cy="9" r="1"/>', |
| 56 | cloud:'<path d="M7 18h10a4 4 0 0 0 .5-8 6 6 0 0 0-11.6 1.6A3.5 3.5 0 0 0 7 18z"/>', |
| 57 | eye:'<path d="M3 3l18 18"/><path d="M10.6 6.1A10 10 0 0 1 12 6c5 0 9 6 9 6a17 17 0 0 1-2.6 3.2M6.6 7.6C4.4 9.2 3 12 3 12s4 6 9 6a9 9 0 0 0 4.4-1.2"/>', |
| 58 | code:'<path d="M8 8l-4 4 4 4M16 8l4 4-4 4M13.5 5l-3 14"/>'}; |
| 59 | const chip=(k,t)=>`<span class="chip"><svg viewBox="0 0 24 24">${icon[k]}</svg>${t}</span>`; |
| 60 | const slides=[ |
| 61 | {id:'one-chart',body:()=>`${band} |
| 62 | <div class="copy">${brand}<h1>All your sites. <em>One calm chart.</em></h1><p class="sub">Visitors from every site you run, each in its own color.</p></div> |
| 63 | ${shot('today','pad-overview',900)}`}, |
| 64 | {id:'site-detail',body:()=>`${band} |
| 65 | <div class="copy">${brand}<h1>Every site, <em>down to the page.</em></h1><p class="sub">Trends, top pages and key events for each site.</p></div> |
| 66 | ${shot('site-harbor-notes','pad-site-harbor-notes',900)}`}, |
| 67 | {id:'app-store',body:()=>`${band} |
| 68 | <div class="copy">${brand}<h1>App Store downloads <em>and ratings.</em></h1><p class="sub">Downloads by app and device, next to Mac installs from your website.</p></div> |
| 69 | ${shot('dashboard-app-downloads-bottom','pad-apps',1040)}`}, |
| 70 | {id:'dashboards',body:()=>`${band} |
| 71 | <div class="copy">${brand}<h1>Dashboards <em>you build.</em></h1><p class="sub">Make them on your Mac, or ask your agent. They follow you to iPhone and iPad.</p></div> |
| 72 | ${shot('dashboard-portfolio','pad-dashboard-portfolio',1040)}`}, |
| 73 | {id:'private',body:()=>`${band} |
| 74 | <div class="copy">${brand}<h1>Private. <em>No server.</em></h1> |
| 75 | <div class="chips">${chip('key','Keys stay in your Keychain')}${chip('cloud','Syncs through your own iCloud')}${chip('eye','No tracking')}${chip('code','Free and source available')}</div></div> |
| 76 | ${shot('sites','pad-site-field-guide',P?1150:0)}`}, |
| 77 | {id:'mac-companion',body:()=>`${band} |
| 78 | <div class="copy">${brand}<h1>Works with <em>Graphley for Mac.</em></h1><p class="sub">Get the free Mac app, turn on sharing, and your numbers follow through your own iCloud.</p></div> |
| 79 | ${shot('connect','pad-connect',900)}`}, |
| 80 | ]; |
| 81 | const main=document.getElementById('overview'); |
| 82 | slides.forEach(s=>{const t=document.createElement('div');t.className='thumb';t.innerHTML=`<section class="slide ${s.id}">${s.body()}</section>`;main.append(t)}); |
| 83 | const n=Number(q.get('slide')); |
| 84 | if(n>=1&&n<=slides.length){document.body.classList.add('single');[...main.children].forEach((e,i)=>{if(i!==n-1)e.remove()})} |
| 85 | window.SLIDES=slides.map(s=>s.id); |
| 86 | </script></body></html> |