{
  "name": "Patron",
  "slug": "patron",
  "blocks": ["Pages", "Lists", "Sign-in: users", "Actions: pay"],
  "persona": "creators",
  "keywords": [
    "membership",
    "members",
    "app",
    "login",
    "member sign-in",
    "community",
    "paid newsletter",
    "paid membership",
    "subscription",
    "patrons",
    "members-only",
    "Q&A",
    "paid tiers",
    "supporters",
    "members area",
    "paid"
  ],
  "description": "An app template for a garden writer's paid letter: patrons get a new letter on the first Sunday of every month, every letter before it, the month's jobs week by week and a question in the monthly Q&A with a photo of the plant, which they follow from received to answered with the writer's reply. Readers join free for one letter and a sowing notebook. A public page, seven member screens under /app and a privacy notice with blanks.",
  "audience": [
    "garden writers",
    "writers with a paid newsletter",
    "experts who answer readers' questions"
  ],
  "category": "Membership",
  "job": "member-app",
  "categoryId": "membership",
  "alsoFits": [
    "paid newsletter",
    "supporter membership",
    "members-only letters",
    "monthly Q&A for subscribers"
  ],
  "direction": "Seed packets in plum and seed green on envelope paper, with two-ink botanicals and a letter that tears open",
  "mood": [
    "light",
    "calm",
    "classic"
  ],
  "fonts": [
    "Young Serif",
    "Source Sans 3"
  ],
  "memberApp": {
    "path": "/app",
    "lists": [
      {
        "list": "questions",
        "label": "Questions for the Q&A",
        "by": "member",
        "status_options": [
          "Received",
          "Chosen for the letter",
          "Answered"
        ],
        "reply": true,
        "fields": [
          {
            "name": "topic",
            "type": "choice",
            "label": "Topic",
            "required": true,
            "options": [
              "Vegetables",
              "Fruit",
              "Flowers",
              "Trees and shrubs",
              "Soil and compost",
              "Other"
            ]
          },
          {
            "name": "question",
            "type": "long_text",
            "label": "Your question",
            "required": true
          },
          {
            "name": "photo",
            "type": "photo",
            "label": "A photo of the plant"
          }
        ]
      },
      {
        "list": "sowings",
        "label": "Sowing notebook",
        "by": "member",
        "fields": [
          {
            "name": "plant",
            "type": "text",
            "label": "What went in",
            "required": true
          },
          {
            "name": "sown",
            "type": "date",
            "label": "Date",
            "required": true
          },
          {
            "name": "where",
            "type": "choice",
            "label": "Where",
            "required": true,
            "options": [
              "Open ground",
              "Raised bed",
              "Greenhouse",
              "Cold frame",
              "Pots",
              "Windowsill"
            ]
          },
          {
            "name": "memo",
            "type": "text",
            "label": "Notes"
          }
        ]
      }
    ],
    "plans": [
      {
        "plan": "reader",
        "name": "Reader",
        "free": true
      },
      {
        "plan": "patron",
        "name": "Patron",
        "paid": true,
        "price": {
          "amount": 600,
          "currency": "gbp",
          "interval": "month"
        }
      }
    ],
    "demo": {
      "member": {
        "name": "Rosalind Ferris",
        "email": "rosalind.ferris@example.com",
        "profile": {
          "name": "Rosalind"
        }
      },
      "plans": [
        "patron"
      ],
      "rows": {
        "questions": [
          {
            "topic": "Fruit",
            "question": "My gooseberry bush lost all its leaves in June. Something green ate them. Will it come back next year?",
            "photo": "art/sample-plant.svg",
            "_added": "-2d",
            "_status": "Received"
          },
          {
            "topic": "Vegetables",
            "question": "My autumn broad beans in the second row never came up. Is it too late to sow again, and should I use the same bed?",
            "_added": "-12d",
            "_status": "Chosen for the letter"
          },
          {
            "topic": "Vegetables",
            "question": "My rhubarb leaves have gone yellow. Is the plant dying?",
            "_added": "-28d",
            "_status": "Answered",
            "_reply": "Not at all: it is shutting down for winter. Pull the old leaves off and give the crown a barrow of muck. I wrote more on it in this month's letter."
          },
          {
            "topic": "Soil and compost",
            "question": "Is leaf mould worth making on heavy clay, or does it just go slimy in the bin?",
            "_added": "-62d",
            "_status": "Answered",
            "_reply": "Worth it. Use a wire bin so air gets in, and give it two years. It is in last month's letter, the free one."
          }
        ],
        "sowings": [
          {
            "plant": "Garlic Germidour",
            "sown": "-2d",
            "where": "Raised bed",
            "memo": "Bed 3, 15 cm apart, 40 cloves",
            "_added": "-2d"
          },
          {
            "plant": "Tulips Ballerina",
            "sown": "-1w:sat",
            "where": "Pots",
            "memo": "Three big pots by the back door",
            "_added": "-1w:sat"
          },
          {
            "plant": "Broad beans Aquadulce Claudia",
            "sown": "-1w:wed",
            "where": "Open ground",
            "memo": "Double row on a ridge, 20 cm apart",
            "_added": "-1w:wed"
          },
          {
            "plant": "Sweet peas Matucana",
            "sown": "-2w:sun",
            "where": "Cold frame",
            "memo": "Five to a deep pot, 6 pots",
            "_added": "-2w:sun"
          },
          {
            "plant": "Winter lettuce Arctic King",
            "sown": "-3w:thu",
            "where": "Greenhouse",
            "memo": "Modules, plant out under a cloche",
            "_added": "-3w:thu"
          },
          {
            "plant": "Green manure, winter rye",
            "sown": "-5w:sat",
            "where": "Open ground",
            "memo": "Twice as thick as the packet says",
            "_added": "-5w:sat"
          }
        ]
      }
    },
    "setup": {
      "signup": "open",
      "profile_fields": [
        {
          "name": "name",
          "type": "text",
          "label": "First name"
        }
      ],
      "display_field": "name"
    }
  },
  "files": [
    "index.html",
    "app/index.html",
    "app/letters.html",
    "app/letter.html",
    "app/letter-sample.html",
    "app/garden.html",
    "app/ask.html",
    "app/account.html",
    "privacy.html",
    "styles.css",
    "app.js",
    "kit.css",
    "kit.js",
    "kit-icons.svg",
    "icons.svg",
    "site.webmanifest",
    "favicon.svg",
    "art/sample-plant.svg",
    "art/welcome-shed.svg",
    "art/seedling.svg",
    "art/letter-dahlias.svg",
    "art/letter-leafmould.svg",
    "art/letter-lavender.svg",
    "art/letter-sweetpeas.svg",
    "og.png",
    "apple-touch-icon.png",
    "icon-192.png",
    "icon-512.png",
    "icon-512-maskable.png"
  ],
  "pages": [
    {
      "path": "index.html",
      "label": "Home",
      "purpose": "The public page: who writes the letters, what a patron gets for £6 a month, how the Q&A works, the two plans and a link to sign in or join free"
    },
    {
      "path": "app/index.html",
      "label": "Home (app)",
      "purpose": "Signed out: the welcome and sign-in. Signed in: this month's letter (or the free letter for readers), quick actions, the member's latest question with its status and reply, three of the month's jobs, counts and the notebook"
    },
    {
      "path": "app/letters.html",
      "label": "Letters",
      "purpose": "Every letter newest first with covers: this month's for patrons, last month's free to every reader"
    },
    {
      "path": "app/letter.html",
      "label": "This month's letter",
      "purpose": "The reading view for patrons, with the answers from the Q&A; readers see the opening and a join button"
    },
    {
      "path": "app/letter-sample.html",
      "label": "Free letter",
      "purpose": "Last month's letter, open to every signed-in member, with the join button beside it"
    },
    {
      "path": "app/garden.html",
      "label": "Garden",
      "purpose": "The month's jobs week by week and next month for patrons, and the sowing notebook (add what went in, where and when) for everyone"
    },
    {
      "path": "app/ask.html",
      "label": "Ask",
      "purpose": "For patrons: the question form with a plant photo; for everyone their questions with the status (Received, Chosen for the letter, Answered) and the writer's reply"
    },
    {
      "path": "app/account.html",
      "label": "Account",
      "purpose": "The plan (Patron card, or the Reader and Patron plan cards with the join button), the account block (sign-in, billing, devices, leaving) and help"
    },
    {
      "path": "privacy.html",
      "label": "Privacy",
      "purpose": "The privacy notice, with blanks the Site Owner fills in"
    }
  ],
  "facts": [
    "letter name",
    "writer's name",
    "contact email",
    "monthly price",
    "the sample letter",
    "the monthly letters",
    "the planting calendar",
    "Q&A deadline"
  ],
  "interview": [
    "What is your letter called, and who writes it?",
    "What do you write about, and for whom?",
    "Which letter should readers get free as the sample?",
    "What does a patron pay a month, and what do they get beyond the sample?",
    "What is the Q&A deadline, and how many questions do you select? Selected questions are published anonymously.",
    "Which email address should members write to?",
    "What address and privacy contact should the privacy notice show?"
  ],
  "customise": {
    "strings": [
      "Brackenhurst Letters and Elspeth Trevail in the header, footer and titles; replace every data-pl-fill fact with the owner's own, and the letters, the Q&A answers and the month's jobs on app/garden.html with the owner's own writing. Also replace site.webmanifest name and short_name with the owner's app name and short home-screen name.",
      "Fill in every highlighted blank on privacy.html with the Site Owner before members use the site (not legal advice: https://pagelemon.com/agents/member-app-legal)",
      "Make the questions and sowings lists with save_app_list exactly as memberApp.lists says (questions with its status_options and reply on); change fields there, in the forms on app/ask.html and app/garden.html and in their rows together.",
      "The £6 a month is the patron plan's price: change it with save_plan and wherever the pages say £6 (index.html and the app pages) together.",
      "Each month: put the new letter in app/letter.html, move the old one to the archive card on app/letters.html (choose which letter is free in app/letter-sample.html), and update the jobs on app/garden.html. Month names fill themselves in (app.js).",
      "The writer answers questions in the Dashboard (Apps, the questions list): set the status to Chosen for the letter or Answered and write a reply; the member sees both in the app and gets an email when they change.",
      "Adults only. Never adapt this app to collect health data or children's data. Never request passwords, PINs, sign-in codes, card numbers, bank account numbers, government ID numbers or tax numbers, including in uploaded files."
    ],
    "colours": "Edit the :root tokens at the top of styles.css: Plum, Envelope, Seed Green (sow) and Wax Red (harvest); a dark potting-shed scheme follows the device",
    "fonts": "Young Serif (packet months, titles and headings) and Source Sans 3 (text, labels and the sowing calendars), one Google Fonts <link> in every page head and --p-display / --p-sans in styles.css. If the owner prefers no font service, download both (OFL) into a fonts/ folder and switch to @font-face.",
    "sections": "Member pages live under /app on the shared app kit (kit.css, kit.js, kit-icons.svg; never edit those copies; node scripts/sync-app-kit.mjs patron) with the data-pl-view markup. setup_app with signup open and the first-name profile field, then save_app_list for questions and sowings, then save_plan for reader (free) and patron (£6 a month). Patron-only content sits inside data-pl-if=\"plan:patron\", the join buttons inside no-plan. app.js only writes month names and the next letter date.",
    "images": "Every letter is a seed packet: art/letter-*.svg are the two-ink botanical drawings on the packet fronts (dahlia, broad bean, lavender, sweet pea; 400×480, plum #5B2148 and green #536B2C), art/welcome-shed.svg the garlic on the welcome packet and art/seedling.svg the Reader plan packet. Swap in your own drawings in the same frame, or keep them; each packet back has a sow and harvest calendar (table.p-cal: put class on on the months) that app.js marks with this month. art/sample-plant.svg is the demo question's plant photo. icons.svg holds four icons the app kit doesn't have (book, ask, sprout, pen). favicon.svg is the seed-packet mark; the PNG icons are made from it."
  },
  "schemaVersion": 2
}
