Cotton code
158 lines · 7.8 KB · TypeScriptRaw
/** * The site's own words, apart from each app's (apps.json) and the long texts (content/*.html). They are the owner's * (written with him by a separate writer, 23 Nov 2026; the site speaks as "I") and final: change them only on his word. * The few sentences this site adds that the writer did not have are marked ADDED. */export const NAV: [href: string, label: string][] = [  ["/#apps", "The apps"],  ["/yours", "Privacy"],];export const FOOT = {  made: "Cotton is made by Mukesh, through DECEMBERFM, INC.",  /** After the apps: the plain privacy page, the full policy, terms, help and deleting an account. */  links: [    ["/yours", "Who can read your data"],    ["/privacy", "Privacy policy"],    ["/terms", "Terms"],    ["/support", "Help"],    ["/delete", "Delete your account"],  ] as [string, string][],  legal: "This website sets no cookies and counts no visits.",};/** Numbers as words ("The four apps"). */export const COUNT = ["no", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve"];/** * The home page: the letter, one wavy rule (the footer's), the apps, about me (the owner's, 25 Nov 2026); it ends * there. What it costs and the sign-off under the letter were taken off on his word (25 Nov 2026); the terms keep the * prices. */export const HOME = {  title: "Cotton: apps made by one person, and shared",  description: "I’m Mukesh. Cotton is my calendar, my notebook, my screenwriting app and my messenger, for iPhone and Android. Free to use.",  /**   * The letter that opens the page (owner, with the coordinator, line by line, 25 Nov 2026): set as a note, not a   * hero, with no sign-off (it opens with his name). `building` and `next` are rows of icons with the name below   * (owner, 25 Nov 2026), the icon linking to the app's page where it has one. `icon` is the picture in static/icons;   * an app whose icon is being redrawn has none for now and shows a quiet empty tile: give it its file to swap.   */  letter: {    hello: "Hello, I’m Mukesh.",    says: [      "Cotton is a set of apps I’m building for myself. I’d like to share them with anyone who might find them useful, because my work is one of the ways I connect with other people.",      "I often dream of utopia. I know the real world is far from it, but I like to imagine what software looks like there, and build it that way in my own bubble.",    ],    building: {      lead: "Building now:",      apps: [        { name: "Days", icon: "/icons/days.webp" },        { name: "Words", icon: "/icons/words.webp" },        { name: "Story", icon: "/icons/story.webp" },        { name: "Comms", icon: "/icons/comms.webp" },      ],    },    next: {      lead: "Next:",      apps: [        /** Plum, the asterisk (assets/design/keys/DECISIONS.md "Icon and colour"), from the iPhone's AppIconKeys. */        { name: "Secrets", icon: "/icons/secrets.webp" },        /** The Stamp, franking green, from the iPhone's AppIconMail. */        { name: "Post", icon: "/icons/post.webp" },        /** Double Slash, cranberry (assets/design/sites/DECISIONS.md "Icon and colour"), from the iPhone's AppIconSites. */        { name: "Sites", icon: "/icons/sites.webp" },        /** Ones and noughts, Days' blue (assets/design/data/DECISIONS.md "Icon"), from Android's AppIconData. */        { name: "Data", icon: "/icons/data.webp" },      ],    },  },  apps: {    heading: "The apps",    /** Under the list, while any app is in testing. */    tested: "The test links open only for invited testers.",    more: "More are on the way: books, music, films, photos, money, health.",  },  /** Below the apps (owner, 25 Nov 2026): the one place TinFactory is named. */  about: {    heading: "About me",    says: [      "I’ve worked in tech for sixteen years. From 2015 to 2020 I co-founded and ran Tinmen, a home-food company that delivered two million meals. I now run <a href=\"https://tinfactory.co\">TinFactory</a>, a small team that builds apps for other companies. I live in Hyderabad, India, and visit Leeds and Liverpool once in a while. More about me at <a href=\"https://mukeshmanda.com\">mukeshmanda.com</a>.",    ],  },  /** The owner's photos (his own, sent for this page, 25 Nov 2026): a row of four with About me. Not links. */  photos: [    { src: "/photos/mukesh-800.webp", width: 800, height: 1067, alt: "Mukesh, leaning on a café table with his hands clasped, in a tiled hall with painted ceilings." },    { src: "/photos/desk-800.webp", width: 800, height: 1067, alt: "Mukesh at a desk, working on a laptop, with a cat asleep beside it." },    { src: "/photos/cats-800.webp", width: 800, height: 1067, alt: "Two cats asleep against each other on a teal sofa." },    { src: "/photos/cafe-800.webp", width: 800, height: 1067, alt: "Mukesh, smiling, arms folded on a white café table." },  ],};/** * Where an app stands (round 2's STATUS), from its status in apps.json: in testing, its two test links and the note * that they open only for invited testers; released, its two store links. */export const STATUS = {  testing: "In testing",  testFlight: "TestFlight",  playTest: "Google Play (testing)",  appStore: "On the App Store",  googlePlay: "On Google Play",  /** Under the status on an app's page. */  tested: "The links open only for invited testers.",};/** * An app's page (owner, 25 Nov 2026): the name and icon, why I built it, the pictures, what it has now, what’s coming, * whether it needs an account, then the other apps. The paragraph and the two sentences are in app-pages.json. */export const APP = {  has: "What it has now",  coming: "What’s coming",  /** The headless line under the two sentences: its name for screen readers. */  account: "Accounts",  /** Until the coordinator gives an app's paragraph: a blank, so the preview shows it marked and a live build refuses. */  whyToCome: "Why I built it: to come",  others: "The other apps",};export const YOURS = {  title: "Your things, and who can read them · Cotton",  description: "What Cotton keeps, where it is kept, and who can read it, in plain words.",};/** The long pages carried over from the first site, drawn in this look. */export const LONG = {  privacy: { title: "Privacy policy · Cotton", description: "The privacy policy for the Cotton apps and cottondb.com: one policy, with a section for each app." },  terms: { title: "Terms · Cotton", description: "The terms for the Cotton apps and cottondb.com." },  support: { title: "Help · Cotton", description: "How to reach me, the maker of Cotton, and answers to common questions." },  /** /delete: its words are the privacy policy's own chapter on deleting (pages.ts `deletePage`). */  delete: { title: "Delete your account · Cotton", description: "How to ask for your Cotton account to be deleted, what is deleted and what is not.", h1: "Delete your Cotton account" },  toc: "On this page",};/** * The Circle invitation (`/c/<code>`, PEOPLE-DESIGN c): someone sent this link from Cotton. The page names nobody and * keeps no number; the link's secret is after the `#`, so it never reaches the site. The app opens the same link. */export const INVITE = {  title: "You are invited · Cotton",  description: "Someone invited you to their Circle on Cotton.",  h1: "You are invited",  text: "Someone you know invited you to their Circle on Cotton, so the two of you can write, call and share privately.",  steps: [    "Get Cotton Comms on your phone.",    "Sign in with your phone number.",    "Open this link again on your phone. Cotton opens it and you are in each other's Circle.",  ],  get: "Get Cotton Comms",};export const NOT_FOUND = {  title: "Not here · Cotton",  description: "There is nothing at this address.",  h1: "This page is not here",  text: "There is nothing at this address. The <a href=\"/\">home page</a> lists every Cotton app.",};