ios/AppStore/header.html
70 lines · 3313 bytes
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:
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 "file://$PWD/header.html#wide"
6 magick header-21x9.png -alpha off PNG24:header-21x9.png -->
7<html>
8<head>
9<meta charset="utf-8">
10<style>
11 :root { --u: 1px; --row-top: 420px; }
12 * { box-sizing: border-box; }
13 html, body { margin: 0; width: 3840px; height: 1646px; overflow: hidden; }
14 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 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);
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)); }
52
53 /* 16:9, 5244x2950. */
54 html.wide { --u: 1.38px; --row-top: 760px; }
55 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</style>
59<script>if (location.hash === "#wide") document.documentElement.className = "wide";</script>
60</head>
61<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>
69</body>
70</html>