Branchwell

Inkspring / website / src / Homepage.tsx

1import { BranchBand } from './BranchBand';
2import React, { useEffect, useState, type CSSProperties } from 'react';
3import { SplashMark } from './SplashMark';
4import { AppleIcon } from './AppleIcon';
5import { ButtonIcon } from './ButtonIcon';
6import ShareButton from './ShareButton';
7import { SyncDiagram } from './SyncDiagram';
8import { Channels, SocialRow, WeekArt } from './Socials';
9import { AboutUs, SocialLinks } from './Community';
10
11// ─────────────────────────────────────────────────────────────────────
12// Page data
13// ─────────────────────────────────────────────────────────────────────
14
15const STEPS = [
16 { n: '01', verb: 'Research', title: 'Turn your references into ideas.', body: 'Save your own notes or links as context for a post, or paste in a post you want to reply to.' },
17 { n: '02', verb: 'Write', title: 'Craft social posts in your voice.', body: 'Write posts and attach an MP4 from your Mac. Adapt separate drafts for X, Instagram and LinkedIn.' },
18 { n: '03', verb: 'Schedule', title: 'Schedule the week. Inkspring posts it.', body: 'Review your post, then publish now or schedule it. Keep Inkspring open and your Mac awake and online for scheduled posts.' },
19];
20
21const VALUES = [
22 { n: '01', title: 'A workspace that stays with you.', body: 'Projects, research, and drafts live on your Mac. Open saved work without an internet connection. Export a workspace backup whenever you want to take it with you.' },
23 { n: '02', title: 'Start with a draft.', body: 'Open Inkspring on your Mac, start a draft, and add the text, images or video you want to share. Hosted AI is not available yet.' },
24 { n: '03', title: 'Research with a point of view.', body: 'Save the notes and links you want to draw from. Keep them alongside your draft as you write and revise.' },
25 { n: '04', title: 'No Inkspring account. Your channels.', body: 'Connect your own accounts. X posting requires your own developer app. Scheduled LinkedIn and X posts send from your awake Mac if you enable automatic posting. Instagram requires a professional account, media hosting, and review before sending.' },
26];
27
28const MAC_DOWNLOAD = '/download';
29const TESTFLIGHT_URL = 'https://testflight.apple.com/join/Gg8AQT4A';
30const TICKER = ['Posts and video', 'Free', 'Schedule your week', 'Automatic posting', 'X threads', 'Instagram posts and Reels', 'LinkedIn posts', 'X articles', 'Witty replies', 'iPhone and iPad companion', 'No Inkspring account', 'Open source'];
31
32// Imagined accounts, written in the style of posts that do well on X.
33const REPLY_EXAMPLES: { id: string; name: string; handle: string; post: string; image?: string; reply: string }[] = [
34 {
35 id: 'hoodie',
36 name: 'Mara Quinn', handle: '@mara_builds',
37 post: 'Every productivity app is just a to-do list wearing a different hoodie.',
38 image: '/ex-hoodies.jpg',
39 reply: 'And every launch post swears this is the hoodie that finally fits.',
40 },
41 {
42 id: 'automate',
43 name: 'Jules Ortega', handle: '@jules_ships',
44 post: 'Spent six hours automating a task that takes four minutes. Zero regrets.',
45 reply: 'At this rate you break even sometime in 2031. Worth every second.',
46 },
47 {
48 id: 'screentime',
49 name: 'Dana Whitlock', handle: '@dana_writes',
50 post: 'My screen time report just asked if I’m okay.',
51 image: '/ex-phone.jpg',
52 reply: 'Mine stopped asking. That’s how you know it’s serious.',
53 },
54];
55
56const HERO_POST = 'The best meeting of the week is the one that gets cancelled five minutes before it starts.';
57const HERO_REPLY = '9:55am: “This event has been cancelled.” The closest thing adults get to a snow day.';
58
59const SINGLE_POSTS = [
60 { image: '/ex-desk.jpg', name: 'Nora Bell', handle: '@nightbuild', caption: 'Built it in one night. Spent the next six debugging it.', tags: '#buildinpublic · #devlife' },
61 { image: '/ex-books.jpg', name: 'Theo Marsh', handle: '@shelfdebt', caption: 'Buying books and reading books are two different hobbies. I’m elite at one.', tags: '#booktok · #tsundoku' },
62 { image: '/ex-sunrise.jpg', name: 'Ivy Chen', handle: '@early_ish', caption: '5am club update: awake for nine minutes, already planning my nap.', tags: '#5amclub · #morningroutine' },
63 { image: '/ex-whiteboard.jpg', name: 'Ravi Patel', handle: '@namingthings', caption: 'Naming the product took longer than building it.', tags: '#startups · #branding' },
64];
65
66// ─────────────────────────────────────────────────────────────────────
67// Page
68// ─────────────────────────────────────────────────────────────────────
69
70export default function Homepage() {
71 useReveal();
72 return (
73 <>
74 <main>
75 {/* HERO ─────────────────────────────────────────────────── */}
76 <section className="hero">
77 <div className="wrap hero-grid">
78 <div className="hero-copy">
79 <Eyebrow>Social publishing studio for Mac</Eyebrow>
80 <div className="visitor-welcome" data-visitor-odometer="" data-visitor-site="inkspring" />
81 <h1 className="hero-title">
82 <span className="line">Craft your posts.</span>
83 <span className="line">Schedule your week.</span>
84 <span className="line"><em className="hero-keep">Post<InkStroke /></em> with ease.</span>
85 </h1>
86 <p className="hero-lead">
87 Write a post, add a video from your Mac, and publish now or schedule it to LinkedIn, X and Instagram. Check your schedule on iPhone or iPad.
88 </p>
89 <div className="hero-actions">
90 <a href={MAC_DOWNLOAD} className="btn accent big"><AppleIcon />Download for Mac</a>
91 <a href="/#replies" className="btn ghost big"><ButtonIcon name="sparkles" />Try the reply studio <span className="arrow" aria-hidden="true">↓</span></a>
92 <ShareButton className="ink-share" url="https://inkspring.ai/" title="Inkspring" text="Write, preview and schedule posts and video on your Mac." />
93 </div>
94 <p>Works with:</p>
95 <SocialRow />
96 <div className="download-coming-soon"><span>Version 1.0.104</span><span className="hero-platforms">Free · macOS 14 or later · Apple Silicon</span></div>
97 </div>
98 <HeroCollage />
99 </div>
100 <Ticker />
101 </section>
102
103 {/* HOW IT WORKS ─────────────────────────────────────────── */}
104 <section id="how" className="steps">
105 <div className="wrap">
106 <div className="section-head reveal">
107 <Eyebrow>How it works</Eyebrow>
108 <h2 className="section-title">From an idea to a week of posts,<br /><em>without leaving your desk.</em></h2>
109 </div>
110 <ol className="step-list">
111 {STEPS.map((step, i) => (
112 <li key={step.n} className="step reveal" style={{ '--delay': `${i * 90}ms` } as CSSProperties}>
113 <StepArt kind={step.verb} />
114 <div className="step-meta"><span>{step.n}</span>{step.verb}</div>
115 <h3>{step.title}</h3>
116 <p>{step.body}</p>
117 </li>
118 ))}
119 </ol>
120 </div>
121 </section>
122
123 {/* CHANNELS ─────────────────────────────────────────────── */}
124 <Channels />
125
126 {/* REPLY STUDIO ─────────────────────────────────────────── */}
127 <section id="replies" className="replies">
128 <div className="wrap">
129 <div className="section-head proof-head reveal">
130 <div>
131 <Eyebrow>The reply studio</Eyebrow>
132 <h2 className="section-title">Paste a post.<br /><em>Reply like you meant it.</em></h2>
133 </div>
134 <p className="proof-note">
135 Paste the text of a post from X and get a witty reply in 280 characters or less. <strong>Try it below</strong> with a few example posts.
136 </p>
137 </div>
138 <ReplyStudio />
139 <p className="proof-footnote reveal">Examples use imagined accounts. Replies are drafts that wait for your OK. Paste the text of a post you want to answer. Image generation needs an AI provider key.</p>
140 </div>
141 </section>
142
143 {/* SINGLE-IMAGE POSTS ───────────────────────────────────── */}
144 <section id="posts" className="posts">
145 <div className="wrap">
146 <div className="section-head proof-head reveal">
147 <div>
148 <Eyebrow>Single-image posts</Eyebrow>
149 <h2 className="section-title">One image.<br /><em>One clear idea.</em></h2>
150 </div>
151 <p className="proof-note">Write the caption and pair it with a photo of your own. Copy or save the image when it’s done.</p>
152 </div>
153 <div className="post-grid">
154 {SINGLE_POSTS.map((post, i) => (
155 <figure key={post.handle} className="post-card reveal" style={{ '--delay': `${i * 80}ms` } as CSSProperties}>
156 <PostHead name={post.name} handle={post.handle} />
157 <img src={post.image} alt="" width="600" height="900" loading="lazy" />
158 <figcaption>
159 <p>{post.caption}</p>
160 <span>{post.tags}</span>
161 </figcaption>
162 </figure>
163 ))}
164 </div>
165 <p className="proof-footnote reveal">Examples from imagined accounts. Not customer results.</p>
166 </div>
167 </section>
168
169 {/* VALUES ────────────────────────────────────────────────── */}
170 <section id="values" className="values">
171 <div className="wrap">
172 <div className="section-head reveal">
173 <Eyebrow>What makes it different</Eyebrow>
174 <h2 className="section-title">Your posting desk,<br /><em>not another platform.</em></h2>
175 </div>
176 <ol className="value-grid">
177 {VALUES.map((v, i) => (
178 <li key={v.n} className="value-card reveal" style={{ '--delay': `${(i % 2) * 90}ms` } as CSSProperties}>
179 <span className="value-num">{v.n}</span>
180 <h3>{v.title}</h3>
181 <p>{v.body}</p>
182 </li>
183 ))}
184 </ol>
185 </div>
186 </section>
187
188 {/* DESKTOP ───────────────────────────────────────────────── */}
189 <section id="desktop" className="desktop">
190 <div className="wrap">
191 <div className="desktop-card reveal">
192 <div className="desktop-copy">
193 <Eyebrow>Mac app + iPhone and iPad companion</Eyebrow>
194 <h2 className="desktop-title">The power runs on your Mac.<br /><em>Your iPhone keeps up.</em></h2>
195 <p className="desktop-lead">Inkspring for Mac does the work: research, AI writing, your connected accounts and automatic posting all run there. The iPhone and iPad app is a companion to it. It syncs with your Mac through your private iCloud, so you can review drafts, revise, and move or cancel scheduled posts while you are away from your desk. It is made for people who use their Mac and iPhone together.</p>
196 <div className="platform-statuses"><span>Mac · Apple Silicon</span><span>iPhone &amp; iPad · TestFlight</span><span>Free</span><span>Open source</span></div>
197 <p className="release-note"><strong>Inkspring 1.0.104 is available for Mac.</strong> No pop-ups or nags: Inkspring never interrupts you with rating, support or feedback prompts.</p>
198 <div className="desktop-actions"><a href={MAC_DOWNLOAD} className="btn accent big"><AppleIcon />Download for Mac</a><a href={TESTFLIGHT_URL} className="btn ghost big" target="_blank" rel="noopener noreferrer"><AppleIcon />Join the TestFlight beta <span className="arrow" aria-hidden="true">↗</span></a></div>
199 <p className="testflight-note">iPhone and iPad companion beta. Pairs with the Mac&nbsp;app.</p>
200 <p className="desktop-privacy">No Inkspring sign-in. Mobile sync is optional and stays in your own iCloud. When you use online AI, your request goes to the provider you choose.</p>
201 </div>
202 <AppWindow />
203 </div>
204 <SyncDiagram />
205 </div>
206 </section>
207
208 <div className="wrap"><AboutUs /></div>
209 <BranchBand />
210 </main>
211
212 </>
213 );
214}
215
216// ─────────────────────────────────────────────────────────────────────
217// Layout pieces
218// ─────────────────────────────────────────────────────────────────────
219
220// Fades sections in as they scroll into view. The `js` class is set in
221// main.tsx, so prerendered HTML stays fully visible without JavaScript.
222function useReveal() {
223 useEffect(() => {
224 const items = document.querySelectorAll('.reveal');
225 if (!('IntersectionObserver' in window)) { items.forEach((el) => el.classList.add('in')); return; }
226 const observer = new IntersectionObserver((entries) => {
227 for (const entry of entries) {
228 if (!entry.isIntersecting) continue;
229 entry.target.classList.add('in');
230 observer.unobserve(entry.target);
231 }
232 }, { rootMargin: '0px 0px -8% 0px', threshold: 0.08 });
233 items.forEach((el) => observer.observe(el));
234 return () => observer.disconnect();
235 }, []);
236}
237
238export function Header({ home = false }: { home?: boolean }) {
239 return (
240 <header className="site-header">
241 <div className="wrap site-header-inner">
242 <a href={home ? '#top' : '/'} className="brand-link">
243 <SplashMark size={26} color="var(--accent, #C4613C)" />
244 <span>Inkspring<span className="brand-dot">.</span></span>
245 </a>
246 <nav>
247 <a href="/#channels">Channels</a>
248 <a href="/#how">How it works</a>
249 <a href="/#replies">Replies</a>
250 <a href="/#about">About</a>
251 <a href="/help">Help</a>
252 <a href={MAC_DOWNLOAD} className="nav-cta"><AppleIcon />Download for Mac</a>
253 </nav>
254 </div>
255 </header>
256 );
257}
258
259export function Footer() {
260 return (
261 <>
262 <footer className="site-footer">
263 <div className="wrap">
264 <div className="footer-top">
265 <div className="footer-brand">
266 <SplashMark size={40} color="var(--accent)" />
267 <span>Inkspring<span className="brand-dot">.</span></span>
268 </div>
269 <div className="footer-tagline">
270 <p>Craft social posts and schedule your week, right on your Mac.</p>
271 <SocialLinks className="footer-social" />
272 </div>
273 </div>
274 <div className="footer-links">
275 <a href="/#about">About</a>
276 <a href="/help">Help</a>
277 <a href="/compare">Compare</a>
278 <a href="/privacy">Privacy</a>
279 <a href="/research">Research</a>
280 <a href="/app-notices">App notices</a>
281 <a href={MAC_DOWNLOAD} className="mac-download-link"><AppleIcon />Download for Mac</a>
282 </div>
283 <div className="footer-product-credit"><span>Inkspring</span></div>
284 </div>
285 </footer>
286 </>
287 );
288}
289
290function Eyebrow({ children }: { children: React.ReactNode }) {
291 return (
292 <div className="eyebrow">
293 <span className="eyebrow-dot" />
294 {children}
295 </div>
296 );
297}
298
299// Brush stroke drawn under "Keep" in the hero headline.
300function InkStroke() {
301 return (
302 <svg className="ink-stroke" viewBox="0 0 220 24" preserveAspectRatio="none" aria-hidden="true">
303 <path d="M4 15 C 40 6, 90 4, 130 9 S 196 18, 216 8" fill="none" stroke="currentColor" strokeWidth="5" strokeLinecap="round" />
304 </svg>
305 );
306}
307
308// A pasted post over its drafted reply (with a generated image), behind
309// which sits a finished single-image post. Decorative only.
310function HeroCollage() {
311 return (
312 <div className="hero-art" aria-hidden="true">
313 <div className="hero-glow" />
314 <div className="hero-card hero-post">
315 <PostHead name="Theo Marsh" handle="@shelfdebt" />
316 <img src="/ex-books.jpg" alt="" width="600" height="900" />
317 <p>Buying books and reading books are two different hobbies. I’m elite at one.</p>
318 </div>
319 <div className="hero-card hero-tweet">
320 <TweetHead name="Priya Raman" handle="@ops_priya" />
321 <p className="tweet-text">{HERO_POST}</p>
322 <span className="tweet-meta">Pasted from X</span>
323 </div>
324 <div className="hero-card hero-reply">
325 <div className="draft-row"><span className="draft-label">Witty reply</span><span className="draft-count">{HERO_REPLY.length} / 280</span></div>
326 <p className="draft-text">{HERO_REPLY}<span className="caret" /></p>
327 <div className="reply-image" style={{ backgroundImage: 'url(/ex-meeting.jpg)' }}><span>Example image</span></div>
328 </div>
329 <div className="hero-tag hero-tag-local"><span className="tag-dot" />Saved on this Mac</div>
330 </div>
331 );
332}
333
334function PostHead({ name, handle }: { name: string; handle: string }) {
335 return <div className="post-head"><span className="post-avatar">{name[0]}</span><span className="post-who"><b>{name}</b>{handle}</span></div>;
336}
337
338function TweetHead({ name, handle }: { name: string; handle: string }) {
339 return (
340 <div className="tweet-head">
341 <span className="tweet-avatar">{name[0]}</span>
342 <span className="tweet-name">{name}<small>{handle}</small></span>
343 <svg className="tweet-x" width="13" height="13" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18 2h3l-7.5 8.6L22 22h-6.8l-5.3-6.7L3.6 22H.6l8-9.1L0 2h6.9l4.8 6.1zM16.8 20h1.9L7.3 4H5.3z" /></svg>
344 </div>
345 );
346}
347
348// Interactive demo: pick an example post and see the drafted reply.
349function ReplyStudio() {
350 const [exampleId, setExampleId] = useState(REPLY_EXAMPLES[0].id);
351 const example = REPLY_EXAMPLES.find((e) => e.id === exampleId) ?? REPLY_EXAMPLES[0];
352
353 return (
354 <div className="studio reveal">
355 <div className="studio-picker" role="tablist" aria-label="Example posts">
356 {REPLY_EXAMPLES.map((e) => (
357 <button key={e.id} role="tab" aria-selected={e.id === example.id} className={e.id === example.id ? 'active' : ''} onClick={() => setExampleId(e.id)}>
358 <span className="picker-who"><b>{e.name}</b>{e.handle}</span>{e.post}
359 </button>
360 ))}
361 </div>
362 <div className="studio-stage">
363 <div className="studio-tweet">
364 <span className="studio-label">Pasted post</span>
365 <TweetHead name={example.name} handle={example.handle} />
366 <p className="tweet-text">{example.post}</p>
367 </div>
368 <div className="studio-arrow" aria-hidden="true">↓</div>
369 <div className="studio-reply">
370 <div className="studio-reply-head">
371 <span className="studio-label">Witty reply</span>
372 <span className="studio-label">{example.image ? 'Text + image' : 'Text only'}</span>
373 </div>
374 <p key={example.id} className="studio-reply-text">{example.reply}</p>
375 {example.image && <div className="reply-image large" style={{ backgroundImage: `url(${example.image})` }}><span>Example image</span></div>}
376 <div className="studio-actions"><span className="ok-dot" />Draft ready for review<span className="studio-count">{example.reply.length} / 280</span></div>
377 </div>
378 </div>
379 </div>
380 );
381}
382
383function StepArt({ kind }: { kind: string }) {
384 if (kind === 'Research') {
385 return (
386 <div className="step-art" aria-hidden="true">
387 <div className="art-note art-note-1"><b>@slowskin</b> “week 6 is when it clicks”</div>
388 <div className="art-note art-note-2"><b>Saved</b> 3 posts on niacinamide</div>
389 <div className="art-note art-note-3"><b>Note</b> nobody explains the timeline</div>
390 </div>
391 );
392 }
393 if (kind === 'Write') {
394 return (
395 <div className="step-art art-post" aria-hidden="true">
396 <span className="art-post-image" style={{ backgroundImage: 'url(/ex-desk.jpg)' }} />
397 <div className="art-doc">
398 <span className="art-doc-label">Caption</span>
399 <span className="art-doc-line strong">Built it in one night. Debugged it for six.</span>
400 <span className="art-doc-line short" />
401 <span className="art-doc-pill">Make it shorter</span>
402 </div>
403 </div>
404 );
405 }
406 if (kind === 'Schedule') return <WeekArt />;
407 return (
408 <div className="step-art art-replies" aria-hidden="true">
409 <div className="art-tweet"><b>Jules Ortega</b> Spent six hours automating a four-minute task.</div>
410 <div className="art-tweet reply"><b>Your reply</b> Break-even in 2031. Worth it.</div>
411 <div className="art-approve"><span className="ok-dot" />Ready for review</div>
412 </div>
413 );
414}
415
416// A pure-CSS sketch of the Mac app, to give the section something to look at.
417function AppWindow() {
418 return (
419 <div className="app-window" aria-hidden="true">
420 <div className="app-titlebar"><i /><i /><i /><span>Inkspring — Replies</span></div>
421 <div className="app-body">
422 <aside className="app-sidebar">
423 <span className="app-side-label">Projects</span>
424 <span className="app-side-item active"><SplashMark size={10} color="var(--accent)" />Work humor</span>
425 <span className="app-side-item">Indie dev</span>
426 <span className="app-side-item">Book club</span>
427 <span className="app-side-label">Workspace</span>
428 <span className="app-side-item">Research</span>
429 <span className="app-side-item">Posts</span>
430 <span className="app-side-item">Replies</span>
431 </aside>
432 <div className="app-main">
433 <div className="app-main-head"><span>Reply · Priya Raman</span><span className="app-badge">Local</span></div>
434 <div className="app-tweet">{HERO_POST}</div>
435 <div className="app-reply">
436 <span>{HERO_REPLY}</span>
437 <span className="app-reply-image" style={{ backgroundImage: 'url(/ex-meeting.jpg)' }} />
438 </div>
439 <div className="app-tones"><span>Copy</span><span>Save image</span><span className="active">Post</span></div>
440 </div>
441 </div>
442 </div>
443 );
444}
445
446function Ticker() {
447 return (
448 <div className="ticker" aria-hidden="true">
449 <div className="ticker-track">
450 {['first', 'second'].map((group) => (
451 <div className="ticker-group" key={group}>
452 {TICKER.map((item) => (
453 <span key={item}>{item}<SplashMark size={12} color="var(--accent)" /></span>
454 ))}
455 </div>
456 ))}
457 </div>
458 </div>
459 );
460}