backend:
  name: github
  repo: ilyas-sahara/Moroccan-Desert
  branch: master
  base_url: https://moroccan-desert-cms-auth.bouzyanilyas.workers.dev
  auth_endpoint: /auth
  api_root: https://api.github.com

media_folder: public/assets/images
public_folder: /assets/images

collections:
  - name: settings
    label: Site Settings
    files:
      - file: public/content/site/settings.json
        format: json
        label: Site Settings
        name: settings
        fields:
          - label: Brand name
            name: brand_name
            widget: string
          - label: Tagline
            name: tagline
            widget: string
          - label: Phone
            name: phone
            widget: string
          - label: Email
            name: email
            widget: string
          - label: Address
            name: address
            widget: text
          - label: Instagram URL
            name: instagram_url
            widget: string
          - label: Facebook URL
            name: facebook_url
            widget: string

  - name: footer
    label: Footer
    files:
      - file: public/content/site/footer.json
        format: json
        label: Footer
        name: footer
        fields:
          - label: Brand name
            name: brand_name
            widget: string
          - label: Description
            name: description
            widget: text
          - label: Instagram URL
            name: instagram_url
            widget: string
          - label: Facebook URL
            name: facebook_url
            widget: string
          - label: Explore links
            name: explore_links
            widget: list
            summary: '{{fields.label}}'
            fields:
              - label: Label
                name: label
                widget: string
              - label: Link (route, e.g. /tours)
                name: to
                widget: string
          - label: Address
            name: address
            widget: string
          - label: Phone
            name: phone
            widget: string
          - label: Email
            name: email
            widget: string
          - label: Copyright text
            name: copyright_text
            widget: string
          - label: Legal links
            name: legal_links
            widget: list
            summary: '{{fields.label}}'
            fields:
              - label: Label
                name: label
                widget: string
              - label: Link
                name: to
                widget: string

  - name: homepage
    label: Homepage
    files:
      - file: public/content/site/home.json
        format: json
        label: Homepage
        name: homepage
        fields:
          - label: Hero eyebrow
            name: hero_eyebrow
            widget: string
          - label: Hero title
            name: hero_title
            widget: string
          - label: Hero subtitle
            name: hero_subtitle
            widget: text
          - label: Intro title
            name: intro_title
            widget: string
          - label: Intro subtitle
            name: intro_subtitle
            widget: text
          - label: Story title
            name: story_title
            widget: string
          - label: Story description
            name: story_description
            widget: text
          - label: CTA label
            name: cta_label
            widget: string
          - label: CTA link
            name: cta_link
            widget: string
          - label: Hero kicker
            name: hero_kicker
            widget: string
          - label: Hero heading
            name: hero_heading
            widget: string
          - label: Hero lead
            name: hero_lead
            widget: text
          - label: Hero rating
            name: hero_rating
            widget: string
          - label: Hero review text
            name: hero_review_text
            widget: string
          - label: Hero frames
            name: hero_frames
            widget: list
            required: false
            default: []
            fields:
              - label: Image
                name: image
                widget: image
                required: false
              - label: Caption
                name: caption
                widget: string
                required: false
          - label: Intro image A
            name: intro_image_a
            widget: image
            required: false
          - label: Intro image B
            name: intro_image_b
            widget: image
            required: false
          - label: Story background image
            name: story_image
            widget: image
            required: false
          - label: Gallery
            name: gallery
            widget: list
            required: false
            default: []
            field:
              label: Image
              name: image
              widget: image
          - label: CTA background image
            name: cta_image
            widget: image
            required: false

  - name: about
    label: About Page
    files:
      - file: public/content/site/about.json
        format: json
        label: About Page
        name: about
        fields:
          - label: Hero eyebrow
            name: hero_eyebrow
            widget: string
          - label: Hero title
            name: hero_title
            widget: string
          - label: Hero subtitle
            name: hero_subtitle
            widget: text
          - label: Hero image
            name: hero_image
            widget: image
            required: false
          - label: Intro title
            name: intro_title
            widget: string
          - label: Intro description
            name: intro_description
            widget: text
          - label: Intro image
            name: intro_image
            widget: image
            required: false
          - label: Values
            name: values
            widget: list
            fields:
              - label: Title
                name: title
                widget: string
              - label: Text
                name: text
                widget: text
              - label: Icon
                name: icon
                widget: select
                required: false
                options:
                  - Users
                  - Leaf
                  - Heart
                  - Compass
          - label: CTA title
            name: cta_title
            widget: string
          - label: CTA label
            name: cta_label
            widget: string
          - label: CTA link
            name: cta_link
            widget: string
          - label: CTA background image
            name: cta_image
            widget: image
            required: false

  - name: contact
    label: Contact Page
    files:
      - file: public/content/site/contact.json
        format: json
        label: Contact Page
        name: contact
        fields:
          - label: Hero eyebrow
            name: hero_eyebrow
            widget: string
          - label: Hero title
            name: hero_title
            widget: string
          - label: Hero subtitle
            name: hero_subtitle
            widget: text
          - label: Hero image
            name: hero_image
            widget: image
            required: false
          - label: Office text
            name: office_text
            widget: text
          - label: Phone
            name: phone
            widget: string
          - label: Email
            name: email
            widget: string
          - label: Address
            name: address
            widget: string

  - name: custom_journey
    label: Custom Journey Page
    files:
      - file: public/content/site/custom-journey.json
        format: json
        label: Custom Journey Page
        name: custom_journey
        fields:
          - label: Hero eyebrow
            name: hero_eyebrow
            widget: string
          - label: Hero title
            name: hero_title
            widget: string
          - label: Hero subtitle
            name: hero_subtitle
            widget: text
          - label: Hero image
            name: hero_image
            widget: image
            required: false

  - name: tours
    label: Tours
    files:
      - file: public/content/tours.json
        format: json
        label: Tours
        name: tours
        fields:
          - label: Tours
            name: items
            widget: list
            summary: '{{fields.title}}'
            fields:
              - label: Slug
                name: slug
                widget: string
              - label: Title
                name: title
                widget: string
              - label: Subtitle
                name: subtitle
                widget: string
              - label: Region
                name: region
                widget: string
              - label: Duration
                name: duration
                widget: string
              - label: Days
                name: days
                widget: number
              - label: Difficulty
                name: difficulty
                widget: select
                options:
                  - Gentle
                  - Moderate
                  - Adventurous
              - label: Group size
                name: groupSize
                widget: string
              - label: Price from
                name: priceFrom
                widget: number
              - label: Highlights
                name: highlights
                widget: list
                required: false
                default: []
              - label: Image
                name: image
                widget: image
                required: false
              - label: Gallery
                name: gallery
                widget: list
                required: false
                default: []
                hint: Mix images and videos (mp4, webm, YouTube, Vimeo) in any order.
                field:
                  label: Image or video URL
                  name: image
                  widget: file
                  choose_url: true
                  media_library:
                    config:
                      max_file_size: 26214400
              - label: Overview
                name: overview
                widget: text
              - label: Itinerary
                name: itinerary
                widget: list
                required: false
                default: []
                fields:
                  - label: Day
                    name: day
                    widget: number
                  - label: Title
                    name: title
                    widget: string
                  - label: Description
                    name: description
                    widget: text
              - label: Included
                name: included
                widget: list
                required: false
                default: []
              - label: Not included
                name: notIncluded
                widget: list
                required: false
                default: []
              - label: Best season
                name: bestSeason
                widget: string
              - label: Experiences
                name: experiences
                widget: list
                required: false
                default: []
                field:
                  label: Experience ID
                  name: experience
                  widget: select
                  options:
                    - camel-trekking
                    - desert-camping
                    - stargazing
                    - mint-tea
                    - nomadic-culture
                    - sandboarding
                    - 4x4-desert-routes
                    - kasbahs-and-oases

  - name: sahara_vibe_desert_tours
    label: Sahara Vibe Desert Tours
    files:
      - file: public/content/sahara-vibe-desert-tours.json
        format: json
        label: Sahara Vibe Desert Tours
        name: sahara_vibe_desert_tours
        fields:
          - label: Tours
            name: items
            widget: list
            summary: '{{fields.title}}'
            fields:
              - label: Slug
                name: slug
                widget: string
              - label: Title
                name: title
                widget: string
              - label: Subtitle
                name: subtitle
                widget: string
              - label: Region
                name: region
                widget: string
              - label: Duration
                name: duration
                widget: string
              - label: Days
                name: days
                widget: number
              - label: Difficulty
                name: difficulty
                widget: select
                options:
                  - Gentle
                  - Moderate
                  - Adventurous
              - label: Group size
                name: groupSize
                widget: string
              - label: Price from
                name: priceFrom
                widget: number
              - label: Highlights
                name: highlights
                widget: list
                required: false
                default: []
              - label: Image
                name: image
                widget: image
                required: false
              - label: Gallery
                name: gallery
                widget: list
                required: false
                default: []
                hint: Mix images and videos (mp4, webm, YouTube, Vimeo) in any order.
                field:
                  label: Image or video URL
                  name: image
                  widget: file
                  choose_url: true
                  media_library:
                    config:
                      max_file_size: 26214400
              - label: Overview
                name: overview
                widget: text
              - label: Itinerary
                name: itinerary
                widget: list
                required: false
                default: []
                fields:
                  - label: Day
                    name: day
                    widget: number
                  - label: Title
                    name: title
                    widget: string
                  - label: Description
                    name: description
                    widget: text
              - label: Included
                name: included
                widget: list
                required: false
                default: []
              - label: Not included
                name: notIncluded
                widget: list
                required: false
                default: []
              - label: Best season
                name: bestSeason
                widget: string
              - label: Experiences
                name: experiences
                widget: list
                required: false
                default: []
                field:
                  label: Experience ID
                  name: experience
                  widget: select
                  options:
                    - camel-trekking
                    - desert-camping
                    - stargazing
                    - mint-tea
                    - nomadic-culture
                    - sandboarding
                    - 4x4-desert-routes
                    - kasbahs-and-oases

  - name: experiences
    label: Experiences
    files:
      - file: public/content/experiences.json
        format: json
        label: Experiences
        name: experiences
        fields:
          - label: Experiences
            name: items
            widget: list
            summary: '{{fields.title}}'
            fields:
              - label: Title
                name: title
                widget: string
              - label: Experience ID
                name: slug
                widget: string
                hint: Use a lowercase hyphenated ID, e.g. camel-trekking.
              - label: Description
                name: description
                widget: text
              - label: Image
                name: image
                widget: image
              - label: Icon
                name: icon
                widget: select
                options:
                  - Compass
                  - Tent
                  - Star
                  - Coffee
                  - Users
                  - Mountain

  - name: experiences_page
    label: Experiences Page
    files:
      - file: public/content/site/experiences.json
        format: json
        label: Experiences Page
        name: experiences_page
        fields:
          - label: Hero eyebrow
            name: hero_eyebrow
            widget: string
          - label: Hero title
            name: hero_title
            widget: string
          - label: Hero subtitle
            name: hero_subtitle
            widget: text
          - label: Hero image
            name: hero_image
            widget: image
            required: false
          - label: CTA title
            name: cta_title
            widget: string
          - label: CTA subtitle
            name: cta_subtitle
            widget: text
          - label: CTA label
            name: cta_label
            widget: string
          - label: CTA link
            name: cta_link
            widget: string
          - label: CTA background image
            name: cta_image
            widget: image
            required: false

  - name: blog
    label: Blog
    files:
      - file: public/content/blog.json
        format: json
        label: Blog posts
        name: blog
        fields:
          - label: Posts
            name: items
            widget: list
            summary: '{{fields.title}}'
            fields:
              - label: Slug
                name: slug
                widget: string
              - label: Title
                name: title
                widget: string
              - label: Excerpt
                name: excerpt
                widget: text
              - label: Content
                name: content
                widget: markdown
              - label: Author
                name: author
                widget: string
              - label: Published date
                name: publishedAt
                widget: datetime
                format: YYYY-MM-DD
                date_format: YYYY-MM-DD
                time_format: false
              - label: Category
                name: category
                widget: string
              - label: Image
                name: image
                widget: image
              - label: Read time
                name: readTime
                widget: string

  - name: testimonials
    label: Testimonials
    files:
      - file: public/content/testimonials.json
        format: json
        label: Testimonials
        name: testimonials
        fields:
          - label: Testimonials
            name: items
            widget: list
            summary: '{{fields.name}}'
            fields:
              - label: Name
                name: name
                widget: string
              - label: Country
                name: country
                widget: string
              - label: Text
                name: text
                widget: text
              - label: Tour
                name: tour
                widget: string
              - label: Rating
                name: rating
                widget: number

  - name: faqs
    label: FAQs
    files:
      - file: public/content/faqs.json
        format: json
        label: FAQs
        name: faqs
        fields:
          - label: FAQs
            name: items
            widget: list
            summary: '{{fields.q}}'
            fields:
              - label: Question
                name: q
                widget: string
              - label: Answer
                name: a
                widget: text