-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTimelineGantt.tsx
More file actions
221 lines (214 loc) · 5.31 KB
/
Copy pathTimelineGantt.tsx
File metadata and controls
221 lines (214 loc) · 5.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
'use client';
type Status = 'done' | 'active' | 'next';
type Task = {
name: string;
detail: string;
/** Month offsets from Jan 2026, inclusive start / exclusive end. */
start: number;
end: number;
status: Status;
star?: boolean;
};
type Phase = { name: string; tasks: Task[] };
const FIRST_MONTH = 0; // Jan '26
const LAST_MONTH = 24; // through Dec '27
const QUARTERS = [
"Q1 '26",
"Q2 '26",
"Q3 '26",
"Q4 '26",
"Q1 '27",
"Q2 '27",
"Q3 '27",
"Q4 '27",
];
// Mirrors the Notion plan (garden3d Timeline database), month precision.
const PHASES: Phase[] = [
{
name: 'Proof',
tasks: [
{
name: 'Prototyping',
detail:
'Mar – Jun ’26 · Working prototype on a previous-gen NVIDIA Orin',
start: 2,
end: 5,
status: 'done',
},
{
name: 'Mozilla research published',
detail: 'Apr – Jul ’26 · 28k+ impressions, overwhelmingly positive',
start: 3,
end: 7,
status: 'done',
},
],
},
{
name: 'Raise',
tasks: [
{
name: 'Fundraising',
detail: 'Jun – Oct ’26 · Waitlist opens at close',
start: 5,
end: 9,
status: 'active',
},
],
},
{
name: 'Design',
tasks: [
{
name: 'Product design & research',
detail: 'Oct ’26 – Feb ’27 · From gestural proof of concept to product',
start: 9,
end: 13,
status: 'next',
},
{
name: 'Industrial design',
detail: 'Nov ’26 – Feb ’27 · Form factor around the hardware stackup',
start: 10,
end: 13,
status: 'next',
},
],
},
{
name: 'Manufacturing',
tasks: [
{
name: 'Contract manufacturer partnership',
detail: 'Dec ’26 – Feb ’27 · Foxconn, Arima, or Coosea',
start: 11,
end: 13,
status: 'next',
},
{
name: 'Hardware iteration (EVT/DVT/PVT)',
detail: 'Feb – Jul ’27 · Validation builds through production',
start: 13,
end: 18,
status: 'next',
},
],
},
{
name: 'Software',
tasks: [
{
name: 'Product development',
detail: 'Jan – Aug ’27 · SDK, stack, and the family applications',
start: 12,
end: 19,
status: 'next',
},
],
},
{
name: 'Go to market',
tasks: [
{
name: 'Brand & marketing team',
detail: 'Apr – Aug ’27 · Standing up the launch engine',
start: 15,
end: 19,
status: 'next',
},
{
name: 'Product launch',
detail: 'Aug – Sep ’27',
start: 19,
end: 20,
status: 'next',
},
{
name: 'First customer ship',
detail: 'Sep – Nov ’27',
start: 20,
end: 22,
status: 'next',
},
{
name: 'Customer support stood up',
detail: 'Oct ’27 onward',
start: 21,
end: 24,
status: 'next',
},
{
name: 'Christmas 2027',
detail: 'On shelves and ready to gift',
start: 23,
end: 24,
status: 'next',
star: true,
},
],
},
];
const pct = (m: number) =>
`${((m - FIRST_MONTH) / (LAST_MONTH - FIRST_MONTH)) * 100}%`;
export default function TimelineGantt() {
return (
<div
className="gantt"
role="img"
aria-label="Timeline from a 2026 raise to shelves at Christmas 2027"
>
<div className="gantt-legend" aria-hidden="true">
<span>
<i className="gantt-chip gantt-done" /> Completed
</span>
<span>
<i className="gantt-chip gantt-active" /> In progress
</span>
<span>
<i className="gantt-chip gantt-next" /> Upcoming
</span>
</div>
<div className="gantt-head" aria-hidden="true">
<span className="gantt-label" />
<span className="gantt-track">
{QUARTERS.map(q => (
<span key={q} className="gantt-quarter">
{q}
</span>
))}
</span>
</div>
{PHASES.map(phase => (
<div key={phase.name} className="gantt-phase">
<div className="gantt-phase-name">{phase.name}</div>
{phase.tasks.map(task => (
<div key={task.name} className="gantt-row">
<span className="gantt-label">{task.name}</span>
<span className="gantt-track">
{QUARTERS.map((q, i) => (
<i
key={q}
className={`gantt-grid${i === 0 ? ' first' : ''}`}
/>
))}
<span
className={`gantt-bar gantt-${task.status}${task.end / LAST_MONTH > 0.6 ? ' gantt-bar-late' : ''}`}
style={{
left: pct(task.start),
width: `calc(${pct(task.end)} - ${pct(task.start)})`,
}}
>
{task.star && <span className="gantt-star">★</span>}
<span className="gantt-tip">
<strong>{task.name}</strong>
{task.detail}
</span>
</span>
</span>
</div>
))}
</div>
))}
</div>
);
}