Inkspring / website / src / Socials.tsx
| 1 | import type { CSSProperties } from 'react'; |
| 2 | import './socials.css'; |
| 3 | |
| 4 | // Official network marks (from Simple Icons), shown unaltered in one colour to say where Inkspring posts. |
| 5 | // Each network's brand rules allow its mark to show that a product connects to it; no endorsement implied. |
| 6 | const PATHS: Record<string, string> = { |
| 7 | x: 'M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z', |
| 8 | instagram: 'M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.007 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077', |
| 9 | linkedin: 'M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z', |
| 10 | }; |
| 11 | |
| 12 | export const CHANNELS: { id: string; name: string; formats: string; preview: string; when: string; soon?: boolean; draftOnly?: boolean }[] = [ |
| 13 | { id: 'x', name: 'X', formats: 'Posts, threads, replies, image and video posts, and long-form X articles', preview: 'Thread · 4 posts', when: 'Mon 9:12 AM' }, |
| 14 | { id: 'instagram', name: 'Instagram', formats: 'Image posts and Reels with captions and covers', preview: 'Reel · cover + caption', when: 'Tue 12:41 PM' }, |
| 15 | { id: 'linkedin', name: 'LinkedIn', formats: 'Text and video posts for your profile or page, plus article drafts', preview: 'Text post · profile', when: 'Wed 8:07 AM' }, |
| 16 | ]; |
| 17 | |
| 18 | export function SocialGlyph({ id, size = 18 }: { id: string; size?: number }) { |
| 19 | return <svg className="social-glyph" viewBox="0 0 24 24" width={size} height={size} aria-hidden="true"><path d={PATHS[id]} /></svg>; |
| 20 | } |
| 21 | |
| 22 | export function SocialRow() { |
| 23 | return ( |
| 24 | <div className="social-row" aria-label="Drafts and posts for LinkedIn, X, and Instagram"> |
| 25 | <span className="social-row-label">Drafts and posts for</span> |
| 26 | <ul> |
| 27 | {CHANNELS.map((c) => <li key={c.id} title={c.soon ? `${c.name} coming soon` : c.draftOnly ? `${c.name} scripts` : c.name} className={c.soon ? 'is-soon' : undefined}><SocialGlyph id={c.id} /><span className="sr-only">{c.name}</span>{c.soon && <em className="social-soon">Soon</em>}</li>)} |
| 28 | </ul> |
| 29 | </div> |
| 30 | ); |
| 31 | } |
| 32 | |
| 33 | export function WeekArt() { |
| 34 | return ( |
| 35 | <div className="step-art art-week" aria-hidden="true"> |
| 36 | {CHANNELS.filter((c) => !c.soon && !c.draftOnly).map((c) => ( |
| 37 | <div className="art-slot" key={c.id}><SocialGlyph id={c.id} size={13} /><b>{c.when}</b><span>{c.preview}</span></div> |
| 38 | ))} |
| 39 | <div className="art-approve"><span className="ok-dot" />Automatic posting on</div> |
| 40 | </div> |
| 41 | ); |
| 42 | } |
| 43 | |
| 44 | export function Channels() { |
| 45 | return ( |
| 46 | <section id="channels" className="channels"> |
| 47 | <div className="wrap"> |
| 48 | <div className="section-head proof-head reveal"> |
| 49 | <div> |
| 50 | <div className="eyebrow"><span className="eyebrow-dot" />Three networks, one schedule</div> |
| 51 | <h2 className="section-title">Craft it once.<br /><em>Post it all week.</em></h2> |
| 52 | </div> |
| 53 | <p className="proof-note">Inkspring is built for social posts, not long manuscripts. Shape each idea for the network it is going to, place it on your week, and let your Mac send it on time.</p> |
| 54 | </div> |
| 55 | <ul className="channel-grid"> |
| 56 | {CHANNELS.map((c, i) => ( |
| 57 | <li key={c.id} className={`channel-card reveal${c.soon ? ' is-soon' : ''}${c.draftOnly ? ' is-draft' : ''}`} style={{ '--delay': `${(i % 3) * 80}ms` } as CSSProperties}> |
| 58 | <div className="channel-top"><span className="channel-mark"><SocialGlyph id={c.id} size={22} /></span><h3>{c.name}</h3>{c.soon && <span className="channel-soon">Coming soon</span>}{c.draftOnly && <span className="channel-soon is-draft">Scripts</span>}</div> |
| 59 | <p>{c.formats}</p> |
| 60 | {c.soon ? <div className="channel-slot"><span className="channel-dot is-soon" />Support is on the way</div> : <div className="channel-slot"><span className="channel-dot" />{c.when}<em>{c.preview}</em></div>} |
| 61 | </li> |
| 62 | ))} |
| 63 | </ul> |
| 64 | <p className="proof-footnote reveal">Scheduled LinkedIn and X posts can send automatically while your Mac is awake. X requires your own developer app. Instagram requires a professional account and separately configured media hosting; you review posts before sending.</p> |
| 65 | </div> |
| 66 | </section> |
| 67 | ); |
| 68 | } |