Commit b9d4cf5485
Verified · cmc
Layout: unified · split
ios/AppStore/header-16x9.png
Binary file not shown.
ios/AppStore/header-21x9.png
Binary file not shown.
ios/AppStore/header.html +18 −46
| @@ -1,6 +1,7 @@ | ||
| 1 | 1 | <!doctype html> |
| 2 | <!-- Product page header. header.html renders the 21:9 header (3840x1646), header.html#wide the | |
| 3 | 16:9 one (5244x2950), with headless Chromium, then the alpha channel is removed: | |
| 2 | <!-- Product page header, after the krz.sh hero: three iPhones fanned over the app's green. | |
| 3 | header.html renders the 21:9 header (3840x1646), header.html#wide the 16:9 one (5244x2950), | |
| 4 | with headless Chromium, then the alpha channel is removed: | |
| 4 | 5 | Chromium --headless --hide-scrollbars --force-device-scale-factor=1 --window-size=3840,1646 --screenshot=header-21x9.png header.html |
| 5 | 6 | Chromium --headless --hide-scrollbars --force-device-scale-factor=1 --window-size=5244,2950 --screenshot=header-16x9.png "file://$PWD/header.html#wide" |
| 6 | 7 | magick header-21x9.png -alpha off PNG24:header-21x9.png --> |
| @@ -8,63 +9,34 @@ | ||
| 8 | 9 | <head> |
| 9 | 10 | <meta charset="utf-8"> |
| 10 | 11 | <style> |
| 11 | :root { --u: 1px; --row-top: 420px; } | |
| 12 | :root { --u: 1px; --top: 180px; } | |
| 12 | 13 | * { box-sizing: border-box; } |
| 13 | 14 | html, body { margin: 0; width: 3840px; height: 1646px; overflow: hidden; } |
| 14 | 15 | body { |
| 15 | background: linear-gradient(120deg, #21338c 0%, #3a2c9a 45%, #6638b3 100%); | |
| 16 | font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif; | |
| 17 | color: #fff; | |
| 18 | 16 | position: relative; |
| 19 | } | |
| 20 | .glow { | |
| 21 | position: absolute; left: 50%; top: 58%; width: 2600px; height: 1400px; | |
| 22 | transform: translate(-50%, -50%); | |
| 23 | background: radial-gradient(closest-side, rgba(255, 199, 77, 0.22), rgba(255, 199, 77, 0)); | |
| 24 | } | |
| 25 | h1 { | |
| 26 | position: absolute; top: 120px; left: 0; right: 0; margin: 0; | |
| 27 | text-align: center; font-size: 150px; font-weight: 700; letter-spacing: -2px; | |
| 28 | } | |
| 29 | h1 span { color: #ffc74d; } | |
| 30 | /* One row, centered, one gap: the space between devices is equal by construction. */ | |
| 31 | .row { | |
| 32 | position: absolute; top: var(--row-top); left: 0; right: 0; | |
| 33 | display: flex; justify-content: center; align-items: flex-start; gap: calc(150 * var(--u)); | |
| 34 | } | |
| 35 | .device { flex: none; box-shadow: 0 calc(60 * var(--u)) calc(140 * var(--u)) rgba(0, 0, 0, 0.45); } | |
| 36 | .device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; } | |
| 37 | .ipad { | |
| 38 | width: calc(940 * var(--u)); height: calc(1233 * var(--u)); margin-top: calc(60 * var(--u)); | |
| 39 | padding: calc(30 * var(--u)); border-radius: calc(70 * var(--u)); background: #0c0c12; | |
| 40 | } | |
| 41 | .ipad img { border-radius: calc(44 * var(--u)); } | |
| 42 | .mac { | |
| 43 | width: calc(1800 * var(--u)); height: calc(1209 * var(--u)); | |
| 44 | border-radius: calc(26 * var(--u)); overflow: hidden; background: #fff; | |
| 45 | outline: calc(2 * var(--u)) solid rgba(255, 255, 255, 0.25); | |
| 17 | background: | |
| 18 | radial-gradient(ellipse 55% 75% at 50% 30%, #7a9845 0%, #56722c 35%, #33451a 70%, #182109 100%); | |
| 46 | 19 | } |
| 47 | 20 | .iphone { |
| 48 | width: calc(560 * var(--u)); height: calc(1170 * var(--u)); margin-top: calc(110 * var(--u)); | |
| 49 | padding: calc(20 * var(--u)); border-radius: calc(100 * var(--u)); background: #0c0c12; | |
| 21 | position: absolute; left: 50%; top: var(--top); | |
| 22 | width: calc(860 * var(--u)); height: calc(1868 * var(--u)); | |
| 23 | padding: calc(24 * var(--u)); border-radius: calc(140 * var(--u)); background: #0c0c12; | |
| 24 | box-shadow: 0 calc(50 * var(--u)) calc(120 * var(--u)) rgba(0, 0, 0, 0.5); | |
| 50 | 25 | } |
| 51 | .iphone img { border-radius: calc(82 * var(--u)); } | |
| 26 | .iphone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: calc(116 * var(--u)); } | |
| 27 | .center { transform: translateX(-50%); z-index: 2; } | |
| 28 | .left { transform: translate(calc(-50% - 760 * var(--u)), calc(120 * var(--u))) rotate(-8deg); } | |
| 29 | .right { transform: translate(calc(-50% + 760 * var(--u)), calc(120 * var(--u))) rotate(8deg); } | |
| 52 | 30 | |
| 53 | 31 | /* 16:9, 5244x2950. */ |
| 54 | html.wide { --u: 1.38px; --row-top: 760px; } | |
| 32 | html.wide { --u: 1.6px; --top: 420px; } | |
| 55 | 33 | html.wide, .wide body { width: 5244px; height: 2950px; } |
| 56 | .wide .glow { width: 3800px; height: 2400px; } | |
| 57 | .wide h1 { top: 260px; font-size: 220px; letter-spacing: -3px; } | |
| 58 | 34 | </style> |
| 59 | 35 | <script>if (location.hash === "#wide") document.documentElement.className = "wide";</script> |
| 60 | 36 | </head> |
| 61 | 37 | <body> |
| 62 | <div class="glow"></div> | |
| 63 | <h1>Your org files, <span>wherever you are.</span></h1> | |
| 64 | <div class="row"> | |
| 65 | <div class="device ipad"><img src="screenshots/ipad/01-agenda.png"></div> | |
| 66 | <div class="device mac"><img src="screenshots/mac/01-editor.png"></div> | |
| 67 | <div class="device iphone"><img src="screenshots/iphone-6.9/05-capture.png"></div> | |
| 68 | </div> | |
| 38 | <div class="iphone left"><img src="screenshots/iphone-6.9/02-reader.png"></div> | |
| 39 | <div class="iphone right"><img src="screenshots/iphone-6.9/04-tables.png"></div> | |
| 40 | <div class="iphone center"><img src="screenshots/iphone-6.9/01-agenda.png"></div> | |
| 69 | 41 | </body> |
| 70 | 42 | </html> |