backend:
  name: github
  repo: isaactapara/eshipa-hope-builders
  branch: main
  base_url: https://www.eshipaafrica.org
  auth_endpoint: api/auth

media_folder: "public/uploads"
public_folder: "/uploads"

display_url: "https://www.eshipaafrica.org"
logo_url: "/logo.jpg"


collections:
  - name: "pages"
    label: "Pages"
    delete: false
    files:
      - name: "home"
        label: "Home Page"
        file: "src/content/home.json"
        format: "json"
        fields:
          - { label: "Hero Image", name: "heroImage", widget: "image" }
          - label: "Hero Section"
            name: "hero"
            widget: "object"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Subtitle", name: "subtitle", widget: "text" }
              - { label: "Hero Image", name: "image", widget: "image" }
          - label: "Impact Statistics"
            name: "impactStats"
            widget: "list"
            fields:
              - { label: "Value (e.g. 500+)", name: "value", widget: "string" }
              - { label: "Label", name: "label", widget: "string" }
          - label: "Mission Section"
            name: "mission"
            widget: "object"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Description", name: "description", widget: "text" }
              - label: "Badges"
                name: "badges"
                widget: "list"
                field: { label: "Badge", name: "badge", widget: "string" }
          - label: "Scripture Section"
            name: "scripture"
            widget: "object"
            fields:
              - { label: "Section Title", name: "title", widget: "string" }
              - { label: "Verse Quote", name: "quote", widget: "string" }
              - { label: "Verse Reference", name: "reference", widget: "string" }
              - label: "Reflections"
                name: "sections"
                widget: "list"
                fields:
                  - { label: "Heading", name: "title", widget: "string" }
                  - { label: "Description", name: "description", widget: "text" }
                  - { label: "Variant", name: "variant", widget: "select", options: ["primary", "secondary", "accent"], default: "primary" }
          - label: "Call to Action"
            name: "cta"
            widget: "object"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Description", name: "description", widget: "text" }

      - name: "programmes"
        label: "Programmes Page"
        file: "src/content/programmes.json"
        format: "json"
        fields:
          - label: "Hero Section"
            name: "hero"
            widget: "object"
            fields:
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Subtitle", name: "subtitle", widget: "text" }
          - label: "Programmes"
            name: "programmes"
            widget: "list"
            fields:
              - { label: "ID", name: "id", widget: "string" }
              - { label: "Title", name: "title", widget: "string" }
              - { label: "Icon", name: "icon", widget: "select", options: ["Baby", "Users", "Brain", "HandHeart", "Leaf"] }
              - { label: "Short Description (Home)", name: "shortDescription", widget: "text" }
              - { label: "Full Description (Programmes Page)", name: "description", widget: "text" }
              - label: "Images"
                name: "images"
                widget: "list"
                field: { label: "Image", name: "image", widget: "image" }
              - label: "What We Offer (Details)"
                name: "details"
                widget: "list"
                field: { label: "Detail", name: "detail", widget: "string" }
