App Store header with the Mac app !318
5 files changed, +30 −19
Layout: unified · split
README.md +1 −1
| @@ -1,6 +1,6 @@ | |||
| 1 | # orgstar | 1 | # orgstar |
| 2 | 2 | ||
| 3 |  | 3 |  |
| 4 | 4 | ||
| 5 | A native macOS editor for org-mode files, with an iOS app for iPhone and iPad. | 5 | A native macOS editor for org-mode files, with an iOS app for iPhone and iPad. |
| 6 | 6 | ||
ios/AppStore/header-16x9.png
Binary file not shown.
ios/AppStore/header-21x9.png
Binary file not shown.
ios/AppStore/header.html +29 −18
| @@ -2,12 +2,14 @@ | |||
| 2 | <!-- Product page header. header.html renders the 21:9 header (3840x1646), header.html#wide the | 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: | 3 | 16:9 one (5244x2950), with headless Chromium, then the alpha channel is removed: |
| 4 | Chromium --headless --hide-scrollbars --force-device-scale-factor=1 --window-size=3840,1646 --screenshot=header-21x9.png header.html | 4 | Chromium --headless --hide-scrollbars --force-device-scale-factor=1 --window-size=3840,1646 --screenshot=header-21x9.png header.html |
| 5 | Chromium --headless --hide-scrollbars --force-device-scale-factor=1 --window-size=5244,2950 --screenshot=header-16x9.png 'header.html#wide' | 5 | Chromium --headless --hide-scrollbars --force-device-scale-factor=1 --window-size=5244,2950 --screenshot=header-16x9.png "file://$PWD/header.html#wide" |
| 6 | magick header-21x9.png -alpha off PNG24:header-21x9.png --> | 6 | magick header-21x9.png -alpha off PNG24:header-21x9.png --> |
| 7 | <html> | 7 | <html> |
| 8 | <head> | 8 | <head> |
| 9 | <meta charset="utf-8"> | 9 | <meta charset="utf-8"> |
| 10 | <style> | 10 | <style> |
| 11 | :root { --u: 1px; --row-top: 420px; } | ||
| 12 | * { box-sizing: border-box; } | ||
| 11 | html, body { margin: 0; width: 3840px; height: 1646px; overflow: hidden; } | 13 | html, body { margin: 0; width: 3840px; height: 1646px; overflow: hidden; } |
| 12 | body { | 14 | body { |
| 13 | background: linear-gradient(120deg, #21338c 0%, #3a2c9a 45%, #6638b3 100%); | 15 | background: linear-gradient(120deg, #21338c 0%, #3a2c9a 45%, #6638b3 100%); |
| @@ -25,35 +27,44 @@ | |||
| 25 | text-align: center; font-size: 150px; font-weight: 700; letter-spacing: -2px; | 27 | text-align: center; font-size: 150px; font-weight: 700; letter-spacing: -2px; |
| 26 | } | 28 | } |
| 27 | h1 span { color: #ffc74d; } | 29 | h1 span { color: #ffc74d; } |
| 28 | .device { | 30 | /* One row, centered, one gap: the space between devices is equal by construction. */ |
| 29 | position: absolute; background: #0c0c12; box-shadow: 0 60px 140px rgba(0, 0, 0, 0.45); | 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)); | ||
| 30 | } | 34 | } |
| 35 | .device { flex: none; box-shadow: 0 calc(60 * var(--u)) calc(140 * var(--u)) rgba(0, 0, 0, 0.45); } | ||
| 31 | .device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; } | 36 | .device img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; } |
| 32 | .ipad { width: 1500px; height: 2000px; left: 1170px; top: 400px; padding: 34px; border-radius: 90px; } | 37 | .ipad { |
| 33 | .ipad img { border-radius: 58px; } | 38 | width: calc(940 * var(--u)); height: calc(1233 * var(--u)); margin-top: calc(60 * var(--u)); |
| 34 | .iphone { width: 600px; height: 1304px; top: 520px; padding: 22px; border-radius: 110px; } | 39 | padding: calc(30 * var(--u)); border-radius: calc(70 * var(--u)); background: #0c0c12; |
| 35 | .iphone img { border-radius: 90px; } | 40 | } |
| 36 | .left { left: 440px; } | 41 | .ipad img { border-radius: calc(44 * var(--u)); } |
| 37 | .right { right: 440px; } | 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); | ||
| 46 | } | ||
| 47 | .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; | ||
| 50 | } | ||
| 51 | .iphone img { border-radius: calc(82 * var(--u)); } | ||
| 38 | 52 | ||
| 39 | /* 16:9, 5244x2950. */ | 53 | /* 16:9, 5244x2950. */ |
| 54 | html.wide { --u: 1.38px; --row-top: 760px; } | ||
| 40 | html.wide, .wide body { width: 5244px; height: 2950px; } | 55 | html.wide, .wide body { width: 5244px; height: 2950px; } |
| 41 | .wide .glow { width: 3800px; height: 2400px; } | 56 | .wide .glow { width: 3800px; height: 2400px; } |
| 42 | .wide h1 { top: 260px; font-size: 220px; letter-spacing: -3px; } | 57 | .wide h1 { top: 260px; font-size: 220px; letter-spacing: -3px; } |
| 43 | .wide .ipad { width: 2100px; height: 2800px; left: 1524px; top: 680px; padding: 48px; border-radius: 126px; } | ||
| 44 | .wide .ipad img { border-radius: 80px; } | ||
| 45 | .wide .iphone { width: 860px; height: 1869px; top: 900px; padding: 32px; border-radius: 158px; } | ||
| 46 | .wide .iphone img { border-radius: 128px; } | ||
| 47 | .wide .left { left: 560px; } | ||
| 48 | .wide .right { right: 560px; } | ||
| 49 | </style> | 58 | </style> |
| 50 | <script>if (location.hash === "#wide") document.documentElement.className = "wide";</script> | 59 | <script>if (location.hash === "#wide") document.documentElement.className = "wide";</script> |
| 51 | </head> | 60 | </head> |
| 52 | <body> | 61 | <body> |
| 53 | <div class="glow"></div> | 62 | <div class="glow"></div> |
| 54 | <h1>Your org files, <span>wherever you are.</span></h1> | 63 | <h1>Your org files, <span>wherever you are.</span></h1> |
| 55 | <div class="device ipad"><img src="screenshots/ipad/01-agenda.png"></div> | 64 | <div class="row"> |
| 56 | <div class="device iphone left"><img src="screenshots/iphone-6.9/02-reader.png"></div> | 65 | <div class="device ipad"><img src="screenshots/ipad/01-agenda.png"></div> |
| 57 | <div class="device iphone right"><img src="screenshots/iphone-6.9/05-capture.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> | ||
| 58 | </body> | 69 | </body> |
| 59 | </html> | 70 | </html> |
ios/AppStore/screenshots/mac/01-editor.png added
Binary file not shown.