Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

poses.ts

107 lines2.3 KB

1export interface Pose {
2 readonly id: string;
3 readonly platform: "ios" | "android";
4 /** A model name from the pool's catalog (`GET /v1/catalog`). */
5 readonly device: string;
6 readonly form: "phone" | "tablet";
7 readonly appearance: "light" | "dark";
8 /** Phones are portrait-only; tablets also run rotated. */
9 readonly landscape?: boolean;
10 readonly fold?: "closed" | "open";
11 readonly textSize?: "accessibility-large";
13​
14const pose = (value: Pose) => value;
15​
16export const POSES: ReadonlyArray<Pose> = [
17 pose({
18 id: "iphone-se",
19 platform: "ios",
20 device: "iPhone SE (3rd generation)",
21 form: "phone",
22 appearance: "light",
23 }),
24 pose({
25 id: "iphone-13-mini-dark",
26 platform: "ios",
27 device: "iPhone 13 mini",
28 form: "phone",
29 appearance: "dark",
30 }),
31 pose({
32 id: "iphone-17-pro",
33 platform: "ios",
34 device: "iPhone 17 Pro",
35 form: "phone",
36 appearance: "light",
37 }),
38 pose({
39 id: "iphone-17-pro-max-large-text",
40 platform: "ios",
41 device: "iPhone 17 Pro Max",
42 form: "phone",
43 appearance: "dark",
44 textSize: "accessibility-large",
45 }),
46 pose({
47 id: "ipad-mini",
48 platform: "ios",
49 device: "iPad mini (A17 Pro)",
50 form: "tablet",
51 appearance: "light",
52 }),
53 pose({
54 id: "ipad-pro-13-landscape",
55 platform: "ios",
56 device: "iPad Pro 13-inch (M5)",
57 form: "tablet",
58 appearance: "dark",
59 landscape: true,
60 }),
61 pose({
62 id: "pixel-9",
63 platform: "android",
64 device: "Pixel 9",
65 form: "phone",
66 appearance: "light",
67 }),
68 pose({
69 id: "small-phone-dark",
70 platform: "android",
71 device: "Small Phone",
72 form: "phone",
73 appearance: "dark",
74 }),
75 pose({
76 id: "pixel-9-large-text",
77 platform: "android",
78 device: "Pixel 9",
79 form: "phone",
80 appearance: "light",
81 textSize: "accessibility-large",
82 }),
83 pose({
84 id: "pixel-fold-closed",
85 platform: "android",
86 device: "Pixel 9 Pro Fold",
87 form: "phone",
88 appearance: "light",
89 fold: "closed",
90 }),
91 pose({
92 id: "pixel-fold-open",
93 platform: "android",
94 device: "Pixel 9 Pro Fold",
95 form: "tablet",
96 appearance: "dark",
97 fold: "open",
98 }),
99 pose({
100 id: "pixel-tablet-landscape",
101 platform: "android",
102 device: "Pixel Tablet",
103 form: "tablet",
104 appearance: "light",
105 landscape: true,
106 }),
107];