backend:
  name: turbo-github
  turbo_site_id: b66fbec1-c96a-41db-a370-31de852aa40f
  branch: main

media_folder: assets/uploads
public_folder: assets/uploads

collections:
  - name: website
    label: Website
    files:
      - name: homepage
        label: School website text, logos, and contact
        file: content/home.json
        fields:
          - { label: Hero introduction, name: heroEyebrow, widget: string }
          - { label: School name, name: schoolName, widget: string }
          - { label: Main message, name: heroTagline, widget: string }
          - { label: Main button text, name: heroButtonText, widget: string }
          - { label: About heading, name: aboutHeading, widget: string }
          - { label: About text, name: aboutText, widget: text }
          - { label: Learning approach heading, name: approachHeading, widget: string }
          - { label: Learning approach introduction, name: approachIntro, widget: text }
          - { label: Child-centered card title, name: approachChildTitle, widget: string }
          - { label: Child-centered card text, name: approachChildText, widget: text }
          - { label: Play-way learning card title, name: approachPlayTitle, widget: string }
          - { label: Play-way learning card text, name: approachPlayText, widget: text }
          - { label: Learning levels card title, name: approachLevelsTitle, widget: string }
          - { label: Learning levels card text, name: approachLevelsText, widget: text }
          - { label: Admissions heading, name: admissionsHeading, widget: string }
          - { label: Admissions information, name: admissionsText, widget: text }

          - { label: Admission documents heading, name: admissionsDocumentsHeading, widget: string }
          - { label: Admission documents introduction, name: admissionsDocumentsIntro, widget: text }
          - { label: Document item — photographs, name: admissionsDocumentPhotos, widget: string }
          - { label: Document item — birth certificate, name: admissionsDocumentBirthCertificate, widget: string }
          - { label: Document item — latest result, name: admissionsDocumentLatestResult, widget: string }
          - { label: Document item — transfer certificate, name: admissionsDocumentTransferCertificate, widget: string }
          - { label: Admission guide heading, name: admissionsGuideHeading, widget: string }
          - { label: Admission guide introduction, name: admissionsGuideIntro, widget: text }
          - { label: Admission question — learning level, name: admissionsQuestionPlacement, widget: string }
          - { label: Admission question — current availability, name: admissionsQuestionAvailability, widget: string }
          - { label: Admission question — fees and documents, name: admissionsQuestionFees, widget: string }
          - { label: Admission question — school visit, name: admissionsQuestionVisit, widget: string }
          - { label: Learning levels heading, name: programsHeading, widget: string }
          - { label: Learning levels introduction, name: programsIntro, widget: text }
          - { label: Preschool title, name: preschoolTitle, widget: string }
          - { label: Preschool description, name: preschoolDescription, widget: text }
          - { label: Preschool link text, name: preschoolLinkText, widget: string }
          - label: Preschool logo
            name: preschoolLogo
            widget: image
            choose_url: false
          - { label: Primary school title, name: primaryTitle, widget: string }
          - { label: Primary school description, name: primaryDescription, widget: text }
          - { label: Primary school link text, name: primaryLinkText, widget: string }
          - label: Primary school logo
            name: primaryLogo
            widget: image
            choose_url: false
          - { label: News and events heading, name: newsHeading, widget: string }
          - { label: News and events introduction, name: newsText, widget: text }
          - { label: Facebook link text, name: facebookLabel, widget: string }
          - { label: Facebook page URL, name: facebookUrl, widget: string }
          - { label: Photo gallery heading, name: galleryHeading, widget: string }
          - { label: Photo gallery introduction, name: galleryIntro, widget: text }
          - { label: Contact section heading, name: contactHeading, widget: string }
          - { label: School address, name: address, widget: string }
          - { label: School phone, name: phone, widget: string }
          - { label: School email, name: email, widget: string }
          - { label: Google Maps directions URL, name: mapUrl, widget: string }

      - name: school-news
        label: News and events
        file: content/news.json
        fields:
          - label: Updates
            name: items
            widget: list
            summary: "{{fields.date}} — {{fields.title}}"
            fields:
              - { label: Title, name: title, widget: string }
              - { label: Type, name: type, widget: select, options: [News, Event], default: News }
              - { label: Date, name: date, widget: datetime, date_format: "YYYY-MM-DD", picker_utc: true }
              - { label: Short description, name: description, widget: text }
              - label: Photo (optional)
                name: image
                widget: image
                required: false
                choose_url: false
                hint: Upload only school-approved photos. Avoid including names or sensitive student information.
                media_library:
                  config:
                    max_file_size: 5242880
              - { label: Photo description for screen readers, name: altText, widget: string, required: false }
              - { label: Optional link, name: link, widget: string, required: false }

      - name: photo-gallery
        label: School photo gallery
        file: content/gallery.json
        fields:
          - label: Photos
            name: photos
            widget: list
            summary: "{{fields.title}}"
            fields:
              - { label: Photo title, name: title, widget: string }
              - label: Photo
                name: image
                widget: image
                choose_url: false
                hint: Upload only photos the school has permission to publish. Avoid names or sensitive student information.
                media_library:
                  config:
                    max_file_size: 5242880
              - { label: Image description for screen readers, name: altText, widget: string }
              - { label: Caption, name: caption, widget: string, required: false }

